:root {
  color-scheme: dark;
  --bg: #05080d;
  --bg-2: #08101b;
  --panel: rgba(8, 17, 30, 0.78);
  --panel-strong: rgba(11, 21, 36, 0.94);
  --line: rgba(111, 162, 255, 0.24);
  --line-strong: rgba(111, 162, 255, 0.5);
  --text: #f6f8fb;
  --muted: #9ca9ba;
  --soft: #cdd7e5;
  --blue: #57a1ff;
  --blue-2: #1f6fff;
  --gold: #d7a84d;
  --gold-2: #f4ce7a;
  --green: #46d995;
  --red: #ff7777;
  --radius: 8px;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.46);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(87, 161, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 84% 10%, rgba(215, 168, 77, 0.14), transparent 28rem),
    linear-gradient(180deg, #05080d 0%, #07111c 48%, #05070b 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 78%);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 13, 0.45));
  z-index: -1;
}

.ambient-particles {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.82;
  mix-blend-mode: screen;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 8, 13, 0.78);
  border-bottom: 1px solid rgba(111, 162, 255, 0.14);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1px solid rgba(244, 206, 122, 0.36);
  border-radius: 10px;
  background: rgba(8, 13, 22, 0.92);
  box-shadow: 0 0 22px rgba(244, 206, 122, 0.16), 0 12px 28px rgba(0, 0, 0, 0.28);
}

.brand-mark img {
  width: 112%;
  height: 112%;
  object-fit: cover;
}

.brand span:last-child {
  color: var(--soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  position: relative;
  padding: 9px 13px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 14px;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-current {
  color: var(--text);
  background: rgba(87, 161, 255, 0.1);
}

.site-nav a.is-current::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 17, 29, 0.8);
  color: var(--text);
  font-size: 20px;
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 34px;
  min-height: 650px;
  padding: 42px 0 30px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  border: 1px solid rgba(215, 168, 77, 0.34);
  border-radius: 999px;
  background: rgba(215, 168, 77, 0.08);
  color: var(--gold-2);
  font-size: 13px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

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

h1 {
  margin-bottom: 18px;
  font-size: 68px;
  line-height: 1.02;
  letter-spacing: 0;
}

.gold-text {
  color: var(--gold-2);
}

.hero p {
  max-width: 680px;
  color: var(--soft);
  font-size: 20px;
  line-height: 1.75;
}

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

.hero-actions {
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(111, 162, 255, 0.32);
  border-radius: 8px;
  color: var(--text);
  background: rgba(12, 23, 40, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.btn-primary {
  border-color: rgba(215, 168, 77, 0.58);
  background: linear-gradient(135deg, rgba(215, 168, 77, 0.95), rgba(99, 74, 35, 0.78));
  color: #111419;
  font-weight: 760;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(87, 161, 255, 0.75);
  box-shadow: 0 18px 44px rgba(31, 111, 255, 0.22);
}

.hero-panel {
  position: relative;
  min-height: 620px;
}

.particle-gear-panel {
  position: relative;
  overflow: visible;
  height: 540px;
  background:
    radial-gradient(circle at 52% 50%, rgba(215, 168, 77, 0.13), transparent 12rem),
    radial-gradient(circle at 50% 54%, rgba(87, 161, 255, 0.14), transparent 18rem);
  box-shadow: none;
  transform: perspective(1100px) rotateY(-4deg) rotateX(2deg);
  animation: hoverConsole 7s ease-in-out infinite;
  isolation: isolate;
}

.particle-gear-panel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(76%, 520px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(244, 206, 122, 0.12) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(87, 161, 255, 0.1), transparent 62%);
  background-size: 28px 28px, 100% 100%;
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.62), transparent 72%);
  pointer-events: none;
  z-index: 1;
}

.particle-gear-panel::after {
  display: none;
}

#gearCanvas {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
}

.gear-halo {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(50%, 330px);
  aspect-ratio: 1;
  border: 1px solid rgba(215, 168, 77, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 58px rgba(215, 168, 77, 0.14),
    inset 0 0 46px rgba(87, 161, 255, 0.11);
  pointer-events: none;
  z-index: 1;
}

.gear-halo::before,
.gear-halo::after {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 1px solid rgba(87, 161, 255, 0.18);
}

.gear-halo::after {
  inset: 22%;
  border-color: rgba(215, 168, 77, 0.24);
}

.gear-label {
  position: absolute;
  z-index: 4;
  padding: 7px 10px;
  border: 1px solid rgba(111, 162, 255, 0.22);
  border-radius: 999px;
  background: rgba(5, 10, 18, 0.64);
  color: var(--soft);
  font-size: 13px;
  box-shadow: 0 0 24px rgba(87, 161, 255, 0.14);
}

.gear-label-tools {
  top: 20%;
  left: 18%;
}

.gear-label-data {
  top: 24%;
  right: 17%;
  color: var(--blue);
}

.gear-label-growth {
  right: 12%;
  bottom: 24%;
  color: var(--gold-2);
}

.control-frame {
  position: relative;
  overflow: hidden;
  height: 540px;
  border: 1px solid rgba(87, 161, 255, 0.42);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow), inset 0 0 32px rgba(87, 161, 255, 0.08);
  transform: perspective(1100px) rotateY(-4deg) rotateX(2deg);
  animation: hoverConsole 7s ease-in-out infinite;
}

.control-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.82;
  filter: saturate(1.05) contrast(1.06);
}

.control-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(87, 161, 255, 0.18), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%, rgba(0, 0, 0, 0.24));
  transform: translateX(-120%);
  animation: scanSweep 5.4s ease-in-out infinite;
}

.control-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(244, 206, 122, 0.16);
  pointer-events: none;
}

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

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  color: var(--text);
}

.section {
  padding: 72px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--gold-2);
  font-size: 13px;
}

.section h2 {
  margin-bottom: 0;
  font-size: 38px;
  line-height: 1.16;
  letter-spacing: 0;
}

.section-heading p,
.intro-text {
  max-width: 660px;
  color: var(--muted);
  line-height: 1.8;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.product-card,
.glass-panel,
.roadmap-card,
.doc-card,
.feature-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.product-card,
.glass-panel,
.roadmap-card {
  isolation: isolate;
}

.product-card::before,
.glass-panel::before,
.roadmap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(87, 161, 255, 0.2), transparent 44%);
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: -1;
}

.product-card:hover::before,
.glass-panel:hover::before,
.roadmap-card:hover::before {
  opacity: 1;
}

.product-card {
  min-height: 280px;
  padding: 22px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(87, 161, 255, 0.6);
}

.card-index {
  position: absolute;
  right: 18px;
  top: 16px;
  color: rgba(111, 162, 255, 0.24);
  font-size: 34px;
  font-weight: 800;
}

.product-logo {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(244, 206, 122, 0.5);
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 4px rgba(215, 168, 77, 0.07),
    0 18px 44px rgba(0, 0, 0, 0.36),
    0 0 30px rgba(244, 206, 122, 0.18);
}

.product-card.has-logo {
  background:
    radial-gradient(circle at 84% 15%, rgba(244, 206, 122, 0.16), transparent 9rem),
    radial-gradient(circle at 18% 100%, rgba(87, 161, 255, 0.12), transparent 13rem),
    var(--panel);
}

.product-card[data-product="school-check"].has-logo {
  background:
    radial-gradient(circle at 84% 15%, rgba(70, 217, 149, 0.14), transparent 9rem),
    radial-gradient(circle at 18% 100%, rgba(87, 161, 255, 0.12), transparent 13rem),
    var(--panel);
}

.product-card[data-product="school-check"] .product-logo,
.doc-card[href="/docs/school-check/"] .doc-logo-small,
body[data-doc="schoolCheck"] .doc-heading-logo {
  border-color: rgba(70, 217, 149, 0.42);
  border-radius: 50%;
  object-position: center 46%;
  box-shadow:
    0 0 0 4px rgba(70, 217, 149, 0.06),
    0 18px 44px rgba(0, 0, 0, 0.3),
    0 0 28px rgba(70, 217, 149, 0.12);
}

.product-card.has-logo .card-topline {
  padding-right: 82px;
}

.product-card-large .product-logo {
  width: 96px;
  height: 96px;
}

.product-card-large.has-logo .card-topline {
  padding-right: 114px;
}

.card-topline,
.roadmap-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.product-card h3 {
  margin: 48px 0 12px;
  font-size: 22px;
}

.product-card.has-logo h3 {
  margin-top: 58px;
}

.product-card-large.has-logo h3 {
  margin-top: 76px;
}

.product-card p,
.roadmap-card p {
  color: var(--muted);
  line-height: 1.7;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 26px;
}

.chip-row span,
.module-grid span,
.filter-bar button {
  border: 1px solid rgba(111, 162, 255, 0.22);
  border-radius: 999px;
  background: rgba(87, 161, 255, 0.08);
  color: var(--soft);
  font-size: 13px;
}

.chip-row span,
.module-grid span {
  padding: 7px 10px;
}

.text-link {
  color: var(--gold-2);
  font-weight: 700;
}

.text-link.muted {
  color: var(--blue);
}

.lab-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
}

.glass-panel {
  padding: 28px;
}

.lab-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-tile {
  min-height: 112px;
  padding: 18px;
  background: rgba(9, 18, 32, 0.74);
}

.feature-tile strong {
  display: block;
  margin-bottom: 8px;
}

.feature-tile span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: stretch;
}

.product-card-large {
  min-height: 100%;
}

.focus-dashboard {
  padding: 26px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric {
  padding: 18px;
  border: 1px solid rgba(111, 162, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 11, 21, 0.6);
}

.mini-chart {
  position: relative;
  height: 192px;
  overflow: hidden;
  border: 1px solid rgba(111, 162, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent, rgba(87, 161, 255, 0.08)),
    repeating-linear-gradient(to right, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(to top, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 38px);
}

.mini-chart::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 56%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold), var(--green));
  transform-origin: left;
  animation: chartGrow 2.4s ease both;
}

.mini-chart::after {
  content: "";
  position: absolute;
  inset: 42px 32px 58px;
  border-top: 2px solid rgba(87, 161, 255, 0.8);
  border-right: 2px solid rgba(215, 168, 77, 0.66);
  transform: skewY(-10deg);
  filter: drop-shadow(0 0 18px rgba(87, 161, 255, 0.5));
}

.roadmap-shell {
  display: grid;
  gap: 18px;
}

.month-lane {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
}

.month-marker {
  position: relative;
  display: flex;
  align-items: start;
  gap: 14px;
  color: var(--gold-2);
}

.month-marker span {
  width: 16px;
  height: 16px;
  margin-top: 5px;
  border: 2px solid var(--gold-2);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(215, 168, 77, 0.55);
}

.month-marker::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 28px;
  bottom: -42px;
  width: 1px;
  background: linear-gradient(var(--gold), rgba(87, 161, 255, 0.18));
}

.month-lane:last-child .month-marker::after {
  display: none;
}

.roadmap-stack {
  display: grid;
  gap: 12px;
}

.roadmap-card {
  padding: 22px;
}

.roadmap-product {
  margin: 18px 0 8px;
  color: var(--gold-2);
}

.roadmap-card h3 {
  margin-bottom: 12px;
}

.roadmap-card ul,
.doc-list {
  margin: 0;
  padding-left: 18px;
  color: var(--soft);
  line-height: 1.9;
}

.roadmap-card.is-hidden {
  display: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(111, 162, 255, 0.22);
  border-radius: 999px;
  background: rgba(87, 161, 255, 0.1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
}

.status-pill.is-active {
  border-color: rgba(70, 217, 149, 0.42);
  background: rgba(70, 217, 149, 0.1);
  color: var(--green);
}

.status-pill.is-done {
  border-color: rgba(215, 168, 77, 0.44);
  background: rgba(215, 168, 77, 0.12);
  color: var(--gold-2);
}

.status-pill.is-planned {
  color: var(--blue);
}

.status-pill.is-paused {
  border-color: rgba(255, 119, 119, 0.35);
  background: rgba(255, 119, 119, 0.08);
  color: #ffadad;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-bar button {
  min-height: 36px;
  padding: 0 14px;
  cursor: pointer;
}

.filter-bar button.is-selected {
  border-color: rgba(215, 168, 77, 0.52);
  background: rgba(215, 168, 77, 0.14);
  color: var(--gold-2);
}

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

.doc-card {
  min-height: 130px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.doc-card:hover {
  transform: translateY(-3px);
  border-color: rgba(87, 161, 255, 0.56);
}

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

.doc-card small {
  margin-top: 8px;
  color: var(--muted);
}

.doc-icon {
  width: 46px;
  height: 56px;
  border: 1px solid rgba(87, 161, 255, 0.45);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(87, 161, 255, 0.24), rgba(87, 161, 255, 0.04)),
    linear-gradient(90deg, transparent 18%, rgba(255, 255, 255, 0.12) 18% 22%, transparent 22%);
  box-shadow: inset 0 0 20px rgba(87, 161, 255, 0.14), 0 0 26px rgba(87, 161, 255, 0.16);
}

.doc-logo-small,
.doc-heading-logo {
  flex: 0 0 auto;
  border: 1px solid rgba(244, 206, 122, 0.46);
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 4px rgba(215, 168, 77, 0.06),
    0 18px 36px rgba(0, 0, 0, 0.28);
}

.doc-logo-small {
  width: 58px;
  height: 58px;
}

.doc-heading-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.doc-heading-logo {
  width: 74px;
  height: 74px;
}

.subpage-hero {
  padding: 70px 0 34px;
}

.subpage-hero h1 {
  max-width: 820px;
}

.subpage-hero p {
  max-width: 760px;
  color: var(--soft);
  font-size: 19px;
  line-height: 1.8;
}

.docs-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.docs-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.docs-side a {
  padding: 12px;
  border-radius: 8px;
  color: var(--muted);
}

.docs-side a.is-current,
.docs-side a:hover {
  color: var(--text);
  background: rgba(87, 161, 255, 0.1);
}

.doc-heading {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.doc-heading h1 {
  margin-top: 16px;
}

.doc-heading p {
  color: var(--soft);
  line-height: 1.85;
  font-size: 18px;
}

.doc-section {
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 17, 30, 0.7);
}

.doc-section h2 {
  margin-bottom: 18px;
  font-size: 26px;
}

.module-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid rgba(111, 162, 255, 0.16);
  background: rgba(5, 8, 13, 0.78);
}

.footer-shell {
  width: min(var(--max), calc(100% - 32px));
  min-height: 108px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--soft);
  font-weight: 760;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(244, 206, 122, 0.14);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

@keyframes hoverConsole {
  0%,
  100% {
    transform: perspective(1100px) rotateY(-4deg) rotateX(2deg) translateY(0);
  }
  50% {
    transform: perspective(1100px) rotateY(-2deg) rotateX(1deg) translateY(-8px);
  }
}

@keyframes scanSweep {
  0%,
  36% {
    transform: translateX(-120%);
  }
  58%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes chartGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 980px) {
  .hero,
  .focus-grid,
  .lab-grid,
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
    gap: 24px;
  }

  h1 {
    font-size: 48px;
  }

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

  .hero-panel {
    min-height: auto;
  }

  .control-frame,
  .particle-gear-panel {
    transform: none;
    height: 360px;
  }

  .docs-side {
    position: static;
    display: flex;
    overflow-x: auto;
  }
}

@media (max-width: 720px) {
  .nav-shell {
    height: 64px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(6, 12, 22, 0.96);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px;
  }

  h1 {
    font-size: 36px;
  }

  .hero p,
  .subpage-hero p {
    font-size: 16px;
  }

  .section {
    padding: 50px 0;
  }

  .section-heading {
    display: block;
  }

  .section h2 {
    font-size: 30px;
  }

  .product-grid,
  .docs-grid,
  .metric-grid,
  .lab-principles {
    grid-template-columns: 1fr;
  }

  .month-lane {
    grid-template-columns: 1fr;
  }

  .month-marker::after {
    display: none;
  }

  .control-frame,
  .particle-gear-panel {
    height: 220px;
  }

  .gear-label {
    display: none;
  }

  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
