:root {
  color-scheme: dark;
  --page: #090b10;
  --page-soft: #0e1117;
  --surface: #12161d;
  --surface-raised: #181d26;
  --glass: rgba(17, 21, 29, 0.72);
  --glass-strong: rgba(17, 21, 29, 0.92);
  --text: #f2f5f9;
  --text-soft: #aab4c2;
  --text-faint: #748092;
  --line: #282f3b;
  --line-strong: #3a4554;
  --accent: #4f80f7;
  --accent-hover: #77a0ff;
  --accent-button: #3267d5;
  --accent-button-hover: #2858bd;
  --accent-soft: #17264a;
  --success: #68c991;
  --terminal: #080a0e;
  --hero-background: #080a0f;
  --shadow: 0 28px 90px rgba(0, 3, 12, 0.48);
  --shadow-soft: 0 16px 48px rgba(0, 3, 12, 0.3);
  --radius: 8px;
  --control-radius: 999px;
  --shell: 1240px;
  --nav-height: 64px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #f4f6f8;
  --page-soft: #e9edf2;
  --surface: #fbfcfd;
  --surface-raised: #eef2f6;
  --glass: rgba(250, 252, 254, 0.76);
  --glass-strong: rgba(250, 252, 254, 0.94);
  --text: #151922;
  --text-soft: #566171;
  --text-faint: #7a8594;
  --line: #d7dde5;
  --line-strong: #c1cad6;
  --accent: #2862e9;
  --accent-hover: #174fcf;
  --accent-button: #2862e9;
  --accent-button-hover: #174fcf;
  --accent-soft: #dfe8ff;
  --success: #2f8b5a;
  --terminal: #11151b;
  --hero-background: #e9eef4;
  --shadow: 0 28px 90px rgba(42, 59, 82, 0.2);
  --shadow-soft: 0 16px 48px rgba(42, 59, 82, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

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

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

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 8px 12px;
  color: #f7f9fc;
  background: var(--accent);
  border-radius: var(--control-radius);
  transform: translateY(-150%);
}

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

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 58%, transparent);
  outline-offset: 3px;
}

/* Web approximation of Apple-style translucent material. */
.glass-surface {
  background: var(--glass);
  border: 1px solid color-mix(in srgb, var(--line-strong) 78%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), var(--shadow-soft);
  backdrop-filter: blur(24px) saturate(155%);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
}

.site-header {
  position: fixed;
  top: 14px;
  right: 0;
  left: 0;
  z-index: 30;
  pointer-events: none;
}

.nav-shell {
  width: min(calc(100% - 32px), var(--shell));
  height: var(--nav-height);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 12px 0 16px;
  border-radius: var(--radius);
  pointer-events: auto;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled .nav-shell {
  background: var(--glass-strong);
  border-color: var(--line-strong);
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 760;
  line-height: 1;
}

.brand img {
  width: 32px;
  height: 32px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.desktop-nav a,
.footer-links a,
.mobile-menu a {
  transition: color 160ms ease;
}

.desktop-nav a:hover,
.footer-links a:hover,
.mobile-menu a:hover {
  color: var(--text);
}

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.github-link,
.icon-button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border-radius: var(--control-radius);
}

.github-link {
  gap: 6px;
  padding: 0 15px;
  font-size: 12px;
  font-weight: 720;
}

.icon-button {
  width: 38px;
  padding: 0;
  cursor: pointer;
}

.github-link:hover,
.icon-button:hover {
  color: var(--accent-hover);
  border-color: color-mix(in srgb, var(--accent) 62%, var(--line-strong));
}

.github-link:active,
.icon-button:active,
.button:active,
.terminal button:active {
  transform: translateY(1px);
}

.theme-toggle span {
  font-size: 18px;
  line-height: 1;
}

.menu-toggle {
  display: none;
  position: relative;
}

.menu-toggle i {
  position: absolute;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle i:first-child { transform: translateY(-5px); }
.menu-toggle i:last-child { transform: translateY(5px); }
.menu-toggle[aria-expanded="true"] i:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] i:last-child { transform: rotate(-45deg); }

.mobile-menu {
  width: min(calc(100% - 32px), var(--shell));
  margin: 8px auto 0;
  padding: 8px;
  border-radius: var(--radius);
  pointer-events: auto;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  display: block;
  padding: 12px 13px;
  color: var(--text-soft);
  border-radius: 6px;
  font-size: 14px;
}

.mobile-menu a:hover {
  background: var(--surface-raised);
}

.hero {
  position: relative;
  min-height: calc(100dvh - 58px);
  overflow: hidden;
  isolation: isolate;
  background: var(--hero-background);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  opacity: 1;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 10, 15, 0.97) 0%, rgba(8, 10, 15, 0.9) 25%, rgba(8, 10, 15, 0.46) 42%, rgba(8, 10, 15, 0.08) 59%, rgba(8, 10, 15, 0) 76%),
    linear-gradient(180deg, rgba(8, 10, 15, 0.06) 0%, rgba(8, 10, 15, 0.01) 57%, rgba(8, 10, 15, 0.42) 100%);
  pointer-events: none;
}

:root[data-theme="light"] .hero-vignette {
  background:
    linear-gradient(90deg, rgba(233, 238, 244, 0.97) 0%, rgba(233, 238, 244, 0.86) 25%, rgba(233, 238, 244, 0.42) 42%, rgba(233, 238, 244, 0.06) 59%, rgba(233, 238, 244, 0) 76%),
    linear-gradient(180deg, rgba(233, 238, 244, 0.04) 0%, rgba(233, 238, 244, 0) 57%, rgba(233, 238, 244, 0.26) 100%);
}

.hero-inner {
  position: relative;
  min-height: calc(100dvh - 58px);
  padding-top: 102px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: 600px;
  max-width: 51%;
}

.eyebrow,
.section-kicker {
  margin-bottom: 15px;
  color: var(--accent-hover);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.12em;
}

.hero h1 {
  margin-bottom: 22px;
  font-size: 70px;
  font-weight: 780;
  line-height: 0.98;
}

.hero h1 span,
.hero h1 small {
  display: block;
}

.hero h1 small {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 29px;
  font-weight: 600;
  line-height: 1.15;
}

.hero-lead {
  max-width: 600px;
  margin-bottom: 24px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.72;
  text-wrap: pretty;
}

.hero-actions,
.deploy-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  font-size: 14px;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease, color 170ms ease;
}

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

.button-primary {
  color: #f7f9fc;
  background: var(--accent-button);
  border-color: color-mix(in srgb, var(--accent-button) 88%, #ffffff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 12px 34px color-mix(in srgb, var(--accent) 24%, transparent);
}

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

.button-glass {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-raised) 70%, transparent);
  border-color: var(--line-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.button-glass:hover {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line-strong));
}

.hero-architecture {
  position: absolute;
  right: -16px;
  bottom: 22px;
  z-index: 1;
  width: min(60vw, 820px);
  filter: drop-shadow(0 34px 80px rgba(0, 4, 18, 0.5));
  transform: perspective(1600px) rotateX(2deg) rotateY(-4deg);
  transform-origin: center bottom;
  pointer-events: none;
}

.hero-architecture img {
  width: 100%;
}

.foundation-band {
  min-height: 58px;
  display: flex;
  align-items: center;
  background: var(--page-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.foundation-inner p {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.foundation-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: var(--text-faint);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  white-space: nowrap;
}

.section {
  padding: 118px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading.compact {
  max-width: 680px;
}

.section-heading h2,
.platform-statement h2,
.k8s-intro h2,
.signal-copy h2,
.aiops-heading h2,
.deploy-copy h2,
.final-cta h2 {
  margin-bottom: 18px;
  font-size: 48px;
  font-weight: 740;
  line-height: 1.13;
}

.section-heading p,
.platform-statement > p:last-child,
.k8s-intro p,
.signal-copy p,
.aiops-heading > p:last-child,
.deploy-copy > p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 16px;
}

.platform-section {
  background: var(--page);
}

.platform-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 92px;
  align-items: start;
}

.platform-statement {
  position: sticky;
  top: 118px;
}

.platform-domains {
  border-top: 1px solid var(--line-strong);
}

.platform-domains > div {
  min-height: 128px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.platform-domains strong {
  font-size: 20px;
}

.platform-domains span {
  color: var(--text-soft);
  font-size: 14px;
}

.module-section {
  background: var(--page-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.module-browser {
  display: grid;
  grid-template-columns: 275px minmax(0, 1fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.module-tabs {
  padding: 8px;
  background: color-mix(in srgb, var(--surface-raised) 62%, var(--surface));
  border-right: 1px solid var(--line);
}

.module-tabs button {
  width: 100%;
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 12px 14px;
  text-align: left;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: color 170ms ease, background 170ms ease, border-color 170ms ease;
}

.module-tabs button + button {
  margin-top: 2px;
}

.module-tabs button:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-raised) 70%, transparent);
}

.module-tabs button[aria-selected="true"] {
  color: var(--text);
  background: var(--surface-raised);
  border-color: var(--line-strong);
  box-shadow: inset 3px 0 0 var(--accent);
}

.module-tabs span {
  font-size: 14px;
  font-weight: 730;
}

.module-tabs strong {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 560;
}

.module-stage {
  min-width: 0;
  padding: 24px 24px 0;
}

.module-stage-copy {
  min-height: 88px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.module-stage-copy > div > span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-hover);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.module-stage-copy h3 {
  margin-bottom: 0;
  font-size: 22px;
}

.module-stage-copy p {
  max-width: 360px;
  margin: 2px 0 0;
  color: var(--text-soft);
  font-size: 13px;
}

.module-media {
  aspect-ratio: 1.98 / 1;
  overflow: hidden;
  background: #eef3f8;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
}

.module-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 160ms ease, transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.module-media img.is-changing {
  opacity: 0;
  transform: scale(0.99);
}

.asset-section {
  background: var(--page);
}

.asset-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.asset-shot {
  grid-column: span 4;
  overflow: hidden;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.asset-shot-wide {
  grid-column: span 8;
}

.asset-shot img {
  width: 100%;
  aspect-ratio: 1.85 / 1;
  object-fit: cover;
  object-position: top left;
  background: #eef3f8;
  border-bottom: 1px solid var(--line);
}

.asset-shot-wide img {
  aspect-ratio: 2.1 / 1;
}

.asset-shot figcaption,
.aiops-visual figcaption {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px;
}

.asset-shot figcaption strong,
.aiops-visual figcaption strong {
  font-size: 14px;
}

.asset-shot figcaption span,
.aiops-visual figcaption span {
  color: var(--text-faint);
  font-size: 11px;
  text-align: right;
}

.k8s-section {
  overflow: hidden;
  background: var(--page-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.k8s-intro {
  max-width: 820px;
  margin-bottom: 48px;
}

.k8s-intro > span {
  display: block;
  margin-bottom: 18px;
  color: var(--accent-hover);
  font-size: 14px;
  font-weight: 720;
}

.screenshot-rail {
  width: min(100%, 1600px);
  margin-inline: auto;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(720px, 70vw);
  gap: 18px;
  padding: 0 max(24px, calc((100vw - var(--shell)) / 2)) 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.screenshot-rail figure {
  margin: 0;
  scroll-snap-align: start;
}

.screenshot-rail img {
  width: 100%;
  aspect-ratio: 1.95 / 1;
  object-fit: cover;
  object-position: top left;
  background: #eef3f8;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.screenshot-rail figcaption,
.signal-gallery figcaption {
  padding: 11px 2px 0;
  color: var(--text-faint);
  font-size: 11px;
}

.signal-section {
  background: var(--page);
}

.signal-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}

.signal-copy {
  position: sticky;
  top: 118px;
}

.signal-copy h2 {
  font-size: 39px;
}

.text-link {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-hover);
  font-size: 13px;
  font-weight: 700;
}

.signal-copy .text-link {
  margin-top: 24px;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(3px);
}

.signal-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.signal-gallery figure {
  margin: 0;
}

.signal-gallery .signal-main {
  grid-column: 1 / -1;
}

.signal-gallery img {
  width: 100%;
  aspect-ratio: 1.75 / 1;
  object-fit: cover;
  object-position: top left;
  background: #eef3f8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.signal-gallery .signal-main img {
  aspect-ratio: 2.05 / 1;
}

.aiops-section {
  background: var(--page-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.aiops-heading {
  max-width: 780px;
  margin-bottom: 48px;
}

.aiops-visual {
  overflow: hidden;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.aiops-visual img {
  width: 100%;
  max-height: 690px;
  object-fit: cover;
  object-position: top center;
  background: #eef3f8;
  border-bottom: 1px solid var(--line);
}

.governance-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
  border-top: 1px solid var(--line-strong);
}

.governance-flow article {
  padding: 26px 26px 0 0;
}

.governance-flow article:not(:last-child) {
  margin-right: 26px;
  border-right: 1px solid var(--line);
}

.governance-flow strong {
  font-size: 17px;
}

.governance-flow p {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 13px;
}

.deploy-section {
  background: var(--page);
}

.deploy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(500px, 1.15fr);
  gap: 82px;
  align-items: center;
}

.deploy-copy > p {
  margin-bottom: 28px;
}

.deploy-actions .text-link {
  margin-left: 6px;
}

.terminal {
  overflow: hidden;
  color: #e9eef6;
  background: var(--terminal);
  border: 1px solid #303847;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.terminal-bar {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: #929dad;
  background: #11151b;
  border-bottom: 1px solid #2a313c;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.terminal button {
  padding: 5px 9px;
  color: #dce5f0;
  background: #202631;
  border: 1px solid #394353;
  border-radius: 5px;
  cursor: pointer;
  font-size: 10px;
}

.terminal pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.9;
}

.terminal .prompt { color: #78a0ff; }
.terminal .muted { color: #8f9bad; }
.terminal .ok { color: #69c98d; }

.terminal > p {
  margin: 0;
  padding: 13px 16px;
  color: #8792a2;
  background: #0e1217;
  border-top: 1px solid #262d37;
  font-size: 10px;
}

.final-cta {
  padding: 72px 0;
  background: var(--page-soft);
  border-top: 1px solid var(--line);
}

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

.final-inner > div > span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-hover);
  font-size: 13px;
  font-weight: 720;
}

.final-cta h2 {
  max-width: 700px;
  margin-bottom: 0;
  font-size: 36px;
}

.site-footer {
  padding: 56px 0 32px;
  background: var(--page);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}

.footer-grid > div:first-child > p {
  margin: 15px 0 0;
  color: var(--text-faint);
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 24px;
  color: var(--text-soft);
  font-size: 12px;
}

.footer-meta {
  grid-column: 1 / -1;
  margin: 22px 0 0;
  padding-top: 20px;
  color: var(--text-faint);
  border-top: 1px solid var(--line);
  font-size: 10px;
}

@keyframes load-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.load-in {
  animation: load-in 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-1 { animation-delay: 80ms; }
.delay-2 { animation-delay: 150ms; }
.delay-3 { animation-delay: 220ms; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .desktop-nav { gap: 16px; }
  .nav-shell { gap: 14px; }
  .hero h1 { font-size: 62px; }
  .hero h1 small { font-size: 26px; }
  .hero-architecture { width: min(64vw, 720px); right: -46px; }
  .platform-layout { gap: 60px; }
  .signal-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 42px; }
  .deploy-grid { gap: 48px; }
}

@media (max-width: 1040px) {
  .desktop-nav,
  .github-link { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-shell { grid-template-columns: 1fr auto; }
  .foundation-inner { align-items: flex-start; padding: 14px 0; }
  .foundation-list { flex-wrap: wrap; gap: 8px 18px; }
  .module-browser { grid-template-columns: 230px minmax(0, 1fr); }
  .module-stage-copy { display: block; }
  .module-stage-copy p { margin-top: 8px; }
  .asset-shot { grid-column: span 6; }
  .asset-shot-wide { grid-column: 1 / -1; }
  .governance-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .governance-flow article:nth-child(2) { border-right: 0; margin-right: 0; }
  .deploy-grid { grid-template-columns: 1fr; }
  .deploy-copy { max-width: 650px; }
}

@media (max-width: 760px) {
  .page-shell { width: min(calc(100% - 32px), var(--shell)); }
  .site-header { top: 8px; }
  .nav-shell,
  .mobile-menu { width: calc(100% - 16px); }
  .nav-shell { height: 58px; padding-left: 12px; }
  .brand { font-size: 16px; }
  .brand img { width: 29px; height: 29px; }
  .hero { min-height: calc(100dvh - 54px); }
  .hero-inner { min-height: calc(100dvh - 54px); padding-top: 84px; }
  .hero-copy { width: 100%; max-width: 100%; }
  .hero h1 { margin-bottom: 14px; font-size: 48px; }
  .hero h1 small { margin-top: 9px; font-size: 22px; }
  .hero-lead { max-width: 100%; margin-bottom: 18px; font-size: 13px; line-height: 1.65; }
  .hero-actions { gap: 8px; }
  .button { min-height: 42px; padding: 0 16px; font-size: 13px; }
  .hero-architecture { right: -6%; bottom: 10px; width: 104%; transform: none; }
  .hero-vignette {
    background: linear-gradient(180deg, rgba(8, 10, 15, 0.98) 0%, rgba(8, 10, 15, 0.84) 39%, rgba(8, 10, 15, 0.16) 64%, rgba(8, 10, 15, 0.38) 100%);
  }
  :root[data-theme="light"] .hero-vignette {
    background: linear-gradient(180deg, rgba(233, 238, 244, 0.98) 0%, rgba(233, 238, 244, 0.86) 39%, rgba(233, 238, 244, 0.14) 64%, rgba(233, 238, 244, 0.24) 100%);
  }
  .foundation-band { min-height: 54px; }
  .foundation-inner { display: block; }
  .foundation-inner p { margin-bottom: 8px; white-space: normal; }
  .foundation-list { justify-content: flex-start; }
  .section { padding: 82px 0; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2,
  .platform-statement h2,
  .k8s-intro h2,
  .signal-copy h2,
  .aiops-heading h2,
  .deploy-copy h2 { font-size: 34px; }
  .section-heading p,
  .platform-statement > p:last-child,
  .k8s-intro p,
  .signal-copy p,
  .aiops-heading > p:last-child,
  .deploy-copy > p { font-size: 14px; }
  .platform-layout { grid-template-columns: 1fr; gap: 42px; }
  .platform-statement,
  .signal-copy { position: static; }
  .platform-domains > div { min-height: 104px; grid-template-columns: 105px 1fr; }
  .platform-domains strong { font-size: 17px; }
  .platform-domains span { font-size: 12px; }
  .module-browser { grid-template-columns: 1fr; }
  .module-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 150px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    scroll-snap-type: x mandatory;
  }
  .module-tabs button { min-height: 66px; scroll-snap-align: start; }
  .module-tabs button + button { margin: 0; }
  .module-tabs button[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--accent); }
  .module-stage { padding: 18px 14px 0; }
  .module-stage-copy { min-height: 116px; }
  .module-stage-copy h3 { font-size: 19px; }
  .module-media { aspect-ratio: 1.45 / 1; }
  .asset-mosaic { grid-template-columns: 1fr; }
  .asset-shot,
  .asset-shot-wide { grid-column: 1; }
  .asset-shot img,
  .asset-shot-wide img { aspect-ratio: 1.65 / 1; }
  .asset-shot figcaption,
  .aiops-visual figcaption { min-height: 68px; display: block; }
  .asset-shot figcaption span,
  .aiops-visual figcaption span { display: block; margin-top: 3px; text-align: left; }
  .screenshot-rail { grid-auto-columns: calc(100vw - 44px); padding-inline: 16px; }
  .screenshot-rail img { aspect-ratio: 1.55 / 1; }
  .signal-layout { grid-template-columns: 1fr; gap: 38px; }
  .signal-gallery { grid-template-columns: 1fr; }
  .signal-gallery .signal-main { grid-column: 1; }
  .signal-gallery img,
  .signal-gallery .signal-main img { aspect-ratio: 1.55 / 1; }
  .aiops-heading { margin-bottom: 34px; }
  .aiops-visual img { aspect-ratio: 1.45 / 1; }
  .governance-flow { grid-template-columns: 1fr; }
  .governance-flow article,
  .governance-flow article:not(:last-child) { margin-right: 0; padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .governance-flow article:last-child { border-bottom: 0; }
  .deploy-grid { gap: 36px; }
  .terminal pre { padding: 18px; font-size: 10px; }
  .final-cta { padding: 58px 0; }
  .final-inner { display: block; }
  .final-cta h2 { margin-bottom: 26px; font-size: 29px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-links { flex-wrap: wrap; gap: 12px 20px; }
  .footer-meta { grid-column: 1; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 44px; }
  .hero h1 small { font-size: 20px; }
  .hero-actions { align-items: stretch; flex-direction: column; width: 145px; }
  .hero-architecture { bottom: 12px; }
}

@media (max-height: 820px) and (min-width: 761px) {
  .hero-inner { padding-top: 90px; }
  .hero h1 { font-size: 58px; }
  .hero h1 small { font-size: 24px; }
  .hero-lead { margin-bottom: 18px; font-size: 13px; }
  .hero-architecture { width: min(52vw, 600px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-architecture { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .glass-surface {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
