:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --fg: #e2e2e8;
  --fg-muted: #8888a0;
  --accent: #00ffa3;
  --accent-dim: rgba(0, 255, 163, 0.12);
  --accent-glow: rgba(0, 255, 163, 0.25);
  --border: #1e1e2a;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

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

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, rgba(0,255,163,0.04) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(0,120,255,0.03) 0%, transparent 50%),
              var(--bg);
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--accent-dim);
  border: 1px solid rgba(0,255,163,0.15);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

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

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

/* Shard visualization */
.hero-viz {
  display: flex;
  justify-content: center;
  align-items: center;
}

.shard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 220px;
  transform: rotate(12deg);
}

.shard {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.6s ease;
}

.shard.s1 { background: linear-gradient(135deg, var(--accent-dim), transparent); border-color: rgba(0,255,163,0.2); }
.shard.s3 { background: linear-gradient(225deg, rgba(0,120,255,0.08), transparent); border-color: rgba(0,120,255,0.15); }
.shard.s5 { background: var(--accent-dim); border-color: rgba(0,255,163,0.3); box-shadow: 0 0 30px var(--accent-glow); }
.shard.s7 { background: linear-gradient(45deg, rgba(0,120,255,0.08), transparent); border-color: rgba(0,120,255,0.15); }
.shard.s9 { background: linear-gradient(315deg, var(--accent-dim), transparent); border-color: rgba(0,255,163,0.2); }

.hero-stats {
  max-width: 1200px;
  margin: 4rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

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

/* ===== PROBLEM ===== */
.problem {
  padding: 8rem 2rem;
  background: var(--bg-elevated);
}

.problem-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.problem h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 3.5rem;
  letter-spacing: -0.01em;
}

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

.problem-card {
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--bg);
}

.problem-icon {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.problem-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ===== FEATURES ===== */
.features {
  padding: 8rem 2rem;
}

.features-inner {
  max-width: 900px;
  margin: 0 auto;
}

.feature-block {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.feature-block:last-child { border-bottom: none; }

.feature-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.feature-block h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.feature-block p {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 700px;
}

/* ===== HOW ===== */
.how {
  padding: 8rem 2rem;
  background: var(--bg-elevated);
}

.how-inner {
  max-width: 900px;
  margin: 0 auto;
}

.how h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 3.5rem;
  letter-spacing: -0.01em;
}

.flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem 0;
}

.flow-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent);
  min-width: 3rem;
  line-height: 1;
  padding-top: 0.2rem;
}

.flow-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.flow-content p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.flow-connector {
  width: 1px;
  height: 2rem;
  background: var(--border);
  margin-left: 1.45rem;
}

/* ===== CLOSING ===== */
.closing {
  padding: 8rem 2rem;
  text-align: center;
}

.closing-inner {
  max-width: 750px;
  margin: 0 auto;
}

.closing h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.closing p {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

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

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

.footer-brand {
  font-weight: 600;
  font-size: 1rem;
}

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

/* ===== CTA BUTTONS ===== */
.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.cta-primary {
  display: inline-block;
  background: var(--accent);
  color: #0a0a0f;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.75rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.2s, transform 0.1s;
}

.cta-primary:hover { opacity: 0.9; }
.cta-primary:active { transform: scale(0.99); }

.cta-secondary {
  display: inline-block;
  color: var(--fg-muted);
  font-size: 0.95rem;
  padding: 0.8rem 1.25rem;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

.cta-secondary:hover {
  color: var(--fg);
  border-color: rgba(255,255,255,0.15);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-viz { display: none; }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .problem-grid {
    grid-template-columns: 1fr;
  }
  .flow-step { gap: 1.25rem; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .problem, .features, .how, .closing { padding: 5rem 1.5rem; }
}