/* =====================
   HAULSTACK — CUSTOM THEME
   Slate + Amber palette
   DM Serif Display + DM Sans
   Editorial, not generic SaaS
   ===================== */

:root {
  --bg: #0F172A;
  --bg-elevated: #1E293B;
  --bg-card: #1E293B;
  --fg: #F8FAFC;
  --fg-muted: #94A3B8;
  --accent: #F59E0B;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --accent-border: rgba(245, 158, 11, 0.3);
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-accent: #F59E0B;
  --border: rgba(148, 163, 184, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}

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

.wordmark {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── Sections shared ── */
section {
  padding: 80px 24px;
}

.section-header {
  max-width: 700px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ── Hero ── */
.hero {
  padding: 80px 24px 60px;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(245,158,11,0.06) 0%, transparent 70%), var(--bg);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  max-width: 520px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

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

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(245, 158, 11, 0.15));
}

/* Stats bar */
.hero-stats {
  max-width: 1100px;
  margin: 56px auto 0;
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 40px;
  overflow: hidden;
}

.stat {
  flex: 1;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.8rem;
  color: var(--accent);
  font-weight: 400;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  margin: 0 24px;
}

/* ── The Haul ── */
.haul {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.haul-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.haul-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.haul-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.haul-card-icon {
  margin-bottom: 20px;
}

.haul-card-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--fg);
  margin-bottom: 12px;
}

.haul-card-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.haul-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.haul-list li {
  font-size: 0.85rem;
  color: var(--fg-muted);
  padding-left: 20px;
  position: relative;
}

.haul-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.haul-bottom-note {
  max-width: 600px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--fg-muted);
  font-style: italic;
}

/* ── Roadmap ── */
.roadmap { background: var(--bg); }

.road-steps {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.road-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.road-step:last-child { border-bottom: none; }

.step-number {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.4rem;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  font-weight: 400;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ── Stack ── */
.stack {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.stack-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stack-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px;
  transition: border-color 0.2s;
}

.stack-item:hover {
  border-color: var(--accent-border);
}

.stack-icon {
  margin-bottom: 14px;
}

.stack-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}

.stack-item-desc {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ── Closing ── */
.closing {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 100px 24px;
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.closing-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.closing-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  background: var(--bg);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-wordmark {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.3rem;
  color: var(--fg);
  display: block;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-muted);
  opacity: 0.5;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  section { padding: 60px 20px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-visual { display: none; }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
    margin: 0;
  }

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

  .road-step {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }

  .step-number { font-size: 1.8rem; }

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

  .section-header { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 1.8rem; }
  .closing-headline { font-size: 2rem; }
  .haul-card { padding: 24px; }
}