:root {
  color-scheme: dark;
  --bg: #0b2144;
  --bg-deep: #06142a;
  --brand-ink: #0a1330;
  --brand-blue: #0b2d8f;
  --brand-cyan: #00b2ff;
  --brand-white: #f3f5f7;
  --surface: rgba(13, 38, 78, 0.82);
  --surface-strong: rgba(9, 27, 58, 0.94);
  --surface-soft: rgba(243, 245, 247, 0.065);
  --ink: #f3f5f7;
  --ink-soft: #d9e7f8;
  --muted: #90a6bf;
  --muted-strong: #bfd0e2;
  --line: rgba(111, 210, 255, 0.24);
  --soft-line: rgba(111, 210, 255, 0.13);
  --accent: var(--brand-cyan);
  --accent-strong: #45caff;
  --cyan: var(--brand-cyan);
  --green: #38c6ff;
  --amber: #6c88ff;
  --violet: var(--brand-blue);
  --shadow: 0 34px 120px rgba(1, 10, 28, 0.46), 0 18px 52px rgba(0, 96, 190, 0.24);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1180px;
  --nav-max: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: Geist, Satoshi, "Avenir Next", "SF Pro Display", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at 12% 7%, rgba(36, 181, 255, 0.30), transparent 31rem),
    radial-gradient(circle at 88% 10%, rgba(34, 94, 188, 0.42), transparent 34rem),
    radial-gradient(circle at 50% 70%, rgba(84, 193, 255, 0.12), transparent 36rem),
    linear-gradient(180deg, #123563 0%, var(--bg) 48%, var(--bg-deep) 100%);
  color: var(--ink);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
body::before {
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.032) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.88), transparent 74%);
}
body::after {
  z-index: -1;
  opacity: 0.11;
  background:
    linear-gradient(115deg, transparent 0 28%, rgba(0, 178, 255, 0.30) 28.2%, transparent 28.7% 64%, rgba(255,255,255,0.16) 64.2%, transparent 64.7%),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(255,255,255,0.05) 59px, transparent 60px);
  mask-image: radial-gradient(circle at 58% 22%, rgba(0,0,0,0.72), transparent 60%);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  transition: transform 240ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 20;
  inset: 18px 0 auto 0;
  display: flex;
  justify-content: center;
  padding: 0 clamp(16px, 4vw, 56px);
  pointer-events: none;
}
.nav-shell {
  width: min(100%, var(--nav-max));
  min-height: 62px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 8px 12px 8px 18px;
  color: var(--ink);
  background: rgba(7, 20, 44, 0.74);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 18px 48px rgba(0,0,0,0.34);
  backdrop-filter: blur(22px) saturate(140%);
  pointer-events: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 34px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: transform 260ms var(--ease), filter 260ms var(--ease);
}
.brand:hover,
.brand:focus-visible {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 14px rgba(0, 178, 255, 0.22));
}
.brand-logo {
  display: block;
  object-fit: contain;
}
.brand-logo-primary {
  width: 94px;
  height: auto;
  opacity: 0.96;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 7px;
  padding: 4px;
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.045);
  font-size: 13px;
}
.nav-links a {
  position: relative;
  padding: 9px 13px;
  border-radius: 999px;
  transition: color 260ms var(--ease), background 260ms var(--ease), transform 260ms var(--ease);
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(255,255,255,0.07);
  transform: translateY(-1px);
}
.nav-status {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 9px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255,255,255,0.028);
  border: 1px solid rgba(255,255,255,0.07);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-cyan);
  box-shadow: 0 0 0 5px rgba(0, 178, 255, 0.12), 0 0 18px rgba(0, 178, 255, 0.58);
  animation: dotPulse 2.8s var(--ease) infinite;
}

.hero {
  position: relative;
  min-height: min(900px, 100svh);
  padding: clamp(120px, 12vw, 154px) clamp(22px, 4vw, 56px) clamp(56px, 6vw, 86px);
  display: grid;
  grid-template-columns: minmax(330px, 0.76fr) minmax(540px, 1.24fr);
  gap: clamp(46px, 6vw, 90px);
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 8% -6% auto auto;
  width: min(48vw, 620px);
  height: min(42vw, 520px);
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(0,178,255,0.16), rgba(11,45,143,0.08) 48%, transparent 72%);
  opacity: 0.72;
  filter: blur(24px);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -4% -2% -8% -2%;
  pointer-events: none;
  background: radial-gradient(circle at 58% 38%, rgba(0,178,255,0.13), transparent 38rem);
  opacity: 0.8;
}
.hero-planes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-planes i {
  position: absolute;
  display: block;
  width: var(--plane-w);
  height: var(--plane-h);
  border: 1px solid rgba(177, 230, 255, 0.13);
  border-radius: var(--plane-radius, 26px);
  background:
    linear-gradient(var(--plane-angle, 135deg), rgba(243,245,247,var(--plane-hi, 0.10)), rgba(0,178,255,var(--plane-cyan, 0.16)) 48%, rgba(11,45,143,var(--plane-blue, 0.13))),
    linear-gradient(90deg, transparent, rgba(255,255,255,0.045), transparent);
  clip-path: var(--plane-shape);
  opacity: var(--plane-opacity);
  box-shadow: 0 28px 90px rgba(0, 76, 168, 0.12);
  transform: translate3d(0, 0, 0) rotate(var(--plane-rotate));
  will-change: transform, opacity;
  animation: var(--plane-drift) var(--plane-duration) ease-in-out infinite alternate;
}
.hero-planes i:nth-child(1) {
  --plane-w: min(18vw, 245px);
  --plane-h: min(25vw, 340px);
  --plane-radius: 24px;
  --plane-rotate: 12deg;
  --plane-opacity: 0.30;
  --plane-shape: polygon(16% 0, 94% 8%, 100% 78%, 0 100%);
  --plane-drift: planeDriftA;
  --plane-duration: 38s;
  left: -3.5%;
  top: 8%;
}
.hero-planes i:nth-child(2) {
  --plane-w: min(12vw, 170px);
  --plane-h: min(12vw, 175px);
  --plane-radius: 20px;
  --plane-rotate: -24deg;
  --plane-opacity: 0.24;
  --plane-hi: 0.12;
  --plane-cyan: 0.11;
  --plane-shape: polygon(18% 0, 100% 18%, 78% 100%, 0 76%);
  --plane-drift: planeDriftB;
  --plane-duration: 44s;
  left: 28%;
  top: 10%;
}
.hero-planes i:nth-child(3) {
  --plane-w: min(21vw, 310px);
  --plane-h: min(24vw, 335px);
  --plane-radius: 30px;
  --plane-rotate: 5deg;
  --plane-opacity: 0.22;
  --plane-cyan: 0.18;
  --plane-blue: 0.10;
  --plane-shape: polygon(0 18%, 82% 0, 100% 84%, 24% 100%);
  --plane-drift: planeDriftC;
  --plane-duration: 50s;
  left: 46%;
  top: 25%;
}
.hero-planes i:nth-child(4) {
  --plane-w: min(22vw, 330px);
  --plane-h: min(33vw, 440px);
  --plane-radius: 28px;
  --plane-rotate: -9deg;
  --plane-opacity: 0.27;
  --plane-hi: 0.08;
  --plane-cyan: 0.16;
  --plane-shape: polygon(10% 0, 100% 16%, 82% 100%, 0 72%);
  --plane-drift: planeDriftA;
  --plane-duration: 46s;
  right: 8%;
  top: 5%;
}
.hero-planes i:nth-child(5) {
  --plane-w: min(24vw, 330px);
  --plane-h: min(17vw, 245px);
  --plane-radius: 32px;
  --plane-rotate: 20deg;
  --plane-opacity: 0.20;
  --plane-hi: 0.10;
  --plane-cyan: 0.10;
  --plane-blue: 0.18;
  --plane-shape: polygon(0 28%, 70% 0, 100% 66%, 30% 100%);
  --plane-drift: planeDriftB;
  --plane-duration: 54s;
  left: 14%;
  bottom: -4%;
}
.hero-planes i:nth-child(6) {
  --plane-w: min(14vw, 205px);
  --plane-h: min(22vw, 305px);
  --plane-radius: 24px;
  --plane-rotate: -28deg;
  --plane-opacity: 0.22;
  --plane-cyan: 0.13;
  --plane-shape: polygon(30% 0, 100% 28%, 70% 100%, 0 86%);
  --plane-drift: planeDriftC;
  --plane-duration: 42s;
  right: -2%;
  bottom: 7%;
}
.hero-copy { max-width: 650px; position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  margin: 0 0 20px;
  padding: 0 12px;
  color: var(--accent-strong);
  background: rgba(0, 178, 255, 0.08);
  border: 1px solid rgba(0, 178, 255, 0.18);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--cyan);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 24px;
  max-width: 760px;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.052em;
  text-wrap: balance;
}
.hero-subtitle {
  max-width: 560px;
  color: var(--muted-strong);
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.56;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.command-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 7px 7px 7px 19px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -0.01em;
  transition: transform 320ms var(--ease), background 320ms var(--ease), border-color 320ms var(--ease);
}
.command-button:active { transform: scale(0.98); }
.command-button.primary {
  color: var(--brand-ink);
  background: linear-gradient(135deg, var(--brand-white), #b8e8ff 52%, var(--brand-cyan));
  box-shadow: 0 20px 52px rgba(0, 178, 255, 0.24);
}
.command-button.secondary {
  padding: 0 18px;
  color: var(--ink-soft);
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.1);
}
.command-button:hover,
.command-button:focus-visible { transform: translateY(-2px); }
.button-glyph {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(5, 7, 11, 0.12);
  transition: transform 320ms var(--ease), background 320ms var(--ease);
}
.command-button:hover .button-glyph { transform: translate(2px, -1px) scale(1.04); background: rgba(5, 7, 11, 0.18); }
.telemetry-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 660px;
  margin: 38px 0 0;
  padding: 1px;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
}
.telemetry-strip div {
  padding: 16px 18px;
  background: rgba(7,10,15,0.74);
}
.telemetry-strip dt {
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.telemetry-strip dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
  transform: perspective(1500px) rotateY(-8deg) rotateX(3deg);
  transform-origin: left center;
}
.device-frame,
.screenshot-panel {
  position: relative;
  border: 1px solid rgba(0, 178, 255, 0.15);
  background: linear-gradient(135deg, rgba(15, 46, 93, 0.78), rgba(8, 22, 50, 0.92) 38%, rgba(0, 178, 255, 0.10));
  box-shadow: var(--shadow);
}
.device-frame {
  overflow: hidden;
  padding: 10px;
  border-radius: var(--radius-xl);
}
.device-frame::before,
.screenshot-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: 0 1px 0 rgba(255,255,255,0.13) inset, 0 -1px 0 rgba(255,255,255,0.04) inset;
}
.command-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 3;
  pointer-events: none;
  border-radius: calc(var(--radius-xl) - 10px);
  background: linear-gradient(180deg, transparent, rgba(0,178,255,0.14), transparent);
  opacity: 0.36;
  transform: translateY(-82%);
  animation: scanline 5.8s var(--ease) infinite;
}
.device-frame img {
  width: 100%;
  border-radius: calc(var(--radius-xl) - 10px);
  border: 1px solid rgba(0, 178, 255, 0.12);
  background: #07090d;
  clip-path: inset(4px round calc(var(--radius-xl) - 13px));
}
.frame-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(8, 12, 18, 0.82);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 12px 24px rgba(0,0,0,0.22);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chip-policy { left: 8%; top: 14%; color: #b8e8ff; }
.chip-probe { right: 9%; top: 18%; color: #d8f5ff; }
.chip-exit { right: 13%; bottom: 12%; color: #a9c7ff; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(84px, 10vw, 144px) clamp(22px, 4vw, 32px);
}
.split {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(46px, 7vw, 102px);
  border-top: 1px solid var(--line);
}
.section h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.052em;
  text-wrap: balance;
}
.section-copy { align-self: start; }
.section-lead {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: -0.018em;
  text-wrap: pretty;
}
.section-terminal {
  display: grid;
  gap: 8px;
  margin-top: 34px;
  padding: 16px;
  border-radius: 20px;
  color: var(--muted-strong);
  background: rgba(3,5,9,0.66);
  border: 1px solid var(--soft-line);
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  line-height: 1.45;
}
.section-terminal span:first-child { color: var(--ink-soft); }
.capability-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(236px, auto);
  gap: 18px;
}
.capability-card {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 236px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.082), rgba(255,255,255,0.038));
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset;
  transition: transform 340ms var(--ease), border-color 340ms var(--ease), background 340ms var(--ease);
}
.capability-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,178,255,0.62), transparent);
  opacity: 0;
  transition: opacity 340ms var(--ease);
}
.capability-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 178, 255, 0.34);
  background: linear-gradient(180deg, rgba(0, 178, 255, 0.12), rgba(255,255,255,0.048));
}
.capability-card:hover::after { opacity: 1; }
.capability-card span {
  display: block;
  margin-bottom: 28px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}
.capability-card h3 {
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 22px;
  letter-spacing: -0.045em;
}
.capability-card p,
.story-heading p,
.status-panel p {
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.58;
  letter-spacing: -0.018em;
  text-wrap: pretty;
}
.feature-primary { min-height: 236px; }
.route-visual {
  position: relative;
  height: 104px;
  margin-top: auto;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.075);
  background:
    linear-gradient(90deg, rgba(0,178,255,0.09), transparent 24% 76%, rgba(11,45,143,0.16)),
    rgba(3,5,9,0.42);
  overflow: hidden;
}
.route-visual i {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-blue), var(--accent), #7bdcff);
  transform-origin: left;
}
.route-visual i:nth-child(1) { top: 34%; transform: rotate(13deg); }
.route-visual i:nth-child(2) { top: 50%; transform: rotate(-8deg); background: linear-gradient(90deg, #6c88ff, var(--accent)); }
.route-visual i:nth-child(3) { top: 64%; transform: rotate(8deg); background: linear-gradient(90deg, var(--brand-blue), var(--cyan)); }
.route-visual i:nth-child(4) { top: 78%; transform: rotate(-15deg); background: linear-gradient(90deg, #38c6ff, #9ddfff); }
.route-visual b {
  position: absolute;
  top: 18px;
  color: var(--muted);
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.route-visual b:nth-of-type(1) { left: 18px; }
.route-visual b:nth-of-type(2) { left: 46%; }
.route-visual b:nth-of-type(3) { right: 18px; }
.protocol-stack,
.session-ticks,
.log-stream {
  margin-top: auto;
  padding-top: 24px;
  gap: 8px;
}
.protocol-stack {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-end;
}
.session-ticks,
.log-stream { display: grid; }
.protocol-stack em {
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-style: normal;
}
.protocol-stack.compact em {
  min-height: 28px;
  font-size: 11px;
  letter-spacing: -0.01em;
}
.session-ticks { grid-template-columns: repeat(6, 1fr); align-items: end; min-height: 58px; }
.session-ticks i {
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), rgba(120,167,255,0.22));
}
.session-ticks i:nth-child(1) { height: 24px; }
.session-ticks i:nth-child(2) { height: 48px; }
.session-ticks i:nth-child(3) { height: 32px; }
.session-ticks i:nth-child(4) { height: 56px; }
.session-ticks i:nth-child(5) { height: 38px; }
.session-ticks i:nth-child(6) { height: 46px; }
.log-stream i {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}
.log-stream i:nth-child(1) { width: 92%; }
.log-stream i:nth-child(2) { width: 68%; background: rgba(120,167,255,0.22); }
.log-stream i:nth-child(3) { width: 80%; }

.product-story {
  position: relative;
  max-width: 1320px;
}
.product-story::before {
  content: "";
  position: absolute;
  inset: 5rem clamp(22px, 4vw, 32px) auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 167, 255, 0.42), transparent);
}
.story-heading {
  max-width: 790px;
  margin-bottom: 44px;
}
.story-heading h2 { margin-bottom: 20px; }
.screen-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: start;
}
.screenshot-panel {
  margin: 0;
  overflow: hidden;
  padding: 8px 8px 0;
  border-radius: var(--radius-lg);
}
.screenshot-panel.large { grid-row: span 2; }
.screenshot-panel img {
  width: 100%;
  aspect-ratio: 2704 / 1496;
  object-fit: cover;
  object-position: top left;
  border-radius: calc(var(--radius-lg) - 8px);
  border: 1px solid rgba(208, 224, 255, 0.1);
  background: #07090d;
  clip-path: inset(4px round calc(var(--radius-lg) - 12px));
}
.panel-label {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 18px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #cfe0ff;
  background: rgba(5, 8, 13, 0.78);
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow: 0 10px 22px rgba(0,0,0,0.24);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.14em;
}
.screenshot-panel figcaption {
  display: grid;
  gap: 7px;
  padding: 18px 12px 20px;
  border-top: 1px solid var(--soft-line);
}
.screenshot-panel strong { color: var(--ink-soft); font-size: 16px; letter-spacing: -0.025em; }
.screenshot-panel span:not(.panel-label) { color: var(--muted); font-size: 14px; line-height: 1.45; }

.status-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.82fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  max-width: var(--max);
  margin-bottom: clamp(42px, 7vw, 80px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: white;
  background:
    radial-gradient(circle at 20% 20%, rgba(120, 167, 255, 0.26), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(66, 198, 236, 0.16), transparent 24rem),
    linear-gradient(135deg, #111827, #06080d 58%, #121621);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.status-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0 42%, rgba(255,255,255,0.055) 48%, transparent 56%);
}
.status-copy,
.access-terminal { position: relative; z-index: 1; }
.status-panel h2 { margin-bottom: 22px; }
.status-panel p { max-width: 650px; color: rgba(235,242,255,0.72); }
.status-actions { margin-top: 28px; }
.access-terminal {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 24px;
  color: var(--muted-strong);
  background: rgba(3,5,9,0.68);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset;
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 13px;
  line-height: 1.45;
}
.access-terminal div {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.access-terminal div:last-child { border-bottom: 0; }
.access-terminal span { min-width: 56px; color: var(--accent-strong); }

.site-footer {
  padding: 22px clamp(22px, 4vw, 56px) 28px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(3, 5, 8, 0.48);
  font-size: 13px;
}
.footer-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  white-space: nowrap;
  line-height: 1.45;
}
.footer-line span,
.footer-line a {
  color: var(--muted);
  text-decoration: none;
}
.footer-line a { color: var(--ink-soft); }
.footer-line a:hover,
.footer-line a:focus-visible { color: var(--accent-strong); }
.footer-line > * + *::before {
  content: "·";
  margin-right: 10px;
  color: var(--muted);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
  transition-delay: calc(var(--reveal-index, 0) * 70ms);
}
html.js-enabled .reveal { opacity: 0; transform: translateY(30px); }
html.js-enabled .reveal.is-visible { opacity: 1; transform: translateY(0); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.78); opacity: 0.72; }
}
@keyframes scanline {
  0% { transform: translateY(-82%); opacity: 0; }
  18% { opacity: 0.34; }
  62% { opacity: 0.22; }
  100% { transform: translateY(82%); opacity: 0; }
}
@keyframes planeDriftA {
  0% { transform: translate3d(-10px, 0, 0) rotate(var(--plane-rotate)); opacity: calc(var(--plane-opacity) * 0.82); }
  100% { transform: translate3d(22px, -18px, 0) rotate(calc(var(--plane-rotate) + 2deg)); opacity: var(--plane-opacity); }
}
@keyframes planeDriftB {
  0% { transform: translate3d(12px, -8px, 0) rotate(var(--plane-rotate)); opacity: var(--plane-opacity); }
  100% { transform: translate3d(-18px, 18px, 0) rotate(calc(var(--plane-rotate) - 2deg)); opacity: calc(var(--plane-opacity) * 0.76); }
}
@keyframes planeDriftC {
  0% { transform: translate3d(0, 14px, 0) rotate(var(--plane-rotate)); opacity: calc(var(--plane-opacity) * 0.7); }
  100% { transform: translate3d(18px, -12px, 0) rotate(calc(var(--plane-rotate) + 1.5deg)); opacity: var(--plane-opacity); }
}

@media (max-width: 1040px) {
  .nav-shell { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero {
    min-height: auto;
    padding-top: 126px;
    grid-template-columns: 1fr;
  }
  .hero-visual { transform: none; }
  .split, .screen-grid, .status-panel { grid-template-columns: 1fr; }
  .screenshot-panel.large { grid-row: auto; }
  .capability-list { grid-template-columns: 1fr; }
  .feature-primary { min-height: 260px; }
}

@media (max-width: 680px) {
  .site-header { top: 12px; padding-inline: 12px; }
  .nav-shell { min-height: 56px; padding: 7px; }
  .brand { gap: 9px; }
  .nav-status { display: none; }
  h1 { font-size: clamp(34px, 9vw, 46px); }
  .hero { padding: 112px 18px 62px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .command-button { width: 100%; }
  .telemetry-strip { grid-template-columns: 1fr; }
  .section { padding: 72px 18px; }
  .section h2 { font-size: clamp(28px, 8.8vw, 40px); }
  .section-terminal { font-size: 11px; }
  .capability-card { min-height: auto; }
  .feature-primary { min-height: auto; }
  .route-visual { height: 145px; }
  .frame-chip { display: none; }
  .status-panel { border-radius: 26px; }
  .access-terminal { font-size: 11px; }
  .footer-line {
    flex-wrap: wrap;
    white-space: normal;
    row-gap: 4px;
  }
}

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

@media (scripting: none) {
  .reveal { opacity: 1; transform: none; }
}

/* Documentation pages generated from docs/user. */
.doc-page {
  color-scheme: dark;
  --doc-panel: transparent;
  --doc-panel-strong: #0b2144;
  --doc-panel-soft: rgba(255, 255, 255, 0.045);
  --doc-ink: #f3f5f7;
  --doc-text: #d7e3f3;
  --doc-muted: #90a6bf;
  --doc-line: rgba(0, 178, 255, 0.12);
  --doc-line-soft: rgba(0, 178, 255, 0.075);
  --doc-accent: var(--brand-cyan);
  --doc-code-bg: rgba(3, 5, 9, 0.54);
  --doc-code-ink: #dce8ff;
  --doc-pre-bg: #0f141d;
  --doc-pre-ink: #dce8ff;
  background:
    radial-gradient(circle at 16% 0%, rgba(0, 178, 255, 0.10), transparent 30rem),
    linear-gradient(180deg, #123563 0%, #0b2144 38%, #06142a 100%);
  color: var(--doc-text);
}
.doc-page::before {
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.032) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.88), transparent 74%);
}
.doc-page::after { display: none; }
.doc-page ::selection {
  color: var(--ink);
  background: rgba(0, 178, 255, 0.24);
}
.doc-page .skip-link {
  color: var(--ink);
  background: var(--surface-strong);
  border-color: var(--line);
}
.doc-site-header { top: 18px; }
.doc-site-header .nav-shell {
  min-height: 60px;
  color: var(--ink);
  background: rgba(7, 20, 44, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 16px 42px rgba(0,0,0,0.28);
  backdrop-filter: blur(22px) saturate(140%);
}
.doc-page .brand { color: var(--ink); }
.doc-page .nav-links {
  color: var(--muted-strong);
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.045);
}
.doc-page .nav-links a:hover,
.doc-page .nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(255,255,255,0.07);
  transform: none;
}
.doc-lang-switch {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(255,255,255,0.028);
  border: 1px solid rgba(255,255,255,0.07);
  font-size: 12px;
  font-weight: 760;
}
.doc-lang-switch a { padding: 8px 10px; border-radius: 999px; }
.doc-lang-switch a.is-active { color: var(--ink); background: rgba(120, 167, 255, 0.16); }
.doc-shell {
  width: min(calc(100% - 44px), 1260px);
  margin: 0 auto;
  padding: 124px 0 72px;
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.doc-sidebar {
  --doc-sidebar-ink: var(--ink);
  --doc-sidebar-muted: var(--muted-strong);
  --doc-sidebar-accent: var(--accent);
  --doc-sidebar-panel: rgba(13, 38, 78, 0.78);
  --doc-sidebar-panel-hover: rgba(18, 51, 98, 0.88);
  position: sticky;
  top: 104px;
  max-height: calc(100svh - 126px);
  overflow: auto;
  padding: 12px;
  border-radius: 20px;
  background: rgba(7, 20, 44, 0.34);
  border: 1px solid rgba(111, 210, 255, 0.11);
  box-shadow: 0 18px 54px rgba(1, 10, 24, 0.16);
  backdrop-filter: blur(14px);
}
.doc-sidebar-title {
  margin: 2px 8px 12px;
  color: var(--doc-sidebar-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.doc-sidebar-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 13px;
  border: 1px solid rgba(111, 210, 255, 0.2);
  border-radius: 15px;
  color: var(--doc-sidebar-ink);
  background: linear-gradient(180deg, rgba(18, 51, 98, 0.9), var(--doc-sidebar-panel));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 34px rgba(1, 10, 24, 0.28);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.doc-sidebar-toggle span {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.doc-sidebar-toggle strong {
  color: var(--doc-sidebar-ink);
  font-size: 13px;
  font-weight: 820;
}
.doc-sidebar-toggle small {
  color: var(--doc-sidebar-muted);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-sidebar-toggle i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 2px solid var(--doc-sidebar-accent);
  border-bottom: 2px solid var(--doc-sidebar-accent);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}
.doc-sidebar-toggle:hover,
.doc-sidebar-toggle:focus-visible {
  border-color: rgba(111, 210, 255, 0.36);
  background: var(--doc-sidebar-panel-hover);
}
.doc-sidebar nav { display: grid; gap: 2px; }
.doc-nav-link {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 9px;
  border-radius: 10px;
  color: var(--doc-sidebar-muted);
  font-size: 13px;
  line-height: 1.35;
}
.doc-nav-link:hover,
.doc-nav-link:focus-visible {
  color: var(--doc-sidebar-ink);
  background: rgba(255, 255, 255, 0.07);
}
.doc-nav-link.is-active {
  color: var(--doc-sidebar-accent);
  background: transparent;
  font-weight: 740;
  box-shadow: -2px 0 0 var(--doc-sidebar-accent);
  padding-left: 11px;
}
.doc-nav-fallback { color: #d8a14d; font-size: 10px; font-weight: 800; }
.doc-content {
  min-width: 0;
  max-width: 900px;
  padding: clamp(28px, 4vw, 46px);
  --doc-panel: rgba(244, 247, 250, 0.98);
  --doc-panel-strong: #ffffff;
  --doc-panel-soft: rgba(9, 23, 45, 0.045);
  --doc-ink: #091527;
  --doc-text: #273549;
  --doc-muted: #5c6e87;
  --doc-line: rgba(9, 23, 45, 0.12);
  --doc-line-soft: rgba(9, 23, 45, 0.065);
  --doc-accent: #0969da;
  --doc-code-bg: rgba(9, 23, 45, 0.055);
  --doc-code-ink: #0b1a30;
  --doc-pre-bg: #0f141d;
  --doc-pre-ink: #cbd5e1;
  color: var(--doc-text);
  background: var(--doc-panel);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.30), 0 1px 0 rgba(255, 255, 255, 0.62) inset;
  backdrop-filter: blur(18px);
}
.doc-content ::selection,
.legal-content ::selection {
  color: inherit;
  background: rgba(9, 105, 218, 0.16);
}
.doc-kicker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--doc-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}
.doc-kicker a { color: var(--doc-muted); text-decoration: none; }
.doc-kicker a:hover { color: var(--doc-accent); }
.doc-kicker span { color: rgba(92, 110, 135, 0.64); }
.doc-content h1,
.doc-content h2,
.doc-content h3,
.doc-content h4 {
  scroll-margin-top: 112px;
  color: var(--doc-ink);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.doc-content h1 {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--doc-line);
  font-size: clamp(32px, 3.5vw, 46px);
  line-height: 1.12;
}
.doc-content h2 {
  margin-top: 46px;
  margin-bottom: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--doc-line-soft);
  font-size: clamp(23px, 2.1vw, 30px);
  line-height: 1.22;
}
.doc-content h3 { margin-top: 32px; margin-bottom: 10px; font-size: 20px; }
.doc-content h4 { margin-top: 22px; margin-bottom: 8px; font-size: 16px; }
.heading-anchor {
  margin-left: 8px;
  color: rgba(9, 105, 218, 0.46);
  opacity: 0;
  font-size: 0.72em;
  transition: opacity 160ms ease, color 160ms ease;
}
.doc-content :is(h1,h2,h3,h4):hover .heading-anchor { opacity: 1; }
.doc-content p,
.doc-content li,
.doc-content blockquote {
  color: var(--doc-text);
  font-size: 16px;
  line-height: 1.8;
}
.doc-content p {
  max-width: 720px;
  margin-bottom: 1.25em;
}
.doc-content a {
  color: var(--doc-accent);
  text-decoration: underline;
  text-decoration-color: rgba(9, 105, 218, 0.30);
  text-underline-offset: 3px;
}
.doc-content ul,
.doc-content ol { padding-left: 1.35em; }
.doc-content li { margin: 4px 0; }
.doc-content hr { height: 1px; margin: 22px 0; border: 0; background: var(--doc-line-soft); }
.doc-content code {
  padding: 0.14em 0.34em;
  border-radius: 6px;
  color: var(--doc-code-ink);
  background: var(--doc-code-bg);
  border: 1px solid var(--doc-line-soft);
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 0.9em;
}
.doc-content pre {
  overflow: auto;
  margin: 16px 0 24px;
  padding: 16px;
  border-radius: 12px;
  background: var(--doc-pre-bg);
  border: 1px solid var(--doc-line-soft);
  box-shadow: none;
}
.doc-content pre code {
  display: block;
  padding: 0;
  color: var(--doc-pre-ink);
  background: transparent;
  border: 0;
  line-height: 1.62;
  font-size: 13px;
}
.doc-table {
  overflow: auto;
  margin: 16px 0 26px;
  border-radius: 12px;
  border: 1px solid var(--doc-line);
  background: var(--doc-panel-strong);
}
.doc-table table { width: 100%; min-width: 620px; border-collapse: collapse; background: transparent; }
.doc-table th,
.doc-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--doc-line);
  vertical-align: top;
  text-align: left;
  line-height: 1.55;
}
.doc-table th {
  color: var(--doc-ink);
  background: var(--doc-panel-soft);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: none;
}
.doc-table td { color: var(--doc-text); font-size: 14px; }
.doc-note,
.doc-content blockquote {
  margin: 18px 0 26px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #edf7ff;
  border: 1px solid rgba(9, 105, 218, 0.13);
}
.doc-note strong { display: block; margin-bottom: 6px; color: var(--doc-ink); }
.doc-note p { margin: 0; }
.doc-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--doc-line-soft);
}
.doc-pagination a {
  min-height: 82px;
  padding: 14px;
  border-radius: 12px;
  color: var(--doc-ink);
  text-decoration: none;
  background: var(--doc-panel-strong);
  border: 1px solid var(--doc-line-soft);
}
.doc-pagination a:hover { border-color: rgba(9, 105, 218, 0.30); }
.doc-pagination span {
  display: block;
  margin-bottom: 7px;
  color: var(--doc-muted);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.02em;
}
.doc-next { text-align: right; }
.doc-next:first-child { grid-column: 2; }
.doc-footer {
  color: var(--doc-muted);
  background: rgba(5, 16, 35, 0.54);
  border-top-color: var(--doc-line-soft);
}
.doc-footer .footer-line span,
.doc-footer .footer-line a { color: var(--doc-muted); }
.doc-footer .footer-line a:hover,
.doc-footer .footer-line a:focus-visible { color: var(--doc-accent); }

/* Legal and App Store review pages. */
.legal-page {
  background:
    radial-gradient(circle at 16% 0%, rgba(0, 178, 255, 0.10), transparent 30rem),
    linear-gradient(180deg, #123563 0%, #0b2144 38%, #06142a 100%);
}
.legal-shell {
  width: min(calc(100% - 44px), 860px);
  margin: 0 auto;
  padding: 118px 0 72px;
}
.legal-content {
  display: block;
  padding: clamp(28px, 4vw, 46px);
  --doc-panel: rgba(244, 247, 250, 0.98);
  --doc-panel-strong: #ffffff;
  --doc-panel-soft: rgba(9, 23, 45, 0.045);
  --doc-ink: #091527;
  --doc-text: #273549;
  --doc-muted: #5c6e87;
  --doc-line: rgba(9, 23, 45, 0.12);
  --doc-line-soft: rgba(9, 23, 45, 0.065);
  --doc-accent: #0969da;
  --doc-code-bg: rgba(9, 23, 45, 0.055);
  --doc-code-ink: #0b1a30;
  color: var(--doc-text);
  background: var(--doc-panel);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.30), 0 1px 0 rgba(255, 255, 255, 0.62) inset;
  backdrop-filter: blur(18px);
}
.legal-hero {
  padding: 0 0 28px;
  border-bottom: 1px solid var(--doc-line-soft);
}
.legal-hero h1 {
  max-width: 760px;
  margin: 0 0 14px;
  color: var(--doc-ink);
  font-size: clamp(36px, 7vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}
.legal-hero p {
  max-width: 760px;
  color: var(--doc-text);
  font-size: 17px;
  line-height: 1.72;
}
.legal-meta-strip {
  display: grid;
  gap: 4px;
  margin-top: 20px;
  color: var(--doc-muted);
  font-size: 13px;
  line-height: 1.55;
}
.legal-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--doc-line-soft);
}
.legal-card h2 {
  margin: 0 0 10px;
  color: var(--doc-ink);
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -0.025em;
}
.legal-card p,
.legal-card li,
.legal-card blockquote {
  color: var(--doc-text);
  font-size: 15.5px;
  line-height: 1.76;
}
.legal-card p { margin: 10px 0 0; }
.legal-card ul { margin: 10px 0 0; padding-left: 1.25em; }
.legal-card li { margin: 5px 0; }
.legal-card a {
  color: var(--doc-accent);
  text-decoration: none;
}
.legal-card a:hover,
.legal-card a:focus-visible {
  color: #073b75;
}
.legal-card blockquote {
  margin: 14px 0 0;
  padding: 14px 0 14px 18px;
  border-left: 3px solid var(--doc-accent);
}
.legal-callout {
  border-top: 1px solid var(--doc-line-soft);
}
.legal-link-grid,
.legal-contact-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.legal-link-grid a,
.legal-contact-grid > div {
  display: grid;
  gap: 6px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--doc-line-soft);
}
.legal-link-grid a {
  text-decoration: none;
}
.legal-link-grid span {
  color: var(--doc-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.legal-link-grid strong {
  color: var(--doc-ink);
  line-height: 1.4;
}
.legal-contact-grid h2 { font-size: 20px; }
.legal-contact-grid p { margin: 0; }

@media (max-width: 1040px) {
  .doc-shell { grid-template-columns: 1fr; padding-top: 112px; }
  .doc-sidebar { position: relative; top: auto; max-height: none; border-right: 0; border-bottom: 1px solid var(--doc-line-soft); padding-bottom: 18px; }
  .js-enabled .doc-sidebar {
    padding: 10px;
    border-radius: 18px;
  }
  .js-enabled .doc-sidebar-title { display: none; }
  .js-enabled .doc-sidebar-toggle { display: flex; }
  .js-enabled .doc-sidebar:not(.is-open) nav { display: none; }
  .js-enabled .doc-sidebar.is-open .doc-sidebar-toggle { margin-bottom: 10px; }
  .js-enabled .doc-sidebar.is-open .doc-sidebar-toggle i { transform: rotate(225deg); }
  .doc-site-header .nav-shell { grid-template-columns: 1fr auto; }
  .legal-shell { grid-template-columns: 1fr; padding-top: 112px; }
  .legal-sidebar { position: relative; top: auto; border-right: 0; border-bottom: 1px solid var(--doc-line-soft); padding: 0 0 18px; }
  .legal-sidebar nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .doc-site-header { top: 12px; }
  .doc-shell { width: min(calc(100% - 28px), 1260px); padding-top: 94px; }
  .doc-content { padding: 22px 18px 26px; border-radius: 22px; }
  .doc-lang-switch { font-size: 11px; }
  .doc-pagination { grid-template-columns: 1fr; }
  .doc-next:first-child { grid-column: auto; }
  .doc-next { text-align: left; }
  .legal-shell { width: min(calc(100% - 28px), 1220px); padding-top: 94px; }
  .legal-content { padding: 22px 18px 26px; border-radius: 22px; }
  .legal-sidebar nav,
  .legal-link-grid,
  .legal-contact-grid { grid-template-columns: 1fr; }
  .legal-hero { border-radius: 22px; }
  .legal-hero h1 { font-size: clamp(34px, 10.8vw, 44px); }
}
