/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #1a1a2e;
  --bg-alt: #141420;
  --surface: #22223a;
  --fg: #f8f8f2;
  --fg-muted: #9999aa;
  --accent: #f97316;
  --accent-dim: rgba(249, 115, 22, 0.15);
  --border: rgba(248, 248, 242, 0.1);
  --font-head: 'Syne', sans-serif;
  --font-body: 'Figtree', sans-serif;
  /* Shared container — one source of truth for alignment */
  --container-max: 1200px;
  --container-pad: 2rem;
}

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;
}

/* === TYPOGRAPHY === */
h1 { font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h4 { font-family: var(--font-head); font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
p { color: var(--fg-muted); font-size: 0.95rem; line-height: 1.65; }

.eyebrow, .eyebrow-dark {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}
.eyebrow-dark { color: var(--accent); }

/* === NAV === */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* === HERO === */
.hero { background: var(--bg); }
.hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 9rem var(--container-pad) 5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-copy .lede {
  font-size: 1.05rem;
  margin: 1.5rem 0 2.5rem;
  max-width: 480px;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  text-align: center;
}
.stat-number {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  white-space: nowrap;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-visual { position: relative; }
.profile-visual-wrap { padding: 0.5rem; }
.profile-main-svg { width: 100%; height: auto; }
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: background 0.2s ease, transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  letter-spacing: 0.02em;
}
.cta-btn:hover {
  background: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.45);
}
.cta-btn:active {
  transform: translateY(0);
}

/* === SECTIONS === */
.section-inner { max-width: var(--container-max); margin: 0 auto; padding: 5rem var(--container-pad); }

/* === PAIN === */
.pain { background: var(--bg-alt); }
.pain h2 { margin-bottom: 3rem; }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.pain-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.pain-icon { font-size: 1.2rem; flex-shrink: 0; }
.pain-quote {
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  padding: 1.5rem 2rem;
  border-radius: 0 8px 8px 0;
}
.pain-quote blockquote {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg);
  font-style: normal;
  margin-bottom: 0.5rem;
}
.quote-attr { font-size: 0.8rem; color: var(--fg-muted); }

/* === SOLUTION === */
.solution-header { margin-bottom: 3rem; }
.solution-header h2 { margin-top: 0.5rem; }
.solution-flow {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  flex-wrap: nowrap;
}
.flow-step {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  position: relative;
}
.flow-number {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.flow-step h4 { font-size: 0.95rem; }
.flow-step p { font-size: 0.85rem; }
.flow-arrow {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.flow-arrow svg { width: 30px; }

/* === HOW / TYPES === */
.how { background: var(--bg-alt); }
.how h2 { margin: 0.5rem 0 2.5rem; }
.types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.type-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.type-svg-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
  height: 80px;
}
.type-card p { font-size: 0.85rem; }
.type-sizes {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.materials-note {
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  background: var(--accent-dim);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.materials-note strong { color: var(--fg); }

/* === MANIFESTO === */
.manifesto { border-top: 1px solid var(--border); }
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.manifesto-content { }
.manifesto-content h2 { margin: 0.5rem 0 1.5rem; }
.manifesto-content p { margin-bottom: 1rem; }
.manifesto-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 2.8rem; /* align with h2 text top */
}
.manifesto-stat { border-left: 2px solid var(--accent); padding-left: 1.25rem; }
.m-number {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}
.m-label { font-size: 0.8rem; color: var(--fg-muted); }

/* === FOOTER === */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}
.footer-brand .wordmark { font-size: 1.2rem; display: block; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.85rem; color: var(--fg-muted); }
.footer-sub { margin-top: 0.25rem; font-size: 0.8rem !important; color: var(--fg-muted) !important; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; }
.footer-meta span { font-size: 0.72rem; color: var(--fg-muted); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; }
  .hero-stats { gap: 1.5rem; }
  .pain-grid { grid-template-columns: 1fr; }
  .solution-flow { flex-wrap: wrap; }
  .flow-arrow { display: none; }
  .flow-step { flex: 1 1 45%; }
  .types-grid { grid-template-columns: repeat(2, 1fr); }
  .manifesto-grid { grid-template-columns: 1fr; gap: 2rem; }
  .manifesto-aside { padding-top: 0; }
}
@media (max-width: 600px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
  .types-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1rem; flex-wrap: wrap; }
  .stat { flex: 1 1 30%; }
  .flow-step { flex: 1 1 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { align-items: flex-start; }
  :root { --container-pad: 1.25rem; }
}