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

:root {
  --bg: #0c0c0f;
  --bg-2: #111116;
  --fg: #f0ede6;
  --fg-muted: #8a857a;
  --accent: #ff4d00;
  --accent-dim: rgba(255, 77, 0, 0.12);
  --accent-2: #f0ede6;
  --amber: #ffb340;
  --amber-dim: rgba(255, 179, 64, 0.1);
  --mint: #3effc0;
  --mint-dim: rgba(62, 255, 192, 0.1);
  --coral: #ff6b6b;
  --coral-dim: rgba(255, 107, 107, 0.1);
  --border: rgba(240, 237, 230, 0.08);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Figtree', sans-serif;
}

html { scroll-behavior: smooth; }

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

/* Grain texture on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(12, 12, 15, 0.85);
}
.nav-inner { max-width: 1160px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--fg);
}
.nav-tagline { font-size: 12px; color: var(--fg-muted); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }

/* Hero */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero-bg-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,77,0,0.18) 0%, transparent 70%);
  top: -100px; right: -150px;
}
.hero-bg-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,179,64,0.07) 0%, transparent 70%);
  bottom: -50px; left: -100px;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  border: 1px solid rgba(255,77,0,0.25);
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--accent-dim);
}
.hero-label-dot {
  width: 6px; height: 6px;
  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(1.5); }
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -3px;
  margin-bottom: 28px;
  max-width: 800px;
}
.hero-headline-accent { color: var(--accent); }
.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 560px;
  margin-bottom: 52px;
  line-height: 1.7;
}
.hero-revenue-row {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  width: fit-content;
  background: var(--bg-2);
}
.hero-rev-block {
  padding: 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-rev-figure {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
}
.hero-rev-label { font-size: 12px; color: var(--fg-muted); font-weight: 500; }
.hero-rev-divider { width: 1px; height: 60px; background: var(--border); }

/* Section shared */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 48px;
  line-height: 1.15;
}

/* How It Works */
.how-it-works { padding: 100px 0; }
.phase-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.phase-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.phase-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
}
.phase-card--amber::before { background: var(--amber); }
.phase-card--mint::before { background: var(--mint); }
.phase-card--coral::before { background: var(--coral); }
.phase-card--amber { background: var(--amber-dim); }
.phase-card--mint { background: var(--mint-dim); }
.phase-card--coral { background: var(--coral-dim); }
.phase-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.phase-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.phase-card p {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.phase-list {
  list-style: none;
  margin-bottom: 20px;
}
.phase-list li {
  font-size: 13px;
  color: var(--fg-muted);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.phase-list li::before {
  content: '→';
  color: var(--accent);
  font-size: 12px;
  margin-top: 1px;
  flex-shrink: 0;
}
.phase-cost {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

/* Stack */
.stack { padding: 80px 0; background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.stack-desc { font-size: 16px; color: var(--fg-muted); line-height: 1.7; max-width: 400px; }
.stack-table-wrap { overflow-x: auto; }
.stack-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.stack-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.stack-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
}
.stack-table tr:last-child td { border-bottom: none; }
.stack-table td:first-child { color: var(--fg-muted); }
.stack-table td:last-child { font-weight: 500; }

/* Timeline */
.timeline { padding: 100px 0; }
.timeline-grid { margin-bottom: 48px; }
.timeline-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-row:first-child { border-top: 1px solid var(--border); }
.timeline-period {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  padding-top: 3px;
}
.timeline-content {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
}
.timeline-content strong { color: var(--fg); }
.mistakes-block { margin-top: 48px; }
.mistakes-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 16px;
}
.mistakes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.mistakes-list span {
  font-size: 13px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--fg-muted);
  background: var(--bg-2);
}

/* Closing */
.closing { padding: 100px 0; }
.closing-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.closing-statement {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.closing-statement strong { color: var(--accent); }
.closing-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--fg-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .phase-cards { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .hero-revenue-row { flex-direction: column; width: 100%; }
  .hero-rev-divider { width: 100%; height: 1px; }
  .timeline-row { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 600px) {
  .hero { padding: 64px 0 56px; }
  .hero-headline { letter-spacing: -1.5px; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .footer-inner { padding: 0 20px; flex-direction: column; gap: 8px; }
  .mistakes-list span { font-size: 12px; }
}