:root {
  --bg: #080b10;
  --surface: #0f141c;
  --surface-elevated: #151c27;
  --text: #eef2f7;
  --muted: #8a9bb0;
  --accent: #4d9fff;
  --accent-hover: #2b8af5;
  --accent-muted: rgba(77, 159, 255, 0.1);
  --border: #1c2736;
  --border-subtle: #141c28;
  --success: #34d399;
  --success-muted: rgba(52, 211, 153, 0.12);
  --warning: #fbbf24;
  --warning-muted: rgba(251, 191, 36, 0.12);
  --planned: #64748b;
  --planned-muted: rgba(100, 116, 139, 0.15);
  --max-width: 1120px;
  --section-gap: clamp(3.5rem, 8vw, 5.5rem);
  --radius: 0.625rem;
  --radius-lg: 0.875rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 20, 28, 0.92);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
  text-decoration: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn__icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--muted);
  color: var(--text);
  text-decoration: none;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
}

/* Sections */

.section {
  padding: var(--section-gap) 1.5rem;
}

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.section__title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.section__lead {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.section--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem var(--section-gap);
}

.hero__pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero__eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  font-weight: 800;
}

.hero .lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.hero .lead--secondary {
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.hero__paths {
  margin-top: 2.5rem;
}

/* Audience cards */

.audience-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.audience-card--pro {
  border-color: rgba(77, 159, 255, 0.35);
  background: linear-gradient(160deg, rgba(77, 159, 255, 0.06) 0%, var(--surface-elevated) 60%);
}

.audience-card--everyday {
  border-color: var(--border);
}

.audience-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.audience-card h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
}

.audience-card p {
  color: var(--muted);
  margin: 0;
  flex: 1;
  font-size: 0.9375rem;
}

.audience-card .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  transition: border-color 0.15s;
}

.card:hover {
  border-color: rgba(77, 159, 255, 0.3);
}

.card__icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
  flex-shrink: 0;
}

.card h3 {
  font-size: 1.0625rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
  flex: 1;
}

.card__meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Diagram */

.diagram-frame {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow: hidden;
}

.diagram-frame__caption {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

.diagram-frame img,
.diagram-frame svg {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 720px;
}

/* Before / after */

.before-after {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.before-after__col {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.before-after__col--after {
  border-color: rgba(77, 159, 255, 0.3);
}

.before-after__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.before-after__col--before .before-after__label {
  color: var(--planned);
}

.before-after__col--after .before-after__label {
  color: var(--accent);
}

.before-after ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.before-after li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.625rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.before-after li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--planned);
}

.before-after__col--after li::before {
  background: var(--accent);
}

/* Maturity */

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

.maturity-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.maturity-item__name {
  font-weight: 600;
  font-size: 0.9375rem;
  margin: 0;
}

.maturity-item__desc {
  grid-column: 1;
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0.25rem 0 0;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-badge--available {
  background: var(--success-muted);
  color: var(--success);
}

.status-badge--developing {
  background: var(--warning-muted);
  color: var(--warning);
}

.status-badge--planned {
  background: var(--planned-muted);
  color: var(--planned);
}

.maturity-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.maturity-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

/* Trust strip */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.trust-tile {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.trust-tile__icon {
  width: 1.75rem;
  height: 1.75rem;
  margin: 0 auto 0.625rem;
  color: var(--accent);
}

.trust-tile strong {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.trust-tile span {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Tabs */

.tabs {
  margin-top: 0.5rem;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.tab-list button {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.tab-list button:hover {
  color: var(--text);
  border-color: var(--muted);
}

.tab-list button[aria-selected='true'] {
  background: var(--accent-muted);
  border-color: rgba(77, 159, 255, 0.4);
  color: var(--accent);
}

.tab-panel {
  display: none;
  padding: 1.5rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.tab-panel[aria-hidden='false'] {
  display: block;
}

.tab-panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.tab-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Stage badge */

.stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--accent-muted);
  border: 1px solid rgba(77, 159, 255, 0.25);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 42rem;
}

.stage-badge strong {
  color: var(--text);
}

/* Prose (inner pages) */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

main h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  font-weight: 800;
}

main h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.prose p,
.prose ul {
  color: var(--muted);
}

.prose ul {
  padding-left: 1.25rem;
}

.prose > p:first-of-type {
  font-size: 1.0625rem;
}

.contact-list li {
  margin-bottom: 0.75rem;
}

.contact-list strong {
  color: var(--text);
}

/* Reframe table */

.reframe-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.reframe-table th,
.reframe-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.reframe-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reframe-table td:first-child {
  color: var(--planned);
}

.reframe-table td:last-child {
  color: var(--text);
}

/* Vision label */

.vision-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--warning-muted);
  color: var(--warning);
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* CTA paths */

.cta-paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.cta-path {
  padding: 1.25rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.cta-path h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.cta-path p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.built-with-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.built-with-list li {
  font-size: 0.9375rem;
  color: var(--muted);
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

.section--compact {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.section__link {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
}

.maturity-ladder--compact .maturity-item {
  grid-template-columns: 1fr auto;
  padding: 0.875rem 1rem;
}

.maturity-ladder--compact .maturity-item__desc {
  display: none;
}

.prose--tight p,
.prose--tight li {
  max-width: 38rem;
}

.prose--tight h2 {
  margin-top: 2rem;
}

.card-grid--wedges .card {
  padding: 1.25rem;
}

.card-grid--wedges .card p {
  font-size: 0.875rem;
}

.site-footer__meta {
  margin-top: 1.25rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0 0 0.75rem;
}

.site-footer__stage {
  margin: 1.25rem auto 0;
  max-width: var(--max-width);
}

/* Page hero (inner) */

.page-hero {
  padding: 2.5rem 1.5rem 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
}

.page-hero .lead {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 40rem;
  margin: 0;
}

@media (max-width: 640px) {
  .site-header__inner {
    padding: 0.75rem 1rem;
  }

  .site-nav {
    gap: 0.875rem;
    font-size: 0.8125rem;
  }

  .section {
    padding: 2.25rem 1rem;
  }

  .section--compact {
    padding: 1.75rem 1rem;
  }

  .hero {
    padding: 2.25rem 1rem 2.5rem;
  }

  .hero .lead br {
    display: none;
  }

  main {
    padding: 2rem 1rem 3rem;
  }

  .diagram-frame {
    padding: 1rem;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .trust-tile {
    padding: 1rem 0.5rem;
  }

  .trust-tile span {
    font-size: 0.6875rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .built-with-list {
    grid-template-columns: 1fr;
  }

  .before-after {
    gap: 0.875rem;
  }

  .maturity-item {
    grid-template-columns: 1fr;
  }

  .maturity-item .status-badge {
    justify-self: start;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }
}
