:root {
  --bg: #0a0a0f;
  --bg-subtle: #12121a;
  --fg: #e8e6e1;
  --fg-dim: #8a8780;
  --accent: #ff6b3d;
  --accent-glow: rgba(255, 107, 61, 0.15);
  --teal: #3ddbc4;
  --teal-glow: rgba(61, 219, 196, 0.12);
  --card-bg: #16161f;
  --card-border: #2a2a35;
  --pill-bg: #1c1c28;
  --pill-hot: #2a1a1a;
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.accent { color: var(--accent); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 600px 400px at 30% 20%, var(--accent-glow), transparent),
    radial-gradient(ellipse 500px 350px at 70% 60%, var(--teal-glow), transparent),
    var(--bg);
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--card-border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-sub {
  max-width: 520px;
  font-size: 1.1rem;
  color: var(--fg-dim);
  line-height: 1.7;
  margin-bottom: 56px;
}

/* Hero visual: side-by-side rank cards */
.hero-visual {
  display: flex;
  gap: 12px;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  position: relative;
}

.rank-card {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: left;
}

.rank-card-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.rank-card-you .rank-card-label { color: var(--accent); }
.rank-card-them .rank-card-label { color: var(--teal); }

.rank-item {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 6px;
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  gap: 8px;
}

.rank-item.dim { opacity: 0.5; }

.rank-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--fg-dim);
  min-width: 16px;
}

.diff-connector {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 28px;
}

.diff-badge {
  width: 36px;
  height: 24px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
}

.diff-close { background: rgba(61,219,196,0.2); color: var(--teal); }
.diff-mid { background: rgba(255,200,60,0.2); color: #ffc83c; }
.diff-far { background: rgba(255,107,61,0.2); color: var(--accent); }

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 100px 24px;
  max-width: 960px;
  margin: 0 auto;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.how-step {
  background: var(--card-bg);
  padding: 32px 24px;
  position: relative;
}

.how-step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.how-step:last-child { border-radius: 0 var(--radius) var(--radius) 0; }

.step-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}

.how-step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.how-step p {
  font-size: 0.88rem;
  color: var(--fg-dim);
  line-height: 1.6;
}

/* ===== LISTS SECTION ===== */
.lists-section {
  padding: 80px 24px;
  overflow: hidden;
}

.lists-content {
  text-align: center;
  margin-bottom: 48px;
}

.lists-content h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.lists-sub {
  color: var(--fg-dim);
  font-size: 1rem;
}

.lists-scroll {
  display: flex;
  gap: 10px;
  animation: scrollLeft 30s linear infinite;
  width: max-content;
  margin-bottom: 10px;
}

.lists-scroll-reverse {
  animation: scrollRight 35s linear infinite;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.list-pill {
  flex-shrink: 0;
  padding: 12px 20px;
  background: var(--pill-bg);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--fg);
}

.list-pill.hot {
  background: var(--pill-hot);
  border-color: rgba(255,107,61,0.25);
  color: var(--accent);
}

/* ===== REVEAL SECTION ===== */
.reveal-section {
  padding: 100px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.reveal-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.reveal-text h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.reveal-text p {
  color: var(--fg-dim);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.reveal-demo {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reveal-row {
  display: grid;
  grid-template-columns: 40px 1fr 70px 1fr 40px;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.reveal-row:last-child { border-bottom: none; }

.reveal-rank {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--fg-dim);
}

.reveal-item {
  font-size: 0.95rem;
  font-weight: 500;
}

.reveal-diff {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 100px;
}

.reveal-diff.agree { background: rgba(61,219,196,0.15); color: var(--teal); }
.reveal-diff.close { background: rgba(255,200,60,0.12); color: #ffc83c; }
.reveal-diff.far { background: rgba(255,107,61,0.15); color: var(--accent); }

/* ===== CLOSING ===== */
.closing {
  padding: 120px 24px;
  text-align: center;
  background:
    radial-gradient(ellipse 500px 300px at 50% 50%, var(--accent-glow), transparent),
    var(--bg);
}

.closing h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  max-width: 700px;
  margin: 0 auto 24px;
}

.closing-sub {
  max-width: 480px;
  margin: 0 auto;
  color: var(--fg-dim);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 40px 24px;
  border-top: 1px solid var(--card-border);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-tagline {
  color: var(--fg-dim);
  font-size: 0.85rem;
  font-style: italic;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .how-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }
  .how-step:first-child { border-radius: var(--radius) 0 0 0; }
  .how-step:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
  .how-step:nth-child(3) { border-radius: 0 0 0 var(--radius); }
  .how-step:last-child { border-radius: 0 0 var(--radius) 0; }

  .hero-visual {
    flex-direction: column;
    max-width: 320px;
  }

  .diff-connector {
    display: none;
  }

  .reveal-row {
    grid-template-columns: 30px 1fr 55px 1fr 30px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .how-grid {
    grid-template-columns: 1fr;
  }
  .how-step { border-radius: 0 !important; }
  .how-step:first-child { border-radius: var(--radius) var(--radius) 0 0 !important; }
  .how-step:last-child { border-radius: 0 0 var(--radius) var(--radius) !important; }

  .hero {
    padding: 60px 16px 40px;
  }

  .reveal-row {
    grid-template-columns: 1fr 55px 1fr;
  }
  .reveal-rank { display: none; }
}