:root {
  --bg: #0a0a0f;
  --bg-surface: #12121a;
  --bg-card: #1a1a26;
  --fg: #e8e6e3;
  --fg-muted: #8a8798;
  --fg-dim: #5a5867;
  --accent: #00e599;
  --accent-glow: rgba(0, 229, 153, 0.15);
  --accent-dim: #00b377;
  --red: #ff4d6a;
  --red-glow: rgba(255, 77, 106, 0.12);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', 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-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Grain overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-glow);
  border: 1px solid rgba(0, 229, 153, 0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
  width: fit-content;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

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

.hero h1 .highlight {
  color: var(--accent);
  position: relative;
}

.hero h1 .lost {
  color: var(--red);
  text-decoration: line-through;
  text-decoration-thickness: 3px;
  opacity: 0.7;
}

.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.hero-stat .number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--fg-dim);
  margin-top: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Problem section ── */
.problem {
  padding: 120px 0;
  position: relative;
}

.problem::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--red));
}

.problem-header {
  text-align: center;
  margin-bottom: 64px;
}

.problem-header .tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.problem-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255, 77, 106, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.problem-card {
  background: var(--bg-surface);
  padding: 40px 32px;
}

.problem-card .icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.problem-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--fg);
}

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

/* ── Solution section ── */
.solution {
  padding: 120px 0;
}

.solution-header {
  margin-bottom: 64px;
}

.solution-header .tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.solution-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 600px;
}

.solution-flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.flow-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.flow-card:hover {
  border-color: rgba(0, 229, 153, 0.2);
}

.flow-card .step {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.flow-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

.flow-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--bg-surface), rgba(0, 229, 153, 0.04));
  border-color: rgba(0, 229, 153, 0.12);
}

.flow-card.featured .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.flow-card.featured .metrics {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.metric-row .label {
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.metric-row .value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
}

.metric-row .value.bad {
  color: var(--red);
}

/* ── Niches section ── */
.niches {
  padding: 120px 0;
  background: var(--bg-surface);
}

.niches-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.niches-header {
  text-align: center;
  margin-bottom: 64px;
}

.niches-header .tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.niches-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.niches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.niche-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.04);
  transition: transform 0.2s ease, border-color 0.3s ease;
}

.niche-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 153, 0.15);
}

.niche-card .niche-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

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

.niche-card p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ── Closing ── */
.closing {
  padding: 160px 0;
  text-align: center;
  position: relative;
}

.closing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 700px;
  margin: 0 auto 24px;
  position: relative;
}

.closing p {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

/* ── Footer ── */
footer {
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { padding: 80px 0 60px; min-height: auto; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .problem-grid { grid-template-columns: 1fr; }
  .solution-flow { grid-template-columns: 1fr; }
  .flow-card.featured .inner { grid-template-columns: 1fr; gap: 32px; }
  .niches-grid { grid-template-columns: 1fr; }
  .closing { padding: 100px 0; }
}