/* === Hrax Upgrade — landing page === */

:root {
  --bg: #0a0b0d;
  --bg-2: #111316;
  --bg-3: #181b1f;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --fg: #f4f4f5;
  --fg-dim: #a0a3a8;
  --fg-low: #6b6e74;
  --accent: #00E5A0;
  --accent-2: #00b07a;
  --danger: #FF6B3D;
  --warn: #FFD23F;
  --radius: 14px;
  --container: 1280px;
  --pad: clamp(20px, 4vw, 56px);
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Layout */
.shell { width: 100%; }
.wrap { max-width: var(--container); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* === Nav === */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 11, 13, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; font-size: 18px; }
.brand-logo { height: 44px; width: auto; display: block; object-fit: contain; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; color: #0a0b0d; font-weight: 700; }
.brand-sub { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--fg-dim); letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 7px; border: 1px solid var(--line-2); border-radius: 6px; white-space: nowrap; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--fg-dim); }
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; background: var(--accent); color: #0a0b0d; border-radius: 999px; font-weight: 600; font-size: 13px; transition: transform .2s ease, box-shadow .2s ease, background .15s ease; white-space: nowrap; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 229, 160, 0.25); }
.nav-cta:active { transform: translateY(0); background: var(--accent-2); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.nav-dropdown-toggle::after { content: '▾'; font-size: 10px; margin-left: 2px; transition: transform .2s; }
.nav-dropdown:hover .nav-dropdown-toggle::after { transform: rotate(180deg); }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 8px; background: rgba(10,11,13,0.96); backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: 10px; padding: 8px 0; min-width: 220px; z-index: 60; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; animation: mSlideDown .2s ease; }
.nav-dropdown-menu a { display: block; padding: 10px 18px; font-size: 13px; color: var(--fg-dim); white-space: nowrap; transition: color .15s, background .15s; }
.nav-dropdown-menu a:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
.nav-eshop { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 500; }
.nav-eshop:hover { color: var(--accent-2); }

/* === Buttons === */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: transform .2s ease, box-shadow .25s ease, background .2s ease; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #0a0b0d; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0, 229, 160, 0.22); }
.btn-primary:active { transform: translateY(0); background: var(--accent-2); box-shadow: 0 2px 8px rgba(0, 229, 160, 0.15); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.25); }
.btn-ghost:active { background: rgba(255, 255, 255, 0.07); }
.btn-arrow { transition: transform .2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* === Eyebrow === */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); letter-spacing: 0.04em; text-transform: uppercase; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* === Hero === */
.hero { position: relative; padding: 56px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 20px 0 24px;
  text-wrap: balance;
}
.hero h1 .hl { color: var(--accent); position: relative; display: inline-block;  will-change: transform, opacity; min-width: 11ch; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.05em; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; animation: under 1.4s .3s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes under { to { transform: scaleX(1); } }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--fg-dim); max-width: 540px; margin-bottom: 32px; text-wrap: pretty; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 36px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim); flex-wrap: wrap; }
.hero-meta > div { display: flex; flex-direction: column; min-width: 80px; }
.hero-meta b { color: var(--fg); font-size: 22px; font-family: var(--font-display); font-weight: 600; margin-bottom: 4px; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }

/* Bg ambience */
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.6; }
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.35; }
.hero-bg .blob.a { background: var(--accent); width: 480px; height: 480px; top: -120px; right: -120px; }
.hero-bg .blob.b { background: #5B8CFF; width: 360px; height: 360px; bottom: -160px; left: 30%; opacity: 0.2; }
.hero > * { position: relative; z-index: 1; }
.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); pointer-events: none; z-index: 0; opacity: 0.5; }

/* === Joystick demo === */
.joy-stage { background: linear-gradient(180deg, var(--bg-2), var(--bg-3)); border: 1px solid var(--line); border-radius: 24px; padding: 24px; position: relative; overflow: hidden; }
.joy-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(0, 229, 160, 0.08), transparent 60%); pointer-events: none; }
.joy-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; position: relative; z-index: 1; }
.joy-title { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); display: flex; align-items: center; gap: 8px; font-weight: 600; }
.joy-title .rec { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: pulse 1.4s ease-in-out infinite; }
.joy-hint { font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim); animation: blink-hint 2s ease-in-out infinite; }
.joy-gp-name { font-family: var(--font-mono); font-size: 11px; color: var(--fg-low); letter-spacing: 0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
@keyframes blink-hint { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.joy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; z-index: 1; }
.joy-card { background: rgba(0,0,0,0.35); border: 1px solid var(--line); border-radius: 20px; padding: 18px; position: relative; }
.joy-card[data-good="true"] { border-color: rgba(0, 229, 160, 0.3); }
.joy-card[data-good="false"] { border-color: rgba(255, 107, 61, 0.25); }
.joy-card h4 { margin: 0 0 4px; font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.joy-card .label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-low); margin-bottom: 12px; }
.joy-ring { width: 100%; aspect-ratio: 1; position: relative; cursor: crosshair; touch-action: none; }
.joy-canvas { width: 100%; aspect-ratio: 1; display: block; border-radius: 12px; }
.joy-readout { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--fg-low); margin-top: 12px; letter-spacing: 0.04em; }
.joy-readout span { color: var(--fg-dim); }
.joy-readout span.good { color: var(--accent); }
.joy-readout span.bad { color: var(--danger); }

/* Joystick CTA (Step A) */
.joy-cta { text-align: center; position: relative; z-index: 1; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.joy-cta-btn { font-size: 13px; padding: 9px 18px; background: transparent; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.joy-cta-btn:hover { background: var(--accent); color: #0a0b0d; }
.joy-cta-desc { color: var(--fg-low); font-size: 12px; margin: 10px 0 0; line-height: 1.5; }

/* Joystick unsupported */
.joy-unsupported { text-align: center; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.joy-unsupported p { color: var(--fg-dim); font-size: 13px; margin: 0; }

/* Joystick detection (Step B) */
.joy-detect { position: relative; z-index: 1; }
.joy-detect-methods { display: flex; gap: 12px; margin-bottom: 20px; }
.joy-method { flex: 1; background: rgba(0,0,0,0.3); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: left; display: flex; gap: 10px; align-items: flex-start; }
.joy-method-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(0,229,160,0.08); border: 1px solid rgba(0,229,160,0.2); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.joy-method b { display: block; font-family: var(--font-display); font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.joy-method span { color: var(--fg-dim); font-size: 12px; line-height: 1.4; }

/* Joystick waiting spinner */
.joy-waiting { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; }
.joy-spinner { width: 18px; height: 18px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: joy-spin 1s linear infinite; }
@keyframes joy-spin { to { transform: rotate(360deg); } }
.joy-waiting span { font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim); letter-spacing: 0.02em; animation: blink-hint 2s ease-in-out infinite; }

/* Joystick back button */
.joy-back-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim); border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; transition: color .2s, border-color .2s; background: none; margin-top: 12px; }
.joy-back-btn:hover { color: var(--fg); border-color: rgba(255,255,255,0.25); }

/* Gamepad detected confirmation */
.joy-gp-detected { margin-top: 10px; padding: 8px 14px; background: rgba(0,229,160,0.06); border: 1px solid rgba(0,229,160,0.2); border-radius: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Joystick live hint */
.joy-live-hint { color: var(--fg-dim); font-size: 12px; line-height: 1.5; text-align: center; margin: 12px 0 0; position: relative; z-index: 1; }
.joy-live { position: relative; z-index: 1; }

/* === Section primitives === */
section { padding: 96px 0; position: relative; }
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 56px; max-width: 780px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.section-head p { font-size: clamp(16px, 1.4vw, 19px); color: var(--fg-dim); margin: 0; text-wrap: pretty; }

/* === Problem section === */
.problem { background: var(--bg); }
.problem-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .problem-grid { grid-template-columns: 1fr; } }
.drift-viz { background: linear-gradient(180deg, var(--bg-2), var(--bg-3)); border: 1px solid var(--line); border-radius: 24px; padding: 24px; aspect-ratio: 1.4; position: relative; overflow: hidden; }
.drift-viz svg { width: 100%; height: 100%; }
.drift-tag { position: absolute; top: 16px; left: 16px; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-low); display: flex; align-items: center; gap: 8px; }
.drift-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: pulse 1.4s ease-in-out infinite; }
.problem-points { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.problem-point { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.problem-point:last-child { border-bottom: 0; }
.problem-point .ix { font-family: var(--font-mono); font-size: 11px; color: var(--fg-low); padding-top: 3px; min-width: 28px; }
.problem-point b { display: block; font-weight: 600; font-family: var(--font-display); font-size: 17px; margin-bottom: 2px; }
.problem-point span { color: var(--fg-dim); font-size: 14.5px; }

/* === Solution cards === */
.solution { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 28px; transition: transform .25s ease, border-color .25s ease, box-shadow .3s ease; position: relative; overflow: hidden; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(0, 229, 160, 0.25); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25); }
.feature-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 0% 0%, rgba(0, 229, 160, 0.06), transparent 60%); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.feature-card:hover::before { opacity: 1; }
.feature-ix { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.08em; margin-bottom: 28px; display: flex; justify-content: space-between; }
.feature-icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(0, 229, 160, 0.1); border: 1px solid rgba(0, 229, 160, 0.25); display: grid; place-items: center; color: var(--accent); margin-bottom: 24px; }
.feature-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 10px; }
.feature-card p { color: var(--fg-dim); margin: 0; font-size: 14.5px; line-height: 1.6; }

/* === Process === */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
@media (max-width: 880px) { .process-grid { grid-template-columns: 1fr; } }
.step { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; position: relative; overflow: hidden; }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: 80px; line-height: 1; color: var(--bg-3); letter-spacing: -0.04em; margin-bottom: -20px; position: relative; }
.step-num::after { content: ""; position: absolute; left: 0; bottom: 18px; width: 24px; height: 2px; background: var(--accent); }
.step h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.step p { color: var(--fg-dim); margin: 0 0 16px; font-size: 14.5px; }
.step-meta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-low); letter-spacing: 0.04em; padding-top: 16px; border-top: 1px dashed var(--line); }
.step-meta b { color: var(--accent); font-weight: 500; }

/* === Controllers === */
.controllers { background: var(--bg-2); border-top: 1px solid var(--line); }
.ctrl-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 980px) { .ctrl-grid { grid-template-columns: repeat(2, 1fr); } }
.ctrl-card { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 24px 20px; text-align: center; transition: border-color .25s ease, transform .25s ease, box-shadow .3s ease; }
.ctrl-card:hover { border-color: rgba(0,229,160,0.3); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2); }
.ctrl-card .svg-wrap { aspect-ratio: 1.4; display: grid; place-items: center; margin-bottom: 14px; }
.ctrl-card .svg-wrap svg { width: 100%; height: 100%; }
.ctrl-card .name { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.ctrl-card .price-tag { font-family: var(--font-mono); font-size: 11px; color: var(--fg-low); margin-top: 4px; }

/* === Pricing === */
.pricing-block { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: stretch; }
@media (max-width: 880px) { .pricing-block { grid-template-columns: 1fr; } }
.price-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: 40px; position: relative; overflow: hidden; }
.price-card.featured { background: linear-gradient(180deg, rgba(0,229,160,0.04), transparent), var(--bg-2); border-color: rgba(0,229,160,0.3); }
.price-card .badge { position: absolute; top: 20px; right: 20px; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); padding: 5px 10px; border: 1px solid rgba(0,229,160,0.3); border-radius: 999px; }
.price-amount { font-family: var(--font-display); font-weight: 700; font-size: clamp(56px, 8vw, 96px); line-height: 1; letter-spacing: -0.04em; }
.price-amount .unit { font-size: 0.45em; color: var(--fg-dim); font-weight: 500; letter-spacing: -0.02em; margin-left: 4px; }
.price-sub { color: var(--fg-dim); margin-top: 8px; font-size: 14px; font-family: var(--font-mono); }
.price-includes { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.price-includes li { list-style: none; display: flex; gap: 12px; font-size: 14.5px; color: var(--fg); }
.price-includes li::before { content: "+"; color: var(--accent); font-family: var(--font-mono); font-weight: 600; }
.price-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* === Testimonials === */
.testimonials { background: var(--bg-2); border-top: 1px solid var(--line); }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px) { .t-grid { grid-template-columns: 1fr; } }
.t-card { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.t-stars { color: var(--warn); font-size: 14px; letter-spacing: 2px; }
.t-quote { font-size: 16px; line-height: 1.6; color: var(--fg); margin: 0; }
.t-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.t-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #5B8CFF); display: grid; place-items: center; color: #0a0b0d; font-weight: 600; font-size: 13px; font-family: var(--font-display); }
.t-name { font-weight: 600; font-size: 14px; }
.t-meta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-low); }

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; cursor: pointer; gap: 24px; }
.faq-q h4 { font-family: var(--font-display); font-size: 18px; font-weight: 500; margin: 0; letter-spacing: -0.005em; }
.faq-toggle { width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; transition: transform .25s ease, background .2s ease, border-color .2s ease; color: var(--fg-dim); }
.faq-item.open .faq-toggle { background: var(--accent); color: #0a0b0d; border-color: var(--accent); transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; color: var(--fg-dim); font-size: 15px; line-height: 1.7; }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 22px; }

/* === Final CTA === */
.cta-final { padding: 96px 0; background: linear-gradient(180deg, var(--bg), var(--bg-2)); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.cta-final-inner { background: linear-gradient(135deg, rgba(0,229,160,0.06), rgba(91,140,255,0.04)); border: 1px solid rgba(0,229,160,0.18); border-radius: 32px; padding: 64px clamp(28px, 6vw, 88px); text-align: center; position: relative; overflow: hidden; }
.cta-final-inner::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; opacity: 0.4; mask-image: radial-gradient(circle at 50% 50%, transparent 30%, #000); -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 30%, #000); pointer-events: none; }
.cta-final h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.025em; line-height: 1; margin: 0 0 18px; text-wrap: balance; }
.cta-final p { color: var(--fg-dim); margin: 0 auto 32px; max-width: 540px; font-size: 17px; }
.cta-final-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* === Footer === */
.footer { padding: 56px 0 32px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; color: var(--fg-dim); }
.footer-bot { display: flex; justify-content: space-between; gap: 18px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-low); flex-wrap: wrap; letter-spacing: 0.02em; }

/* === Modal === */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; animation: slideup .35s cubic-bezier(.2,.7,.2,1); }
@keyframes slideup { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.modal-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.modal-steps { display: flex; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-low); align-items: center; }
.modal-steps .ix { color: var(--accent); }
.modal-x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--fg-dim); transition: background .2s ease, border-color .2s ease; }
.modal-x:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); color: var(--fg); }
.modal-body { padding: 28px; }
.modal-body h3 { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.015em; font-weight: 600; margin: 0 0 8px; }
.modal-body p { color: var(--fg-dim); margin: 0 0 24px; font-size: 14.5px; }
.modal-foot { display: flex; justify-content: space-between; padding: 20px 28px; border-top: 1px solid var(--line); gap: 12px; }
.platform-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.platform-option { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s ease, background .2s ease, box-shadow .25s ease; text-align: left; }
.platform-option:hover { border-color: rgba(0,229,160,0.3); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); }
.platform-option.selected { border-color: var(--accent); background: rgba(0,229,160,0.05); }
.platform-option .p-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.platform-option .p-meta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-low); }
.input-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.input-group label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-dim); }
.input-group input, .input-group textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--fg); font: inherit; font-size: 14.5px; transition: border-color .2s ease, box-shadow .2s ease; }
.input-group input:focus, .input-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 229, 160, 0.12); }
.input-group textarea { min-height: 80px; resize: vertical; font-family: inherit; }

/* Payment box */
.pay-box { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.pay-row { display: flex; justify-content: space-between; padding: 8px 0; font-family: var(--font-mono); font-size: 13px; }
.pay-row + .pay-row { border-top: 1px dashed var(--line); }
.pay-row .lbl { color: var(--fg-low); text-transform: uppercase; font-size: 10px; letter-spacing: 0.08em; }
.pay-row .val { color: var(--fg); }
.pay-row .val.amt { color: var(--accent); font-weight: 600; }

.success-check { width: 64px; height: 64px; border-radius: 50%; background: rgba(0,229,160,0.12); border: 1px solid rgba(0,229,160,0.4); color: var(--accent); display: grid; place-items: center; margin: 0 auto 20px; animation: pop .5s cubic-bezier(.2,.7,.2,1); }
@keyframes pop { 0% { transform: scale(0); } 60% { transform: scale(1.1); } 100% { transform: scale(1); } }

/* === Variant: Pro === */
[data-variant="pro"] { --bg: #0e0f12; --bg-2: #15171b; --bg-3: #1c1f24; --radius: 8px; }
[data-variant="pro"] .eyebrow,
[data-variant="pro"] .joy-title,
[data-variant="pro"] .joy-hint,
[data-variant="pro"] .feature-ix,
[data-variant="pro"] .step-meta,
[data-variant="pro"] .drift-tag,
[data-variant="pro"] .hero-meta,
[data-variant="pro"] .footer-bot,
[data-variant="pro"] .price-sub { letter-spacing: 0.02em; }
[data-variant="pro"] .brand-sub { display: none; }
[data-variant="pro"] .grid-overlay { display: none; }
[data-variant="pro"] .joy-stage,
[data-variant="pro"] .feature-card,
[data-variant="pro"] .step,
[data-variant="pro"] .ctrl-card,
[data-variant="pro"] .price-card,
[data-variant="pro"] .t-card,
[data-variant="pro"] .drift-viz { border-radius: 16px; }
[data-variant="pro"] .nav-cta,
[data-variant="pro"] .btn { border-radius: 8px; }
[data-variant="pro"] .step-num { font-size: 28px; color: var(--accent); margin-bottom: 16px; }
[data-variant="pro"] .step-num::after { display: none; }
[data-variant="pro"] .hero { padding-bottom: 64px; }
[data-variant="pro"] .hero h1 .hl::after { display: none; }

/* Reveal helper — minimal, content always visible */
.reveal { opacity: 1; transform: none; }
.reveal.fade-init { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.fade-init.in { opacity: 1; transform: translateY(0); }

/* === Mobile Responsiveness === */

/* Hamburger — hidden on desktop */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 38px; height: 38px; padding: 7px; border: 1px solid var(--line-2); border-radius: 8px; flex-shrink: 0; }
.hamburger span { display: block; width: 100%; height: 2px; background: var(--fg); border-radius: 1px; transition: transform .25s ease, opacity .2s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu dropdown */
.mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; background: rgba(10,11,13,0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); padding: 12px 0 16px; z-index: 49; }
.mobile-menu.open { display: block; animation: mSlideDown .25s ease; }
@keyframes mSlideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.mobile-menu a { display: block; padding: 13px var(--pad); font-size: 15px; color: var(--fg-dim); transition: color .15s, background .15s; }
.mobile-menu a:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
.mobile-menu .mobile-cta { display: block; margin: 10px var(--pad) 0; padding: 12px 20px; background: var(--accent); color: #0a0b0d; border-radius: 999px; font-weight: 600; font-size: 14px; text-align: center; }

/* Form grids (order-flow) */
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-zip { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }

/* Compare row (pricing) */
.compare-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }

/* Modal actions row */
.modal-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

@media (max-width: 760px) {
  /* Nav */
  .nav-inner { height: 56px; }
  .mobile-menu { top: 56px; }
  .brand-sub { display: none; }
  .nav-cta { padding: 8px 14px; font-size: 12px; gap: 6px; }
  .hamburger { display: flex; }

  /* Section spacing */
  section { padding: 56px 0; }
  .hero { padding: 32px 0 48px; }
  .hero-grid { gap: 32px; }
  .hero-meta { gap: 20px; margin-top: 24px; padding-top: 20px; }
  .hero-meta b { font-size: 18px; }

  /* Joystick demo — mobile: stacked cards with whitespace, compact */
  .joy-grid { grid-template-columns: 1fr; gap: 14px; }
  .joy-stage { padding: 16px; }
  .joy-card { padding: 14px; }
  .joy-ring { max-width: 180px; margin: 0 auto; }
  .joy-readout { font-size: 9px; margin-top: 8px; }
  .joy-head { margin-bottom: 12px; }
  .joy-title { font-size: 11px; }
  .joy-hint { font-size: 10px; }
  .joy-detect-methods { flex-direction: column; gap: 8px; }
  .joy-cta-btn { font-size: 12px; padding: 8px 16px; }
  .joy-cta { padding-top: 14px; margin-top: 14px; }

  /* Section heads */
  .section-head { margin-bottom: 36px; gap: 12px; }

  /* Cards */
  .feature-card { padding: 22px; }
  .step { padding: 24px 22px; }
  .step-num { font-size: 56px; margin-bottom: -12px; }

  /* Pricing */
  .price-card { padding: 24px; }
  .price-amount { font-size: clamp(48px, 12vw, 72px); }

  /* CTA final */
  .cta-final { padding: 48px 0; }
  .cta-final-inner { padding: 36px var(--pad); border-radius: 20px; }

  /* Footer */
  .footer { padding: 36px 0 24px; }

  /* Modal mobile */
  .modal { border-radius: 20px; margin: 0 4px; }
  .modal-head { padding: 16px 20px; }
  .modal-body { padding: 20px; }
  .modal-foot { flex-direction: column; gap: 12px; padding: 16px 20px; }
  .modal-actions { width: 100%; justify-content: flex-end; }

  /* Touch targets */
  .faq-toggle { width: 40px; height: 40px; }
  .faq-q { padding: 18px 0; gap: 16px; }
  .faq-q h4 { font-size: 16px; }

  /* Form grids — stack on mobile */
  .form-row-2 { grid-template-columns: 1fr; }
  .form-row-zip { grid-template-columns: 1fr 1fr; }

  /* Compare row — label wider on mobile */
  .compare-row { grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; }
}

@media (max-width: 480px) {
  .ctrl-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ctrl-card { padding: 16px 14px; }
  .platform-grid { grid-template-columns: 1fr !important; }
  .btn { padding: 12px 18px; font-size: 14px; }
  .compare-row { grid-template-columns: 1fr; gap: 4px; padding: 10px 0; }
  .compare-row > div:nth-child(2) { display: none; }
  .form-row-zip { grid-template-columns: 1fr 2fr; }
  .modal-actions { gap: 10px; }
}

/* Desktop guard — never show mobile nav elements on wider screens */
@media (min-width: 761px) {
  .hamburger { display: none !important; }
  .mobile-menu { display: none !important; }
  /* Desktop: joystick ring hover indicator */
  .joy-ring:hover { box-shadow: inset 0 0 0 2px rgba(0,229,160,0.15); border-radius: 12px; }
}

/* === Drift Tester === */
.dt-section { background: var(--bg); border-top: 1px solid var(--line); }

/* Shared gamepad info bar */
.dt-gp-info-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 12px 16px; background: rgba(0,229,160,0.04); border: 1px solid rgba(0,229,160,0.15); border-radius: 12px; }
.dt-gp-connected { font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: 500; letter-spacing: 0.02em; }
.dt-gp-name { font-family: var(--font-mono); font-size: 11px; color: var(--fg-low); letter-spacing: 0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Step A: Idle — CTA button */
.dt-idle { max-width: 520px; margin: 0 auto; }
.dt-cta-block { text-align: center; }
.dt-cta-btn { font-size: 17px; padding: 16px 32px; }
.dt-cta-desc { color: var(--fg-dim); font-size: 14.5px; margin: 16px 0 0; line-height: 1.6; }

/* Unsupported browser */
.dt-unsupported { background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: 48px 32px; text-align: center; }
.dt-unsupported-icon { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,107,61,0.08); border: 1px solid rgba(255,107,61,0.2); color: var(--danger); display: grid; place-items: center; margin: 0 auto 20px; }
.dt-unsupported h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 0 0 8px; }
.dt-unsupported p { color: var(--fg-dim); font-size: 14.5px; margin: 0; }

/* Step B: Detection */
.dt-detecting { max-width: 520px; margin: 0 auto; }
.dt-detect-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: 36px 32px; text-align: center; }
.dt-detect-instructions h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 0 0 20px; }
.dt-connect-methods { display: flex; gap: 16px; margin-bottom: 28px; }
.dt-method { flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px 14px; text-align: left; display: flex; gap: 12px; align-items: flex-start; }
.dt-method-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(0,229,160,0.08); border: 1px solid rgba(0,229,160,0.2); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.dt-method b { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.dt-method span { color: var(--fg-dim); font-size: 13px; line-height: 1.4; }

/* Waiting spinner */
.dt-waiting { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px 0 0; }
.dt-spinner { width: 20px; height: 20px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: dt-spin 1s linear infinite; }
@keyframes dt-spin { to { transform: rotate(360deg); } }
.dt-waiting-text { font-family: var(--font-mono); font-size: 13px; color: var(--fg-dim); letter-spacing: 0.02em; animation: dt-pulse-text 2s ease-in-out infinite; }
@keyframes dt-pulse-text { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Back button wrapper */
.dt-back-wrap { margin-top: 24px; text-align: center; }

/* Canvas */
.dt-stick-canvas { width: 100%; aspect-ratio: 1; display: block; border-radius: 12px; background: rgba(0,0,0,0.3); }
.dt-canvas-label { display: block; text-align: center; font-family: var(--font-mono); font-size: 11px; color: var(--fg-low); letter-spacing: 0.04em; margin-top: 8px; text-transform: uppercase; }

/* Axis readout */
.dt-axis-readout { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--fg-low); margin-top: 8px; letter-spacing: 0.04em; }
.dt-axis-readout b { color: var(--fg-dim); }

/* Live sticks */
.dt-live { max-width: 600px; margin: 0 auto; }
.dt-live-sticks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 16px; }
.dt-live-stick { text-align: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 12px 12px; }
.dt-live-hint { color: var(--fg-dim); font-size: 14px; line-height: 1.6; text-align: center; margin: 0; }

/* Mobile */
@media (max-width: 760px) {
  .dt-live-sticks { grid-template-columns: 1fr; gap: 12px; }
  .dt-live-stick { max-width: 260px; margin: 0 auto; }
  .dt-connect-methods { flex-direction: column; gap: 10px; }
  .dt-detect-card { padding: 28px 20px; }
}

/* === Campaign === */
.campaign { padding: 48px 0 96px; background: var(--bg); border-top: 1px solid var(--line); }
.campaign-inner {
  background: linear-gradient(135deg, rgba(0,229,160,0.08), rgba(91,140,255,0.06), rgba(0,229,160,0.04));
  border: 1px solid rgba(0,229,160,0.25);
  border-radius: 32px;
  padding: 64px clamp(28px, 6vw, 88px);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px -12px rgba(0,229,160,0.12);
}
.campaign-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
  mask-image: radial-gradient(circle at 50% 50%, transparent 20%, #000);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 20%, #000);
  pointer-events: none;
}
.campaign-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid rgba(0,229,160,0.4);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0,229,160,0.06);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  animation: campaign-pulse 2s ease-in-out infinite;
}
@keyframes campaign-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,229,160,0.3); }
  50% { box-shadow: 0 0 20px 4px rgba(0,229,160,0.15); }
}
.campaign h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 16px;
  text-wrap: balance;
  position: relative;
  z-index: 1;
}
.campaign-countdown {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 64px;
}
.cd-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1;
  color: var(--fg);
  letter-spacing: -0.03em;
}
.cd-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-low);
}
.cd-sep {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 44px);
  color: var(--fg-low);
  align-self: flex-start;
  padding-top: 4px;
}
.campaign-perks {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}
.campaign-perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--fg);
}
.perk-icon {
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}

@media (max-width: 760px) {
  .campaign-inner { padding: 36px var(--pad); border-radius: 20px; }
  .campaign-countdown { gap: 4px; }
  .cd-unit { min-width: 52px; }
  .cd-num { font-size: 32px; }
  .cd-sep { font-size: 24px; }
  .campaign-perks { flex-direction: column; gap: 12px; align-items: center; }
}

/* Selection */
::selection { background: var(--accent); color: #0a0b0d; }
/* Deploy patch: layout stability and motion tuning */
.joy-stage { min-height: clamp(340px, 44vw, 560px); }
@media (max-width: 880px) { .joy-stage { min-height: 320px; } }
.hero h1 .hl { will-change: transform, opacity; }
.joy-ring { contain: layout paint; }
.joy-ring > svg { width: 100%; height: auto; display: block; }
@media (prefers-reduced-motion: reduce) {
  .eyebrow .dot, .joy-title .rec { animation: none !important; }
  .hero h1 .hl::after { animation: none !important; }
}
