:root {
  --bg: #0F1117;
  --bg-raised: #161820;
  --bg-card: #1A1D27;
  --fg: #E8E8EC;
  --fg-muted: #9CA3AF;
  --fg-dim: #6B7280;
  --green: #2DD881;
  --green-dim: rgba(45, 216, 129, 0.12);
  --coral: #FF6B6B;
  --coral-dim: rgba(255, 107, 107, 0.12);
  --orange: #FFAA5C;
  --orange-dim: rgba(255, 170, 92, 0.12);
  --purple: #A78BFA;
  --purple-dim: rgba(167, 139, 250, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Sora', sans-serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-tag {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 1rem;
}

/* ===== NAV ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  display: block;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

/* ===== HERO ===== */
.hero {
  padding: 6rem 2rem 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  background: var(--green-dim);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  font-family: 'Sora', sans-serif;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #fff;
}

.hero h1 .accent {
  color: var(--green);
}

.lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.7;
}

/* Swap Card */
.swap-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-raised);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  position: relative;
}

.swap-plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.plate-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.before-plate {
  background: var(--coral-dim);
}

.after-plate {
  background: var(--green-dim);
}

.plate-icon {
  width: 80px;
  height: 80px;
}

.plate-cal {
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--coral);
  margin-top: 0.25rem;
}

.plate-cal.good {
  color: var(--green);
}

.plate-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
}

.swap-arrow {
  flex-shrink: 0;
}

.arrow-svg {
  width: 48px;
  height: 28px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.stat-num {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
}

.stat-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--fg-dim);
  margin-top: 0.15rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.08);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 6rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.how-it-works h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step {
  background: var(--bg-raised);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}

.step-num {
  font-family: 'Sora', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.step-icon {
  margin-bottom: 1.25rem;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.step p {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ===== PHILOSOPHY ===== */
.philosophy {
  padding: 5rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.philosophy-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3.5rem;
  align-items: center;
  background: linear-gradient(135deg, var(--green-dim), transparent 60%);
  border: 1px solid rgba(45, 216, 129, 0.1);
  border-radius: var(--radius);
  padding: 4rem;
}

.philosophy-svg {
  opacity: 0.8;
}

.philosophy-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
}

.philosophy-text p {
  color: var(--fg-muted);
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.75;
}

/* ===== FEATURES ===== */
.features {
  padding: 6rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.features h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-raised);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.feature-card.feature-large {
  grid-column: 1 / -1;
  padding: 2.5rem;
}

.feature-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  background: var(--green-dim);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  font-family: 'Sora', sans-serif;
}

.feature-badge.orange {
  color: var(--orange);
  background: var(--orange-dim);
}

.feature-badge.green {
  color: var(--green);
  background: var(--green-dim);
}

.feature-badge.purple {
  color: var(--purple);
  background: var(--purple-dim);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.65rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 540px;
}

.feature-visual {
  margin-top: 1.5rem;
}

.scan-lines {
  display: flex;
  gap: 0.5rem;
  height: 4px;
}

.scan-line {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--green);
  opacity: 0.3;
}

.scan-line:first-child {
  opacity: 0.7;
  animation: scan-pulse 2s ease-in-out infinite;
}

.scan-line:nth-child(2) {
  opacity: 0.5;
  animation: scan-pulse 2s ease-in-out 0.3s infinite;
}

.scan-line:nth-child(3) {
  opacity: 0.3;
  animation: scan-pulse 2s ease-in-out 0.6s infinite;
}

@keyframes scan-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ===== OUTCOMES ===== */
.outcomes {
  padding: 6rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.outcomes h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3rem;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.outcome {
  padding: 2rem;
  background: var(--bg-raised);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
}

.outcome-icon {
  margin-bottom: 1.25rem;
}

.outcome h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.65rem;
}

.outcome p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ===== CLOSING ===== */
.closing {
  padding: 6rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.closing-inner {
  text-align: center;
  background: linear-gradient(180deg, var(--bg-raised) 0%, var(--bg) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 5rem 3rem;
}

.closing h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.closing p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

.closing-accent {
  display: flex;
  justify-content: center;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  display: block;
}
.footer-logo img {
  display: block;
  transition: opacity 0.2s;
}
.footer-logo:hover img { opacity: 1 !important; }

.footer-note {
  font-size: 0.82rem;
  color: var(--fg-dim);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 1.5rem 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .swap-card {
    padding: 1.5rem;
    gap: 0.75rem;
  }

  .plate-circle {
    width: 90px;
    height: 90px;
  }

  .plate-icon {
    width: 60px;
    height: 60px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .steps,
  .outcomes-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card.feature-large {
    grid-column: 1;
  }

  .philosophy-inner {
    grid-template-columns: 1fr;
    padding: 2.5rem 2rem;
    text-align: center;
  }

  .philosophy-accent {
    display: flex;
    justify-content: center;
  }

  h2 {
    font-size: 1.65rem !important;
  }

  .closing-inner {
    padding: 3.5rem 1.5rem;
  }

  .closing h2 {
    font-size: 1.75rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}