/* HELMET FX — Assetto Corsa menu UI theme */
:root {
  --bg: #0b0c0e;
  --surface: #15171a;
  --surface-2: #1c1e21;
  --line: rgba(255, 255, 255, 0.13);
  --red: #d92b24;
  --red-dim: #7a1a16;
  --white: #e8e8e8;
  --white-dim: rgba(232, 232, 232, 0.6);
  --rail-w: 272px;
  --content-max: 1440px;                 /* widest the content column ever gets */
  --stage-pad: clamp(24px, 4vw, 64px);   /* breathing room left/right of the content */
  --font-d: 'Orbitron', 'Exo 2', sans-serif;
  --font-b: 'Exo 2', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
.sprite { position: absolute; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-b);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== Background slideshow ===== */
.slideshow { position: fixed; inset: 0; z-index: -1; background: var(--bg); overflow: hidden; }
.slideshow-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(217, 43, 36, 0.16), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(217, 43, 36, 0.08), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 56px),
    linear-gradient(180deg, #101114 0%, #0b0c0e 60%, #07080a 100%);
}
.slide {
  position: absolute; inset: -4%;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease;
  animation: kenburns 9s ease-in-out infinite alternate;
}
.slide.is-active { opacity: 1; }
.slideshow.has-slides .slideshow-fallback { display: none; }
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1%, 1%); }
}
.slideshow-veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,12,14,0.93) 0%, rgba(11,12,14,0.75) 34%, rgba(11,12,14,0.42) 60%, rgba(11,12,14,0.60) 100%),
              linear-gradient(0deg, rgba(11,12,14,0.9) 0%, transparent 30%, transparent 70%, rgba(11,12,14,0.85) 100%);
}

/* ===== Left rail (AC menu) ===== */
.rail {
  position: fixed; top: 0; bottom: 0; left: 0; width: var(--rail-w);
  background: rgba(11, 12, 14, 0.94);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 28px 0 20px; z-index: 10;
}
.rail-brand { display: flex; gap: 14px; align-items: center; padding: 0 26px 28px; }
.rail-bar { width: 4px; background: var(--red); }
.brand-logo { width: 56px; height: 56px; border-radius: 8px; display: block; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 4px; }
.brand-name { font-family: var(--font-d); font-weight: 800; font-size: 20px; letter-spacing: 3px; line-height: 1.05; }
.brand-sub { font-family: var(--font-d); font-weight: 700; font-size: 10px; letter-spacing: 2.2px; color: var(--white-dim); white-space: nowrap; }
.topbar-logo { width: 28px; height: 28px; border-radius: 4px; border: 1px solid rgba(217, 43, 36, 0.55); display: block; }
.rail-nav { display: flex; flex-direction: column; }
.rail-link {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 14px 26px; color: var(--white-dim); text-decoration: none;
  font-family: var(--font-d); font-size: 13px; letter-spacing: 2.4px; font-weight: 700;
  border-left: 3px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.rail-link:hover { color: var(--white); background: rgba(255,255,255,0.04); }
.rail-link.is-active { color: var(--white); background: rgba(217,43,36,0.12); border-left-color: var(--red); }
.rail-tick { width: 18px; height: 2px; background: currentColor; opacity: 0.5; flex: none; }
.rail-link.is-active .rail-tick { background: var(--red); opacity: 1; }
.rail-foot { margin-top: auto; padding: 0 26px; display: flex; flex-direction: column; gap: 5px; }
.rail-version { font-family: var(--font-d); font-size: 12px; color: var(--red); letter-spacing: 1.8px; }
.rail-csp { font-size: 12px; letter-spacing: 1.8px; color: var(--white-dim); }

/* ===== Mobile top bar ===== */
.topbar, .mobile-nav { display: none; }

/* ===== Stage ===== */
/* Everything right of the rail is the stage. Sections fill it up to --content-max and
   sit centred in whatever is left, so a wide monitor gets balanced margins instead of
   a content column hugging the rail with dead space on the right. */
.stage { margin-left: var(--rail-w); padding: 0 var(--stage-pad) 80px; }
.stage > * { max-width: var(--content-max); margin-inline: auto; }

/* anchor jumps land below the sticky mobile bar */
section[id] { scroll-margin-top: 76px; }

/* ===== Hero ===== */
.hero { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0 32px; }
.kicker { font-family: var(--font-d); font-size: 11px; letter-spacing: 3px; color: var(--red); font-weight: 700; margin-bottom: 18px; }
.hero-title { font-family: var(--font-d); font-weight: 800; font-size: clamp(38px, 6vw, 74px); line-height: 1.08; letter-spacing: 1px; }
.hero-title .red { color: var(--red); }
.hero-sub { margin-top: 18px; max-width: 560px; font-size: 17px; color: var(--white-dim); line-height: 1.6; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* ===== Buttons / chips ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 26px; border-radius: 2px;
  font-family: var(--font-d); font-size: 11px; letter-spacing: 2px; font-weight: 700;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--red); color: #fff; }
.btn.is-disabled { opacity: 0.55; cursor: not-allowed; }
.chip {
  font-family: var(--font-d); font-size: 9px; letter-spacing: 1.6px; font-weight: 700;
  color: var(--white-dim); border: 1px solid var(--line); border-radius: 2px;
  padding: 7px 10px; background: rgba(255,255,255,0.03);
}

/* ===== Slideshow selector ===== */
.slides { display: flex; gap: 8px; margin-top: 34px; align-items: flex-end; min-height: 30px; }
.slides.is-empty { display: none; }
.slide-tick {
  display: flex; flex-direction: column; gap: 6px; align-items: center;
  background: none; border: none; cursor: pointer; padding: 4px 2px;
  font-family: var(--font-d); font-size: 9px; color: var(--white-dim); letter-spacing: 1px;
}
.slide-tick .bar { width: 44px; height: 3px; background: rgba(255,255,255,0.15); position: relative; overflow: hidden; }
.slide-tick .bar i { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); }
.slide-tick.is-active { color: #fff; }
.slide-tick.is-active .bar i { animation: tickfill 6s linear forwards; }
@keyframes tickfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ===== Panels / cards ===== */
.panel { background: rgba(21, 23, 26, 0.9); border: 1px solid var(--line); border-radius: 4px; padding: clamp(24px, 2.6vw, 44px) clamp(20px, 3vw, 48px); margin-top: 26px; }
.panel-title { font-family: var(--font-d); font-size: 15px; letter-spacing: 2.6px; font-weight: 800; display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.panel-bar { width: 4px; height: 20px; background: var(--red); display: inline-block; }
.panel-lead { color: var(--white-dim); line-height: 1.65; max-width: 640px; margin-bottom: 20px; }
.tag { font-size: 9px; background: var(--red-dim); color: #fff; padding: 4px 8px; border-radius: 2px; letter-spacing: 1.5px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: 2px; padding: 20px; }
.step-num { font-family: var(--font-d); color: var(--red); font-size: 12px; letter-spacing: 2px; font-weight: 800; }
.step h3 { font-family: var(--font-d); font-size: 12px; letter-spacing: 1.6px; margin: 10px 0 8px; }
.step p { font-size: 14px; color: var(--white-dim); line-height: 1.6; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 2px; padding: 20px; border-top: 2px solid var(--red-dim); transition: border-top-color 0.15s; }
.card:hover { border-top-color: var(--red); }
.card h3 { font-family: var(--font-d); font-size: 11px; letter-spacing: 1.6px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--white-dim); line-height: 1.6; }

.subhead { font-family: var(--font-d); font-size: 12px; letter-spacing: 2px; font-weight: 700; color: var(--white-dim); margin: 26px 0 12px; }
.subhead:first-of-type { margin-top: 4px; }

.phones { display: flex; gap: 18px; }
.phones-single { max-width: 420px; }
.phone { flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 2px; padding: 14px; text-align: center; }
.phone img { width: 100%; max-height: 420px; object-fit: cover; object-position: top; border-radius: 2px; display: block; background: #000; }
.phone figcaption { font-family: var(--font-d); font-size: 10px; letter-spacing: 2px; color: var(--white-dim); margin-top: 12px; }
.placeholder-box {
  aspect-ratio: 9 / 16; display: flex; align-items: center; justify-content: center;
  border: 1px dashed rgba(217,43,36,0.5); border-radius: 2px; background: rgba(255,255,255,0.02);
}
.placeholder-box span {
  font-family: var(--font-d); font-size: 10px; letter-spacing: 1.6px; color: var(--white-dim);
  padding: 0 16px; text-align: center;
}

.setup { list-style: none; counter-reset: setup; display: flex; flex-direction: column; gap: 12px; }
.setup li { counter-increment: setup; background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 2px; padding: 14px 16px; font-size: 14px; color: var(--white-dim); line-height: 1.6; }
.setup li::before { content: "0" counter(setup); font-family: var(--font-d); color: var(--red); font-size: 11px; letter-spacing: 2px; font-weight: 800; display: block; margin-bottom: 4px; }
.setup li span { color: var(--white); font-weight: 700; font-family: var(--font-d); font-size: 11px; letter-spacing: 1.6px; margin-right: 8px; }
.setup code { background: rgba(255,255,255,0.07); padding: 1px 6px; border-radius: 2px; font-size: 12px; color: #fff; }
.note { margin-top: 14px; font-size: 13px; color: var(--white-dim); border-left: 2px solid var(--red-dim); padding-left: 12px; line-height: 1.6; }

.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dl-card { background: var(--bg); border: 1px solid var(--line); border-radius: 2px; padding: 24px; text-align: center; }
.dl-card h3 { font-family: var(--font-d); font-size: 13px; letter-spacing: 2px; }
.dl-ver { font-size: 13px; color: var(--white-dim); margin: 8px 0 18px; }

.telemetry { border-top: 2px solid var(--red); }
.tele-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.tele-strip span { font-family: var(--font-d); font-size: 10px; letter-spacing: 2px; border: 1px dashed rgba(217,43,36,0.5); color: var(--white-dim); padding: 10px 16px; border-radius: 2px; }

/* ===== Wide-screen pairs ===== */
.apps-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.apps-intro .subhead { margin-top: 4px; }
.apps-intro .panel-lead { max-width: none; margin-bottom: 8px; }
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 14px; }
.placeholder-wide { aspect-ratio: 16 / 9; }
.tele-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.tele-grid .panel-lead { margin-bottom: 0; }
.tag-free { background: rgba(127, 212, 138, 0.16); color: #7fd48a; margin-left: 8px; vertical-align: middle; }
.setup { display: grid; grid-template-columns: 1fr 1fr; }
.acct-grid { display: grid; grid-template-columns: minmax(0, 620px) minmax(280px, 1fr); gap: 40px; align-items: start; }
.acct-aside .subhead:first-child { margin-top: 4px; }
.acct-aside .mini-steps li b { color: var(--white); font-weight: 600; margin-right: 4px; }

/* ===== Buy ===== */
.tag-red { background: var(--red); }
.rail-link-buy { color: var(--white); }
.rail-link-buy .rail-tick { background: var(--red); opacity: 1; }
.rail-account {
  display: block; margin-bottom: 14px; padding: 11px 14px;
  font-family: var(--font-d); font-size: 11.5px; letter-spacing: 1.9px; font-weight: 700;
  color: var(--white-dim); text-decoration: none; border: 1px solid var(--line); border-radius: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rail-account:hover { border-color: var(--red); color: var(--white); }
.rail-account.is-in { color: #7fd48a; border-color: rgba(127, 212, 138, 0.35); }
.rail-account.is-unpaid { color: #f0b429; border-color: rgba(240, 180, 41, 0.35); }

.buy-grid { display: grid; grid-template-columns: minmax(340px, 480px) minmax(0, 1fr); gap: 32px; align-items: start; }
.price-card { background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 2px; padding: 26px 24px; }
.price-name { font-family: var(--font-d); font-size: 11px; letter-spacing: 2px; font-weight: 700; color: var(--white-dim); }
.price-big { font-family: var(--font-d); font-size: 54px; font-weight: 800; line-height: 1; margin: 12px 0 18px; display: flex; align-items: baseline; gap: 12px; }
.price-once { font-size: 11px; letter-spacing: 2px; color: var(--white-dim); font-weight: 700; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.check-list li { font-size: 14px; color: var(--white-dim); line-height: 1.5; padding-left: 22px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
.check-list b { color: var(--white); font-weight: 600; }
.btn-wide { width: 100%; }
.btn.is-busy { opacity: 0.7; cursor: progress; }
.price-fine { margin-top: 12px; font-size: 12px; color: var(--white-dim); line-height: 1.55; }
.price-fine.is-warn { color: #f0b429; }
.buy-how .subhead:first-of-type { margin-top: 4px; }
.mini-steps { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.mini-steps li { display: flex; gap: 12px; font-size: 14px; color: var(--white-dim); line-height: 1.55; background: var(--bg); border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px; }
.mini-steps li span { font-family: var(--font-d); color: var(--red); font-size: 11px; letter-spacing: 2px; font-weight: 800; flex: none; padding-top: 3px; }
.buy-note { font-size: 14px; color: var(--white-dim); line-height: 1.65; }
.buy-note b { color: var(--white); font-weight: 600; }

/* ===== Download states ===== */
.dl-grid-3 { grid-template-columns: repeat(3, 1fr); }
.dl-status { font-size: 12.5px; color: var(--white-dim); margin: -8px 0 16px; min-height: 1.5em; line-height: 1.5; }
.dl-status.is-ok { color: #7fd48a; }
.dl-alt { display: flex; width: max-content; margin: 8px auto 0; }


/* ===== Account ===== */
.acct { max-width: 620px; }
.acct-main { min-width: 0; }
.acct-tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.acct-tab {
  background: transparent; color: var(--white-dim); border: 1px solid var(--line); border-radius: 2px;
  padding: 10px 18px; font-family: var(--font-d); font-size: 10.5px; letter-spacing: 2px; font-weight: 700; cursor: pointer;
}
.acct-tab.is-active { color: var(--white); border-color: var(--red); background: rgba(217, 43, 36, 0.12); }
.acct-lead { font-size: 14px; color: var(--white-dim); line-height: 1.6; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field span { font-family: var(--font-d); font-size: 9.5px; letter-spacing: 2px; color: var(--white-dim); font-weight: 700; }
.field input {
  background: var(--bg); color: var(--white); border: 1px solid var(--line); border-radius: 2px;
  height: 44px; padding: 0 14px; font-family: var(--font-b); font-size: 15px; outline: none;
}
.field input:focus { border-color: var(--red); }
.msg { font-size: 13.5px; line-height: 1.55; min-height: 1.4em; margin: 4px 0 10px; }
.msg.is-err { color: #ff6b63; }
.msg.is-ok { color: #7fd48a; }
.msg.is-dim { color: var(--white-dim); }
.acct-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.acct-hint { font-size: 12.5px; color: var(--white-dim); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 10px; }
.btn-link { border-color: transparent; color: var(--white-dim); padding: 0 10px; }
.btn-link:hover { color: var(--white); border-color: transparent; text-decoration: underline; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.acct-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.acct-who { font-size: 14px; color: var(--white-dim); }
.acct-who b { color: var(--white); font-weight: 600; }
.acct-pending { background: rgba(217, 43, 36, 0.1); border: 1px solid rgba(217, 43, 36, 0.45); border-radius: 2px; padding: 14px 16px; margin-bottom: 14px; }
.acct-pending-title { font-family: var(--font-d); font-size: 10.5px; letter-spacing: 2px; font-weight: 800; color: var(--red); margin-bottom: 4px; }
.acct-pending p:last-child { font-size: 14px; color: var(--white); line-height: 1.5; }
.acct-pending.is-busy .acct-pending-title::after { content: " •"; animation: pulse 1s steps(1) infinite; }
@keyframes pulse { 50% { opacity: 0; } }
.ent-card { background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--red-dim); border-radius: 2px; padding: 18px 20px; }
.ent-card[data-state="owned"] { border-left-color: #4caf50; }
.ent-name { font-family: var(--font-d); font-size: 10.5px; letter-spacing: 2px; font-weight: 700; color: var(--white-dim); }
.ent-status { font-family: var(--font-d); font-size: 18px; letter-spacing: 1.5px; font-weight: 800; margin: 8px 0 8px; color: #ff6b63; }
.ent-card[data-state="owned"] .ent-status { color: #7fd48a; }
.ent-copy { font-size: 14px; color: var(--white-dim); line-height: 1.6; margin-bottom: 14px; }
.acct-downloads { margin-top: 18px; }
.dl-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px; margin-bottom: 8px; font-size: 14px; flex-wrap: wrap; }
.dl-row b { color: var(--white); font-weight: 600; }
.dl-dim { color: var(--white-dim); font-size: 13px; margin-left: 6px; }
.acct-foot { margin-top: 16px; }

/* ===== Icons ===== */
.ic { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ===== Hero HUD ===== */
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 32px; align-items: stretch; }
.hud {
  background: var(--bg); border: 1px solid var(--line); border-radius: 2px;
  padding: 18px 20px 20px; display: flex; flex-direction: column; justify-content: center;
}
.hud-head { display: flex; justify-content: space-between; font-family: var(--font-d); font-size: 9.5px; letter-spacing: 1.8px; font-weight: 700; margin-bottom: 8px; }
.hud-live { color: #7fd48a; animation: blink 1.4s steps(1) infinite; }
.hud-dim { color: var(--white-dim); }
.hud-ring { width: 100%; height: auto; display: block; }
.hud-track { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 6; }
.hud-arc { fill: none; stroke: var(--red); stroke-width: 6; stroke-linecap: round; opacity: 0.85; }
.hud-ticks path { fill: none; stroke: rgba(232, 232, 232, 0.7); stroke-width: 2.5; stroke-linecap: round; }
.hud-ticks .hud-tick-minor { stroke: rgba(232, 232, 232, 0.35); stroke-width: 2; }
.hud-needle path { stroke: var(--red); stroke-width: 3.5; stroke-linecap: round; }
.hud-needle circle { fill: var(--red); }
.hud-needle { transform-origin: 120px 120px; animation: sweep 5.2s ease-in-out infinite alternate; }
.hud-center { fill: var(--white); }
.hud-label { fill: var(--white-dim); font-family: var(--font-d); font-size: 10px; letter-spacing: 3px; text-anchor: middle; font-weight: 700; }
.hud-value { fill: var(--white); font-family: var(--font-d); font-size: 19px; text-anchor: middle; font-weight: 800; }
.hud-bars { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.hud-bar { display: flex; align-items: center; gap: 10px; font-family: var(--font-d); font-size: 9px; letter-spacing: 2px; color: var(--white-dim); }
.hud-bar span { width: 44px; }
.hud-bar b { flex: 1; height: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 1px; position: relative; overflow: hidden; }
.hud-bar i { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; background: var(--red); transform-origin: left; }
.f-yaw   { animation: barL 5.2s ease-in-out infinite alternate; }
.f-pitch { animation: barR 3.7s ease-in-out infinite alternate; }
.f-roll  { animation: barL 4.4s ease-in-out infinite alternate-reverse; }
.f-lean  { animation: barR 6.1s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: rotate(-34deg); } 45% { transform: rotate(18deg); } to { transform: rotate(36deg); } }
@keyframes barL { from { left: 50%; width: 0; } 45% { left: 22%; width: 28%; } to { left: 50%; width: 38%; } }
@keyframes barR { from { left: 50%; width: 30%; } 50% { left: 34%; width: 16%; } to { left: 50%; width: 8%; } }
@keyframes blink { 50% { opacity: 0.35; } }

/* ===== Pipeline (HOW IT WORKS, BUY flow) ===== */
.pipeline { display: flex; align-items: stretch; gap: 0; }
.pipe-node { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 2px; padding: 22px 20px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pipe-node b { font-family: var(--font-d); font-size: 12px; letter-spacing: 2px; }
.pipe-node span { font-size: 14px; color: var(--white-dim); line-height: 1.55; }
.pipe-icon { position: relative; width: 56px; height: 56px; border: 1px solid rgba(217, 43, 36, 0.55); border-radius: 2px; display: grid; place-items: center; color: var(--red); margin-bottom: 4px; }
.pipe-icon .ic { width: 30px; height: 30px; }
.pipe-pulse { position: absolute; inset: -1px; border: 1px solid var(--red); border-radius: 2px; animation: pulse-ring 2.4s ease-out infinite; }
@keyframes pulse-ring { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.45); opacity: 0; } }
.pipe-icon-tilt .ic { animation: tilt 5.2s ease-in-out infinite alternate; }
@keyframes tilt { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.pipe-link { flex: 0 0 150px; position: relative; display: flex; align-items: center; justify-content: center; }
.pipe-link::before { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 1px; background: rgba(255, 255, 255, 0.18); }
.pipe-link em { position: absolute; top: calc(50% + 12px); font-style: normal; font-family: var(--font-d); font-size: 8px; letter-spacing: 1.3px; color: var(--white-dim); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.packet { position: absolute; top: calc(50% - 3px); left: 10px; width: 7px; height: 7px; background: var(--red); box-shadow: 0 0 8px rgba(217, 43, 36, 0.8); animation: travel 2.1s linear infinite; opacity: 0; }
.packet.p2 { animation-delay: 0.7s; }
.packet.p3 { animation-delay: 1.4s; }
@keyframes travel { 0% { left: 10px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 17px); opacity: 0; } }
.pipeline-v { flex-direction: column; justify-content: space-between; }
.pipeline-v .pipe-node { flex: 1; display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; row-gap: 4px; align-content: center; align-items: center; padding: 18px 20px; }
.pipeline-v .pipe-icon { grid-column: 1; grid-row: 1 / 3; margin: 0; }
.pipeline-v .pipe-node b { grid-column: 2; grid-row: 1; }
.pipeline-v .pipe-node span { grid-column: 2; grid-row: 2; }
.pipeline-v .pipe-link { flex: 0 0 58px; }
.pipeline-v .pipe-link::before { left: 47px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
.pipeline-v .pipe-link em { top: auto; left: 66px; }
.pipeline-v .packet { left: 44px; top: 6px; animation-name: travel-v; }
.pipeline-sm .pipe-node { padding: 16px 16px 14px; }
.pipeline-sm .pipe-icon { width: 44px; height: 44px; }
.pipeline-sm .pipe-icon .ic { width: 24px; height: 24px; }
.pipeline-sm .pipe-node span { font-size: 13px; }
.pipeline-sm .pipe-link { flex-basis: 84px; }

/* ===== Feature icon cards ===== */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat { background: var(--bg); border: 1px solid var(--line); border-top: 2px solid var(--red-dim); border-radius: 2px; padding: 18px 20px; display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 4px; align-items: center; transition: border-top-color 0.15s; }
.feat:hover { border-top-color: var(--red); }
.feat .ic { grid-row: 1 / 3; color: var(--red); width: 30px; height: 30px; }
.feat b { font-family: var(--font-d); font-size: 11px; letter-spacing: 1.6px; }
.feat span { font-size: 13.5px; color: var(--white-dim); line-height: 1.5; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* ===== Setup step strip ===== */
.steps-strip { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.sstep { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 2px; padding: 20px 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.sstep-icon { position: relative; width: 48px; height: 48px; border: 1px solid rgba(217, 43, 36, 0.55); border-radius: 2px; display: grid; place-items: center; color: var(--red); background: var(--bg); }
.sstep-icon .ic { width: 26px; height: 26px; }
.sstep-icon em { position: absolute; top: -9px; right: -9px; font-style: normal; font-family: var(--font-d); font-size: 9px; letter-spacing: 1.5px; font-weight: 800; color: #fff; background: var(--red); padding: 2px 5px; border-radius: 2px; }
.sstep > b { font-family: var(--font-d); font-size: 11px; letter-spacing: 1.8px; margin-top: 4px; }
.sstep > span { font-size: 13px; color: var(--white-dim); line-height: 1.55; }
.sstep > span b { color: var(--white); font-weight: 600; }
.sstep code { background: rgba(255, 255, 255, 0.07); padding: 1px 5px; border-radius: 2px; font-size: 11.5px; color: #fff; }
.sstep a { color: var(--red); }
/* the connector between steps: drawn left to right once the panel scrolls into view */
.sstep-line { position: absolute; top: 43px; left: calc(100% - 4px); width: 22px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; z-index: 1; }
.is-visible .sstep:nth-child(1) .sstep-line { animation: draw 0.35s ease forwards 0.25s; }
.is-visible .sstep:nth-child(2) .sstep-line { animation: draw 0.35s ease forwards 0.6s; }
.is-visible .sstep:nth-child(3) .sstep-line { animation: draw 0.35s ease forwards 0.95s; }
.is-visible .sstep:nth-child(4) .sstep-line { animation: draw 0.35s ease forwards 1.3s; }
.is-visible .sstep:nth-child(5) .sstep-line { animation: draw 0.35s ease forwards 1.65s; }
@keyframes draw { to { transform: scaleX(1); } }

/* ===== Guide: symptom to fix ===== */
.fixes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fix { background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--red-dim); border-radius: 2px; }
.fix[open] { border-left-color: var(--red); }
.fix summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 30px 1fr 18px; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: center; padding: 14px 16px; }
.fix summary::-webkit-details-marker { display: none; }
.fix summary .ic { grid-column: 1; grid-row: 1 / 3; color: var(--red); width: 26px; height: 26px; }
.fix summary b { grid-column: 2; grid-row: 1; font-family: var(--font-d); font-size: 11px; letter-spacing: 1.6px; }
.fix summary span { grid-column: 2; grid-row: 2; font-size: 13.5px; color: var(--white); line-height: 1.5; }
.fix summary .chev { grid-column: 3; grid-row: 1 / 3; width: 9px; height: 9px; border-right: 2px solid var(--white-dim); border-bottom: 2px solid var(--white-dim); transform: rotate(45deg); transition: transform 0.2s; justify-self: center; }
.fix[open] summary .chev { transform: rotate(-135deg); }
.fix p { padding: 0 16px 16px 60px; font-size: 13.5px; color: var(--white-dim); line-height: 1.6; }
.fix p code { background: rgba(255, 255, 255, 0.07); padding: 1px 5px; border-radius: 2px; font-size: 12px; color: #fff; }

/* ===== Seat sharing infographic ===== */
.seatfx { display: grid; grid-template-columns: 96px 1fr 96px; align-items: center; gap: 12px; margin: 4px 0 14px; }
.seat-pc { background: var(--bg); border: 1px solid var(--line); border-radius: 2px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--white-dim); }
.seat-pc b { font-family: var(--font-d); font-size: 9.5px; letter-spacing: 1.8px; color: var(--white); }
.seat-track { position: relative; height: 40px; }
.seat-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255, 255, 255, 0.18); }
.seat-token { position: absolute; top: 50%; left: 0; transform: translate(0, -50%); display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--red); color: #fff; border-radius: 2px; font-style: normal; font-family: var(--font-d); font-size: 9px; letter-spacing: 1.8px; font-weight: 800; box-shadow: 0 0 14px rgba(217, 43, 36, 0.55); animation: seat 7s ease-in-out infinite; }
.seat-token .ic { width: 16px; height: 16px; stroke-width: 2; }
@keyframes seat { 0%, 35% { left: 0; transform: translate(0, -50%); } 50%, 85% { left: 100%; transform: translate(-100%, -50%); } 100% { left: 0; transform: translate(0, -50%); } }

/* ===== Telemetry+ dash ===== */
.dash { background: var(--bg); border: 1px solid var(--line); border-radius: 2px; padding: 16px 18px; }
.dash-rpm { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 14px; margin-bottom: 14px; }
.dash-rpm i { background: var(--surface-2); border: 1px solid var(--line); border-radius: 1px; animation: rpm 2.6s ease-in-out infinite; }
.dash-rpm i:nth-child(n+10) { --lit: var(--red); }
.dash-rpm i:nth-child(1)  { animation-delay: 0.00s; } .dash-rpm i:nth-child(2)  { animation-delay: 0.08s; } .dash-rpm i:nth-child(3)  { animation-delay: 0.16s; }
.dash-rpm i:nth-child(4)  { animation-delay: 0.24s; } .dash-rpm i:nth-child(5)  { animation-delay: 0.32s; } .dash-rpm i:nth-child(6)  { animation-delay: 0.40s; }
.dash-rpm i:nth-child(7)  { animation-delay: 0.48s; } .dash-rpm i:nth-child(8)  { animation-delay: 0.56s; } .dash-rpm i:nth-child(9)  { animation-delay: 0.64s; }
.dash-rpm i:nth-child(10) { animation-delay: 0.72s; } .dash-rpm i:nth-child(11) { animation-delay: 0.80s; } .dash-rpm i:nth-child(12) { animation-delay: 0.88s; }
@keyframes rpm { 0%, 10% { background: var(--surface-2); } 40%, 60% { background: var(--lit, #e8e8e8); } 90%, 100% { background: var(--surface-2); } }
.dash-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: end; }
.dash-cell { display: flex; flex-direction: column; gap: 2px; }
.dash-cell span { font-family: var(--font-d); font-size: 8.5px; letter-spacing: 2px; color: var(--white-dim); }
.dash-cell b { font-family: var(--font-d); font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.dash-cell small { font-size: 10px; color: var(--white-dim); letter-spacing: 1px; }
.dash-gear b { font-size: 44px; color: var(--red); }
.dash-row .dash-cell:last-child { align-items: flex-end; text-align: right; }

@media (max-width: 1100px) {
  .how-grid { grid-template-columns: 1fr; }
  .feat-grid, .fixes { grid-template-columns: 1fr 1fr; }
  .steps-strip { grid-template-columns: repeat(3, 1fr); }
  .sstep:nth-child(3n) .sstep-line { display: none; }
}
@media (max-width: 900px) {
  .pipeline { flex-direction: column; }
  .pipe-link { flex-basis: 64px; }
  .pipe-link::before { left: 50%; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .pipe-link em { top: auto; left: calc(50% + 12px); }
  .packet { left: calc(50% - 3px); top: 8px; animation-name: travel-v; }
  .pipeline-v .pipe-link::before { left: 47px; }
  .pipeline-v .pipe-link em { left: 66px; }
  .pipeline-v .packet { left: 44px; }
  .feat-grid, .fixes { grid-template-columns: 1fr; }
  .steps-strip { grid-template-columns: 1fr; }
  .sstep-line { display: none; }
  .seatfx { grid-template-columns: 72px 1fr 72px; }
}
@keyframes travel-v { 0% { top: 8px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: calc(100% - 15px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hud-needle, .hud-bar i, .hud-live, .packet, .pipe-pulse, .pipe-icon-tilt .ic, .sstep-line, .seat-token, .dash-rpm i { animation: none !important; }
  .sstep-line { transform: none; }
  .packet { opacity: 0.6; left: 45%; }
  .hud-bar i { left: 40%; width: 22%; }
}

/* ===== Footer ===== */
.footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social {
  font-family: var(--font-d); font-size: 10px; letter-spacing: 2px; font-weight: 700;
  color: var(--white-dim); border: 1px solid var(--line); border-radius: 2px;
  padding: 11px 20px; text-decoration: none; cursor: default;
}
.social:hover { color: var(--white); border-color: var(--red); }
.foot-note { margin-top: 16px; font-size: 12px; color: var(--white-dim); line-height: 1.6; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .steps, .grid { grid-template-columns: 1fr 1fr; }
  .dl-grid-3 { grid-template-columns: 1fr; }
  .buy-grid, .apps-intro, .acct-grid, .tele-grid { grid-template-columns: 1fr; }
  .screens { grid-template-columns: 1fr 1fr; }
  .setup { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .rail { display: none; }
  .stage { margin-left: 0; padding: 0 18px 60px; }
  .topbar {
    display: flex; align-items: center; gap: 10px;
    position: sticky; top: 0; z-index: 20;
    background: rgba(11,12,14,0.96); border-bottom: 2px solid var(--red);
    padding: 12px 16px;
  }
  .topbar-title { font-family: var(--font-d); font-size: 12px; letter-spacing: 2.4px; font-weight: 800; }
  .topbar-menu { margin-left: auto; background: var(--surface); color: var(--white); border: 1px solid var(--line); border-radius: 2px; font-size: 18px; width: 40px; height: 36px; cursor: pointer; }
  .mobile-nav { display: none; flex-direction: column; background: rgba(11,12,14,0.98); border-bottom: 1px solid var(--line); position: sticky; top: 61px; z-index: 19; }
  .mobile-nav.is-open { display: flex; }
  .mobile-nav a { padding: 13px 18px; color: var(--white-dim); text-decoration: none; font-family: var(--font-d); font-size: 11px; letter-spacing: 2px; border-top: 1px solid rgba(255,255,255,0.05); }
  .mobile-nav a:hover { color: #fff; background: rgba(217,43,36,0.1); }
  .steps, .grid, .dl-grid, .dl-grid-3, .buy-grid { grid-template-columns: 1fr; }
  .price-big { font-size: 44px; }
  .phones { flex-direction: column; }
  .screens { grid-template-columns: 1fr; }
  .phone img { max-height: 320px; }
  .panel { padding: 24px 20px; }
  .hero { min-height: 78vh; }
}
@media (prefers-reduced-motion: reduce) {
  .slide { animation: none; }
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
