/* ============================================
   PillarFlow — Agency Financial Autonomy
   ============================================ */

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

:root {
  --bg: #101010;
  --surface: #1a1a1a;
  --surface-raised: #242424;
  --border: #2e2e2e;
  --fg: #f0ede6;
  --fg-muted: #9a9590;
  --accent: #E8A838;
  --accent-dim: #a07020;
  --red: #e05a5a;

  --font-display: 'Syne', sans-serif;
  --font-body: 'Figtree', sans-serif;

  --max-w: 1100px;
  --pad-x: clamp(1.5rem, 5vw, 3rem);
}

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

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

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

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  color: var(--fg);
}

.tagline {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--fg-muted);
  font-weight: 400;
}

/* --- Section Labels --- */
.section-label {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 3rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: clamp(4rem, 10vw, 7rem) var(--pad-x) clamp(4rem, 8vw, 6rem);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 520px;
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.stat-card {
  background: var(--surface);
  padding: 1.125rem 1.5rem;
  border-left: 2px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-card:first-child {
  border-radius: 6px 6px 0 0;
}
.stat-card:last-child {
  border-radius: 0 0 6px 6px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  line-height: 1.4;
  font-weight: 400;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

/* ============================================
   PAIN
   ============================================ */
.pain {
  padding: clamp(4rem, 8vw, 6rem) var(--pad-x);
  background: var(--bg);
}

.pain-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.pain-header {
  margin-bottom: 3.5rem;
  max-width: 640px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.pain-item {
  background: var(--surface);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pain-number {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.pain-item h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
}

.pain-item p {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  padding: clamp(4rem, 8vw, 6rem) var(--pad-x);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.feature-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-dim);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.feature-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
}

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

/* ============================================
   HOW IT WORKS
   ============================================ */
.how {
  padding: clamp(4rem, 8vw, 6rem) var(--pad-x);
  background: var(--bg);
}

.how-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.step-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
  margin-top: 0.5rem;
}

.step {
  padding: 2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
}

.step p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.step-connector {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-top: 3rem;
  align-self: center;
}

/* ============================================
   OUTCOMES
   ============================================ */
.outcomes {
  padding: clamp(4rem, 8vw, 6rem) var(--pad-x);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.outcomes-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

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

.outcome {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.outcome-metric {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.outcome-desc {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ============================================
   CLOSING
   ============================================ */
.closing {
  padding: clamp(5rem, 10vw, 8rem) var(--pad-x);
  background: var(--bg);
}

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

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

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

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 2.5rem var(--pad-x);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.wordmark-footer {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--fg);
}

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

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-sidebar {
    flex-direction: row;
    overflow-x: auto;
  }

  .stat-card {
    min-width: 200px;
    flex-shrink: 0;
  }

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

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .step-connector {
    display: none;
  }

  .outcomes-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .tagline {
    display: none;
  }
}