: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 h2 {
  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__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(2rem, 5vw, 3.5rem) 1.5rem;
}

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

.hero__grid,
.page-hero__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 2.5vh, 2rem);
  width: 100%;
  min-height: calc(100vh - 4.25rem - 2.5rem);
}

.hero__copy,
.page-hero__grid > div:first-child {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 44rem;
  text-align: center;
  margin: 0 auto;
  flex-shrink: 0;
}

.hero__visual {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(960px, 94vw);
  margin: auto auto 0;
  flex-shrink: 0;
}

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

.hero__tagline {
  margin-left: auto;
  margin-right: auto;
}

.page-hero__badge {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.hero-diagram-frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(77, 159, 255, 0.35);
  background: radial-gradient(ellipse at 50% 40%, rgba(77, 159, 255, 0.16), transparent 65%),
    var(--surface-elevated);
  box-shadow:
    0 0 40px rgba(77, 159, 255, 0.14),
    0 0 80px rgba(52, 211, 153, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.hero-diagram-frame::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg, transparent, rgba(77, 159, 255, 0.18), rgba(52, 211, 153, 0.12), transparent 35%);
  animation: hero-orbit 18s linear infinite;
  pointer-events: none;
}

.hero-diagram-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(77, 159, 255, 0.12) 48%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(77, 159, 255, 0.12) 52%,
    transparent 62%
  );
  background-size: 220% 100%;
  animation: hero-shimmer 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes hero-shimmer {
  0%,
  100% {
    background-position: 120% 0;
  }
  50% {
    background-position: -20% 0;
  }
}

@keyframes hero-orbit {
  to {
    transform: rotate(360deg);
  }
}

.hero-diagram {
  display: block;
  width: 100%;
  height: clamp(280px, 40vh, 440px);
  min-height: 280px;
  position: relative;
  z-index: 1;
}

.hero-diagram--home {
  height: clamp(380px, 52vh, 620px);
  min-height: 380px;
  max-height: none;
}

/* Home hero — tighter copy-to-diagram gap, taller diagram frame */
#top.hero .hero__grid {
  justify-content: flex-start;
  gap: clamp(0.75rem, 1.5vh, 1.25rem);
  min-height: calc(100vh - 4.25rem - 1rem);
}

html.page--snap #top.hero.snap-section {
  justify-content: flex-start;
  padding-top: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: clamp(1rem, 2.5vw, 1.75rem);
}

#top.hero .hero__visual {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-top: 0;
}

#top.hero .hero-diagram-frame,
#top.page-hero.page-hero--stacked .hero-diagram-frame {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: clamp(380px, 50vh, 620px);
}

#top.hero .hero-diagram--home,
#top.page-hero.page-hero--stacked .hero-diagram--platform,
#top.page-hero.page-hero--stacked .hero-diagram--products,
#top.page-hero.page-hero--stacked .hero-diagram--governance,
#top.page-hero.page-hero--stacked .hero-diagram--investors {
  flex: 1 1 auto;
  height: 100%;
  min-height: clamp(380px, 50vh, 620px);
  position: relative;
  width: 100%;
  max-height: none;
}

/* Non-stacked page heroes — side-by-side layout with absolute diagram fill */
#top.page-hero:not(.page-hero--stacked) .hero-diagram--platform,
#top.page-hero:not(.page-hero--stacked) .hero-diagram--products,
#top.page-hero:not(.page-hero--stacked) .hero-diagram--investors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center center;
}

.hero-diagram--investors {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: clamp(300px, 42vh, 480px);
  max-height: none;
}

.hero-diagram--stack {
  height: clamp(320px, 48vh, 520px);
  max-height: 52vh;
}

.hero-diagram--wide {
  height: clamp(200px, 30vh, 300px);
  min-height: 200px;
  max-height: 36vh;
}

/* Page heroes with side-by-side layout (investors, contact, etc.) */
html.page--snap .page-hero.snap-section#top:not(.page-hero--stacked) {
  justify-content: center;
  padding-top: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: clamp(1rem, 2.5vw, 1.75rem);
}

html.page--snap .page-hero.snap-section#top:not(.page-hero--stacked) .page-hero__grid {
  justify-content: center;
  align-items: stretch;
  gap: clamp(1rem, 2vh, 1.5rem);
  min-height: calc(100vh - 4.25rem - 1.5rem);
  width: 100%;
}

/* Stacked page heroes — text above diagram (matches home) */
html.page--snap .page-hero.page-hero--stacked.snap-section#top {
  justify-content: flex-start;
  padding-top: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: clamp(1rem, 2.5vw, 1.75rem);
}

html.page--snap .page-hero.page-hero--stacked.snap-section#top .page-hero__grid {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: clamp(0.75rem, 1.5vh, 1.25rem);
  min-height: calc(100vh - 4.25rem - 1rem);
  width: 100%;
}

html.page--snap .page-hero.page-hero--stacked.snap-section#top .hero__copy,
html.page--snap .page-hero.page-hero--stacked.snap-section#top .page-hero__grid > div:first-child {
  flex: 0 0 auto;
  max-width: 44rem;
  text-align: center;
  align-self: center;
  margin: 0 auto;
}

html.page--snap .page-hero.page-hero--copy-only.snap-section#top .page-hero__grid {
  min-height: 0;
  justify-content: center;
}

html.page--snap .page-hero.page-hero--copy-only.snap-section#top {
  justify-content: center;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

#top.page-hero.page-hero--stacked .hero__visual {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  max-width: min(960px, 94vw);
  margin: 0 auto;
}

#top.page-hero:not(.page-hero--stacked) .hero__visual {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-top: 0;
}

#top.page-hero:not(.page-hero--stacked) .hero-diagram-frame {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: clamp(280px, 44vh, 480px);
}

.hero .lead--tagline,
.page-hero .lead--tagline {
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  max-width: 20rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  font-weight: 500;
}

@media (min-width: 960px) {
  html.page--snap .page-hero.snap-section#top:not(.page-hero--stacked) .page-hero__grid {
    flex-direction: row;
    align-items: stretch;
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }

  html.page--snap .page-hero.snap-section#top:not(.page-hero--stacked) .page-hero__grid > div:first-child {
    flex: 0 0 min(20rem, 32%);
    max-width: 20rem;
    text-align: left;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
  }

  html.page--snap .page-hero.snap-section#top:not(.page-hero--stacked) .page-hero__grid h1 {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  html.page--snap .page-hero.snap-section#top:not(.page-hero--stacked) .hero__eyebrow {
    text-align: left;
  }

  html.page--snap .page-hero.snap-section#top:not(.page-hero--stacked) .lead--tagline {
    margin-left: 0;
    margin-right: 0;
  }

  html.page--snap .page-hero.snap-section#top:not(.page-hero--stacked) .hero__actions,
  html.page--snap .page-hero.snap-section#top:not(.page-hero--stacked) .page-hero__grid .btn {
    align-self: flex-start;
  }

  html.page--snap .page-hero.snap-section#top:not(.page-hero--stacked) .hero__visual {
    flex: 1 1 auto;
    max-width: none;
    margin: 0;
    display: flex;
    min-height: 0;
  }

  html.page--snap .page-hero.snap-section#top:not(.page-hero--stacked) .hero-diagram-frame {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: clamp(320px, 54vh, 520px);
  }

  html.page--snap .page-hero.snap-section#top:not(.page-hero--stacked) .hero-diagram--platform,
  html.page--snap .page-hero.snap-section#top:not(.page-hero--stacked) .hero-diagram--products,
  html.page--snap .page-hero.snap-section#top:not(.page-hero--stacked) .hero-diagram--investors {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center center;
  }
}

@media (max-width: 959px) {
  html.page--snap .page-hero.snap-section#top:not(.page-hero--stacked) .page-hero__grid > div:first-child {
    text-align: center;
  }

  html.page--snap .page-hero.snap-section#top:not(.page-hero--stacked) .lead--tagline {
    margin-left: auto;
    margin-right: auto;
  }

  #top.page-hero:not(.page-hero--stacked) .hero__visual {
    flex: 0 0 auto;
  }

  #top.page-hero:not(.page-hero--stacked) .hero-diagram-frame {
    flex: 0 0 auto;
    aspect-ratio: 880 / 520;
    width: 100%;
    height: auto;
    max-height: min(46vh, 440px);
    min-height: 0;
  }

  #top.page-hero:not(.page-hero--stacked) .hero-diagram--platform,
  #top.page-hero:not(.page-hero--stacked) .hero-diagram--products,
  #top.page-hero:not(.page-hero--stacked) .hero-diagram--investors {
    position: absolute;
    inset: 0;
  }

  #top.page-hero.page-hero--stacked .hero-diagram-frame {
    flex: 1 1 auto;
    min-height: clamp(300px, 42vh, 480px);
  }
}

/* Full-page section scroll (homepage) */

html.page--snap {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scroll-padding-top: 4.25rem;
}

html.page--snap .snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: calc(100vh - 4.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

html.page--snap .hero.snap-section {
  min-height: calc(100vh - 4.25rem);
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

html.page--snap .snap-section--tall {
  scroll-snap-stop: normal;
  justify-content: flex-start;
  padding-top: clamp(2rem, 5vh, 3rem);
  padding-bottom: clamp(2rem, 5vh, 3rem);
}

html.page--snap .snap-section--footer {
  min-height: calc(100vh - 4.25rem);
  justify-content: center;
}

html.page--snap .section.snap-section {
  padding-top: clamp(2rem, 5vh, 3rem);
  padding-bottom: clamp(2rem, 5vh, 3rem);
}

html.page--snap main.snap-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

html.page--snap .page-hero.snap-section {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: clamp(2rem, 5vw, 3rem) 1.5rem;
  min-height: calc(100vh - 4.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

html.page--snap .page-hero.snap-section .page-hero__grid,
html.page--snap .page-hero.snap-section .hero__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

html.page--snap .prose-section.snap-section {
  min-height: calc(100vh - 4.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vh, 3rem) 1.5rem;
}

html.page--snap .prose-section.snap-section--tall {
  scroll-snap-stop: normal;
  justify-content: flex-start;
}

html.page--snap .snap-panel {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

html.page--snap .snap-panel h2 {
  margin-top: 0;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

html.page--snap .snap-panel h2:not(:first-child) {
  margin-top: 2rem;
}

html.page--snap .site-footer.snap-section {
  min-height: auto;
  scroll-snap-align: end;
  padding: 2rem 1.5rem 2.5rem;
}

.section-rail {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 999px;
  background: rgba(15, 20, 28, 0.75);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.section-rail a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.35rem;
}

.section-rail a::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.15s, transform 0.15s;
}

.section-rail a span {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.15s, max-width 0.15s;
}

.section-rail a:hover span,
.section-rail a.is-active span {
  opacity: 1;
  max-width: 6rem;
}

.section-rail a:hover::before,
.section-rail a.is-active::before {
  background: var(--accent);
  transform: scale(1.15);
}

.section-rail a.is-active {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  html.page--snap {
    scroll-snap-type: none;
    scroll-behavior: auto;
  }

  html.page--snap .snap-section {
    min-height: 0;
    scroll-snap-stop: normal;
  }

  .hero-diagram-frame::before {
    animation: none;
  }

  .hero-diagram-frame::after {
    animation: none;
    opacity: 0.35;
  }
}

@media (max-width: 960px) {
  .hero__grid,
  .page-hero__grid {
    min-height: calc(100vh - 4.25rem - 1.5rem);
  }

  .hero-diagram {
    height: clamp(240px, 34vh, 360px);
    min-height: 240px;
  }

  .hero-diagram--stack {
    height: clamp(260px, 36vh, 400px);
  }

  #top.hero .hero-diagram-frame,
  #top.hero .hero-diagram--home,
  #top.page-hero.page-hero--stacked .hero-diagram-frame,
  #top.page-hero.page-hero--stacked .hero-diagram--platform,
  #top.page-hero.page-hero--stacked .hero-diagram--products,
  #top.page-hero.page-hero--stacked .hero-diagram--governance,
  #top.page-hero.page-hero--stacked .hero-diagram--investors {
    min-height: clamp(300px, 42vh, 480px);
  }

  #top.hero .hero-diagram--home,
  #top.page-hero.page-hero--stacked .hero-diagram--platform,
  #top.page-hero.page-hero--stacked .hero-diagram--products,
  #top.page-hero.page-hero--stacked .hero-diagram--governance,
  #top.page-hero.page-hero--stacked .hero-diagram--investors {
    height: clamp(300px, 42vh, 480px);
  }

  .section-rail {
    display: none;
  }

  html.page--snap {
    scroll-snap-type: none;
  }
}

.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,
.page-hero .lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}

.hero__tagline {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}

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

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

.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: 780px;
  height: auto;
}

/* Architecture diagram (nested layers) */

.arch-diagram {
  margin: 1.5rem auto 0;
  max-width: 36rem;
}

.arch-diagram__layer {
  border: 1px solid rgba(77, 159, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.arch-diagram__layer--outer {
  background: rgba(77, 159, 255, 0.06);
  text-align: center;
}

.arch-diagram__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.arch-diagram__layer--inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  background: var(--surface-elevated);
  padding: 1.25rem;
  margin: 0;
}

.arch-diagram__pill {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

/* 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--testing {
  background: var(--accent-muted);
  color: var(--accent);
}

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

/* Control grid */

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

.control-tile {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.control-tile h3,
.control-tile strong {
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 600;
}

.control-tile p,
.control-tile span {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

/* Four-tab studio + Helper */

.studio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
  margin: 1.25rem 0;
}

.studio-grid .control-tile h3 {
  font-size: 1rem;
}

.helper-callout {
  margin: 1.25rem 0 0;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
}

.helper-callout h3 {
  margin: 0 0 0.375rem;
  font-size: 1rem;
  font-weight: 600;
}

.helper-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Compare & layer tables */

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

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

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

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

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

.prose-note {
  font-size: 0.875rem;
  color: var(--muted);
  font-style: italic;
}

/* Governed run steps */

.run-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: run-step;
}

.run-steps li {
  position: relative;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  text-align: center;
}

.run-steps li:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  z-index: 1;
  pointer-events: none;
}

.run-steps strong {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.run-steps span {
  display: block;
  color: var(--muted);
}

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

.audience-list li {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.125rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.audience-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.maturity-legend-inline {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
  line-height: 1.5;
}

.page-hero__badge {
  margin-top: 1rem;
}

/* 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 auto 0.75rem;
  text-align: center;
}

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

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

  .run-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .run-steps li:not(:last-child)::after {
    display: none;
  }

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

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

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