:root {
    --neonLime: #D4FF00;
    --lavender: #B283FF;
    --silver: #CCCED6;
    --dimSilver: #8A8C94;
    --nearBlack: #1C1C1C;
    --deepBlack: #080808;
    --cardBorder: #2A2A2A;
    --elevated: #242424;
    --font-primary: 'Space Grotesk', sans-serif;
    --font-mono: 'Space Mono', monospace;
  }

  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }

  ::selection { background: var(--lavender); color: var(--deepBlack); }
  ::-moz-selection { background: var(--lavender); color: var(--deepBlack); }
  body { font-family: var(--font-primary); background: var(--deepBlack); color: var(--silver); line-height: 1.6; overflow-x: hidden; }

  .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

  .marker {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--dimSilver);
    display: block;
  }

  .glow-line {
    height: 1px;
    background: var(--neonLime);
    box-shadow: 0 0 12px rgba(212, 255, 0, 0.4), 0 0 4px rgba(212, 255, 0, 0.2);
  }

  /* ── REVEAL ────────────────────────────── */
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.vis { opacity: 1; transform: translateY(0); }
  .d1 { transition-delay: 0.1s; }
  .d2 { transition-delay: 0.2s; }
  .d3 { transition-delay: 0.3s; }
  .d4 { transition-delay: 0.4s; }

  /* ── NAV ────────────────────────────────── */
  .nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 0; transition: background 0.3s, backdrop-filter 0.3s; }
  .nav.scrolled { background: rgba(8,8,8,0.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--cardBorder); }
  .nav .container { display: flex; align-items: center; justify-content: space-between; }
  .nav-logo { font-size: 22px; font-weight: 700; color: #fff; text-decoration: none; letter-spacing: -0.5px; }
  .nav-cta {
    font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--neonLime); background: transparent; border: 1px solid rgba(212,255,0,0.3);
    padding: 10px 20px; border-radius: 8px; cursor: pointer; text-decoration: none;
    transition: border-color 0.3s, box-shadow 0.3s;
  }
  .nav-cta:hover { border-color: var(--neonLime); box-shadow: 0 0 16px rgba(212,255,0,0.15); }

  /* ── HERO ───────────────────────────────── */
  .hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; position: relative; overflow: hidden; }
  .hero::before { content: ''; position: absolute; top: -200px; right: -300px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(212,255,0,0.05) 0%, transparent 65%); pointer-events: none; }
  .hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  .hero-copy { position: relative; z-index: 2; }

  .hero h1 {
    font-size: clamp(38px, 5vw, 60px); font-weight: 700; color: #fff;
    line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 8px;
  }
  .hero h1 em { font-style: normal; color: var(--neonLime); }
  .hero-sub {
    font-size: clamp(20px, 2.5vw, 28px); font-weight: 400; color: var(--silver);
    letter-spacing: -0.3px; margin-bottom: 28px; line-height: 1.3;
  }
  .hero-body { font-size: 17px; color: var(--dimSilver); line-height: 1.7; margin-bottom: 36px; max-width: 460px; }

  .hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
  .btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-primary); font-size: 16px; font-weight: 600;
    color: var(--deepBlack); background: var(--neonLime); border: none;
    padding: 16px 32px; border-radius: 12px; cursor: pointer; text-decoration: none;
    transition: box-shadow 0.3s, transform 0.15s;
  }
  .btn-primary:hover { box-shadow: 0 0 28px rgba(212,255,0,0.35), 0 4px 16px rgba(212,255,0,0.12); transform: translateY(-2px); }

  .btn-ghost {
    font-family: var(--font-primary); font-size: 15px; font-weight: 500;
    color: var(--silver); background: none; border: none; cursor: pointer; text-decoration: none;
    padding: 16px 8px; transition: color 0.2s;
  }
  .btn-ghost:hover { color: #fff; }

  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

  .hero-launch {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px;
    color: var(--dimSilver); margin-bottom: 20px; text-transform: uppercase;
  }
  .hero-launch .dot {
    display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    background: var(--neonLime); margin-right: 8px; vertical-align: middle;
    box-shadow: 0 0 8px rgba(212,255,0,0.6);
    animation: pulse 2s ease-in-out infinite;
  }

  .hero-visual { position: relative; z-index: 2; display: flex; justify-content: center; }
  .phone-stack { position: relative; width: 280px; height: 560px; }
  .phone {
    position: absolute; border-radius: 32px; overflow: hidden; border: 1.5px solid var(--cardBorder);
    box-shadow: 0 30px 70px rgba(0,0,0,0.5);
  }
  .phone img { width: 100%; display: block; }
  .phone--main { width: 260px; top: 0; left: 10px; z-index: 3; box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 50px rgba(212,255,0,0.06); }
  .phone--back-l { width: 220px; top: 40px; left: -50px; z-index: 1; opacity: 0.35; filter: blur(0.5px); transform: rotate(-6deg); }
  .phone--back-r { width: 220px; top: 30px; right: -50px; z-index: 2; opacity: 0.35; filter: blur(0.5px); transform: rotate(4deg); }

  /* ── PROBLEM ────────────────────────────── */
  .problem { padding: 140px 0 120px; position: relative; }
  .problem .container { max-width: 760px; text-align: center; }
  .problem h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; color: #fff; line-height: 1.2; letter-spacing: -0.8px; margin: 16px 0 28px; }
  .problem p { font-size: 17px; color: var(--silver); line-height: 1.8; margin-bottom: 16px; }
  .problem p strong { color: #fff; font-weight: 600; }
  .problem-closer {
    font-size: 19px; font-weight: 500; color: #fff; line-height: 1.6;
    margin-top: 32px; padding-top: 32px;
    border-top: 1px solid var(--cardBorder);
  }

  /* ── HOW IT WORKS ──────────────────────── */
  .how { padding: 120px 0; background: var(--nearBlack); position: relative; }
  .how::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--cardBorder), transparent); }
  .how .section-header { text-align: center; margin-bottom: 80px; }
  .how .section-header h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; color: #fff; letter-spacing: -0.8px; margin: 12px 0 16px; line-height: 1.2; }
  .how .section-header p { font-size: 16px; color: var(--dimSilver); max-width: 440px; margin: 0 auto; }

  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .step { text-align: center; position: relative; }
  .step-num { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--neonLime); letter-spacing: 2px; margin-bottom: 20px; display: block; }
  .step-phone {
    width: 190px; border-radius: 28px; overflow: hidden; border: 1.5px solid var(--cardBorder);
    margin: 0 auto 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    transition: transform 0.4s, box-shadow 0.4s;
  }
  .step-phone:hover { transform: translateY(-6px); box-shadow: 0 28px 70px rgba(0,0,0,0.5), 0 0 30px rgba(212,255,0,0.05); }
  .step-phone img { width: 100%; display: block; }
  .step h3 { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 8px; }
  .step p { font-size: 14px; color: var(--dimSilver); max-width: 250px; margin: 0 auto; line-height: 1.65; }
  .step:not(:last-child)::after {
    content: ''; position: absolute; top: 180px; right: -20px;
    width: 40px; height: 1px; background: linear-gradient(90deg, var(--neonLime), transparent); opacity: 0.2;
  }

  /* ── TIERS ──────────────────────────────── */
  .tiers { padding: 120px 0; position: relative; overflow: hidden; }
  .tiers::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 800px; height: 800px; background: radial-gradient(circle, rgba(178,131,255,0.03) 0%, transparent 55%); pointer-events: none; }
  .tiers .section-header { margin-bottom: 64px; }
  .tiers .section-header h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; color: #fff; letter-spacing: -0.8px; margin: 12px 0 16px; line-height: 1.2; }
  .tiers .section-header p { font-size: 16px; color: var(--dimSilver); max-width: 500px; line-height: 1.7; }

  .tier-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .tier-card {
    background: var(--nearBlack); border: 1px solid var(--cardBorder); border-radius: 16px;
    padding: 36px 28px; position: relative; overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
  }
  .tier-card:hover { transform: translateY(-4px); }
  .tier-card--yn { border-color: rgba(212,255,0,0.2); }
  .tier-card--yn:hover { border-color: rgba(212,255,0,0.45); box-shadow: 0 8px 36px rgba(212,255,0,0.06); }
  .tier-card--wal { border-color: rgba(178,131,255,0.2); }
  .tier-card--wal:hover { border-color: rgba(178,131,255,0.45); box-shadow: 0 8px 36px rgba(178,131,255,0.06); }
  .tier-card--wc { border-color: rgba(204,206,214,0.12); }
  .tier-card--wc:hover { border-color: rgba(204,206,214,0.25); }

  .tier-dots { display: flex; gap: 4px; margin-bottom: 16px; }
  .tier-dot { width: 7px; height: 7px; border-radius: 50%; }
  .tier-card--yn .tier-dot { background: var(--neonLime); box-shadow: 0 0 6px rgba(212,255,0,0.5); }
  .tier-card--wal .tier-dot { background: var(--lavender); box-shadow: 0 0 6px rgba(178,131,255,0.5); }
  .tier-card--wc .tier-dot { background: var(--silver); }

  .tier-name {
    font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; display: block;
  }
  .tier-card--yn .tier-name { color: var(--neonLime); }
  .tier-card--wal .tier-name { color: var(--lavender); }
  .tier-card--wc .tier-name { color: var(--silver); }
  .tier-card h3 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 12px; line-height: 1.25; }
  .tier-card p { font-size: 14px; color: var(--dimSilver); line-height: 1.7; }

  /* ── FEATURES — alternating rows ───────── */
  .features { padding: 120px 0; background: var(--nearBlack); position: relative; }
  .features::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--cardBorder), transparent); }
  .features .section-header { text-align: center; margin-bottom: 80px; }
  .features .section-header h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; color: #fff; letter-spacing: -0.8px; margin: 12px 0; line-height: 1.2; }

  .feature-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
    margin-bottom: 80px; padding: 0 40px;
  }
  .feature-row:last-child { margin-bottom: 0; }
  .feature-row--flip { direction: rtl; }
  .feature-row--flip > * { direction: ltr; }

  .feature-text .marker { margin-bottom: 12px; }
  .feature-text h3 { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 12px; line-height: 1.25; }
  .feature-text p { font-size: 15px; color: var(--silver); line-height: 1.75; }

  .feature-visual { display: flex; justify-content: center; align-items: center; }
  .feature-phone {
    width: 220px; border-radius: 30px; overflow: hidden; border: 1.5px solid var(--cardBorder);
    box-shadow: 0 24px 60px rgba(0,0,0,0.4); transition: transform 0.4s;
  }
  .feature-phone:hover { transform: translateY(-6px); }
  .feature-phone img { width: 100%; display: block; }

  /* ── BRAND STORY ────────────────────────── */
  .story { padding: 140px 0; position: relative; }
  .story::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--cardBorder), transparent); }
  .story .container { max-width: 720px; }
  .story-headline {
    font-size: clamp(22px, 2.8vw, 30px); font-weight: 600; color: #fff;
    line-height: 1.5; margin: 20px 0 32px; letter-spacing: -0.3px;
  }
  .story p { font-size: 16px; color: var(--silver); line-height: 1.85; margin-bottom: 20px; }
  .story-manifesto {
    font-size: 20px; font-weight: 500; color: #fff; line-height: 1.6;
    margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--cardBorder);
  }
  .story-manifesto em { font-style: normal; color: var(--neonLime); }

  /* ── WAITLIST ───────────────────────────── */
  .waitlist { padding: 120px 0; background: var(--nearBlack); text-align: center; position: relative; overflow: hidden; }
  .waitlist::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--cardBorder), transparent); }
  .waitlist::after { content: ''; position: absolute; bottom: -180px; left: 50%; transform: translateX(-50%); width: 700px; height: 350px; background: radial-gradient(ellipse, rgba(212,255,0,0.05) 0%, transparent 65%); pointer-events: none; }
  .waitlist h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; color: #fff; letter-spacing: -1px; margin-bottom: 16px; line-height: 1.15; position: relative; z-index: 2; }
  .waitlist h2 em { font-style: normal; color: var(--neonLime); }
  .waitlist > .container > p { font-size: 17px; color: var(--silver); max-width: 440px; margin: 0 auto 36px; line-height: 1.7; position: relative; z-index: 2; }
  .waitlist-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }

  .btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-primary); font-size: 15px; font-weight: 600;
    color: #fff; background: transparent; border: 1px solid var(--cardBorder);
    padding: 14px 28px; border-radius: 12px; cursor: pointer; text-decoration: none;
    transition: border-color 0.3s, transform 0.15s;
  }
  .btn-outline:hover { border-color: var(--silver); transform: translateY(-2px); }

  .btn-equal { min-width: 240px; justify-content: center; text-align: center; }

  /* ── FOOTER ─────────────────────────────── */
  .footer { padding: 48px 0 36px; border-top: 1px solid var(--cardBorder); }
  .footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
  .footer-left { display: flex; align-items: center; gap: 20px; }
  .footer-logo { font-size: 17px; font-weight: 700; color: #fff; text-decoration: none; }
  .footer-tagline { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dimSilver); }
  .footer-links { display: flex; gap: 20px; }
  .footer-links a { font-size: 13px; color: var(--dimSilver); text-decoration: none; transition: color 0.2s; }
  .footer-links a:hover { color: var(--silver); }

  /* ── RESPONSIVE ─────────────────────────── */
  @media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; gap: 60px; text-align: center; }
    .hero-body { margin-left: auto; margin-right: auto; }
    .hero-ctas { justify-content: center; }
    .hero-launch { text-align: center; }
    .hero-visual { order: 1; }
    .phone-stack { width: 240px; height: 480px; }
    .phone--main { width: 220px; }
    .phone--back-l, .phone--back-r { display: none; }

    .steps { grid-template-columns: 1fr; gap: 56px; max-width: 320px; margin: 0 auto; }
    .step::after { display: none; }

    .tiers .section-header { text-align: center; }
    .tiers .section-header p { margin: 0 auto; }
    .tier-track { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

    .feature-row, .feature-row--flip { grid-template-columns: 1fr; gap: 40px; text-align: center; direction: ltr; padding: 0; }
    .feature-phone { width: 200px; }
    .feature-visual { order: -1; }
  }

  @media (max-width: 600px) {
    .container { padding: 0 20px; }
    .hero { padding: 100px 0 60px; min-height: auto; }
    .problem, .how, .tiers, .features, .story, .waitlist { padding: 80px 0; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .btn-primary, .btn-outline { width: 100%; max-width: 280px; justify-content: center; }
    .btn-equal { min-width: unset; width: 100%; max-width: 280px; }
    .waitlist-actions { flex-direction: column; align-items: center; }
    .footer .container { flex-direction: column; text-align: center; }
    .footer-left { flex-direction: column; gap: 6px; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
    .phone-stack { width: 200px; height: 400px; }
    .phone--main { width: 190px; left: 5px; }
    .hero-visual { width: 100%; justify-content: center; }
    .feature-row, .feature-row--flip { padding: 0; }
  }

  /* ── ELEVATION ANIMATIONS ──────────────── */

  /* Waitlist CTA button breathing glow */
  @media (prefers-reduced-motion: no-preference) {
    .btn-primary.btn-equal:first-child {
      animation: btn-breathe 2.5s ease-in-out infinite;
    }
    @keyframes btn-breathe {
      0%, 100% { box-shadow: 0 0 20px rgba(212,255,0,0.15), 0 4px 12px rgba(212,255,0,0.08); }
      50% { box-shadow: 0 0 32px rgba(212,255,0,0.35), 0 4px 20px rgba(212,255,0,0.15); }
    }
  }

  /* Hero phone float */
  @media (prefers-reduced-motion: no-preference) {
    .phone--main {
      animation: phone-float 4s ease-in-out infinite;
    }
    .phone--back-l {
      animation: phone-float 4.5s ease-in-out infinite 0.3s;
    }
    .phone--back-r {
      animation: phone-float 4.2s ease-in-out infinite 0.6s;
    }
    @keyframes phone-float {
      0%, 100% { transform: translateY(0) rotate(var(--phone-rotate, 0deg)); }
      50% { transform: translateY(-8px) rotate(var(--phone-rotate, 0deg)); }
    }
    .phone--back-l { --phone-rotate: -6deg; }
    .phone--back-r { --phone-rotate: 4deg; }
    .phone--main { --phone-rotate: 0deg; }
  }

  /* Hero glow pulse behind centre phone */
  @media (prefers-reduced-motion: no-preference) {
    .phone-stack::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 320px;
      height: 400px;
      background: radial-gradient(ellipse, rgba(212,255,0,0.06) 0%, transparent 70%);
      border-radius: 50%;
      z-index: 0;
      animation: glow-breathe 3s ease-in-out infinite;
      pointer-events: none;
    }
    @keyframes glow-breathe {
      0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
      50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
    }
  }

  /* Tier dot pulse */
  @media (prefers-reduced-motion: no-preference) {
    .tier-card--yn .tier-dot {
      animation: dot-pulse-lime 2s ease-in-out infinite;
    }
    .tier-card--wal .tier-dot {
      animation: dot-pulse-lav 2.3s ease-in-out infinite;
    }
    .tier-card--wc .tier-dot {
      animation: dot-pulse-silver 2.6s ease-in-out infinite;
    }
    .tier-card--yn .tier-dot:nth-child(2) { animation-delay: 0.15s; }
    .tier-card--yn .tier-dot:nth-child(3) { animation-delay: 0.3s; }
    .tier-card--wal .tier-dot:nth-child(2) { animation-delay: 0.15s; }

    @keyframes dot-pulse-lime {
      0%, 100% { box-shadow: 0 0 4px rgba(212,255,0,0.3); opacity: 0.7; }
      50% { box-shadow: 0 0 10px rgba(212,255,0,0.7); opacity: 1; }
    }
    @keyframes dot-pulse-lav {
      0%, 100% { box-shadow: 0 0 4px rgba(178,131,255,0.3); opacity: 0.7; }
      50% { box-shadow: 0 0 10px rgba(178,131,255,0.7); opacity: 1; }
    }
    @keyframes dot-pulse-silver {
      0%, 100% { box-shadow: none; opacity: 0.6; }
      50% { box-shadow: 0 0 6px rgba(204,206,214,0.4); opacity: 1; }
    }
  }

  /* Feature phone slide-in from sides */
  @media (prefers-reduced-motion: no-preference) {
    .feature-row .feature-visual {
      opacity: 0;
      transform: translateX(-60px);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .feature-row--flip .feature-visual {
      transform: translateX(60px);
    }
    .feature-row.vis .feature-visual,
    .feature-row .feature-visual.vis {
      opacity: 1;
      transform: translateX(0);
    }
  }

  /* How It Works connecting line animation */
  @media (prefers-reduced-motion: no-preference) {
    .step:not(:last-child)::after {
      width: 0;
      transition: width 0.8s ease 0.4s;
    }
    .step.vis:not(:last-child)::after {
      width: 40px;
    }
  }

  /* Custom cursor (desktop only) */
  @media (pointer: fine) and (prefers-reduced-motion: no-preference) {
    html {
      cursor: none;
    }
    a, button, .nav-cta, .btn-primary, .btn-outline, .btn-ghost {
      cursor: none;
    }
  }

  /* ── SCROLL CUE ────────────────────────── */
  .scroll-cue {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--dimSilver);
    cursor: pointer;
    padding: 12px;
    transition: color 0.3s ease;
    z-index: 10;
  }
  .scroll-cue:hover {
    color: var(--neonLime);
  }
  @media (prefers-reduced-motion: no-preference) {
    .scroll-cue svg {
      animation: cue-bounce 2s ease-in-out infinite;
    }
    @keyframes cue-bounce {
      0%, 100% { transform: translateY(0); opacity: 0.5; }
      50% { transform: translateY(6px); opacity: 1; }
    }
  }
  .scroll-cue.faded {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
  }

  @media (max-width: 600px) {
    .scroll-cue { bottom: 20px; }
  }

  /* ── MODAL ──────────────────────────────── */
  body.modal-open { overflow: hidden; }

  .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border-width: 0;
  }

  .modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  .modal.is-open { display: flex; }

  .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .modal-box {
    position: relative;
    background: var(--nearBlack);
    border: 1px solid var(--cardBorder);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  .modal.is-open .modal-box {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--dimSilver);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s, background 0.2s;
  }
  .modal-close:hover { color: #fff; background: rgba(255,255,255,0.06); }

  .modal-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    padding-right: 32px;
  }
  .modal-sub {
    font-size: 15px;
    color: var(--dimSilver);
    line-height: 1.6;
    margin-bottom: 28px;
  }

  /* Form layout */
  .modal-form { display: flex; flex-direction: column; gap: 16px; }

  .form-field { display: flex; flex-direction: column; gap: 6px; }

  .form-field label {
    font-size: 13px;
    font-weight: 500;
    color: var(--silver);
  }

  .form-field input[type="email"],
  .form-field input[type="text"],
  .form-field textarea {
    background: var(--elevated);
    border: 1px solid var(--cardBorder);
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 15px;
    padding: 12px 14px;
    width: 100%;
    outline: none;
    -webkit-appearance: none;
    transition: border-color 0.2s;
  }
  .form-field input[type="email"]::placeholder,
  .form-field input[type="text"]::placeholder,
  .form-field textarea::placeholder { color: var(--dimSilver); }

  .form-field input[type="email"]:focus,
  .form-field input[type="text"]:focus,
  .form-field textarea:focus { border-color: rgba(212,255,0,0.5); }

  .form-field input:disabled,
  .form-field textarea:disabled { opacity: 0.5; cursor: not-allowed; }

  .form-field textarea { resize: vertical; min-height: 96px; }

  .textarea-wrap { position: relative; }
  .char-count {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--dimSilver);
    pointer-events: none;
  }

  /* Device toggle */
  fieldset.form-field--device { border: none; padding: 0; }
  .form-field--device legend {
    font-size: 13px;
    font-weight: 500;
    color: var(--silver);
    margin-bottom: 8px;
    float: left;
    width: 100%;
  }
  .device-options { display: flex; gap: 8px; }
  .device-option { flex: 1; cursor: pointer; }
  .device-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }
  .device-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    background: var(--elevated);
    border: 1px solid var(--cardBorder);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--silver);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
  }
  .device-option input[type="radio"]:checked + span {
    background: rgba(212,255,0,0.08);
    border-color: var(--neonLime);
    color: var(--neonLime);
  }
  .device-option:hover span { border-color: rgba(212,255,0,0.3); }
  .device-option input[type="radio"]:focus-visible + span {
    outline: 2px solid var(--neonLime);
    outline-offset: 2px;
  }

  /* Submit button */
  .btn-submit {
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 14px 24px;
    margin-top: 4px;
    border-radius: 8px;
    position: relative;
  }
  .btn-submit:hover:not(:disabled) {
    box-shadow: 0 0 8px #D4FF0066, 0 0 2px #D4FF0044;
  }
  .btn-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none !important; }
  .btn-submit.loading { color: transparent; }
  .btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0,0,0,0.3);
    border-top-color: var(--deepBlack);
    border-radius: 50%;
    animation: modal-spin 0.6s linear infinite;
  }
  @keyframes modal-spin { to { transform: rotate(360deg); } }

  /* Error / success */
  .form-error {
    font-size: 13px;
    color: #FF6B6B;
    line-height: 1.5;
    margin-top: -4px;
  }

  .modal-success {
    padding: 16px 0 8px;
    text-align: center;
  }
  .modal-success::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    background: rgba(212,255,0,0.1);
    border-radius: 50%;
    margin: 0 auto 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4 10l4 4 8-8' stroke='%23D4FF00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
  }
  .modal-success p {
    font-size: 16px;
    color: var(--silver);
    line-height: 1.6;
  }

  /* Mobile bottom sheet */
  @media (max-width: 540px) {
    .modal { align-items: flex-end; padding: 0; }
    .modal-box {
      border-radius: 12px 12px 0 0;
      padding: 32px 24px;
      max-width: 100%;
      max-height: 92vh;
    }
  }

  /* Cursor none for modal interactive elements */
  @media (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .modal-close, .device-option { cursor: none; }
  }
