@import "tokens/colors.css";
@import "tokens/typography.css";
@import "tokens/spacing.css";
@import "tokens/effects.css";

/* ---------- reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--surface-app);
  color:var(--text-primary);
  font-family:var(--font-ui);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,video{display:block;max-width:100%}
button{font:inherit;color:inherit}
h1,h2,h3,h4,p{margin:0}
a{color:var(--accent-1)}

/* ---------- layout ---------- */
.wrap{max-width:1280px;margin:0 auto;padding-inline:44px}
@media (max-width:820px){.wrap{padding-inline:20px}}

.eyebrow{
  font-size:var(--text-2xs);
  letter-spacing:var(--tracking-label);
  color:var(--accent-1);
  text-transform:uppercase;
}
.eyebrow--muted{color:var(--text-tertiary)}

/* ---------- glass button (ported from DS GlassButton.jsx) ---------- */
.btn{
  font-family:var(--font-ui);
  font-size:var(--text-base);
  font-weight:var(--weight-semibold);
  border:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 20px;
  border-radius:var(--radius-md);
  text-decoration:none;
  transition:filter var(--duration-fast) var(--ease-standard),
             transform var(--duration-fast) var(--ease-standard);
}
.btn:hover{filter:brightness(1.15)}
.btn:active{transform:scale(.96)}
.btn:focus-visible{outline:2px solid var(--accent-1);outline-offset:3px}
.btn--prominent{background:var(--accent);color:#001427}
.btn--bordered{
  background:rgba(255,255,255,.10);
  color:var(--text-primary);
  box-shadow:inset 0 0 0 1px var(--glass-stroke);
}

/* ---------- glass surfaces ---------- */
.glass{
  background:var(--glass-panel);
  backdrop-filter:blur(20px) saturate(1.4);
  -webkit-backdrop-filter:blur(20px) saturate(1.4);
  box-shadow:inset 0 0 0 1px var(--glass-stroke), 0 30px 60px rgba(0,0,0,.5);
  border-radius:22px;
}
/* ---------- hero ---------- */
.hero{position:relative;height:620px;overflow:hidden}
.hero__media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero__scrim{
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(2,3,4,.72) 0%,rgba(2,3,4,.28) 42%,rgba(2,3,4,.94) 100%);
}
.hero__brand{
  position:absolute;top:28px;left:44px;
  display:flex;align-items:center;gap:11px;
}
.hero__brand img{width:34px;height:34px;border-radius:9px}
.hero__brand span{font-size:var(--text-base);font-weight:var(--weight-heavy);letter-spacing:.18em}
.hero__brand .hero__by{
  font-size:var(--text-xs);font-weight:var(--weight-medium);letter-spacing:.02em;
  color:var(--text-tertiary);
}
.hero__platform{
  position:absolute;top:32px;right:44px;
  font-size:var(--text-2xs);letter-spacing:var(--tracking-label);color:var(--text-tertiary);
}
.hero__body{
  position:absolute;left:44px;right:44px;bottom:56px;
  display:flex;flex-direction:column;gap:22px;max-width:820px;
}
.hero h1{
  font-size:66px;line-height:1.02;font-weight:var(--weight-heavy);
  letter-spacing:-.025em;text-wrap:pretty;
}
.hero__sub{
  max-width:600px;font-size:18px;line-height:1.5;color:var(--text-secondary);
}
.hero__cta{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.hero__note{font-size:var(--text-sm);color:var(--text-tertiary)}

@media (max-width:820px){
  .hero{height:min(98vh,820px)}
  .hero__scrim{background:linear-gradient(180deg,rgba(2,3,4,.7),rgba(2,3,4,.2) 45%,rgba(2,3,4,.96))}
  .hero__brand{top:16px;left:0;right:0;justify-content:center}
  .hero__brand img{width:26px;height:26px;border-radius:7px}
  .hero__brand span{font-size:var(--text-xs)}
  .hero__brand .hero__by{font-size:var(--text-2xs)}
  .hero__platform{display:none}
  .hero__body{
    left:20px;right:20px;bottom:32px;
    align-items:center;text-align:center;gap:14px;
  }
  /* The <br> still breaks the headline in two, but neither half may wrap on
     its own — Safari's text-wrap:pretty will otherwise pull a word down to
     avoid a short last line. The fluid size is trimmed so that nowrap can
     never overflow the 20px gutters, even on a 320px-wide screen. */
  .hero h1{font-size:clamp(24px,8vw,33px);line-height:1.18;white-space:nowrap}
  .hero__sub{font-size:14px}
  .hero__cta{flex-direction:column;gap:10px}
}

/* ---------- sticky bar ---------- */
.sticky{
  position:sticky;top:0;z-index:20;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:12px 44px;
  background:rgba(10,12,16,.82);
  backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);
  box-shadow:inset 0 -1px 0 var(--glass-stroke);
}
.sticky__id{display:flex;align-items:center;gap:10px;font-size:var(--text-sm);color:var(--text-secondary)}
.sticky__id img{width:22px;height:22px;border-radius:6px}
@media (max-width:820px){
  .sticky{padding:10px 16px;gap:10px}
  .sticky__id span{display:none}
  .sticky .btn{padding:9px 15px;font-size:var(--text-sm)}
}

/* ---------- section scaffolding ---------- */
.section{padding-top:88px}
.section__head{display:flex;flex-direction:column;gap:14px}
.section__head h2{
  font-size:36px;font-weight:var(--weight-heavy);letter-spacing:-.02em;
}
@media (max-width:820px){
  .section{padding-top:56px}
  .section__head h2{font-size:25px}
}

/* ---------- process cards ---------- */
.steps{display:flex;flex-direction:column;gap:34px;margin-top:34px}
.step{
  display:flex;gap:38px;align-items:center;padding:26px;
}
.step--flip{flex-direction:row-reverse}
.step__media{
  position:relative;width:560px;height:300px;flex:none;
  border-radius:16px;overflow:hidden;background:#05070a;
  box-shadow:inset 0 0 0 1px var(--glass-stroke);
}
.step__media img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
}
.step__copy{display:flex;flex-direction:column;gap:14px;min-width:0}
.step__copy h3{font-size:28px;font-weight:var(--weight-bold);letter-spacing:-.015em}
.step__copy p{font-size:var(--text-base);line-height:1.5;color:var(--text-secondary)}
.step__kicker{font-size:var(--text-xs);letter-spacing:.14em;color:var(--text-tertiary)}

@media (max-width:980px){
  .step,.step--flip{flex-direction:column;gap:22px;padding:18px}
  .step__media{width:100%;height:auto;aspect-ratio:16/9}
  .step__copy h3{font-size:21px}
}

/* ---------- seat picker ---------- */
.seatview{position:relative;width:100%;height:100%}
.seatview img{opacity:0;transition:opacity var(--duration-standard) var(--ease-standard)}
.seatview img.is-active{opacity:1}
.seatview__label{
  position:absolute;left:14px;top:12px;z-index:2;
  padding:5px 11px;border-radius:var(--radius-pill);
  background:rgba(14,17,22,.72);
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);
  font-size:var(--text-2xs);letter-spacing:.1em;
}
.seatview__spinner{
  position:absolute;inset:0;z-index:1;display:none;
  align-items:center;justify-content:center;
  background:rgba(5,7,10,.6);
  font-size:var(--text-xs);color:var(--text-tertiary);letter-spacing:.1em;
}
.seatview.is-loading .seatview__spinner{display:flex}

.field{
  position:relative;height:250px;border-radius:14px;overflow:hidden;
  background:linear-gradient(180deg,#0b1a10,#071008);
  box-shadow:inset 0 0 0 1px var(--glass-stroke);
  touch-action:manipulation;
}
.field__lines{
  position:absolute;inset:0;
  background:repeating-linear-gradient(180deg,rgba(255,255,255,.055) 0 1px,transparent 1px 42px);
}
.field__los{position:absolute;left:0;right:0;top:56%;height:1px;background:rgba(255,255,255,.34)}
.field__tag{position:absolute;font-size:9px;letter-spacing:.14em}
.field__tag--def{left:10px;top:6px;color:rgba(242,33,33,.9)}
.field__tag--off{left:10px;bottom:6px;color:rgba(63,178,255,.9)}
.field__hint{position:absolute;right:10px;top:6px;font-size:10px;letter-spacing:.14em;color:var(--text-tertiary)}
.field__hint b{font-weight:var(--weight-bold);color:#fff}

.seat{
  position:absolute;transform:translate(-50%,-50%);
  display:flex;align-items:center;justify-content:center;
  border:none;padding:0;
  background:#05070a;
  font-size:8px;font-weight:var(--weight-bold);letter-spacing:.02em;
  cursor:pointer;
  transition:box-shadow var(--duration-standard) var(--ease-standard),
             width var(--duration-standard) var(--ease-standard),
             height var(--duration-standard) var(--ease-standard);
}
/* The visible dot stays small so the formation reads correctly; an invisible
   pseudo-element carries a 44px touch target so the dots are actually tappable. */
.seat::after{
  content:"";
  position:absolute;top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:44px;height:44px;
}
.seat--off{color:var(--accent-1);box-shadow:0 0 0 1px rgba(63,178,255,.55);border-radius:var(--radius-pill);width:19px;height:19px}
.seat--def{color:var(--route-blitz);box-shadow:0 0 0 1px rgba(242,33,33,.5);border-radius:5px;width:18px;height:18px}
.seat:hover{box-shadow:0 0 0 1px currentColor,0 0 10px rgba(63,178,255,.5)}
.seat:focus-visible{outline:2px solid #fff;outline-offset:2px}
.seat.is-active{width:25px;height:25px;font-size:9px;color:#fff}
/* Two halos per selected seat: a tight one that reads as a rim, and a wide,
   softer one that carries far enough to be spotted without hunting for it.
   Both breathe slowly between a low and high state so the selection stays
   noticeable without demanding attention. */
.seat--off.is-active{
  background:var(--accent-1);color:#001427;
  animation:seatGlowOff 3.6s ease-in-out infinite;
}
.seat--def.is-active{
  background:var(--route-blitz);color:#fff;
  animation:seatGlowDef 3.6s ease-in-out infinite;
}
@keyframes seatGlowOff{
  0%,100%{box-shadow:0 0 0 2px #fff, 0 0 10px var(--accent-glow), 0 0 20px 6px var(--accent-glow)}
  50%    {box-shadow:0 0 0 2px #fff, 0 0 18px var(--accent-glow), 0 0 40px 14px var(--accent-glow)}
}
@keyframes seatGlowDef{
  0%,100%{box-shadow:0 0 0 2px #fff, 0 0 10px rgba(242,33,33,.75), 0 0 20px 6px rgba(242,33,33,.45)}
  50%    {box-shadow:0 0 0 2px #fff, 0 0 18px rgba(242,33,33,.75), 0 0 40px 14px rgba(242,33,33,.45)}
}
@media (prefers-reduced-motion: reduce){
  .seat--off.is-active{animation:none;box-shadow:0 0 0 2px #fff, 0 0 14px var(--accent-glow), 0 0 32px 10px var(--accent-glow)}
  .seat--def.is-active{animation:none;box-shadow:0 0 0 2px #fff, 0 0 14px rgba(242,33,33,.75), 0 0 32px 10px rgba(242,33,33,.45)}
}

/* ---------- segmented control (ported from DS SegmentedControl.jsx) ---------- */
.seg{
  display:inline-flex;gap:6px;
  background:rgba(0,0,0,.25);padding:4px;border-radius:12px;
  align-self:flex-start;flex-wrap:wrap;
}
.seg button{
  border:none;cursor:pointer;
  padding:8px 16px;border-radius:8px;
  font-size:var(--text-sm);font-weight:var(--weight-regular);
  color:var(--text-primary);background:transparent;
  transition:background var(--duration-fast) var(--ease-standard);
}
.seg button:hover{background:rgba(255,255,255,.08)}
.seg button[aria-selected="true"]{
  background:var(--surface-panel-selected);
  font-weight:var(--weight-semibold);
}
.seg button:focus-visible{outline:2px solid var(--accent-1);outline-offset:2px}

/* ---------- zone legend (ported from DS ZoneLegend.jsx) ---------- */
.legend{display:flex;gap:14px;flex-wrap:wrap}
.legend__item{display:flex;align-items:center;gap:6px}
.legend__swatch{width:12px;height:12px;border-radius:50%;flex:none}
.legend__swatch--square{border-radius:3px}
.legend__item span:last-child{color:var(--text-secondary);font-size:var(--text-xs)}

/* ---------- stats row ---------- */
.stats{display:flex;gap:26px;font-size:var(--text-sm);color:var(--text-secondary);flex-wrap:wrap}
.stats b{font-size:var(--text-lg);font-weight:var(--weight-bold);color:#fff}

/* ---------- feature grid ---------- */
.features{
  display:grid;grid-template-columns:repeat(3,1fr);gap:20px 28px;margin-top:34px;
}
.feature{display:flex;flex-direction:column;align-items:center;text-align:center;gap:7px}
.feature__icon{
  width:38px;height:38px;border-radius:11px;
  background:rgba(63,178,255,.14);
  box-shadow:inset 0 0 0 1px rgba(63,178,255,.35);
  display:flex;align-items:center;justify-content:center;color:var(--accent-1);
}
.feature h4{font-size:var(--text-md);font-weight:var(--weight-bold)}
.feature p{font-size:14px;line-height:1.5;color:var(--text-tertiary)}
@media (max-width:980px){.features{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.features{gap:22px 18px}}

/* ---------- neural motion engine ---------- */
.nme{
  display:flex;gap:38px;align-items:center;padding:38px;
  border-radius:22px;background:var(--ink-1);
  box-shadow:inset 0 0 0 1px var(--glass-stroke);
  margin-top:34px;
}
.nme__copy{display:flex;flex-direction:column;gap:12px;max-width:440px}
.nme__copy h3{font-size:30px;font-weight:var(--weight-heavy);letter-spacing:-.02em;color:var(--accent-1)}
.nme__copy p{font-size:var(--text-md);line-height:1.5;color:var(--text-secondary)}
.nme__flow{
  flex:1;min-height:180px;border-radius:14px;
  display:grid;grid-template-columns:1fr 22px 1fr 22px 1fr;
  align-items:center;gap:10px;padding:18px;
  box-shadow:inset 0 0 0 1px var(--glass-stroke);
  font-size:var(--text-xs);color:var(--text-secondary);
}
.nme__col{display:flex;flex-direction:column;gap:6px}
.nme__col > span:not(.nme__label){
  padding:7px 10px;border-radius:9px;
  background:rgba(255,255,255,.06);
  box-shadow:inset 0 0 0 1px var(--glass-stroke);
}
.nme__label{font-size:10px;letter-spacing:.14em;color:var(--text-tertiary)}
.nme__arrow{text-align:center;color:var(--accent-1);font-size:var(--text-base)}
.nme__core{
  display:flex;flex-direction:column;gap:6px;align-items:center;text-align:center;
  padding:12px 10px;border-radius:12px;
  background:rgba(63,178,255,.10);
  box-shadow:inset 0 0 0 1px rgba(63,178,255,.45);
}
.nme__core b{font-size:var(--text-xs);font-weight:var(--weight-bold);color:var(--accent-1)}
.nme__core span{font-size:var(--text-2xs);color:rgba(255,255,255,.6)}
@media (max-width:980px){
  .nme{flex-direction:column;align-items:stretch;padding:22px;gap:22px}
  .nme__copy h3{font-size:23px}
  .nme__flow{grid-template-columns:1fr;gap:12px}
  .nme__arrow{transform:rotate(90deg)}
}

/* ---------- CTA ---------- */
.cta{position:relative;margin-top:88px;padding:76px 44px 40px;overflow:hidden}
.cta__bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.35}
.cta__scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(2,3,4,.9),rgba(2,3,4,.96))}
.cta__inner{position:relative;display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center}
.cta h2{font-size:42px;font-weight:var(--weight-heavy);letter-spacing:-.025em}
.cta__form{display:flex;gap:10px;width:min(600px,100%)}
.cta__form input{
  flex:1;min-width:0;padding:13px 16px;border-radius:var(--radius-md);border:none;
  font-family:var(--font-ui);font-size:var(--text-base);color:#fff;
  background:rgba(255,255,255,.08);
  box-shadow:inset 0 0 0 1px var(--glass-stroke);outline:none;
}
.cta__form input::placeholder{color:var(--text-tertiary)}
.cta__form input:focus{box-shadow:inset 0 0 0 1px var(--accent-1)}
.cta__note{font-size:var(--text-sm);color:var(--text-tertiary)}
.cta__ok{
  padding:14px 22px;border-radius:var(--radius-md);
  background:rgba(63,178,255,.14);
  box-shadow:inset 0 0 0 1px rgba(63,178,255,.45);
  font-size:var(--text-base);
}
.cta__err{font-size:var(--text-sm);color:var(--route-rush)}
[hidden]{display:none !important}
@media (max-width:820px){
  .cta{padding:52px 20px 32px;margin-top:56px}
  .cta h2{font-size:27px}
  .cta__form{flex-direction:column}
}

/* ---------- footer ---------- */
.footer{
  position:relative;margin-top:26px;
  display:flex;gap:22px;justify-content:center;flex-wrap:wrap;
  font-size:var(--text-xs);color:var(--text-tertiary);text-align:center;
}
.footer a{color:var(--text-tertiary);text-decoration:none}
.footer a:hover{color:var(--accent-1)}

/* ---------- scroll reveal ---------- */
.reveal{opacity:0;transform:translateY(18px)}
.reveal.is-in{
  opacity:1;transform:none;
  transition:opacity .6s var(--ease-standard),transform .6s var(--ease-standard);
}
@media (prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none}
  *{animation-duration:.01ms !important;transition-duration:.01ms !important}
}
