@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #eef2f6;
  --bg-glow-1: rgba(29, 78, 216, 0.08);
  --bg-glow-2: rgba(14, 116, 144, 0.08);
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #0f172a;
  --muted: #5b687a;
  --line: rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.15);
  --accent: #0e7490;
  --accent-2: #1d4ed8;
  --accent-soft: rgba(14, 116, 144, 0.11);
  --accent-soft-2: rgba(29, 78, 216, 0.1);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 12px 34px rgba(15, 23, 42, 0.06);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, var(--bg-glow-1), transparent 30%),
    radial-gradient(circle at top right, var(--bg-glow-2), transparent 24%),
    linear-gradient(180deg, #fcfdff 0%, var(--bg) 100%);
  line-height: 1.6;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
  z-index: -1;
}

body::before {
  top: -8rem;
  right: -8rem;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 70%);
}

body::after {
  bottom: -10rem;
  left: -8rem;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.12), transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
summary {
  font: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

h3 {
  font-size: clamp(1rem, 1.45vw, 1.2rem);
}

p,
li {
  font-size: 1rem;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

pre,
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

pre {
  margin: 0;
  overflow: auto;
}

.shell {
  width: min(var(--max-width), calc(100vw - 2rem));
  margin-inline: auto;
}

.site {
  position: relative;
  --hero-copy-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.9));
  --hero-copy-border: var(--accent);
  --hero-panel-bg: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96));
  --hero-panel-text: #e2e8f0;
  --hero-panel-heading: #ffffff;
  --hero-panel-note-bg: rgba(255, 255, 255, 0.1);
  --hero-panel-note-border: rgba(255, 255, 255, 0.12);
  --section-rule: var(--accent-soft-2);
  --page-footer-start: rgba(248, 250, 252, 0.92);
  --page-footer-end: rgba(240, 244, 248, 0.9);
}

.site.page--editorial {
  --bg-glow-1: rgba(29, 78, 216, 0.09);
  --bg-glow-2: rgba(14, 116, 144, 0.08);
  --accent: #0e7490;
  --accent-2: #1d4ed8;
}

.site.page--index {
  --bg-glow-1: rgba(245, 158, 11, 0.1);
  --bg-glow-2: rgba(59, 130, 246, 0.08);
  --accent: #b45309;
  --accent-2: #1d4ed8;
  --hero-copy-border: #b45309;
  --hero-panel-bg: linear-gradient(135deg, rgba(83, 45, 1, 0.98), rgba(154, 52, 18, 0.96));
}

.site.page--product {
  --bg-glow-1: rgba(37, 99, 235, 0.1);
  --bg-glow-2: rgba(14, 165, 233, 0.08);
  --accent: #1d4ed8;
  --accent-2: #0ea5e9;
  --hero-copy-border: #1d4ed8;
}

.site.page--ai {
  --bg-glow-1: rgba(124, 58, 237, 0.1);
  --bg-glow-2: rgba(37, 99, 235, 0.08);
  --accent: #7c3aed;
  --accent-2: #1d4ed8;
  --hero-copy-border: #7c3aed;
  --hero-panel-bg: linear-gradient(135deg, rgba(29, 8, 85, 0.98), rgba(67, 56, 202, 0.96));
}

.site.page--blueprint {
  --bg-glow-1: rgba(71, 85, 105, 0.09);
  --bg-glow-2: rgba(245, 158, 11, 0.08);
  --accent: #475569;
  --accent-2: #f59e0b;
  --hero-copy-border: #475569;
  --hero-panel-bg: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(71, 85, 105, 0.96));
}

.site.page--operations {
  --bg-glow-1: rgba(16, 185, 129, 0.1);
  --bg-glow-2: rgba(6, 182, 212, 0.08);
  --accent: #059669;
  --accent-2: #06b6d4;
  --hero-copy-border: #059669;
  --hero-panel-bg: linear-gradient(135deg, rgba(6, 78, 59, 0.98), rgba(8, 145, 178, 0.95));
}

.site.page--data {
  --bg-glow-1: rgba(14, 165, 233, 0.1);
  --bg-glow-2: rgba(29, 78, 216, 0.08);
  --accent: #0284c7;
  --accent-2: #1d4ed8;
  --hero-copy-border: #0284c7;
}

.site.page--ops {
  --bg-glow-1: rgba(34, 197, 94, 0.1);
  --bg-glow-2: rgba(14, 116, 144, 0.08);
  --accent: #16a34a;
  --accent-2: #0e7490;
  --hero-copy-border: #16a34a;
}

.site.page--proof {
  --bg-glow-1: rgba(234, 179, 8, 0.1);
  --bg-glow-2: rgba(15, 23, 42, 0.08);
  --accent: #ca8a04;
  --accent-2: #1d4ed8;
  --hero-copy-border: #ca8a04;
  --hero-panel-bg: linear-gradient(135deg, rgba(66, 32, 6, 0.98), rgba(120, 53, 15, 0.95));
}

.site.page--roadmap {
  --bg-glow-1: rgba(168, 85, 247, 0.1);
  --bg-glow-2: rgba(37, 99, 235, 0.08);
  --accent: #7c3aed;
  --accent-2: #2563eb;
  --hero-copy-border: #7c3aed;
}

.site.page--contact {
  --bg-glow-1: rgba(20, 184, 166, 0.1);
  --bg-glow-2: rgba(37, 99, 235, 0.08);
  --accent: #0f766e;
  --accent-2: #2563eb;
  --hero-copy-border: #0f766e;
}

.site.page--legal {
  --bg-glow-1: rgba(100, 116, 139, 0.08);
  --bg-glow-2: rgba(148, 163, 184, 0.08);
  --accent: #475569;
  --accent-2: #64748b;
  --hero-copy-border: #475569;
  --hero-panel-bg: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(71, 85, 105, 0.95));
}

.site.page--code {
  --bg-glow-1: rgba(30, 64, 175, 0.1);
  --bg-glow-2: rgba(15, 118, 110, 0.08);
  --accent: #1d4ed8;
  --accent-2: #0f766e;
  --hero-copy-border: #1d4ed8;
  --hero-panel-bg: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 118, 110, 0.96));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(252, 253, 255, 0.88);
  backdrop-filter: blur(22px);
}

.header-bar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0 0.55rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, var(--accent-2), var(--accent)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  box-shadow: var(--shadow-soft);
}

.brand-copy {
  display: grid;
  gap: 0.12rem;
}

.brand-copy strong {
  font-size: 1rem;
  line-height: 1;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex: 1;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.nav-toggle-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.nav-toggle-btn span + span {
  margin-top: 4px;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.desktop-nav {
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.5rem 0.82rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #445062;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 24;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(88vw, 340px);
  height: 100vh;
  padding: 1rem;
  display: grid;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.96);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 50px rgba(15, 23, 42, 0.12);
  transform: translateX(102%);
  transition: transform 220ms ease;
  z-index: 25;
  backdrop-filter: blur(20px);
  overflow-y: auto;
}

.mobile-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.drawer-close {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  color: var(--text);
  font-size: 1rem;
}

.drawer-nav {
  display: grid;
  gap: 0.5rem;
}

.drawer-nav .nav-link {
  justify-content: flex-start;
  width: 100%;
  min-height: 44px;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  font-size: 0.98rem;
}

.drawer-meta {
  display: grid;
  gap: 0.6rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

#menu-toggle:checked ~ .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

#menu-toggle:checked ~ .mobile-drawer {
  transform: translateX(0);
}

.page {
  padding: 1.7rem 0 4rem;
}

.page-layout {
  display: grid;
  gap: 1.15rem;
  align-items: start;
}

.page-layout__hero,
.page-layout__rail,
.page-layout__content {
  min-width: 0;
}

.page-layout__hero {
  grid-area: hero;
}

.page-layout__rail {
  grid-area: rail;
  display: grid;
  gap: 1rem;
}

.page-layout__content {
  grid-area: content;
  display: grid;
  gap: 1.35rem;
}

.page-layout__rail > .section,
.page-layout__content > .section {
  margin-top: 0;
}

.page-layout--editorial,
.page-layout--operations,
.page-layout--contact,
.page-layout--catalog,
.page-layout--blueprint,
.page-layout--code,
.page-layout--studio,
.page-layout--reference,
.page-layout--proof,
.page-layout--roadmap,
.page-layout--legal {
  grid-template-columns: 1fr;
  grid-template-areas:
    "hero"
    "rail"
    "content";
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 1rem 0 auto auto;
  width: min(32vw, 22rem);
  height: 14rem;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(29, 78, 216, 0.12), rgba(14, 116, 144, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
  filter: blur(0.2px);
  pointer-events: none;
  z-index: 0;
}

.hero-copy,
.hero-panel,
.stat-card,
.card,
.split-card,
.contact-card,
.details-card,
.timeline-item,
.faq-item,
.table-card,
.code-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.hero-copy {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  display: grid;
  gap: 1rem;
  align-content: start;
  position: relative;
  z-index: 1;
  background: var(--hero-copy-bg);
  border-left: 5px solid var(--hero-copy-border);
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(1.55rem, 2.1vw, 2.2rem);
  line-height: 1.04;
}

.hero--compact .hero-copy {
  padding: clamp(1.15rem, 2.4vw, 1.8rem);
}

.hero--compact .hero-copy h1 {
  max-width: 14ch;
  font-size: clamp(1.38rem, 1.9vw, 1.95rem);
}

.hero--compact .hero-panel {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.page-layout--code .hero-copy,
.page-layout--legal .hero-copy {
  border-left-width: 4px;
}

.page-layout--legal .page-layout__content {
  gap: 1rem;
}

.page-layout--code .page-layout__content {
  gap: 1rem;
}

.page-layout--code .code-card pre {
  font-size: 0.86rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.eyebrow::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.8;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.76rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--line);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--line-strong);
  background: #fff;
}

.btn--with-icon {
  padding-right: 0.98rem;
}

.btn-icon {
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  font-size: 0.95rem;
  line-height: 1;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease;
}

.admin-link:hover,
.admin-link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: #fff;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: #4b5868;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-panel {
  padding: clamp(1.2rem, 2.5vw, 2rem);
  display: grid;
  gap: 0.9rem;
  align-content: start;
  position: relative;
  z-index: 1;
  background: var(--hero-panel-bg);
  color: var(--hero-panel-text);
}

.hero-panel h2 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--hero-panel-heading);
}

.panel-list,
.checklist,
.bullet-list {
  display: grid;
  gap: 0.7rem;
}

.panel-list li,
.checklist li,
.bullet-list li {
  display: grid;
  gap: 0.2rem;
  color: var(--muted);
}

.panel-list strong,
.checklist strong {
  color: var(--text);
}

.hero-panel .panel-list li,
.hero-panel .panel-list strong,
.hero-panel .panel-list span {
  color: var(--hero-panel-text);
}

.panel-note {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--hero-panel-note-bg);
  color: var(--hero-panel-heading);
  border: 1px solid var(--hero-panel-note-border);
  font-weight: 700;
}

.section {
  margin-top: 1.35rem;
  display: grid;
  gap: 1rem;
}

.section-head {
  display: grid;
  gap: 0.45rem;
  max-width: 70ch;
  padding-left: 1rem;
  border-left: 3px solid var(--section-rule);
}

.section-head p {
  color: var(--muted);
}

.section-kicker {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.stat-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.95rem;
}

.stat-card {
  grid-column: span 3;
  padding: 1rem 1.05rem;
  display: grid;
  gap: 0.3rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.05), rgba(14, 116, 144, 0.04));
  pointer-events: none;
  z-index: 0;
}

.stat-card > * {
  position: relative;
  z-index: 1;
}

.stat-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  letter-spacing: -0.04em;
}

.stat-card span {
  color: var(--muted);
  font-weight: 700;
}

.stat-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.card {
  padding: 1rem 1.05rem;
  display: grid;
  gap: 0.7rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 255, 255, 0.88)),
    var(--surface);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.card:hover,
.split-card:hover,
.stat-card:hover,
.contact-card:hover,
.timeline-item:hover,
.faq-item:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.card p,
.card li {
  color: var(--muted);
}

.card-grid > .card {
  grid-column: span 4;
}

.snapshot-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.snapshot-card {
  grid-column: span 3;
}

.snapshot-note {
  grid-column: span 6;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.split-card {
  padding: 1.05rem;
  display: grid;
  gap: 0.8rem;
}

.metric-list {
  display: grid;
  gap: 0.75rem;
}

.metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.metric:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.metric strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.metric span {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  padding: 0.95rem 1rem;
  display: grid;
  gap: 0.4rem;
}

.timeline-item .year {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.details-grid {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  padding: 0.9rem 1rem;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 800;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin-top: 0.8rem;
  color: var(--muted);
}

.table-card {
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

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

.table th {
  color: var(--text);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(15, 23, 42, 0.02);
}

.table tr:last-child td {
  border-bottom: 0;
}

.code-card {
  padding: 0.95rem;
}

.code-card pre {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 35%),
    linear-gradient(180deg, #0f172a, #111827);
  color: #dbeafe;
  font-size: 0.9rem;
  line-height: 1.55;
}

.code-card code {
  color: inherit;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.contact-card {
  grid-column: span 6;
  padding: 1.15rem;
  display: grid;
  gap: 0.65rem;
}

.contact-card a {
  color: var(--accent-2);
  font-weight: 800;
}

.messages-shell {
  gap: 1rem;
}

.messages-app {
  display: grid;
  gap: 1rem;
}

.messages-dashboard,
.messages-login,
.messages-empty {
  padding: 1rem 1.05rem;
}

.messages-dashboard {
  display: grid;
  gap: 1rem;
}

.messages-dashboard__head,
.message-item__head,
.message-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}

.messages-login {
  display: grid;
  gap: 0.9rem;
}

.messages-login h3,
.messages-dashboard h3 {
  font-size: 1.15rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font: inherit;
}

.field input:focus {
  outline: 2px solid var(--accent-soft-2);
  outline-offset: 1px;
}

.messages-actions {
  display: flex;
  justify-content: flex-start;
}

.messages-error {
  color: #b42318;
  font-weight: 700;
}

.messages-list {
  display: grid;
  gap: 0.8rem;
}

.message-item {
  padding: 0.95rem 1rem;
  display: grid;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.message-item strong {
  font-family: "Space Grotesk", sans-serif;
}

.message-item__head span,
.message-item__meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.messages-empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

.footer {
  margin-top: 2rem;
  padding: 1.55rem 0 1.7rem;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  background:
    linear-gradient(180deg, var(--page-footer-start), var(--page-footer-end)),
    rgba(255, 255, 255, 0.42);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.footer-col {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.footer-col h4 {
  font-size: 0.95rem;
}

.footer-col a,
.footer-col p {
  color: var(--muted);
}

.footer-col a {
  width: fit-content;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--text);
}

.footer-note {
  margin-top: 0.85rem;
  padding-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.muted {
  color: var(--muted);
}

@media (max-width: 1080px) {
  .page-layout,
  .page-layout--editorial,
  .page-layout--operations,
  .page-layout--contact,
  .page-layout--catalog,
  .page-layout--blueprint,
  .page-layout--code,
  .page-layout--studio,
  .page-layout--reference,
  .page-layout--proof,
  .page-layout--roadmap,
  .page-layout--legal {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "rail"
      "content";
  }

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

  .header-bar {
    flex-wrap: wrap;
  }

  .stat-card {
    grid-column: span 6;
  }

  .card-grid > .card {
    grid-column: span 6;
  }

  .snapshot-card,
  .snapshot-note {
    grid-column: span 6;
  }

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

  .contact-card {
    grid-column: span 12;
  }

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

@media (max-width: 720px) {
  .shell {
    width: min(var(--max-width), calc(100vw - 1.2rem));
  }

  .header-bar {
    min-height: auto;
    padding: 0.85rem 0;
    align-items: center;
  }

  .header-actions {
    width: auto;
    justify-content: flex-end;
  }

  .desktop-nav {
    display: none;
  }

  .nav-toggle-btn {
    display: inline-grid;
  }

  .mobile-drawer {
    width: min(90vw, 320px);
    padding: 0.9rem;
  }

  .hero::before {
    display: none;
  }

  .hero-copy,
  .hero-panel {
    padding: 1.1rem;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(1.7rem, 8vw, 2.25rem);
  }

  .snapshot-card,
  .snapshot-note {
    grid-column: span 12;
  }

  .section-head {
    padding-left: 0.75rem;
  }

  .page {
    padding-top: 1rem;
  }

  .stat-card,
  .card-grid > .card {
    grid-column: span 12;
  }

  .stat-card {
    grid-column: span 12 !important;
  }

  .card-grid > .card {
    grid-column: span 12 !important;
  }

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

  .footer-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .code-card pre {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-panel,
  .stat-card,
  .card,
  .split-card,
  .contact-card,
  .timeline-item,
  .faq-item,
  .code-card,
  .table-card {
    animation: rise 600ms ease both;
  }

  .stat-card:nth-child(2),
  .card:nth-child(2),
  .split-card:nth-child(2),
  .contact-card:nth-child(2),
  .timeline-item:nth-child(2),
  .faq-item:nth-child(2) {
    animation-delay: 70ms;
  }

  .stat-card:nth-child(3),
  .card:nth-child(3),
  .split-card:nth-child(3),
  .contact-card:nth-child(3),
  .timeline-item:nth-child(3),
  .faq-item:nth-child(3) {
    animation-delay: 130ms;
  }

  .stat-card:nth-child(4),
  .card:nth-child(4),
  .split-card:nth-child(4),
  .contact-card:nth-child(4),
  .timeline-item:nth-child(4),
  .faq-item:nth-child(4) {
    animation-delay: 190ms;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
