:root {
  --bg: #000000;
  --card: #0b0b0d;
  --text: #ffffff;
  --muted: #a1a1aa;
  --dim: #71717a;
  --hairline: rgba(255, 255, 255, 0.08);
  --ease-house: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

/* Scroll Progress Hairline */
.scroll-progress {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 60;
  pointer-events: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  height: 80px;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  max-width: 1360px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand-wordmark {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.header-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-pill {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav-pill:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.cta-pill-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s var(--ease-house);
}

.cta-pill-white:hover {
  background: #e4e4e7;
}

.cta-pill-white:active {
  transform: scale(0.97);
}

.cta-pill-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid var(--hairline);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.cta-pill-ghost:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

/* HERO */
.fold {
  min-height: calc(100svh - 80px);
  display: flex;
  align-items: center;
  padding: 36px 24px 56px;
}

.fold-grid {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero-h1 {
  font-size: clamp(3.3rem, min(8.5vw, 13svh), 8.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin-bottom: 24px;
}

.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: 0.14em 0 0.16em;
  margin-top: -0.12em;
  margin-bottom: -0.08em;
  margin-right: 0.14em;
}

.word {
  display: inline-block;
  animation: swInBlur 1.05s var(--ease-house) both;
  animation-delay: calc(var(--i) * 90ms);
}

@keyframes swInBlur {
  from {
    opacity: 0;
    transform: translateY(105%) rotate(4deg);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 48ch;
  margin-bottom: 28px;
}

.fold-readout {
  min-height: 68px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
}

.readout-scanning {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--dim);
}

.fold-dots {
  display: inline-flex;
  gap: 4px;
}

.fold-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  animation: dotPulse 1.2s infinite ease-in-out;
}

.fold-dots i:nth-child(2) { animation-delay: 0.2s; }
.fold-dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.1); }
}

.readout-locked {
  display: flex;
  align-items: center;
  gap: 28px;
  transition: opacity 0.22s var(--ease-house), transform 0.22s var(--ease-house);
}

.readout-locked.switching,
.vf-card.switching {
  opacity: 0;
  transform: translateY(6px);
}

.readout-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.readout-cat {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.readout-name {
  font-size: 18px;
  font-weight: 700;
}

.readout-score-wrap {
  display: flex;
  flex-direction: column;
}

.readout-score {
  font-size: 32px;
  font-weight: 800;
  color: #22c55e;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.readout-caption {
  font-size: 11px;
  color: var(--dim);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Viewfinder Stage */
.fold-right {
  display: flex;
  justify-content: center;
}

.vf-stage {
  position: relative;
  width: min(380px, 86vw);
  height: min(380px, 86vw);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: handFloat 6.5s ease-in-out infinite;
}

@keyframes handFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-0.7deg); }
}

.vf-brackets {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: #71717a;
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke 0.35s, filter 0.35s, transform 0.5s var(--ease-house);
}

.vf-stage.captured .vf-brackets {
  stroke: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.55));
  transform: scale(0.95);
}

.vf-ripple {
  position: absolute;
  inset: 28px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  opacity: 0;
  pointer-events: none;
}

.vf-stage.captured .vf-ripple.r1 {
  animation: vfRipple 1.1s var(--ease-house) forwards;
}

.vf-stage.captured .vf-ripple.r2 {
  animation: vfRipple 1.1s var(--ease-house) 0.16s forwards;
}

@keyframes vfRipple {
  0% { opacity: 0.65; transform: scale(0.92); }
  100% { opacity: 0; transform: scale(1.16); }
}

.vf-card {
  width: 74%;
  padding: 22px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 60px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.35s var(--ease-house), opacity 0.25s;
}

.vf-card-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.vf-card-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.vf-card-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.vf-card-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--dim);
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
}

.vf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

/* HOW IT WORKS STICKY SPLIT */
.how-section {
  padding: 80px 24px 100px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.how-container {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.how-left {
  position: sticky;
  top: 140px;
}

.how-ledger {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ledger-word {
  font-size: clamp(3rem, 6vw, 6.2rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #27272a;
  transition: color 0.45s var(--ease-house), transform 0.45s var(--ease-house);
}

.ledger-word.active {
  color: #ffffff;
  transform: translateX(0.14em);
}

.how-right {
  display: flex;
  flex-direction: column;
  gap: 110px;
}

.how-step {
  min-height: 62svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.35;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease-house), transform 0.55s var(--ease-house);
}

.how-step.active {
  opacity: 1;
  transform: none;
}

.mobile-step-word {
  display: none;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.how-step h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.step-sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 48ch;
}

/* Marquee */
.marquee-box {
  height: 230px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--hairline);
  padding: 12px 16px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

.marquee-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: scrollUp 16s linear infinite;
}

@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.source-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  font-weight: 500;
}

.src-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.src-dot.c1 { background: #3b82f6; }
.src-dot.c2 { background: #22c55e; }
.src-dot.c3 { background: #ef4444; }
.src-dot.c4 { background: #a855f7; }
.src-dot.c5 { background: #eab308; }
.src-dot.c6 { background: #06b6d4; }

.src-tag {
  margin-left: auto;
  font-size: 11px;
  color: var(--dim);
}

/* OP Card */
.op-card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.op-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.op-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.op-name {
  font-size: 14px;
  font-weight: 600;
}

.op-handle {
  font-size: 12px;
  color: var(--dim);
}

.op-quote {
  font-size: 17px;
  line-height: 1.6;
  color: #e4e4e7;
}

.hl-green { background: rgba(34, 197, 94, 0.22); color: #86efac; padding: 1px 6px; border-radius: 5px; }
.hl-amber { background: rgba(234, 179, 8, 0.22); color: #fde047; padding: 1px 6px; border-radius: 5px; }
.hl-red { background: rgba(239, 68, 68, 0.22); color: #fca5a5; padding: 1px 6px; border-radius: 5px; }

/* Score Showcase */
.score-showcase {
  background: var(--card);
  border-radius: 20px;
  padding: 28px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.big-odometer {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #22c55e;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
}

.tier-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.tier-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--dim);
}

.tier-item.active {
  color: #ffffff;
  font-weight: 600;
}

.tier-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.tier-dot.red { background: #ef4444; }
.tier-dot.amber { background: #eab308; }
.tier-dot.green { background: #22c55e; box-shadow: 0 0 12px #22c55e; }

/* Interactive Slider Card */
.slider-card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.slider-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.slider-label {
  font-size: 14px;
  font-weight: 600;
}

.slider-val {
  font-size: 14px;
  font-weight: 700;
  color: #22c55e;
  font-variant-numeric: tabular-nums;
}

.spectrum-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(to right, #ef4444, #eab308, #22c55e);
  outline: none;
  cursor: pointer;
}

.spectrum-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.slider-hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* FINALE + 3D GLOBE HORIZON */
.finale {
  position: relative;
  min-height: 76svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.earth-glow {
  position: absolute;
  bottom: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 150, 255, 0.25) 0%, rgba(168, 85, 247, 0.12) 45%, transparent 72%);
  pointer-events: none;
}

.earth-canvas {
  position: absolute;
  bottom: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 540px;
  height: 540px;
  opacity: 0.7;
  pointer-events: none;
}

.finale-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.finale-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.finale-title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.finale-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-large {
  height: 48px;
  padding: 0 28px;
  font-size: 15px;
}

.cta-pill-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  transition: background 0.2s;
}

.cta-pill-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* FAQ */
.faq-section {
  padding: 90px 24px 110px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-grid {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}

.faq-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--dim);
}

.faq-heading {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  margin: 8px 0 12px;
}

.faq-sub {
  font-size: 15px;
  color: var(--muted);
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.faq-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.faq-idx {
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}

.faq-item h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* FOOTER */
.site-footer {
  background: rgba(9, 9, 11, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 48px 24px;
}

.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-logo {
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--dim);
}

.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

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

.footer-col a:hover {
  color: #ffffff;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .header-nav {
    display: none;
  }
  .fold-grid,
  .how-container,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .how-left {
    display: none;
  }
  .mobile-step-word {
    display: block;
  }
  .how-right {
    gap: 56px;
  }
  .how-step {
    min-height: auto;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 600px) {
  .site-header {
    height: 68px;
  }
  .scroll-progress {
    top: 68px;
  }
  .header-inner {
    padding: 0 16px;
  }
  .brand-wordmark {
    font-size: 18px;
  }
  .cta-pill-white {
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
  }
  .fold {
    min-height: auto;
    padding: 24px 16px 40px;
  }
  .hero-h1 {
    font-size: clamp(2.6rem, 12.5vw, 3.6rem);
    margin-bottom: 16px;
  }
  .hero-sub {
    font-size: 15.5px;
    margin-bottom: 20px;
  }
  .fold-readout {
    min-height: 54px;
    margin-bottom: 22px;
  }
  .readout-locked {
    gap: 18px;
    width: 100%;
    justify-content: space-between;
  }
  .readout-name {
    font-size: 16px;
  }
  .readout-score {
    font-size: 28px;
  }
  .hero-actions {
    width: 100%;
  }
  .hero-actions .cta-pill-white,
  .hero-actions .cta-pill-ghost {
    flex: 1 1 auto;
    height: 42px;
  }
  .vf-stage {
    width: min(300px, 84vw);
    height: min(300px, 84vw);
  }
  .vf-card {
    width: 80%;
    padding: 16px;
  }
  .how-section,
  .faq-section {
    padding: 56px 16px 68px;
  }
  .finale {
    min-height: 58svh;
    padding: 72px 16px 124px;
  }
  .earth-canvas {
    width: 360px;
    height: 360px;
    bottom: -235px;
    opacity: 0.45;
  }
  .earth-glow {
    width: 420px;
    height: 240px;
    bottom: -145px;
  }
  .finale-actions {
    width: 100%;
    flex-direction: column;
  }
  .finale-actions a,
  .finale-actions .cta-large {
    width: 100%;
    height: 46px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 28px;
  }
}
