:root {
  --shell-topbar: #56657a;
  --shell-sidebar: #66758a;
  --shell-active: #536278;
  --surface-app: #f1f4f6;
  --surface-panel: #f7f9fa;
  --surface-card: #fcfdfe;
  --surface-elevated: #ffffff;
  --border: #d8e0e5;
  --border-strong: #c8d3da;
  --text: #25292d;
  --text-secondary: #62686e;
  --text-muted: #737d85;
  --nav-text: #f5f7f8;
  --teal: #0f7f91;
  --teal-hover: #168c9e;
  --teal-dark: #0a6878;
  --teal-soft: #ddf1f4;
  --red: #c62828;
  --orange: #e65100;
  --amber: #f9a825;
  --shadow: 0 18px 55px rgba(37, 41, 45, 0.12);
  --radius: 10px;
  --radius-lg: 20px;
  --shell-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--surface-app);
  color: var(--text);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(calc(100% - 40px), var(--shell-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface-elevated);
  color: var(--text);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(216, 224, 229, 0.35);
  background: rgba(86, 101, 122, 0.96);
  color: var(--nav-text);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand > span:last-child {
  display: grid;
}

.brand strong {
  font-size: 0.94rem;
  letter-spacing: -0.01em;
}

.brand small {
  color: #dee3e8;
  font-size: 0.68rem;
  font-weight: 600;
}

.app-logo {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: #dee3e8;
  color: var(--text);
}

.app-logo svg {
  width: 26px;
  height: 26px;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  font-size: 0.78rem;
  font-weight: 700;
}

.primary-nav a {
  padding: 9px 11px;
  border-radius: 9px;
  color: #dee3e8;
  transition: color 160ms ease, background 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: rgba(245, 247, 248, 0.08);
  color: #ffffff;
}

.primary-nav .nav-featured {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 3px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

.primary-nav .nav-license {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.primary-nav .nav-license:hover,
.primary-nav .nav-license:focus-visible {
  background: #ffffff;
  color: var(--teal-dark);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 78px;
  background:
    radial-gradient(circle at 82% 16%, rgba(15, 127, 145, 0.16), transparent 28%),
    radial-gradient(circle at 5% 80%, rgba(86, 101, 122, 0.13), transparent 27%),
    var(--surface-app);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(86, 101, 122, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 101, 122, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to right, black, transparent 70%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: 58px;
}

.hero-direction {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 7px 12px;
  border: 1px solid rgba(15, 127, 145, 0.25);
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-direction-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 127, 145, 0.12);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 22px;
  height: 2px;
  background: var(--teal);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 670px;
  margin-bottom: 22px;
  font-size: clamp(2.34rem, 4.68vw, 4.725rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

h3 {
  margin-bottom: 9px;
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.hero-lead,
.section-copy {
  max-width: 670px;
  color: var(--text-secondary);
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 36px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--teal);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--teal-hover);
}

.button-secondary {
  border-color: var(--border-strong);
  background: var(--surface-card);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
}

.hero-facts div {
  min-width: 112px;
  padding: 0 20px;
  border-left: 1px solid var(--border-strong);
}

.hero-facts div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-facts dt {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 850;
}

.hero-facts dd {
  margin: 1px 0 0;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  width: 116%;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
  transform-origin: left center;
}

.hero-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.trust-strip {
  border-block: 1px solid var(--border);
  background: var(--surface-panel);
}

.trust-items {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow-x: auto;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.demo-section .section-heading {
  margin-bottom: 0;
}

.demo-section .video-frame {
  width: 100%;
  max-width: none;
  margin-top: 36px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.demo-section .video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.section {
  padding: 96px 0;
}

.section-tinted {
  border-block: 1px solid var(--border);
  background: var(--surface-panel);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.65fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  margin-bottom: 4px;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card {
  position: relative;
  min-height: 242px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-card);
  transition: border-color 170ms ease, transform 170ms ease, box-shadow 170ms ease;
}

.feature-card:hover {
  border-color: rgba(15, 127, 145, 0.52);
  box-shadow: 0 14px 35px rgba(37, 41, 45, 0.07);
  transform: translateY(-3px);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.feature-number {
  position: absolute;
  top: 18px;
  right: 20px;
  color: var(--border-strong);
  font-size: 0.66rem;
  font-weight: 900;
}

.feature-icon {
  position: relative;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  border: 1px solid #b7dce1;
  border-radius: 10px;
  background: var(--teal-soft);
}

.feature-icon::before,
.feature-icon::after {
  content: "";
  position: absolute;
}

.icon-ingest::before {
  width: 15px;
  height: 19px;
  top: 9px;
  left: 12px;
  border: 2px solid var(--teal-dark);
  border-radius: 2px;
}

.icon-ingest::after {
  width: 8px;
  height: 2px;
  left: 17px;
  bottom: 8px;
  background: var(--teal-dark);
  box-shadow: 0 -5px var(--teal-dark);
}

.icon-enrich::before {
  inset: 10px;
  border: 2px solid var(--teal-dark);
  border-radius: 50%;
}

.icon-enrich::after {
  width: 16px;
  height: 2px;
  top: 20px;
  left: 13px;
  background: var(--teal-dark);
  box-shadow: 0 0 0 0 var(--teal-dark);
  transform: rotate(-45deg);
}

.icon-impact::before {
  width: 7px;
  height: 7px;
  top: 17px;
  left: 17px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: -10px -8px 0 var(--shell-sidebar), -10px 8px 0 var(--shell-sidebar), 10px 0 0 var(--teal);
}

.icon-impact::after {
  width: 24px;
  height: 1px;
  top: 20px;
  left: 9px;
  background: var(--teal-dark);
}

.icon-score::before {
  width: 20px;
  height: 20px;
  top: 9px;
  left: 9px;
  border: 2px solid var(--teal-dark);
  border-radius: 50%;
}

.icon-score::after {
  width: 2px;
  height: 9px;
  top: 12px;
  left: 20px;
  background: var(--red);
  transform: rotate(38deg);
  transform-origin: bottom;
}

.icon-query::before {
  content: "⌁";
  top: 5px;
  left: 10px;
  color: var(--teal-dark);
  font-size: 26px;
  font-weight: 900;
}

.icon-evidence::before {
  width: 7px;
  height: 7px;
  top: 10px;
  left: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 14px 2px 0 var(--shell-sidebar), 6px 15px 0 var(--orange);
}

.icon-evidence::after {
  width: 18px;
  height: 14px;
  top: 14px;
  left: 12px;
  border-left: 1px solid var(--teal-dark);
  border-bottom: 1px solid var(--teal-dark);
  transform: rotate(-16deg);
}

.feature-tag {
  position: absolute;
  bottom: 20px;
  left: 24px;
  padding: 4px 8px;
  border: 1px solid #bfdde2;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.63rem;
  font-weight: 800;
}

.product-tour {
  overflow: hidden;
}

.tour-feature {
  display: grid;
  grid-template-columns: minmax(250px, 0.42fr) minmax(0, 1fr);
  align-items: center;
  gap: 42px;
  margin-top: 48px;
}

.tour-feature:first-of-type {
  margin-top: 0;
}

.tour-feature-reverse {
  grid-template-columns: minmax(250px, 0.38fr) minmax(0, 1fr);
}

.tour-copy h3 {
  margin: 8px 0 11px;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.tour-copy p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.tour-step {
  color: var(--teal-dark);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.advanced-user-note {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 12px;
  padding: 5px 9px;
  border: 1px solid #bfdde2;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.62rem;
  font-weight: 850;
}

.screenshot-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface-elevated);
  box-shadow: 0 14px 42px rgba(37, 41, 45, 0.1);
}

.screenshot-frame img {
  width: 100%;
  height: auto;
  background: var(--surface-app);
}

.screenshot-frame figcaption {
  padding: 9px 13px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 750;
}

.tour-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 62px;
}

.tour-card {
  display: grid;
  gap: 20px;
  align-content: space-between;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
}

.tour-card .tour-copy h3 {
  font-size: 1.25rem;
}

.tour-card .screenshot-frame {
  box-shadow: 0 8px 24px rgba(37, 41, 45, 0.08);
}

.screenshot-stack {
  position: relative;
  padding: 0 24px 30px 0;
}

.stacked-frame {
  width: 72%;
  margin: -13% 0 0 auto;
  border-color: rgba(15, 127, 145, 0.48);
}

.tour-impact {
  margin-top: 72px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 35%, rgba(15, 127, 145, 0.08), transparent 32%),
    var(--surface-elevated);
}

.tour-impact-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1fr);
  gap: 10px 50px;
  align-items: end;
  margin-bottom: 28px;
}

.tour-impact-heading .tour-step {
  grid-column: 1 / -1;
}

.tour-impact-heading h3 {
  margin-bottom: 0;
}

.impact-screenshots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.impact-screenshots .screenshot-frame:nth-child(3) {
  grid-column: 1 / -1;
}

.tour-pair-final {
  margin-top: 62px;
}

.architecture-board {
  display: grid;
  grid-template-columns: 1fr 1fr 1.18fr 0.95fr;
  align-items: center;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(86, 101, 122, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 101, 122, 0.035) 1px, transparent 1px),
    var(--surface-elevated);
  background-size: 30px 30px;
}

.architecture-column {
  display: grid;
  justify-items: center;
  gap: 9px;
}

.column-label {
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flow-card {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-card);
  box-shadow: 0 5px 14px rgba(37, 41, 45, 0.04);
}

.flow-card strong,
.flow-card small {
  display: block;
}

.flow-card strong {
  margin-top: 5px;
  font-size: 0.78rem;
}

.flow-card small {
  color: var(--text-muted);
  font-size: 0.64rem;
}

.flow-type {
  color: var(--teal-dark);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.flow-arrow {
  color: var(--teal);
  font-size: 1rem;
}

.graph-core {
  position: relative;
  display: grid;
  min-height: 250px;
  place-items: center;
}

.graph-core > div:last-child {
  position: relative;
  z-index: 2;
  display: grid;
  width: 148px;
  height: 148px;
  place-content: center;
  border: 1px solid var(--teal-dark);
  border-radius: 50%;
  background: var(--shell-topbar);
  color: var(--nav-text);
  text-align: center;
  box-shadow: 0 0 0 11px rgba(15, 127, 145, 0.11);
}

.graph-core small,
.graph-core span {
  color: #dee3e8;
  font-size: 0.61rem;
}

.graph-core strong {
  margin: 3px 0;
  font-size: 1rem;
}

.core-orbit {
  position: absolute;
  border: 1px dashed rgba(15, 127, 145, 0.4);
  border-radius: 50%;
}

.orbit-one { width: 200px; height: 200px; }
.orbit-two { width: 240px; height: 240px; }

.core-dot {
  position: absolute;
  z-index: 3;
  width: 9px;
  height: 9px;
  border: 2px solid var(--surface-elevated);
  border-radius: 50%;
  background: var(--teal);
}

.dot-one { top: 32px; right: 51px; }
.dot-two { bottom: 37px; left: 44px; background: var(--red); }
.dot-three { bottom: 20px; right: 75px; background: var(--amber); }

.read-list {
  display: grid;
  width: 100%;
  gap: 8px;
}

.read-list span {
  padding: 10px 12px;
  border-left: 3px solid var(--teal);
  border-radius: 0 7px 7px 0;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

.architecture-map {
  display: grid;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(86, 101, 122, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 101, 122, 0.035) 1px, transparent 1px),
    var(--surface-elevated);
  background-size: 30px 30px;
}

.architecture-progress {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0;
  padding: 6px 10px;
  border: 1px solid rgba(15, 127, 145, 0.28);
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.architecture-progress span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 127, 145, 0.12);
}

.architecture-layer {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(252, 253, 254, 0.94);
  box-shadow: 0 7px 20px rgba(37, 41, 45, 0.045);
}

.architecture-layer-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}

.architecture-layer-heading > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--shell-topbar);
  color: var(--nav-text);
  font-size: 0.64rem;
  font-weight: 900;
}

.architecture-layer-heading strong,
.architecture-layer-heading small {
  display: block;
}

.architecture-layer-heading strong {
  font-size: 0.9rem;
}

.architecture-layer-heading small {
  margin-top: 1px;
  color: var(--text-muted);
  font-size: 0.67rem;
}

.architecture-node-grid {
  display: grid;
  gap: 12px;
}

.architecture-node-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.architecture-node {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-card);
}

.architecture-node strong,
.architecture-node small {
  display: block;
}

.architecture-node strong {
  margin: 5px 0 2px;
  font-size: 0.78rem;
}

.architecture-node small {
  color: var(--text-muted);
  font-size: 0.64rem;
}

.architecture-node-accent {
  border-color: rgba(15, 127, 145, 0.3);
  background: var(--teal-soft);
}

.architecture-connector {
  display: grid;
  min-height: 58px;
  place-content: center;
  color: var(--teal);
  font-size: 1.15rem;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.architecture-connector span {
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.architecture-connector-split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.architecture-connector-split span {
  margin: 0 3px 0 0;
}

.architecture-connector-split b {
  color: var(--text-muted);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.symbolic-layer {
  border-color: rgba(15, 127, 145, 0.35);
  background: linear-gradient(135deg, rgba(221, 241, 244, 0.84), rgba(252, 253, 254, 0.97));
}

.symbolic-layout {
  display: grid;
  grid-template-columns: minmax(200px, 0.68fr) minmax(0, 1.32fr);
  gap: 16px;
}

.architecture-graph-core {
  display: grid;
  min-height: 150px;
  place-content: center;
  padding: 22px;
  border-radius: 14px;
  background: var(--shell-topbar);
  color: var(--nav-text);
  text-align: center;
  box-shadow: 0 0 0 7px rgba(15, 127, 145, 0.1);
}

.architecture-graph-core span,
.architecture-graph-core small {
  color: #dee3e8;
  font-size: 0.62rem;
}

.architecture-graph-core strong {
  margin: 4px 0;
  font-size: 1rem;
}

.architecture-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.architecture-service-grid span {
  display: flex;
  align-items: center;
  padding: 11px 13px;
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.78);
  color: var(--teal-dark);
  font-size: 0.69rem;
  font-weight: 800;
}

.neural-layer {
  border-color: rgba(86, 101, 122, 0.28);
}

.neural-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.neural-path {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-panel);
}

.architecture-path-label {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.57rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.neural-path strong,
.neural-path small {
  display: block;
}

.neural-path strong {
  font-size: 0.8rem;
}

.neural-path p {
  margin: 6px 0 10px;
  color: var(--text-secondary);
  font-size: 0.7rem;
}

.neural-path small {
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 750;
}

.architecture-boundary {
  margin: 13px 0 0;
  padding: 10px 13px;
  border: 1px dashed var(--border-strong);
  border-radius: 9px;
  color: var(--text-secondary);
  font-size: 0.68rem;
  text-align: center;
}

.interface-layer {
  background: var(--shell-topbar);
  color: var(--nav-text);
}

.interface-layer .architecture-layer-heading > span {
  background: var(--teal);
}

.interface-layer .architecture-layer-heading small {
  color: #dee3e8;
}

.architecture-interface-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.architecture-interface-list span {
  display: grid;
  min-height: 56px;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  color: #f5f7f8;
  font-size: 0.65rem;
  font-weight: 800;
  text-align: center;
}

.relationship-model {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 36px;
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
}

.relationship-model h3 {
  margin: 7px 0 9px;
}

.relationship-model p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.relationship-model pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  border: 1px solid #bfdde2;
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--teal-dark);
  font: 700 0.76rem/1.45 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.principles article {
  padding: 18px;
  border-top: 2px solid var(--shell-sidebar);
  background: var(--surface-elevated);
}

.principles strong {
  font-size: 0.78rem;
}

.principles p {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 0.72rem;
}

.quick-start-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: center;
  gap: 80px;
}

.requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}

.requirements span {
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-panel);
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-weight: 750;
}

.terminal {
  overflow: hidden;
  border: 1px solid #445266;
  border-radius: var(--radius-lg);
  background: #303944;
  color: #f5f7f8;
  box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #445266;
}

.terminal-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #788d9b;
}

.terminal-bar strong {
  margin-left: 5px;
  color: #dee3e8;
  font-size: 0.65rem;
}

.terminal pre {
  margin: 0;
  padding: 26px;
  overflow-x: auto;
  font: 0.76rem/1.85 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.comment { color: #9eabb4; }
.prompt { color: #60c2cf; }

.license-section {
  background: var(--surface-elevated);
}

.license-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  padding: 38px 42px;
  border: 1px solid var(--border-strong);
  border-left: 6px solid var(--teal);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 94% 0, rgba(15, 127, 145, 0.12), transparent 34%),
    var(--surface-card);
  box-shadow: var(--shadow);
}

.license-mark {
  display: grid;
  width: 118px;
  height: 118px;
  place-content: center;
  border-radius: 50%;
  background: var(--shell-topbar);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 0 0 10px var(--teal-soft);
}

.license-mark span {
  color: #dee3e8;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.license-mark strong {
  font-size: 2rem;
  line-height: 1.05;
}

.license-copy .eyebrow {
  margin-bottom: 10px;
}

.license-copy h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.license-copy > p:last-child {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--text-secondary);
}

.license-button {
  white-space: nowrap;
}

.roadmap-section {
  background:
    radial-gradient(circle at 12% 30%, rgba(15, 127, 145, 0.24), transparent 24%),
    #445266;
  color: var(--nav-text);
}

.roadmap-shell {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: center;
  gap: 90px;
}

.eyebrow-light {
  color: #bce2e7;
}

.eyebrow-light span {
  background: #bce2e7;
}

.roadmap-shell > div:first-child > p:last-child {
  color: #dee3e8;
}

.roadmap-list {
  display: grid;
  gap: 10px;
}

.roadmap-list article {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: start;
  gap: 16px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.roadmap-list strong {
  font-size: 0.85rem;
}

.roadmap-list p {
  margin: 3px 0 0;
  color: #dee3e8;
  font-size: 0.72rem;
}

.roadmap-state {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.roadmap-state.todo {
  background: rgba(255, 255, 255, 0.13);
  color: #f5f7f8;
}

.roadmap-state.progress {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #36414e;
  color: var(--nav-text);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner > p {
  margin: 0;
  color: #bbc4ca;
  font-size: 0.7rem;
}

.footer-links {
  display: flex;
  gap: 16px;
  color: #dee3e8;
  font-size: 0.7rem;
  font-weight: 750;
}

.footer-links a:hover {
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--teal-hover);
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  .primary-nav a:nth-last-child(-n + 3) {
    display: none;
  }

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

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    width: 100%;
    max-width: 840px;
    transform: none;
  }

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

  .tour-feature,
  .tour-feature-reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tour-feature .tour-copy {
    max-width: 720px;
  }

  .architecture-board {
    grid-template-columns: 1fr 1fr;
  }

  .architecture-interface-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .graph-core {
    grid-row: 2;
  }

  .read-column {
    grid-row: 2;
  }

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

  .quick-start-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .license-card {
    grid-template-columns: auto 1fr;
  }

  .license-button {
    grid-column: 2;
    justify-self: start;
  }

  .roadmap-shell {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

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

  .header-inner {
    min-height: 62px;
  }

  .brand small {
    display: none;
  }

  .primary-nav a {
    display: none;
  }

  .primary-nav .nav-featured,
  .primary-nav .nav-license {
    display: inline-flex;
    padding: 8px 9px;
  }

  .hero {
    padding: 64px 0 56px;
  }

  h1 {
    font-size: clamp(2.34rem, 11.7vw, 3.69rem);
  }

  .hero-grid {
    gap: 38px;
  }

  .hero-facts div {
    min-width: 92px;
    padding-inline: 12px;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 30px;
  }

  .feature-grid,
  .architecture-board,
  .relationship-model,
  .principles {
    grid-template-columns: 1fr;
  }

  .architecture-map {
    padding: 16px;
  }

  .architecture-node-grid-three,
  .symbolic-layout,
  .neural-paths {
    grid-template-columns: 1fr;
  }

  .architecture-service-grid,
  .architecture-interface-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .architecture-layer {
    padding: 18px;
  }

  .tour-pair,
  .impact-screenshots,
  .tour-impact-heading {
    grid-template-columns: 1fr;
  }

  .tour-impact-heading .tour-step,
  .impact-screenshots .screenshot-frame:nth-child(3) {
    grid-column: auto;
  }

  .tour-card,
  .tour-impact {
    padding: 18px;
  }

  .screenshot-stack {
    padding-right: 0;
  }

  .stacked-frame {
    width: 88%;
  }

  .architecture-board {
    padding: 20px;
  }

  .graph-core,
  .read-column {
    grid-row: auto;
  }

  .roadmap-list article {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .roadmap-state {
    width: max-content;
  }

  .license-card {
    grid-template-columns: 1fr;
    padding: 30px 26px;
  }

  .license-mark {
    width: 96px;
    height: 96px;
  }

  .license-button {
    grid-column: auto;
  }

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

  .footer-inner > p {
    display: none;
  }
}

@media (max-width: 430px) {
  .brand strong {
    font-size: 0.78rem;
  }

  .app-logo {
    width: 31px;
    height: 31px;
  }

  .primary-nav .nav-featured {
    font-size: 0;
  }

  .primary-nav .nav-featured::before {
    content: "GitHub";
    font-size: 0.7rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-facts div {
    min-width: 0;
  }

  .hero-facts dd {
    font-size: 0.59rem;
  }

  .api-card {
    grid-template-columns: 1fr;
  }

  .api-card p {
    grid-column: 1;
  }

  .architecture-service-grid,
  .architecture-interface-list {
    grid-template-columns: 1fr;
  }

  .method {
    width: max-content;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
