:root {
  --bg: #070b12;
  --bg-elevated: #0b121d;
  --surface: #0e1724;
  --surface-raised: #131f2f;
  --surface-soft: rgba(18, 31, 47, 0.66);
  --text: #f2f6fb;
  --text-muted: #91a3b8;
  --text-dim: #60738a;
  --line: rgba(162, 188, 215, 0.16);
  --line-strong: rgba(162, 188, 215, 0.3);
  --accent: #68ddff;
  --accent-strong: #2397ff;
  --accent-soft: rgba(104, 221, 255, 0.12);
  --warm: #f5b858;
  --success: #9de56a;
  --danger: #ff7f74;
  --heading: 'Space Grotesk', 'IBM Plex Sans', 'Noto Sans SC', sans-serif;
  --body: 'IBM Plex Sans', 'Noto Sans SC', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
  --container: 1200px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: '';
  opacity: 0.18;
  background-image: linear-gradient(rgba(128, 163, 197, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(128, 163, 197, 0.06) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}

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

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

button,
a.button,
.card-link,
.text-link,
.desktop-nav a,
.mobile-nav a,
.header-github,
.lang-toggle {
  cursor: pointer;
}

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

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

.container {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--bg);
  background: var(--accent);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.site-shell {
  position: relative;
  isolation: isolate;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(7, 11, 18, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand-mark-wrap {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
}

.brand-mark {
  width: 44px;
  height: 44px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}

.brand-name {
  font-family: var(--heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.21em;
}

.brand-type {
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.3em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: 36px;
}

.desktop-nav a,
.mobile-nav a {
  position: relative;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  transition: color 180ms ease;
}

.desktop-nav a::after,
.mobile-nav a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  content: '';
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms var(--ease);
}

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

.desktop-nav a:hover::after,
.mobile-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.header-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 12px;
  transition: color 180ms ease;
}

.header-github:hover {
  color: var(--text);
}

.header-github svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.lang-toggle,
.menu-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.lang-toggle:hover {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(104, 221, 255, 0.42);
}

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

.menu-toggle span {
  position: absolute;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle span:first-child {
  transform: translateY(-3px);
}

.menu-toggle span:last-child {
  transform: translateY(3px);
}

.menu-toggle[aria-expanded='true'] span:first-child {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:last-child {
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: 780px;
  padding: 178px 0 65px;
  overflow: hidden;
  background: radial-gradient(circle at 79% 36%, rgba(27, 110, 163, 0.22), transparent 30%), radial-gradient(circle at 22% 14%, rgba(12, 82, 127, 0.16), transparent 24%);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: '';
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.section-grid::before {
  position: absolute;
  top: 120px;
  left: 50%;
  width: 1px;
  height: calc(100% - 120px);
  content: '';
  background: linear-gradient(to bottom, transparent, rgba(103, 148, 182, 0.13), transparent);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  pointer-events: none;
}

.hero-glow-one {
  top: 152px;
  right: 7%;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(104, 221, 255, 0.1);
  box-shadow: 0 0 0 48px rgba(104, 221, 255, 0.018), 0 0 0 100px rgba(104, 221, 255, 0.012);
}

.hero-glow-two {
  top: 256px;
  right: 18%;
  width: 210px;
  height: 210px;
  border: 1px dashed rgba(245, 184, 88, 0.24);
  animation: orbit 18s linear infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(500px, 1.12fr);
  align-items: center;
  gap: 70px;
}

.hero-copy {
  min-width: 0;
  padding-bottom: 18px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.17em;
  line-height: 1.2;
}

.eyebrow > span:first-child:not(.eyebrow-dot) {
  color: var(--text-dim);
}

.eyebrow-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(104, 221, 255, 0.12), 0 0 18px rgba(104, 221, 255, 0.8);
}

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

h1,
h2,
h3 {
  color: var(--text);
  font-family: var(--heading);
}

h1 {
  max-width: 680px;
  margin-bottom: 25px;
  font-size: clamp(44px, 5.2vw, 73px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.hero-lede {
  min-width: 0;
  max-width: 480px;
  margin-bottom: 34px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.8;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1;
  transition: transform 180ms var(--ease), border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

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

.button-primary {
  color: #061016;
  background: var(--accent);
  box-shadow: 0 10px 26px rgba(104, 221, 255, 0.15);
}

.button-primary:hover {
  background: #9deaff;
  box-shadow: 0 14px 32px rgba(104, 221, 255, 0.23);
}

.button-secondary,
.button-quiet {
  color: var(--text);
  background: transparent;
  border-color: var(--line-strong);
}

.button-secondary:hover,
.button-quiet:hover {
  background: rgba(152, 189, 220, 0.08);
  border-color: rgba(104, 221, 255, 0.52);
}

.button-quiet {
  color: var(--text-muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 57px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
}

.hero-meta span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-meta strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.hero-meta small {
  color: var(--text-dim);
  font-size: 11px;
}

.hero-visual {
  position: relative;
  min-width: 0;
  padding: 0 18px 34px;
}

.visual-topline,
.visual-caption,
.panel-header,
.panel-footer,
.terminal-meta,
.terminal-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.visual-topline {
  margin: 0 10px 12px;
}

.live-status {
  color: var(--success);
}

.live-status i,
.proof-signal,
.panel-footer i,
.terminal-status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  background: currentColor;
  border-radius: 999px;
  box-shadow: 0 0 12px currentColor;
}

.editor-frame {
  position: relative;
  min-width: 0;
  padding: 7px;
  background: linear-gradient(135deg, rgba(158, 206, 234, 0.42), rgba(52, 96, 126, 0.22) 45%, rgba(7, 11, 18, 0.7));
  border: 1px solid rgba(145, 204, 231, 0.33);
  border-radius: 14px;
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(104, 221, 255, 0.06), 0 0 80px rgba(0, 137, 190, 0.12);
  transform: perspective(1100px) rotateY(-4deg) rotateX(1deg);
  transition: transform 500ms var(--ease), box-shadow 300ms ease;
}

.hero-visual:hover .editor-frame {
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(104, 221, 255, 0.16), 0 0 105px rgba(0, 137, 190, 0.19);
  transform: perspective(1100px) rotateY(-1deg) rotateX(0deg) translateY(-3px);
}

.editor-toolbar {
  display: flex;
  height: 27px;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  background: #101923;
  border-bottom: 1px solid rgba(163, 205, 230, 0.15);
  border-radius: 9px 9px 0 0;
  color: #8ca2b9;
  font-family: var(--mono);
  font-size: 8px;
}

.window-dots,
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.window-dots i,
.toolbar-actions b {
  display: block;
  width: 5px;
  height: 5px;
  background: #4b637b;
  border-radius: 50%;
}

.window-dots i:first-child {
  background: #e68676;
}

.window-dots i:nth-child(2) {
  background: #e6bb76;
}

.window-dots i:nth-child(3) {
  background: #79c48c;
}

.toolbar-title {
  color: #b3c7d8;
}

.editor-screenshot {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #0a0f15;
  border-radius: 0 0 9px 9px;
  aspect-ratio: 1.58;
}

.editor-screenshot img {
  min-width: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.86) contrast(1.04) brightness(0.92);
}

.scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(210, 244, 255, 0.07) 4px);
  mix-blend-mode: screen;
}

.visual-caption {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.visual-caption span:last-child {
  color: var(--accent);
}

.hero-scroll-hint {
  position: absolute;
  right: 0;
  bottom: 23px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.scroll-line {
  width: 35px;
  height: 1px;
  background: var(--line-strong);
}

.proof-strip {
  position: relative;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 92px;
  align-items: center;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 45px;
  padding: 0 21px;
  border-right: 1px solid var(--line);
}

.proof-item:first-child {
  padding-left: 0;
}

.proof-item:last-child {
  border-right: 0;
}

.proof-index {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}

.proof-item strong,
.proof-item small {
  display: block;
}

.proof-item strong {
  color: #dbe8f3;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.proof-item small {
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 10px;
  line-height: 1.35;
}

.proof-item-signal .proof-signal {
  width: 8px;
  height: 8px;
  margin: 0 5px 0 0;
  color: var(--success);
}

.engine-ticker {
  position: relative;
  overflow: hidden;
  color: var(--text-dim);
  background: #070d15;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.engine-ticker::before,
.engine-ticker::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 130px;
  pointer-events: none;
  content: '';
}

.engine-ticker::before {
  left: 0;
  background: linear-gradient(90deg, #070d15, transparent);
}

.engine-ticker::after {
  right: 0;
  background: linear-gradient(270deg, #070d15, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  min-height: 43px;
  align-items: center;
  gap: 19px;
  padding: 0 32px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  animation: ticker-scroll 36s linear infinite;
}

.ticker-track span:nth-of-type(4n + 1) {
  color: var(--accent);
}

.ticker-track i {
  display: block;
  width: 4px;
  height: 4px;
  background: var(--warm);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(245, 184, 88, 0.75);
}

.engine-ticker:hover .ticker-track {
  animation-play-state: paused;
}

.section-signal {
  overflow: hidden;
  background: radial-gradient(circle at 86% 18%, rgba(29, 114, 153, 0.15), transparent 25%), #080f18;
}

.section-signal::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  content: '';
  opacity: 0.33;
  background-image: linear-gradient(rgba(104, 221, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(104, 221, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(120deg, #000, transparent 70%);
}

.signal-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  align-items: end;
  gap: 75px;
  margin-bottom: 41px;
}

.signal-heading h2 {
  max-width: 650px;
  margin-bottom: 0;
}

.signal-heading > p {
  max-width: 400px;
  margin: 0 0 5px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

.signal-metrics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(9, 19, 30, 0.72);
}

.signal-metrics div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 57px;
  padding: 0 18px;
  border-right: 1px solid var(--line);
}

.signal-metrics div:last-child {
  border-right: 0;
}

.signal-metrics strong {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
}

.signal-metrics span {
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.signal-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}

.signal-card {
  position: relative;
  min-height: 284px;
  padding: 25px;
  overflow: hidden;
  background: rgba(12, 24, 37, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 220ms ease, background-color 220ms ease, transform 220ms var(--ease), box-shadow 220ms ease;
}

.signal-card::after {
  position: absolute;
  top: -75px;
  right: -80px;
  width: 180px;
  height: 180px;
  content: '';
  border: 1px solid rgba(104, 221, 255, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(104, 221, 255, 0.025);
}

.signal-card:hover {
  background: rgba(17, 35, 51, 0.94);
  border-color: rgba(104, 221, 255, 0.38);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
}

.signal-card-runtime {
  grid-row: span 2;
  min-height: 581px;
  background: radial-gradient(circle at 78% 16%, rgba(20, 118, 150, 0.2), transparent 35%), rgba(12, 29, 43, 0.86);
}

.signal-card-script {
  grid-column: span 2;
  min-height: 238px;
}

.signal-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.11em;
}

.signal-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-size: 8px;
}

.signal-status i {
  display: block;
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.signal-status-blue { color: var(--accent); }
.signal-status-warm { color: var(--warm); }
.signal-status-purple { color: #b9a4ff; }

.signal-card h3 {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 48px 0 13px;
  font-size: 25px;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.signal-card p {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.75;
}

.signal-pipeline {
  position: absolute;
  right: 25px;
  bottom: 28px;
  left: 25px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #b3ccdc;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.signal-pipeline i {
  display: block;
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--accent), rgba(104, 221, 255, 0.1));
}

.signal-bars {
  position: absolute;
  right: 25px;
  bottom: 30px;
  left: 25px;
  display: grid;
  gap: 7px;
}

.signal-bars span {
  display: block;
  height: 4px;
  overflow: hidden;
  background: rgba(162, 188, 215, 0.13);
  border-radius: 99px;
}

.signal-bars i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  border-radius: inherit;
}

.signal-tags {
  position: absolute;
  right: 25px;
  bottom: 27px;
  left: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.signal-tags span {
  padding: 5px 6px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.signal-tags span:first-child,
.signal-tags span:nth-child(4) {
  color: var(--accent);
  border-color: rgba(104, 221, 255, 0.35);
}

.signal-code {
  position: absolute;
  right: 25px;
  bottom: 24px;
  left: 25px;
  display: flex;
  gap: 18px;
  color: #aabfd2;
  font-family: var(--mono);
  font-size: 10px;
}

.signal-code em {
  color: #b9a4ff;
  font-style: normal;
}

.section {
  position: relative;
  padding: 142px 0;
}

.section-heading {
  min-width: 0;
  max-width: 600px;
  margin-bottom: 56px;
}

.section-heading h2,
.gallery-heading h2,
.cta-inner h2 {
  margin-bottom: 17px;
  font-size: clamp(34px, 4.2vw, 53px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.section-heading > p:last-child,
.gallery-heading > p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
}

.section-features {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 42%);
}

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

.feature-card {
  position: relative;
  min-height: 314px;
  padding: 27px;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(18, 31, 47, 0.9), rgba(11, 19, 30, 0.84));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 220ms ease, background-color 220ms ease, transform 220ms var(--ease), box-shadow 220ms ease;
}

.feature-card:hover {
  border-color: rgba(104, 221, 255, 0.4);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(104, 221, 255, 0.04);
  transform: translateY(-4px);
}

.feature-card-large {
  grid-column: span 2;
  min-height: 385px;
  background: radial-gradient(circle at 78% 23%, rgba(32, 130, 164, 0.21), transparent 31%), linear-gradient(140deg, #102333, #0a121e);
}

.feature-card-build {
  background: radial-gradient(circle at 88% 18%, rgba(245, 184, 88, 0.13), transparent 30%), linear-gradient(140deg, rgba(21, 31, 43, 0.94), rgba(11, 17, 26, 0.92));
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-kicker,
.card-index {
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.card-index {
  color: rgba(104, 221, 255, 0.6);
  font-size: 13px;
}

.feature-card h3 {
  max-width: 330px;
  margin: 29px 0 10px;
  font-size: 23px;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.feature-card p {
  max-width: 360px;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.feature-icon {
  position: absolute;
  top: 64px;
  right: 28px;
}

.icon-rhi {
  display: flex;
  align-items: end;
  gap: 5px;
  width: 74px;
  height: 50px;
}

.icon-rhi span {
  display: block;
  width: 16px;
  border: 1px solid rgba(104, 221, 255, 0.72);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, rgba(104, 221, 255, 0.05), rgba(104, 221, 255, 0.3));
}

.icon-rhi span:nth-child(1) { height: 24px; }
.icon-rhi span:nth-child(2) { height: 39px; border-color: rgba(104, 221, 255, 0.94); }
.icon-rhi span:nth-child(3) { height: 32px; border-color: rgba(245, 184, 88, 0.82); }

.icon-editor {
  display: grid;
  width: 58px;
  height: 43px;
  grid-template-columns: 13px 1fr;
  grid-template-rows: 9px 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(104, 221, 255, 0.6);
  border-radius: 5px;
}

.icon-editor span {
  display: block;
  background: rgba(104, 221, 255, 0.24);
}

.icon-editor span:first-child {
  grid-column: 1 / -1;
  background: rgba(245, 184, 88, 0.5);
}

.icon-editor span:nth-child(2) { background: rgba(104, 221, 255, 0.18); }
.icon-editor span:nth-child(3) { border: 1px solid rgba(104, 221, 255, 0.48); background: transparent; }

.icon-assets {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.icon-assets span {
  display: block;
  width: 47px;
  padding: 3px 6px;
  color: var(--accent);
  background: rgba(104, 221, 255, 0.08);
  border: 1px solid rgba(104, 221, 255, 0.32);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-align: center;
}

.icon-assets span:nth-child(2) { transform: translateX(-9px); opacity: 0.72; }
.icon-assets span:nth-child(3) { transform: translateX(-18px); opacity: 0.48; }

.mini-diagram {
  position: absolute;
  right: 28px;
  bottom: 29px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a4bbce;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.mini-diagram i,
.build-label i {
  display: block;
  width: 17px;
  height: 1px;
  background: var(--accent);
  opacity: 0.66;
}

.card-link {
  position: absolute;
  bottom: 26px;
  left: 27px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  transition: color 180ms ease;
}

.card-link:hover,
.text-link:hover {
  color: #b3f3ff;
}

.card-link span,
.text-link span {
  display: inline-block;
  margin-left: 5px;
  transition: transform 180ms var(--ease);
}

.card-link:hover span,
.text-link:hover span {
  transform: translate(3px, -3px);
}

.code-chip {
  position: absolute;
  top: 75px;
  right: 27px;
  display: flex;
  flex-direction: column;
  color: #b9d3e6;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
}

.code-muted { color: #9c91ce; }
.code-accent { color: var(--accent); }
.code-brace { color: var(--warm); }
.code-line { width: 26px; height: 1px; margin: 2px 0 2px 5px; background: rgba(104, 221, 255, 0.54); }

.script-tags {
  position: absolute;
  bottom: 28px;
  left: 27px;
  display: flex;
  gap: 6px;
}

.script-tags span {
  padding: 4px 6px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 8px;
}

.script-tags span:first-child { color: var(--accent); border-color: rgba(104, 221, 255, 0.38); }

.simulation-orbit {
  position: absolute;
  top: 65px;
  right: 36px;
  width: 60px;
  height: 47px;
  border: 1px solid rgba(104, 221, 255, 0.4);
  border-radius: 50%;
  transform: rotate(-23deg);
}

.simulation-orbit::before,
.simulation-orbit::after {
  position: absolute;
  inset: 9px -1px;
  content: '';
  border: 1px solid rgba(245, 184, 88, 0.4);
  border-radius: 50%;
  transform: rotate(65deg);
}

.simulation-orbit::after { inset: 0 17px; transform: rotate(90deg); }
.simulation-orbit span,
.simulation-orbit i,
.simulation-orbit b { position: absolute; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.simulation-orbit span { top: -3px; left: 26px; }
.simulation-orbit i { right: -3px; bottom: 8px; background: var(--warm); box-shadow: 0 0 14px var(--warm); }
.simulation-orbit b { bottom: 6px; left: 7px; background: var(--success); box-shadow: 0 0 14px var(--success); }

.build-label {
  position: absolute;
  right: 25px;
  bottom: 27px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--warm);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.build-label i { background: var(--warm); opacity: 0.65; }

.section-architecture {
  padding-top: 0;
  background: linear-gradient(180deg, var(--bg) 0%, #091621 40%, #09111b 100%);
}

.architecture-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(500px, 1.2fr);
  align-items: center;
  gap: 95px;
  padding: 104px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.architecture-grid .section-heading {
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 26px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  transition: color 180ms ease;
}

.architecture-panel {
  min-width: 0;
  overflow: hidden;
  background: rgba(7, 15, 25, 0.85);
  border: 1px solid rgba(104, 221, 255, 0.22);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.28);
}

.panel-header,
.panel-footer {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-live {
  color: var(--success);
}

.thread-stack {
  padding: 22px 20px 18px;
}

.thread-row {
  display: grid;
  grid-template-columns: 31px minmax(120px, 1fr) minmax(120px, 0.72fr) minmax(95px, 0.8fr);
  align-items: center;
  gap: 13px;
  min-height: 52px;
  border-bottom: 1px solid rgba(162, 188, 215, 0.1);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 9px;
}

.thread-row:last-child {
  border-bottom: 0;
}

.thread-row-active {
  color: var(--text);
}

.thread-index {
  color: var(--accent);
}

.thread-name {
  letter-spacing: 0.05em;
}

.thread-desc {
  color: var(--text-dim);
}

.thread-bar {
  display: block;
  height: 4px;
  overflow: hidden;
  background: rgba(162, 188, 215, 0.13);
  border-radius: 999px;
}

.thread-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  border-radius: inherit;
}

.thread-row:first-child .thread-bar i { background: linear-gradient(90deg, #557aab, #79a9ce); }
.thread-row:last-child .thread-bar i { background: linear-gradient(90deg, #b9813f, var(--warm)); }

.panel-code {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  color: #b8ccdc;
  background: rgba(10, 22, 35, 0.75);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
}

.panel-code .code-comment {
  color: #5a7791;
}

.panel-code em {
  color: var(--accent);
  font-style: normal;
}

.code-caret {
  color: var(--accent);
  animation: blink 1.1s steps(2, jump-none) infinite;
}

.panel-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.panel-footer span:first-child {
  color: var(--success);
}

.section-workflow {
  background: #070d15;
}

.section-heading-centered {
  max-width: 670px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading-centered .eyebrow {
  justify-content: center;
}

.section-heading-centered > p:last-child {
  margin-right: auto;
  margin-left: auto;
}

.workflow-steps {
  display: grid;
  grid-template-columns: 1fr 42px 1fr 42px 1fr 42px 1fr;
  align-items: center;
  gap: 12px;
}

.workflow-step {
  position: relative;
  min-height: 253px;
  padding: 26px 21px;
  background: rgba(15, 26, 40, 0.54);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 200ms ease, background-color 200ms ease, transform 200ms var(--ease);
}

.workflow-step:hover {
  background: rgba(18, 35, 53, 0.78);
  border-color: rgba(104, 221, 255, 0.32);
  transform: translateY(-4px);
}

.step-number {
  display: block;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.step-icon {
  display: flex;
  height: 45px;
  align-items: center;
  justify-content: center;
  margin-top: 19px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
}

.step-icon-project { gap: 4px; align-items: flex-end; }
.step-icon-project i { display: block; width: 13px; border: 1px solid var(--accent); border-radius: 3px 3px 0 0; }
.step-icon-project i:nth-child(1) { height: 21px; opacity: 0.42; }
.step-icon-project i:nth-child(2) { height: 35px; opacity: 0.72; }
.step-icon-project i:nth-child(3) { height: 27px; border-color: var(--warm); }
.step-icon-scene { position: relative; }
.step-icon-scene::before { width: 46px; height: 32px; content: ''; border: 1px solid var(--accent); border-radius: 4px; transform: skewY(-6deg); }
.step-icon-scene i { position: absolute; display: block; width: 7px; height: 7px; border: 1px solid var(--warm); border-radius: 50%; }
.step-icon-scene i:first-child { transform: translate(-13px, -9px); }
.step-icon-scene i:last-child { transform: translate(13px, 9px); background: var(--accent); }
.step-icon-code { color: var(--warm); }
.step-icon-code span { padding: 7px 10px; border: 1px solid rgba(245, 184, 88, 0.58); border-radius: 5px; }
.step-icon-play span { display: grid; width: 36px; height: 36px; place-items: center; padding-left: 3px; color: var(--bg); background: var(--accent); border-radius: 50%; font-size: 11px; }

.workflow-step h3 {
  margin: 16px 0 8px;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.workflow-step p {
  margin-bottom: 0;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.65;
}

.workflow-connector {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(104, 221, 255, 0.5), transparent);
}

.section-docs {
  background: linear-gradient(180deg, #080f18 0%, #0c1823 100%);
  border-top: 1px solid var(--line);
}

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

.doc-card {
  position: relative;
  display: block;
  min-height: 326px;
  padding: 26px;
  overflow: hidden;
  color: inherit;
  background: rgba(13, 25, 39, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms var(--ease);
}

.doc-card-feature {
  background: radial-gradient(circle at 80% 19%, rgba(32, 130, 164, 0.2), transparent 34%), rgba(13, 29, 43, 0.88);
}

.doc-card:hover {
  background-color: rgba(18, 38, 56, 0.9);
  border-color: rgba(104, 221, 255, 0.4);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
}

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

.doc-card-top,
.doc-card-meta,
.platform-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.doc-kicker,
.doc-arrow,
.doc-card-meta,
.platform-code,
.status-chip,
.platform-link,
.platform-note {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.doc-kicker,
.platform-code {
  color: var(--text-dim);
}

.doc-arrow {
  color: var(--accent);
  font-size: 14px;
  transition: transform 180ms var(--ease);
}

.doc-card:hover .doc-arrow {
  transform: translate(3px, -3px);
}

.doc-icon {
  display: flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin: 35px 0 22px;
  color: var(--accent);
  border: 1px solid rgba(104, 221, 255, 0.4);
  border-radius: 9px;
}

.doc-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.doc-icon-terminal,
.doc-icon-editor,
.doc-icon-graph {
  display: grid;
  padding: 0;
  border: 1px solid rgba(104, 221, 255, 0.4);
}

.doc-icon-terminal svg path:first-of-type {
  stroke: var(--warm);
}

.doc-icon-terminal svg path:last-of-type {
  stroke: var(--accent);
}

.doc-icon-editor svg path:first-of-type {
  stroke: var(--warm);
}

.doc-icon-graph svg rect:nth-child(1) {
  stroke: var(--accent);
}

.doc-icon-graph svg rect:nth-child(2) {
  stroke: var(--success);
}

.doc-icon-graph svg rect:nth-child(3) {
  stroke: var(--warm);
}

.doc-icon-graph svg path {
  stroke: var(--accent);
}

.doc-icon-terminal span {
  color: var(--warm);
  font-family: var(--mono);
  font-size: 13px;
}

.doc-icon-editor {
  display: grid;
  grid-template-columns: 12px 1fr;
  grid-template-rows: 8px 1fr;
  gap: 4px;
  padding: 7px;
}

.doc-icon-editor i {
  display: block;
  background: rgba(104, 221, 255, 0.25);
}

.doc-icon-editor i:first-child {
  grid-column: 1 / -1;
  background: rgba(245, 184, 88, 0.65);
}

.doc-icon-editor i:last-child {
  border: 1px solid rgba(104, 221, 255, 0.45);
  background: transparent;
}

.doc-icon-graph {
  position: relative;
  border: 0;
}

.doc-icon-graph span,
.doc-icon-graph i {
  position: absolute;
  display: block;
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
}

.doc-icon-graph span:nth-child(1) { top: 4px; left: 8px; }
.doc-icon-graph span:nth-child(2) { top: 25px; left: 4px; border-color: var(--warm); }
.doc-icon-graph span:nth-child(3) { right: 5px; bottom: 5px; border-color: var(--success); }
.doc-icon-graph i { width: 22px; height: 1px; border: 0; border-radius: 0; background: var(--accent); transform: rotate(44deg); }
.doc-icon-graph i:nth-of-type(1) { top: 18px; left: 11px; }
.doc-icon-graph i:nth-of-type(2) { right: 8px; bottom: 17px; transform: rotate(54deg); }

.doc-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.doc-card p {
  max-width: 330px;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.doc-card-meta {
  position: absolute;
  right: 26px;
  bottom: 24px;
  left: 26px;
  color: var(--text-dim);
}

.doc-card-meta span:last-child {
  color: var(--accent);
}

.docs-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 21px;
  padding-top: 19px;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.docs-foot-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.docs-foot a {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}

.docs-foot a span,
.platform-link span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 180ms var(--ease);
}

.docs-foot a:hover span,
.platform-link:hover span {
  transform: translate(3px, -3px);
}

.section-platforms {
  background: #070e16;
  border-top: 1px solid var(--line);
}

.platform-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 49px;
}

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

.platform-heading > p {
  max-width: 390px;
  margin: 0 0 5px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}

.platform-card {
  position: relative;
  min-height: 304px;
  padding: 22px 21px;
  overflow: hidden;
  background: rgba(14, 26, 40, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: background-color 220ms ease, border-color 220ms ease, transform 220ms var(--ease);
}

.platform-card-active {
  background: radial-gradient(circle at 82% 10%, rgba(34, 139, 181, 0.14), transparent 34%), rgba(13, 28, 43, 0.83);
}

.platform-card-muted {
  background: rgba(9, 17, 27, 0.68);
}

.platform-card:hover {
  border-color: rgba(104, 221, 255, 0.34);
  transform: translateY(-3px);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 6px;
  border: 1px solid currentColor;
  border-radius: 4px;
  letter-spacing: 0.07em;
}

.status-chip i {
  display: block;
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 9px currentColor;
}

.status-validated { color: var(--success); }
.status-target { color: var(--warm); }
.status-planned { color: var(--text-dim); }

.platform-card h3 {
  margin: 44px 0 2px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.platform-backend {
  margin: 0 0 15px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.platform-card > p:not(.platform-backend) {
  max-width: 220px;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.platform-link {
  position: absolute;
  right: 21px;
  bottom: 21px;
  left: 21px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.platform-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 19px;
  color: var(--text-dim);
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.platform-note-mark {
  display: inline-grid;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  place-items: center;
  color: var(--accent);
  border: 1px solid rgba(104, 221, 255, 0.45);
  border-radius: 50%;
  font-family: var(--body);
  font-size: 11px;
}

.section-gallery {
  background: linear-gradient(180deg, #070d15 0%, #0b151f 100%);
}

.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 45px;
}

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

.gallery-heading .eyebrow {
  margin-bottom: 19px;
}

.gallery-heading .text-link {
  margin: 0 0 5px;
  white-space: nowrap;
}

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(280px, 0.8fr);
  gap: 15px;
  align-items: end;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-image-wrap {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #09111a;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.gallery-main .gallery-image-wrap {
  aspect-ratio: 1.56;
}

.gallery-side .gallery-image-wrap {
  aspect-ratio: 1.35;
}

.gallery-image-wrap::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: '';
  background: linear-gradient(180deg, transparent 45%, rgba(4, 9, 15, 0.72));
}

.gallery-image-wrap img {
  min-width: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.86);
  transition: transform 500ms var(--ease), filter 300ms ease;
}

.gallery-main:hover img,
.gallery-side:hover img {
  filter: saturate(1) brightness(0.98);
  transform: scale(1.025);
}

.image-label {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 13px;
  color: rgba(238, 249, 255, 0.84);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.gallery-grid figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 3px 0;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.gallery-grid figcaption span:last-child {
  color: var(--text-dim);
  text-align: right;
}

.section-start {
  background: #0a131d;
  border-top: 1px solid var(--line);
}

.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(500px, 1.18fr);
  align-items: center;
  gap: 90px;
}

.start-grid .section-heading {
  margin: 0;
}

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

.requirements span {
  padding: 6px 8px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 9px;
}

.terminal-card {
  min-width: 0;
  overflow: hidden;
  background: #071019;
  border: 1px solid rgba(104, 221, 255, 0.24);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
}

.terminal-tabs {
  display: flex;
  gap: 3px;
  padding: 7px;
  background: rgba(18, 31, 47, 0.8);
  border-bottom: 1px solid var(--line);
}

.terminal-tab {
  min-height: 35px;
  padding: 5px 14px;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 10px;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.terminal-tab:hover,
.terminal-tab.is-active {
  color: var(--accent);
  background: rgba(104, 221, 255, 0.08);
  border-color: rgba(104, 221, 255, 0.2);
}

.terminal-body {
  padding: 20px 21px 17px;
}

.terminal-meta {
  color: var(--accent);
}

.terminal-meta > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-meta > span:first-child i {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 7px;
  color: var(--text-dim);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 9px;
  transition: color 180ms ease, background-color 180ms ease;
}

.copy-button:hover {
  color: var(--text);
  background: rgba(162, 188, 215, 0.08);
}

.copy-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.terminal-code {
  min-height: 242px;
  margin: 19px 0 16px;
  padding: 19px 17px;
  overflow-x: auto;
  color: #c3d4e2;
  background: #050b11;
  border: 1px solid rgba(162, 188, 215, 0.12);
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.85;
  white-space: pre-wrap;
}

.terminal-comment { color: #58738b; }
.terminal-prompt,
.terminal-string { color: var(--warm); }

.terminal-status {
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.terminal-status > span:first-child {
  color: var(--success);
}

.terminal-status i {
  margin-right: 4px;
  color: var(--success);
}

.cta-section {
  position: relative;
  padding: 86px 0;
  overflow: hidden;
  background: radial-gradient(circle at 20% 40%, rgba(41, 122, 162, 0.26), transparent 30%), linear-gradient(105deg, #0d2533, #0b1622 62%, #101b27);
  border-top: 1px solid rgba(104, 221, 255, 0.25);
  border-bottom: 1px solid rgba(104, 221, 255, 0.18);
}

.cta-section::before {
  position: absolute;
  top: -250px;
  right: 8%;
  width: 580px;
  height: 580px;
  content: '';
  border: 1px solid rgba(104, 221, 255, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(104, 221, 255, 0.025), 0 0 0 84px rgba(104, 221, 255, 0.017);
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.cta-inner h2 {
  margin-bottom: 0;
}

.cta-inner .eyebrow {
  color: var(--accent);
  margin-bottom: 18px;
}

.site-footer {
  background: #050a10;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding: 65px 0 56px;
}

.footer-brand p {
  max-width: 260px;
  margin: 20px 0 0;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 56px;
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-label {
  margin-bottom: 5px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 13px;
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 24px;
  color: #53687d;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.footer-build {
  color: #68859f;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

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

.reveal-delay-short { transition-delay: 70ms; }
.reveal-delay { transition-delay: 130ms; }
.reveal-delay-long { transition-delay: 190ms; }

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes orbit {
  to { transform: rotate(337deg); }
}

@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

/* Shared icon language and readable card type scale */
.feature-icon {
  display: grid;
  width: 72px;
  height: 52px;
  place-items: center;
}

.feature-icon svg,
.step-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.icon-rhi svg path:nth-child(3) {
  stroke: var(--warm);
}

.icon-editor svg circle {
  fill: var(--warm);
  stroke: none;
}

.icon-assets svg path:nth-child(1),
.icon-assets svg path:nth-child(3) {
  stroke: var(--warm);
}

.code-chip {
  top: 64px;
  right: 27px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.code-chip svg {
  width: 55px;
  height: 42px;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.code-chip span {
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.simulation-orbit {
  top: 65px;
  right: 27px;
  width: 74px;
  height: 54px;
  border: 0;
  transform: none;
}

.simulation-orbit::before,
.simulation-orbit::after {
  display: none;
}

.simulation-orbit svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(104, 221, 255, 0.66);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.simulation-orbit svg ellipse:nth-child(2) {
  stroke: var(--warm);
}

.simulation-orbit svg ellipse:nth-child(3) {
  stroke: var(--success);
}

.simulation-orbit svg circle:nth-child(4) {
  fill: var(--accent);
  stroke: none;
}

.simulation-orbit svg circle:nth-child(5) {
  fill: var(--warm);
  stroke: none;
}

.simulation-orbit svg circle:nth-child(6) {
  fill: var(--success);
  stroke: none;
}

.feature-card h3 {
  font-size: 25px;
}

.feature-card p {
  font-size: 15px;
  line-height: 1.75;
}

.feature-card:has(.feature-icon) h3,
.feature-card:has(.feature-icon) p,
.feature-card:has(.code-chip) h3,
.feature-card:has(.code-chip) p {
  padding-right: 112px;
}

.card-kicker,
.card-index {
  font-size: 10px;
}

.card-link {
  font-size: 11px;
}

.workflow-step .step-icon {
  display: grid;
  width: 52px;
  height: 48px;
  place-items: center;
  margin-top: 19px;
}

.workflow-step h3 {
  font-size: 20px;
}

.workflow-step p {
  font-size: 15px;
  line-height: 1.7;
}

.step-number {
  font-size: 11px;
}

.doc-card p,
.platform-card > p:not(.platform-backend) {
  font-size: 15px;
  line-height: 1.75;
}

.doc-kicker,
.platform-code,
.status-chip,
.platform-link,
.doc-card-meta {
  font-size: 10px;
}

.proof-item small {
  font-size: 11px;
}

@media (max-width: 1050px) {
  .hero-inner,
  .architecture-grid,
  .start-grid {
    gap: 46px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  }

  .hero-visual {
    padding-right: 0;
    padding-left: 0;
  }

  .desktop-nav {
    margin-right: 8px;
  }

  .header-github span {
    display: none;
  }

  .workflow-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
  }

  .workflow-connector {
    display: none;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 36px), var(--container));
  }

  .desktop-nav,
  .header-github {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .mobile-nav {
    display: flex;
    max-height: 0;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    padding: 0 18px;
    background: rgba(7, 11, 18, 0.97);
    border-bottom: 1px solid transparent;
    transition: max-height 220ms var(--ease), padding 220ms ease, border-color 220ms ease;
  }

  .mobile-nav.is-open {
    max-height: 360px;
    padding-top: 10px;
    padding-bottom: 12px;
    border-bottom-color: var(--line);
  }

  .mobile-nav a {
    padding: 13px 0;
    font-size: 15px;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(162, 188, 215, 0.1);
  }

  .mobile-nav a:last-child {
    border-bottom: 0;
  }

  .mobile-nav a::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 143px;
    padding-bottom: 80px;
  }

  .hero-inner,
  .architecture-grid,
  .start-grid,
  .platform-heading,
  .signal-heading {
    grid-template-columns: minmax(0, 1fr);
  }

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

  h1 {
    font-size: clamp(43px, 9vw, 67px);
  }

  .hero-visual {
    width: min(100%, 690px);
    margin: 20px auto 0;
  }

  .hero-scroll-hint {
    display: none;
  }

  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 16px 0;
  }

  .proof-item,
  .proof-item:first-child {
    min-height: 58px;
    padding: 10px 17px;
    border-bottom: 1px solid var(--line);
  }

  .proof-item:nth-child(2) {
    border-right: 0;
  }

  .proof-item:nth-child(3),
  .proof-item:nth-child(4) {
    border-bottom: 0;
  }

  .section {
    padding: 100px 0;
  }

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

  .feature-card-large {
    grid-column: span 2;
  }

  .architecture-grid {
    padding: 84px 0;
  }

  .architecture-panel,
  .terminal-card,
  .platform-grid {
    width: min(100%, 680px);
  }

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

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

  .signal-metrics div:nth-child(2) {
    border-right: 0;
  }

  .signal-metrics div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .signal-card-runtime {
    grid-row: auto;
    min-height: 360px;
  }

  .signal-card-script {
    grid-column: auto;
  }

  .doc-card-feature {
    grid-column: span 2;
  }

  .platform-heading {
    gap: 22px;
  }

  .start-grid {
    gap: 48px;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 30px), var(--container));
  }

  .brand-mark-wrap,
  .brand-mark {
    width: 38px;
    height: 38px;
  }

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

  .brand-name {
    font-size: 14px;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-glow-one {
    top: 430px;
    right: -230px;
    width: 340px;
    height: 340px;
  }

  .hero-glow-two {
    top: 565px;
    right: 15px;
    width: 150px;
    height: 150px;
  }

  .eyebrow {
    font-size: 9px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(36px, 10.3vw, 53px);
    overflow-wrap: anywhere;
  }

  .hero-lede {
    max-width: 100%;
    font-size: 15px;
  }

  .hero-meta {
    gap: 16px;
    margin-top: 40px;
  }

  .hero-meta strong {
    font-size: 10px;
  }

  .hero-meta small {
    font-size: 9px;
  }

  .hero-visual {
    padding-top: 17px;
  }

  .visual-topline,
  .visual-caption {
    font-size: 8px;
  }

  .proof-grid,
  .feature-grid,
  .workflow-steps,
  .gallery-grid,
  .docs-grid,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .signal-heading {
    gap: 25px;
  }

  .signal-metrics {
    grid-template-columns: 1fr;
  }

  .signal-metrics div,
  .signal-metrics div:nth-child(2) {
    min-height: 48px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-metrics div:last-child {
    border-bottom: 0;
  }

  .signal-card,
  .signal-card-runtime {
    min-height: 330px;
  }

  .signal-card-script {
    grid-column: auto;
  }

  .signal-card h3 {
    font-size: 22px;
  }

  .signal-code {
    gap: 9px;
    font-size: 8px;
  }

  .doc-card-feature {
    grid-column: auto;
  }

  .docs-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .proof-item,
  .proof-item:first-child,
  .proof-item:nth-child(2),
  .proof-item:nth-child(3),
  .proof-item:nth-child(4) {
    min-height: 51px;
    padding: 9px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .feature-card,
  .feature-card-large {
    grid-column: auto;
    min-height: 300px;
  }

  .feature-card-large {
    min-height: 350px;
  }

  .section-heading h2,
  .gallery-heading h2,
  .cta-inner h2 {
    font-size: 36px;
  }

  .thread-row {
    grid-template-columns: 24px 1fr 82px;
    gap: 8px;
    font-size: 8px;
  }

  .thread-desc {
    display: none;
  }

  .panel-code {
    font-size: 8px;
  }

  .gallery-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .gallery-heading .text-link {
    margin: 0;
  }

  .gallery-main .gallery-image-wrap,
  .gallery-side .gallery-image-wrap {
    aspect-ratio: 1.42;
  }

  .gallery-grid figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .gallery-grid figcaption span:last-child {
    text-align: left;
  }

  .terminal-tabs {
    overflow-x: auto;
  }

  .terminal-tab {
    flex: 1 0 auto;
    padding: 5px 11px;
  }

  .terminal-code {
    min-height: 265px;
    padding: 15px 12px;
    font-size: 9px;
  }

  .footer-main,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-main {
    gap: 40px;
    padding: 50px 0 42px;
  }

  .footer-links {
    width: 100%;
    gap: 20px;
  }

  .footer-bottom {
    gap: 10px;
  }

  .footer-build {
    order: 3;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Documentation-style landing pages */
.guide-page {
  background: radial-gradient(circle at 85% 0%, rgba(29, 114, 153, 0.16), transparent 27rem), var(--bg);
}

.guide-header {
  border-bottom: 1px solid var(--line);
}

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

.guide-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.guide-nav > a:not(.lang-toggle) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
  transition: color 180ms ease;
}

.guide-nav > a:not(.lang-toggle):hover,
.guide-breadcrumb a:hover {
  color: var(--accent);
}

.guide-hero {
  max-width: 920px;
  padding: 76px 0 70px;
}

.guide-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 46px;
  color: var(--text-muted);
  font-size: 13px;
}

.guide-breadcrumb a {
  color: var(--text);
  transition: color 180ms ease;
}

.guide-hero h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(40px, 5.1vw, 68px);
  line-height: 1.12;
}

.guide-lead {
  max-width: 750px;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.8;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: start;
  gap: min(8vw, 110px);
}

.guide-article {
  min-width: 0;
  max-width: 800px;
}

.guide-section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.guide-section h2,
.guide-next h2 {
  margin-bottom: 20px;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.guide-section h3 {
  margin: 28px 0 10px;
  font-size: 19px;
}

.guide-section p,
.guide-section li,
.guide-next p {
  color: #b8c8d7;
  font-size: 16px;
  line-height: 1.85;
}

.guide-section p:last-child {
  margin-bottom: 0;
}

.guide-section li + li {
  margin-top: 10px;
}

.guide-section a,
.guide-source {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.guide-section code {
  padding: 2px 5px;
  color: #dbedfc;
  background: var(--surface-raised);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.guide-section pre {
  overflow-x: auto;
  margin: 20px 0;
  padding: 20px;
  background: #050b11;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.guide-section pre code {
  padding: 0;
  background: transparent;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: normal;
}

.guide-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
}

.guide-aside {
  position: sticky;
  top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.guide-aside-label {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.guide-aside nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-aside nav a {
  color: var(--text-muted);
  font-size: 14px;
}

.guide-aside nav a:hover {
  color: var(--accent);
}

.guide-source {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.guide-next {
  margin: 24px 0 90px;
  padding: 32px;
  background: linear-gradient(130deg, #102c3a, #0d1925);
  border: 1px solid rgba(104, 221, 255, 0.2);
  border-radius: 16px;
}

.guide-next h2 {
  margin-bottom: 10px;
}

.guide-next .button {
  margin-top: 8px;
}

.guide-footer {
  border-top: 1px solid var(--line);
  background: #050a10;
}

.guide-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 25px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.guide-footer a {
  color: var(--accent);
}

@media (max-width: 820px) {
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .guide-aside {
    position: static;
    grid-row: 1;
    margin-bottom: 32px;
  }

  .guide-aside nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 20px;
  }
}

@media (max-width: 560px) {
  .guide-header-inner {
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 14px 0;
  }

  .guide-nav {
    flex-wrap: wrap;
    gap: 4px 18px;
  }

  .guide-nav > a:not(.lang-toggle) {
    font-size: 13px;
  }

  .guide-hero {
    padding: 52px 0 48px;
  }

  .guide-breadcrumb {
    margin-bottom: 34px;
  }

  .guide-hero h1 {
    font-size: clamp(36px, 9vw, 48px);
  }

  .guide-lead {
    font-size: 16px;
  }

  .guide-section {
    padding: 32px 0;
  }

  .guide-next {
    padding: 24px;
  }
}
