:root {
  --bg: #0f0f0f;
  --surface: #181818;
  --surface-2: #222222;
  --fg: #f5f0e8;
  --fg-muted: #8a8680;
  --accent: #c8ff00;
  --accent-dim: rgba(200, 255, 0, 0.08);
  --border: rgba(245, 240, 232, 0.08);
  --font-sans: 'Instrument Sans', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--fg);
}
header nav {
  display: flex;
  gap: 1.5rem;
}
header nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
header nav a:hover { color: var(--fg); }

/* ─── Hero ─── */
.hero {
  padding: var(--space-3xl) 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
.hero-stat-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.25rem;
}
.stat-number {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
  font-weight: 400;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.5;
  max-width: 220px;
}
.hero-text-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.hero-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 500px;
  line-height: 1.6;
}
.hero-products {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.product-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
}
.pill-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  min-width: 80px;
}
.pill-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ─── Problem ─── */
.problem {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-3xl) 1.5rem;
}
.problem-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-xl);
}
.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: var(--space-2xl);
}
.problem-card {
  background: var(--surface);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.problem-icon {
  color: var(--fg-muted);
}
.problem-text {
  font-size: 0.95rem;
  color: var(--fg);
  line-height: 1.55;
}
.problem-quote {
  padding-left: 2rem;
  border-left: 2px solid var(--accent);
}
.problem-quote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ─── Products ─── */
.products { padding: var(--space-3xl) 1.5rem; }
.products-inner { max-width: 1100px; margin: 0 auto; }
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: var(--space-xl);
}
.product-card {
  background: var(--bg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.product-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
}
.specka .product-tag { background: var(--accent); color: #0f0f0f; }
.scaffold .product-tag { background: var(--accent-dim); color: var(--accent); }
.product-description {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}
.product-flow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0;
}
.flow-step {
  font-size: 0.75rem;
  color: var(--fg-muted);
  background: var(--surface-2);
  padding: 0.35rem 0.65rem;
  border-radius: 2px;
}
.flow-arrow {
  color: var(--fg-muted);
  font-size: 0.875rem;
}
.product-wedge, .product-metrics {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}
.suite-note {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
  padding: var(--space-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

/* ─── Philosophy ─── */
.philosophy {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-3xl) 1.5rem;
}
.philosophy-inner { max-width: 1100px; margin: 0 auto; }
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}
.philosophy-col h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--fg);
}
.philosophy-col p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}
.stack-callout {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}
.stack-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
}
.stack-items {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ─── Closing ─── */
.closing { padding: var(--space-3xl) 1.5rem; }
.closing-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.closing-statement {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.closing-statement.secondary {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--fg-muted);
  font-style: italic;
  font-family: var(--font-serif);
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 1.5rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
}
.footer-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
}
.footer-sep { opacity: 0.4; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .stat-number { font-size: 4rem; }
  .problem-cards { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  header nav { gap: 1rem; }
}

@media (max-width: 480px) {
  .hero { padding: var(--space-2xl) 1.25rem; }
  .problem, .products, .philosophy, .closing { padding: var(--space-2xl) 1.25rem; }
  .stat-number { font-size: 3.2rem; }
}