:root {
  --bg: #f5f0eb;
  --bg-warm: #ece5dd;
  --fg: #1a1a18;
  --fg-muted: #6b6560;
  --accent: #c44b28;
  --accent-light: #e8ddd4;
  --surface: #ffffff;
  --border: #d4cdc5;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* NAV */
.nav {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
}
.nav-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  background: var(--accent-light);
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* HERO */
.hero {
  padding: 6rem 0 4rem;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-description {
  font-size: 1.125rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
}
.hero-right {
  position: relative;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-top: 2rem;
}
.hero-right::before {
  content: 'SAMPLE OUTPUT';
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  background: var(--bg);
  padding: 0 0.5rem;
}
.output-line {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 2;
  color: var(--fg);
}
.output-line .key {
  color: var(--fg-muted);
}
.output-line .val {
  color: var(--accent);
}
.output-divider {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 1rem 0;
}

/* PILLARS */
.pillars {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}
.pillars-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  gap: 2rem;
}
.pillars-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.pillars-header p {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 360px;
  text-align: right;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.pillar {
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-right: none;
  position: relative;
  transition: background 0.2s;
}
.pillar:last-child { border-right: 1px solid var(--border); }
.pillar:hover { background: var(--surface); }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: var(--fg);
}
.pillar p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.65;
}
.pillar-accent {
  width: 32px;
  height: 3px;
  background: var(--accent);
  margin-top: 1.5rem;
}

/* PROCESS */
.process {
  padding: 5rem 0;
  background: var(--fg);
  color: var(--bg);
}
.process .container { max-width: 900px; }
.process-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}
.process h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  line-height: 1.2;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.step h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.step p {
  font-size: 0.85rem;
  color: #9a958f;
  line-height: 1.6;
}

/* CLOSING */
.closing {
  padding: 6rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.closing h2 em {
  font-style: normal;
  color: var(--accent);
}
.closing p {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* FOOTER */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.footer-right {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero { padding: 3rem 0 2rem; }
  .pillars-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .pillars-header p { text-align: left; }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .pillar {
    border-right: 1px solid var(--border);
    border-bottom: none;
  }
  .pillar:last-child { border-bottom: 1px solid var(--border); }
  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .hero-right { margin-top: 0; }
}
@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
  .container { padding: 0 1.25rem; }
}