:root {
  --bg: #09090B;
  --surface: #111113;
  --surface2: #1A1A1E;
  --border: #222226;
  --border-light: #2E2E33;
  --text: #EDEDEF;
  --text-dim: #8B8B8F;
  --text-muted: #5A5A5E;
  --white: #FFFFFF;
  --accent-glow: rgba(255,255,255,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(9,9,11,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-logo span {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.2px;
}

.nav-links a:hover { color: var(--white); }

/* Hamburger menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--white);
  color: var(--bg);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.2px;
}

.btn-download:hover {
  background: #E0E0E2;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255,255,255,0.1);
}

.btn-download svg { width: 16px; height: 16px; }

/* ── HERO ── */
.hero-wrap {
  position: relative;
  height: 200vh;
}

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 140px 48px 80px;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(140,130,255,0.04) 0%, rgba(255,255,255,0.02) 40%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 40px;
  opacity: 0;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: #4ADE80;
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

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

.hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1.0;
  text-align: center;
  color: var(--white);
  margin-bottom: 28px;
  opacity: 0;
}

.hero h1 .thin {
  font-weight: 400;
  color: var(--text-dim);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  text-align: center;
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0;
  letter-spacing: 0.1px;
}

.hero-free {
  font-size: 15px;
  color: var(--text);
  text-align: center;
  margin-bottom: 40px;
  opacity: 0;
  letter-spacing: 0.2px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 100px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--white);
  color: var(--bg);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: -0.3px;
}

.btn-hero:hover {
  background: #E0E0E2;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,255,255,0.12);
}

.btn-hero svg { width: 18px; height: 18px; }

.hero-platform {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

.hero-keys {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 60px;
  opacity: 0;
}

.hero-key {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  box-shadow: 0 4px 8px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.03) inset;
  transition: all 0.3s;
}

.hero-key-wide { width: 72px; height: 52px; gap: 3px; }
.hero-key-narrow { width: 48px; height: 52px; }
.hero-key .sym { font-size: 17px; line-height: 1; }
.hero-key .lbl { font-size: 8px; color: var(--text-muted); letter-spacing: 0.4px; }
.hero-key-narrow .sym { font-size: 15px; }

.hero-key-plus {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 2px;
}

/* ── DEMO SECTION ── */
.demo-section {
  position: relative;
  height: 200vh;
}

.demo-container {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 48px;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.demo-section h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 60px;
  color: var(--white);
}

.demo-section h2 .dim { color: var(--text-muted); }

.demo-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  width: 100%;
  max-width: 960px;
}

.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.demo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-light);
}

.demo-stage {
  position: relative;
  width: 100%;
  height: 460px;
  overflow: hidden;
  background: var(--bg);
}

.demo-fake-screen {
  position: absolute;
  inset: 0;
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fake-line {
  height: 12px;
  background: var(--border);
  border-radius: 3px;
  opacity: 0.4;
}
.fake-line.short { width: 40%; }
.fake-line.med { width: 65%; }
.fake-line.long { width: 88%; }
.fake-line.xshort { width: 28%; }
.fake-line.gap { height: 24px; background: transparent; }
.fake-block {
  width: 55%;
  height: 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  opacity: 0.5;
}

.demo-keys-cluster {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  opacity: 0;
  z-index: 20;
}

.dk {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  box-shadow: 0 3px 6px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.03) inset;
}
.dk-wide { width: 64px; height: 44px; gap: 2px; }
.dk-narrow { width: 40px; height: 44px; }
.dk .dk-sym { font-size: 15px; line-height: 1; }
.dk .dk-lbl { font-size: 7px; letter-spacing: 0.4px; color: var(--text-muted); }
.dk-narrow .dk-sym { font-size: 13px; }

.demo-dim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  z-index: 5;
}

.demo-crosshair {
  position: absolute;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
}
.demo-crosshair svg { width: 24px; height: 24px; }

.demo-sel {
  position: absolute;
  border: 1.5px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.04);
  border-radius: 3px;
  z-index: 8;
  opacity: 0;
  overflow: hidden;
}

.demo-sel-flash {
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  border-radius: 3px;
}

.demo-answer {
  position: absolute;
  top: 50px;
  right: 40px;
  background: var(--surface2);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 18px 24px;
  max-width: 260px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(-14px);
  z-index: 15;
}

.demo-answer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.demo-answer-logo {
  width: 20px;
  height: 20px;
  background: var(--border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
}

.demo-answer-name {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.demo-answer-text {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}
.demo-answer-text .dac { opacity: 0; display: inline; }

.demo-replay {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 7px 18px;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  z-index: 30;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.5px;
}
.demo-replay:hover { background: var(--border); color: var(--text); }

/* ── FEATURES (pinned scroll) ── */
.features-section {
  position: relative;
}

.feature-pin-wrap {
  position: relative;
}

.feature-pin-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.feature-slide {
  position: absolute;
  text-align: center;
  max-width: 800px;
  padding: 0 48px;
  will-change: transform, opacity;
}

.feature-slide-word {
  font-size: clamp(52px, 8vw, 100px);
  font-weight: 800;
  letter-spacing: -4px;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 20px;
}

.feature-slide-desc {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
  letter-spacing: 0.2px;
}

/* ── PRICING ── */
.pricing-wrap {
  position: relative;
  height: 300vh;
  margin-top: 20vh;
}

.pricing-section {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  text-align: center;
}

.pricing-section h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 10px;
}

.pricing-section .sub {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.pricing-card {
  max-width: 720px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 36px 28px;
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
}

.pricing-sides {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

.pricing-side {
  flex: 1;
  padding: 0 24px;
}

.pricing-side:first-child {
  padding-left: 0;
}

.pricing-side:last-child {
  padding-right: 0;
}

.pricing-vert-divider {
  width: 1px;
  background: var(--border);
  margin: 0 4px;
  align-self: stretch;
  margin-top: 8px;
  margin-bottom: 8px;
}

.pricing-card > .btn-pricing {
  margin-top: 24px;
}

.pricing-label {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 12px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 10px;
}

.pricing-price .amount {
  font-size: 40px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -2px;
}

.pricing-price .period {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 0;
  line-height: 1.5;
}

.pricing-note {
  color: var(--text-muted);
  font-size: 12px;
}

.pricing-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.pricing-features {
  list-style: none;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-features li {
  font-size: 13px;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
}

.pricing-features li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.btn-pricing {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--white);
  color: var(--bg);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-pricing:hover {
  background: #E0E0E2;
  transform: translateY(-1px);
}

/* Referral steps inside pricing card */
.referral-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.referral-step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.referral-step-num {
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: var(--surface2);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}

.referral-step-text {
  font-size: 14px;
  color: var(--text-dim);
}

/* ── SOCIAL PROOF ── */
.social-proof {
  text-align: center;
  margin-top: 32px;
}

.social-proof p {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1060px;
  margin: 0 auto;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-left img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-left span {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-right a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-right a:hover {
  color: var(--text-dim);
}

/* ── SCROLL PROGRESS BAR ── */
.scroll-progress-track {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.04);
  z-index: 999;
}

.scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--text-muted), var(--white));
  border-radius: 0 2px 2px 0;
  transition: width 0.05s linear;
}

/* ── AMBIENT BACKGROUND ── */
.ambient-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0;
  z-index: 0;
  will-change: transform;
}

.ambient-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(140,130,255,0.06) 0%, transparent 70%);
  top: -10%;
  right: -10%;
}

.ambient-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  bottom: 20%;
  left: -8%;
}

.ambient-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(100,180,255,0.05) 0%, transparent 70%);
  top: 60%;
  right: 5%;
}

/* ── GRAIN OVERLAY ── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9,9,11,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 105;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 20px;
  }

  .hero { padding: 120px 24px 60px; }
  .demo-container { padding: 80px 24px; }
  .pricing-section { padding: 80px 24px; }
  .feature-slide { padding: 0 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .demo-body { padding: 32px; }

  .pricing-card { padding: 28px 20px 24px; }
  .pricing-side { padding: 0 16px !important; }
  .pricing-side:first-child { padding-left: 0 !important; }
  .pricing-side:last-child { padding-right: 0 !important; }
  .pricing-section { padding: 60px 24px; }

  footer {
    padding: 32px 24px;
    flex-direction: column;
    gap: 16px;
  }

  .footer-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .pricing-sides { flex-direction: column; }
  .pricing-vert-divider {
    width: 100%;
    height: 1px;
    margin: 20px 0;
    align-self: auto;
  }
  .pricing-side { padding: 0 !important; }
}
