/* Landing composition; original brand values remain in tokens.css.
   Motion reference: homelab ENGRAISERVER 51dd1e0, Gate/ModelCard/Activity.
   CSS easing approximates the original spring. */
:root { --page-width: 1120px; --chrome-gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)); --motion-spring: cubic-bezier(.22, 1, .36, 1); }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { overflow-wrap: break-word; }
h1, h2, h3, p, figure { margin: 0; }
img { max-width: 100%; height: auto; }
.wrap { width: min(var(--page-width), calc(100% - 64px)); margin-inline: auto; }
.chrome-wrap { width: calc(100% - var(--chrome-gutter) - var(--chrome-gutter)); margin-inline: auto; }
.section-space { padding-block: 96px; }
.eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .17em; line-height: 1.6; color: var(--text-muted); text-transform: uppercase; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 30; padding: 12px 20px; background: var(--foreground); color: var(--background); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--header-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding-top: var(--safe-top); }
.site-header::after { content: ""; display: block; margin-inline: var(--chrome-gutter); border-bottom: 1px solid var(--accent-line); }
.header-inner { height: 72px; display: flex; align-items: center; gap: 32px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 24px; font-weight: 900; letter-spacing: -.035em; }
.site-brand img { flex-shrink: 0; }
.header-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.header-nav a { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; font-size: 13px; font-weight: 700; color: var(--text-muted); }
.header-nav a:hover, .landing-footer a:hover { color: var(--foreground); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 48px; padding: 0 22px; font-size: 14px; font-weight: 800; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.button:hover { border-color: var(--primary-icon); background: var(--surface-2); }
.button:active { transform: scale(.97); }
.button-primary { background: var(--accent); border-color: var(--accent); color: #26070d; }
.button-primary:hover { background: #ff5573; border-color: #ff5573; }
.button-small { min-height: 44px; font-size: 12px; gap: 16px; }
.text-link { min-height: 44px; display: inline-flex; gap: 18px; align-items: center; font-size: 13px; font-weight: 700; color: var(--text-muted); transition: color var(--dur-fast); }
.text-link:hover { color: var(--primary-icon); }
.text-link span { color: var(--primary-icon); }
.hero { padding-top: 68px; overflow: clip; background: radial-gradient(ellipse at 50% 47%, rgba(255,59,92,.055), transparent 65%); }
.hero-copy { text-align: center; padding-inline: 24px; }
.hero .eyebrow { display: flex; align-items: center; justify-content: center; gap: 9px; }
.accent-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
h1 { margin-top: 18px; font-size: clamp(48px, 6.9vw, 88px); font-weight: 850; line-height: 1.1; letter-spacing: -.055em; }
h1 span { color: var(--primary-icon); }
.hero-description { margin-top: 18px; color: var(--text-muted); font-size: 17px; }
.hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 26px; }
.showcase { margin-top: 48px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(160deg, rgba(255,59,92,.045), transparent 60%), var(--surface); }
.showcase-label, .showcase-bottom { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px 24px; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.showcase-label { border-bottom: 1px solid rgba(68,60,69,.5); color: var(--primary-icon); }
.showcase-platform { color: var(--text-muted); font-weight: 600; font-family: var(--font-mono); font-size: 9px; }
.device-figure { padding: 28px 30px 4px; max-width: 980px; margin-inline: auto; }
.device-figure img { display: block; width: 100%; filter: drop-shadow(0 22px 24px rgba(0,0,0,.25)); }
.showcase-bottom { color: var(--text-muted); padding-block: 20px; }
.showcase-bottom > span { color: var(--foreground); }
.showcase-bottom a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.scroll-line { width: 28px; height: 1px; background: var(--accent); }
.section-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 32px; }
h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; line-height: 1.2; letter-spacing: -.035em; }
.section-heading h2 { margin-top: 12px; }
.section-heading > p { color: var(--text-muted); font-size: 13px; padding-bottom: 4px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.feature { min-width: 0; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-md); background: linear-gradient(145deg, rgba(255,59,92,.025), transparent 65%), var(--surface); }
.feature-top { display: flex; justify-content: space-between; align-items: center; }
.feature-top .eyebrow { color: var(--primary-icon); }
.feature-top svg { width: 24px; height: 24px; stroke: var(--primary-icon); stroke-width: 1.25; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.feature-top svg circle { fill: var(--surface); }
.feature h3 { margin-top: 28px; font-size: 27px; font-weight: 800; line-height: 1.17; letter-spacing: -.025em; }
.feature > p { margin-top: 18px; color: var(--text-muted); line-height: 1.75; font-size: 14px; }
.feature-art { height: 118px; margin-top: auto; padding-top: 28px; }
.dial-art { display: grid; gap: 12px; }
.dial-art > span { display: grid; grid-template-columns: 100px 1fr; align-items: center; color: var(--text-muted); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.dial-art i { position: relative; height: 3px; border-radius: 4px; background: var(--surface-3); }
.dial-art i::before { content: ""; display: block; width: var(--level); height: 100%; background: var(--overlay-icon); border-radius: inherit; }
.dial-art i::after { content: ""; position: absolute; left: var(--level); top: -3px; width: 9px; height: 9px; border: 2px solid var(--primary-icon); background: var(--surface); border-radius: 50%; }
.memory-art { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.memory-line { width: 90%; height: 2px; background: var(--surface-3); }
.memory-line:nth-child(2) { width: 73%; }
.memory-line:nth-child(3) { width: 82%; }
.memory-note { border-left: 2px solid var(--overlay-icon); padding-left: 10px; margin-top: 4px; color: var(--primary-icon); font-size: 11px; font-style: italic; }
.persona-art { display: flex; align-items: center; justify-content: center; padding-top: 16px; }
.persona-circle { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--line); background: var(--bg); border-radius: 50%; font-size: 9px; letter-spacing: .08em; color: var(--primary-icon); }
.persona-circle:last-child { border-color: var(--accent-line); }
.persona-connection { width: 68px; height: 1px; background: linear-gradient(90deg, var(--line), var(--primary-icon), var(--line)); position: relative; }
.persona-connection::after { content: ""; width: 5px; height: 5px; position: absolute; left: calc(50% - 2px); top: -2px; background: var(--primary-icon); border-radius: 50%; }
.mobile-hint { display: none; }
.story-section { position: relative; background: linear-gradient(120deg, rgba(255,59,92,.025), transparent 60%); }
.story-section::before, .story-section::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); width: min(var(--page-width), calc(100% - 64px)); border-top: 1px solid rgba(68,60,69,.55); }
.story-section::before { top: 0; }
.story-section::after { bottom: 0; }
.story-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 48px; }
.story-copy h2 { margin-top: 24px; font-size: clamp(36px, 4.3vw, 55px); line-height: 1.13; letter-spacing: -.04em; }
.story-copy h2 span { color: var(--primary-icon); }
.story-copy > p:not(.eyebrow) { max-width: 650px; margin-top: 26px; font-size: 15px; line-height: 1.8; color: var(--text-muted); }
.story-copy .text-link { margin-top: 20px; }
.scenes > .eyebrow { padding-bottom: 18px; }
.scenes ol { list-style: none; padding: 0; margin: 0; }
.scene { display: grid; grid-template-columns: 24px 1fr 36px; align-items: center; gap: 18px; min-height: 117px; padding-block: 24px; border-top: 1px solid var(--line); }
.scene-number { font-family: var(--font-mono); font-size: 10px; color: var(--primary-icon); }
.scene h3 { font-size: 17px; font-weight: 650; line-height: 1.5; letter-spacing: -.015em; }
.scene svg { width: 34px; height: 34px; fill: none; stroke: var(--overlay-icon); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.scenes-caption { padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-muted); }
.download-panel { text-align: center; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 56px 24px; background: radial-gradient(ellipse at 50% 0, rgba(255,59,92,.085), transparent 70%), var(--surface); }
.download-mark { display: block; margin: 0 auto 24px; }
.download-panel h2 { margin-top: 16px; font-size: clamp(32px, 4.3vw, 54px); }
.download-panel h2 span { color: var(--primary-icon); }
.download-panel > p:not(.eyebrow) { color: var(--text-muted); margin-top: 14px; font-size: 16px; }
.download-button { margin-top: 28px; }
.download-subline { display: block; margin-top: 18px; font-size: 11px; color: var(--text-muted); }
.landing-footer { border-top: 1px solid var(--accent-line); padding-block: 28px max(24px, var(--safe-bottom)); }
.footer-top, .footer-bottom { display: flex; align-items: center; gap: 24px; }
.footer-top .site-brand { font-size: 20px; }
.footer-top > p { color: var(--text-muted); font-size: 12px; }
.landing-footer nav { margin-left: auto; display: flex; flex-wrap: wrap; column-gap: 24px; }
.landing-footer nav a { min-height: 44px; display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); }
.footer-bottom { margin-top: 18px; }
.footer-bottom p { font-size: 10px; color: var(--text-muted); }
/* Visible by default: unsupported scroll timelines never hide content. */
@keyframes arrive { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: .15; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes device-drift { from { transform: translateY(0); } to { transform: translateY(-12px); } }
@media (prefers-reduced-motion: no-preference) {
  .entrance { animation: arrive 480ms var(--motion-spring) both; }
  h1.entrance { animation-delay: 50ms; }
  .hero-description.entrance { animation-delay: 100ms; }
  .hero-actions.entrance { animation-delay: 150ms; }
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
    .device-figure { animation: device-drift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 1500px) { :root { --page-width: 1240px; } .hero { padding-top: 80px; } }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 40px); }
  .story-section::before, .story-section::after { width: calc(100% - 40px); }
  .section-space { padding-block: 72px; }
  .header-inner { gap: 24px; }
  .header-nav { gap: 22px; }
  .feature { padding: 20px; }
  .feature h3 { font-size: 24px; }
  .feature > p { font-size: 13px; }
  .dial-art > span { grid-template-columns: 85px 1fr; }
  .story-layout { gap: 40px; }
  .scene { gap: 12px; }
  .scene h3 { font-size: 15px; }
}
@media (max-width: 640px) {
  :root { --chrome-gutter: max(12px, env(safe-area-inset-left), env(safe-area-inset-right)); }
  html { scroll-padding-top: 90px; }
  .wrap { width: calc(100% - 32px); }
  .story-section::before, .story-section::after { width: calc(100% - 32px); }
  .header-inner { height: 64px; gap: 18px; }
  .site-brand { font-size: 21px; gap: 8px; }
  .site-brand img { width: 28px; }
  .header-nav { gap: 18px; }
  .header-nav a { font-size: 12px; }
  .header-inner > .button { display: none; }
  .hero { padding-top: 48px; }
  .hero .eyebrow { font-size: 9px; }
  h1 { font-size: clamp(44px, 10vw, 64px); line-height: 1.07; margin-top: 20px; }
  h1 span { display: block; }
  .hero-description { max-width: 260px; margin: 20px auto 0; font-size: 14px; line-height: 1.65; }
  .hero-actions { gap: 12px 20px; margin-top: 22px; }
  .button { font-size: 12px; padding-inline: 18px; }
  .text-link { font-size: 12px; gap: 10px; }
  .showcase { margin-top: 32px; border-radius: var(--r-md); }
  .showcase-label, .showcase-bottom { padding: 14px 16px; font-size: 8px; letter-spacing: .1em; }
  .showcase-platform { font-size: 7px; letter-spacing: .04em; }
  .device-figure { padding: 26px 8px 12px; }
  .showcase-bottom { padding-top: 0; justify-content: center; }
  .showcase-bottom a { display: none; }
  .section-space { padding-block: 56px; }
  .section-heading { display: block; margin-bottom: 24px; }
  .section-heading > p { margin-top: 12px; }
  .section-heading h2 { font-size: 28px; }
  .features { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 3px 3px 12px; margin-inline: -3px; scrollbar-width: thin; scrollbar-color: var(--accent-line) var(--surface); }
  .feature { flex: 0 0 86%; scroll-snap-align: start; padding: 24px; }
  .feature h3 { font-size: 29px; }
  .feature > p { font-size: 14px; }
  .feature-art { margin-top: 20px; }
  .mobile-hint { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 10px; margin-top: 12px; }
  .mobile-hint span { color: var(--primary-icon); }
  .story-layout { grid-template-columns: 1fr; gap: 44px; }
  .story-copy { position: static; }
  .story-copy h2 { font-size: 42px; margin-top: 18px; }
  .story-copy h2 br { display: none; }
  .story-copy > p:not(.eyebrow) { font-size: 14px; }
  .scene { min-height: 110px; grid-template-columns: 20px 1fr 34px; gap: 14px; }
  .scene h3 { font-size: 16px; }
  .download-panel { padding: 40px 16px; }
  .download-panel h2 { max-width: 300px; margin-inline: auto; font-size: 35px; }
  .download-mark { width: 52px; height: 52px; }
  .footer-top, .footer-bottom { flex-wrap: wrap; gap: 8px 20px; }
  .footer-top > p { flex-basis: 100%; order: 3; }
  .footer-top nav { column-gap: 18px; }
 .footer-bottom { display: flex; justify-content: space-around; width: 100%; }
  .footer-bottom nav { margin-left: 0; }
}
@media (max-width: 360px) {
  .header-inner { gap: 10px; }
  .header-nav { gap: 12px; }
  .site-brand { font-size: 18px; }
  .showcase-platform { display: none; }
  .feature { flex-basis: 94%; }
}
