:root {
  --bg: #07100c;
  --bg-deep: #040806;
  --surface: rgba(13, 26, 20, 0.78);
  --surface-solid: #0c1812;
  --surface-light: #12241b;
  --line: rgba(181, 255, 211, 0.14);
  --line-strong: rgba(181, 255, 211, 0.25);
  --text: #f0f8f3;
  --muted: #93a99c;
  --muted-strong: #b8c9be;
  --green: #8effb7;
  --green-bright: #b8ffd1;
  --green-dark: #143c27;
  --blue: #7dd9ff;
  --purple: #c8a8ff;
  --orange: #ffbe7d;
  --danger: #ff8c8c;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --max-width: 1200px;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(142, 255, 183, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 255, 183, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 8, 6, 0.32) 55%, var(--bg-deep) 100%);
  content: "";
  pointer-events: none;
}

::selection {
  background: var(--green);
  color: #051009;
}

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

button,
textarea {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--green);
  color: #06100a;
  font-weight: 700;
  transform: translateY(-150%);
}

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

.page-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.page-glow-one {
  top: -340px;
  right: -260px;
  width: 820px;
  height: 820px;
  background: radial-gradient(circle, rgba(53, 219, 125, 0.16), rgba(53, 219, 125, 0) 68%);
}

.page-glow-two {
  top: 1200px;
  left: -420px;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(75, 157, 255, 0.08), rgba(75, 157, 255, 0) 70%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 78px;
  margin: 14px auto 0;
  padding: 0 18px;
  border: 1px solid rgba(181, 255, 211, 0.11);
  border-radius: 18px;
  background: rgba(6, 15, 10, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 14px rgba(92, 255, 151, 0.12));
}

.brand-name {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 600;
}

.nav-links a,
.footer-links a,
.text-link,
.feature-card a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.footer-links a:hover,
.text-link:hover,
.feature-card a:hover {
  color: var(--green);
}

.header-cta {
  justify-self: end;
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(142, 255, 183, 0.06);
  color: var(--green-bright);
  font-size: 12px;
  font-weight: 700;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.header-cta:hover {
  border-color: rgba(142, 255, 183, 0.5);
  background: rgba(142, 255, 183, 0.1);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(440px, 0.98fr);
  gap: clamp(48px, 7vw, 92px);
  align-items: center;
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 760px;
  margin: 0 auto;
  padding: 96px 0 86px;
}

.eyebrow,
.section-kicker {
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(142, 255, 183, 0.045);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(142, 255, 183, 0.45);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 7px rgba(142, 255, 183, 0); }
  100% { box-shadow: 0 0 0 0 rgba(142, 255, 183, 0); }
}

.hero h1,
.section h2,
.closing-section h2 {
  margin: 0;
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero h1 {
  margin-top: 27px;
  font-size: clamp(58px, 7vw, 91px);
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(100deg, var(--green-bright) 5%, #83e8ff 72%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lede {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--muted-strong);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: var(--green);
  box-shadow: 0 10px 30px rgba(67, 255, 135, 0.12);
  color: #06110a;
}

.button-primary:hover {
  background: var(--green-bright);
  box-shadow: 0 14px 40px rgba(67, 255, 135, 0.2);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.install-command {
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(100%, 390px);
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(4, 10, 7, 0.72);
  color: var(--muted-strong);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease;
}

.install-command:hover,
.install-command:focus-visible {
  border-color: rgba(142, 255, 183, 0.38);
  background: rgba(10, 27, 17, 0.8);
}

.terminal-prompt {
  color: var(--green);
}

.install-command code {
  overflow: hidden;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-label {
  margin-left: auto;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 23px;
  color: #789084;
  font-size: 11px;
  font-weight: 650;
}

.trust-row span::before {
  margin-right: 7px;
  color: var(--green);
  content: "✓";
}

.hero-demo {
  position: relative;
  perspective: 1000px;
}

.code-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(166, 255, 201, 0.17);
  border-radius: 20px;
  background: rgba(5, 13, 9, 0.88);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transform: rotateY(-2deg) rotateX(1deg);
}

.code-window::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(130, 255, 178, 0.035), transparent 35%);
  content: "";
  pointer-events: none;
}

.window-bar,
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #71877a;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.window-bar {
  height: 49px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.016);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #31533f;
}

.window-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.window-status i,
.matrix-status i,
.safe-badge i,
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(142, 255, 183, 0.55);
}

.code-window pre {
  min-height: 405px;
  margin: 0;
  padding: 28px clamp(20px, 3vw, 36px);
  overflow: auto;
  color: #cfddd4;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(12px, 1.12vw, 14px);
  line-height: 1.85;
}

.syntax-purple { color: var(--purple); }
.syntax-blue { color: var(--blue); }
.syntax-green { color: var(--green-bright); }
.syntax-orange { color: var(--orange); }

.code-result {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 0 16px 16px;
  padding: 13px 14px;
  border: 1px solid rgba(142, 255, 183, 0.15);
  border-radius: 10px;
  background: rgba(142, 255, 183, 0.045);
  color: var(--muted-strong);
  font-size: 11px;
}

.code-result code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-check { color: var(--green); }
.result-time { color: #71877a; }

.floating-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(12, 27, 18, 0.9);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.28);
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(14px);
}

.floating-chip span {
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.floating-chip-top { top: 88px; right: -36px; }
.floating-chip-bottom { bottom: 68px; left: -38px; }

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-strip div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

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

.signal-strip strong {
  font-size: 24px;
  letter-spacing: -0.04em;
}

.signal-strip span {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.section-heading-row {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 80px;
  align-items: end;
  margin-top: 22px;
}

.section h2,
.closing-section h2 {
  font-size: clamp(46px, 6.4vw, 78px);
}

.section-heading-row p,
.playground-heading > p,
.proof-copy > p,
.closing-section > p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin-top: 68px;
}

.feature-card {
  position: relative;
  min-height: 315px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(15, 31, 22, 0.78), rgba(8, 18, 12, 0.72));
  transition: border-color 220ms ease, transform 220ms ease, background 220ms ease;
}

.feature-card:hover {
  border-color: var(--line-strong);
  background: linear-gradient(145deg, rgba(18, 38, 26, 0.86), rgba(9, 20, 14, 0.78));
  transform: translateY(-3px);
}

.feature-card-large {
  grid-row: span 2;
  min-height: 646px;
}

.feature-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 50px;
  align-items: center;
  min-height: 245px;
}

.feature-number,
.backend-index {
  color: #587064;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.feature-card h3 {
  margin: 22px 0 10px;
  font-size: 25px;
  letter-spacing: -0.045em;
}

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

.feature-card a {
  position: absolute;
  bottom: 30px;
  left: 30px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.mini-terminal {
  position: relative;
  height: 270px;
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid rgba(142, 255, 183, 0.13);
  border-radius: 15px;
  background:
    linear-gradient(rgba(142, 255, 183, 0.025) 1px, transparent 1px),
    rgba(3, 9, 6, 0.7);
  background-size: 100% 28px;
}

.mini-terminal::before {
  position: absolute;
  top: 18px;
  left: 18px;
  color: var(--green);
  content: ">_";
  font-family: monospace;
  font-size: 12px;
}

.mini-line {
  position: absolute;
  left: 52px;
  height: 7px;
  border-radius: 99px;
  background: rgba(168, 255, 200, 0.16);
}

.mini-line-one { top: 75px; width: 57%; }
.mini-line-two { top: 117px; width: 73%; }
.mini-line-three { top: 159px; width: 42%; }

.mini-cursor {
  position: absolute;
  top: 196px;
  left: 52px;
  width: 9px;
  height: 17px;
  background: var(--green);
  opacity: 0.7;
  animation: blink 1.1s steps(1) infinite;
}

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

.feature-icon {
  position: relative;
  width: 82px;
  height: 82px;
  margin-top: 36px;
}

.layers-icon i {
  position: absolute;
  left: 12px;
  width: 56px;
  height: 32px;
  border: 1px solid rgba(142, 255, 183, 0.36);
  border-radius: 9px;
  background: rgba(142, 255, 183, 0.035);
  transform: rotate(30deg) skewX(-25deg);
}

.layers-icon i:nth-child(1) { top: 5px; }
.layers-icon i:nth-child(2) { top: 21px; opacity: 0.68; }
.layers-icon i:nth-child(3) { top: 37px; opacity: 0.38; }

.split-icon {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 8px;
}

.split-icon i {
  border: 1px solid rgba(125, 217, 255, 0.32);
  border-radius: 7px;
  background: rgba(125, 217, 255, 0.055);
}

.async-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(3, 9, 6, 0.52);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.async-visual > span { color: var(--purple); }
.async-visual strong { color: var(--green); font-weight: 600; }
.async-visual div { display: flex; gap: 8px; }
.async-visual i { width: 22px; height: 1px; background: var(--green); animation: flow 1.7s ease-in-out infinite; }
.async-visual i:nth-child(2) { animation-delay: 0.2s; }
.async-visual i:nth-child(3) { animation-delay: 0.4s; }

@keyframes flow { 50% { opacity: 0.2; transform: translateX(4px); } }

.backends-section {
  border-top: 1px solid var(--line);
}

.backend-list {
  margin-top: 68px;
  border-top: 1px solid var(--line);
}

.backend-row {
  display: grid;
  grid-template-columns: 55px 260px 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 104px;
  padding: 18px 20px 18px 0;
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease, padding 180ms ease;
}

.backend-row:hover {
  padding-left: 12px;
  background: linear-gradient(90deg, rgba(142, 255, 183, 0.045), transparent 65%);
}

.backend-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.backend-title h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.035em;
}

.backend-dot {
  width: 10px;
  height: 10px;
  border: 2px solid transparent;
  border-radius: 3px;
  box-shadow: 0 0 16px currentColor;
  transform: rotate(45deg);
}

.backend-dot.memory { background: var(--green); color: var(--green); }
.backend-dot.json { background: #e5c97b; color: #e5c97b; }
.backend-dot.sqlite { background: var(--blue); color: var(--blue); }
.backend-dot.sharded { border-color: var(--purple); color: var(--purple); }
.backend-dot.columnar { background: var(--orange); color: var(--orange); }
.backend-dot.remote { border-color: #ff8ca8; color: #ff8ca8; }

.backend-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.backend-tag {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: #789084;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.experimental-tag {
  border-color: rgba(200, 168, 255, 0.2);
  color: var(--purple);
}

.playground-section {
  width: 100%;
  max-width: none;
  padding-right: max(24px, calc((100vw - var(--max-width)) / 2));
  padding-left: max(24px, calc((100vw - var(--max-width)) / 2));
  background: linear-gradient(180deg, rgba(16, 38, 25, 0.55), rgba(5, 12, 8, 0.76));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.playground-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: end;
}

.playground-heading h2 {
  margin-top: 22px;
}

.playground-shell {
  margin-top: 58px;
  overflow: hidden;
  border: 1px solid rgba(164, 255, 199, 0.19);
  border-radius: 20px;
  background: #06100a;
  box-shadow: var(--shadow);
}

.playground-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.playground-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
}

.preset-button {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.preset-button:hover,
.preset-button.active {
  border-color: var(--line);
  background: rgba(142, 255, 183, 0.055);
  color: var(--green-bright);
}

.safe-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #789084;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  white-space: nowrap;
}

.playground-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.query-panel,
.result-panel {
  min-width: 0;
}

.query-panel {
  border-right: 1px solid var(--line);
}

.panel-header {
  height: 45px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(181, 255, 211, 0.08);
  background: rgba(255, 255, 255, 0.012);
}

#query-input,
#query-result {
  width: 100%;
  height: 420px;
  margin: 0;
  padding: 24px;
  border: 0;
  background: transparent;
  color: #d4e4da;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
  tab-size: 2;
}

#query-input {
  display: block;
  resize: none;
  outline: none;
  caret-color: var(--green);
}

#query-input:focus {
  box-shadow: inset 0 0 0 1px rgba(142, 255, 183, 0.15);
}

#query-result {
  overflow: auto;
  color: var(--green-bright);
  white-space: pre-wrap;
}

#query-result.error { color: var(--danger); }
#query-result.loading { color: var(--muted); }

.query-footer,
.result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: #6e8377;
  font-size: 9px;
}

.query-footer code { color: var(--purple); }

.run-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #06110a;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.run-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.run-button i {
  font-size: 8px;
  font-style: normal;
}

.result-footer span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.proof-section {
  padding-top: 130px;
  padding-bottom: 130px;
}

.proof-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 90px;
  align-items: center;
  padding: clamp(34px, 6vw, 76px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 15% 10%, rgba(142, 255, 183, 0.08), transparent 36%),
    linear-gradient(145deg, rgba(14, 31, 21, 0.88), rgba(5, 13, 9, 0.92));
}

.proof-copy h2 {
  margin-top: 22px;
  font-size: clamp(44px, 5.5vw, 70px);
}

.proof-copy > p {
  max-width: 550px;
  margin-top: 24px;
}

.proof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
  align-items: center;
  margin-top: 30px;
}

.text-link {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
}

.test-matrix {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: rgba(4, 10, 7, 0.72);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.matrix-head,
.matrix-row,
.matrix-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 17px;
  border-bottom: 1px solid rgba(181, 255, 211, 0.08);
  font-size: 11px;
}

.matrix-head {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.matrix-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
}

.matrix-row span { color: var(--muted-strong); }
.matrix-row strong { color: var(--green); font-size: 12px; }
.matrix-foot { border-bottom: 0; color: #668074; font-size: 9px; text-transform: uppercase; }

.closing-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 130px 0 150px;
  overflow: hidden;
  text-align: center;
}

.closing-section h2 {
  margin-top: 22px;
}

.closing-section > p {
  max-width: 610px;
  margin-top: 25px;
}

.closing-actions {
  justify-content: center;
}

.install-copy-bottom {
  font-family: inherit;
}

.closing-orbit {
  position: relative;
  display: grid;
  width: 120px;
  height: 120px;
  margin-bottom: 45px;
  place-items: center;
  border: 1px solid rgba(142, 255, 183, 0.13);
  border-radius: 50%;
}

.closing-orbit::before,
.closing-orbit::after {
  position: absolute;
  border: 1px solid rgba(142, 255, 183, 0.08);
  border-radius: 50%;
  content: "";
}

.closing-orbit::before { width: 175px; height: 175px; }
.closing-orbit::after { width: 235px; height: 235px; }

.closing-orbit span {
  width: 53px;
  height: 53px;
}

.closing-orbit span img {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 18px rgba(92, 255, 151, 0.2));
}

.closing-orbit i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 15px var(--green);
}

.closing-orbit i:first-child { top: 8px; left: 28px; }
.closing-orbit i:nth-child(2) { right: -29px; bottom: 27px; opacity: 0.55; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 50px 0 30px;
  border-top: 1px solid var(--line);
}

.footer-brand p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 90px;
}

.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 100px;
}

.footer-links strong {
  margin-bottom: 5px;
  color: var(--text);
  font-size: 11px;
}

.footer-links a {
  color: var(--muted);
  font-size: 11px;
}

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(181, 255, 211, 0.07);
  color: #5c7165;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

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

@media (max-width: 1040px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 78px; }
  .hero-copy { max-width: 760px; }
  .hero-demo { width: min(100%, 680px); margin: 0 auto; }
  .section-heading-row,
  .playground-heading { grid-template-columns: 1fr; gap: 28px; }
  .section-heading-row p,
  .playground-heading > p { max-width: 680px; }
  .proof-card { gap: 50px; }
}

@media (max-width: 780px) {
  .site-header { width: min(calc(100% - 24px), var(--max-width)); margin-top: 8px; min-height: 64px; }
  .header-cta { padding: 8px 11px; }
  .brand-name { font-size: 15px; }
  .hero,
  .section,
  .signal-strip,
  .closing-section,
  .site-footer { width: min(calc(100% - 32px), var(--max-width)); }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 72px 0 75px; }
  .hero h1 { font-size: clamp(52px, 15vw, 76px); }
  .floating-chip { display: none; }
  .code-window { transform: none; }
  .signal-strip { grid-template-columns: 1fr 1fr; }
  .signal-strip div:nth-child(2) { border-right: 0; }
  .signal-strip div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .section { padding: 100px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card-large { grid-row: auto; min-height: 600px; }
  .feature-card-wide { grid-column: auto; grid-template-columns: 1fr; }
  .backend-row { grid-template-columns: 40px 1fr auto; }
  .backend-row p { grid-column: 2 / -1; padding-bottom: 8px; }
  .playground-section { width: 100%; padding-right: 16px; padding-left: 16px; }
  .playground-grid { grid-template-columns: 1fr; }
  .query-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  #query-input, #query-result { height: 380px; }
  .proof-card { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .header-cta { font-size: 0; }
  .header-cta::before { font-size: 11px; content: "v1.3.0"; }
  .hero h1 { font-size: 49px; }
  .hero-lede { font-size: 16px; }
  .button { width: 100%; }
  .code-window pre { min-height: 360px; padding: 22px 16px; font-size: 11px; }
  .code-result { grid-template-columns: auto 1fr; }
  .result-time { display: none; }
  .signal-strip strong { font-size: 20px; }
  .signal-strip div { padding: 22px 14px; }
  .section h2, .closing-section h2 { font-size: 44px; }
  .feature-card { padding: 24px; }
  .feature-card a { left: 24px; bottom: 24px; }
  .backend-row { grid-template-columns: 28px 1fr; padding-right: 0; }
  .backend-tag { grid-column: 2; width: max-content; }
  .backend-row p { grid-column: 2; }
  .playground-toolbar { align-items: flex-start; flex-direction: column; gap: 9px; }
  .safe-badge { padding-left: 10px; }
  #query-input, #query-result { height: 350px; padding: 18px; font-size: 11px; }
  .query-footer { align-items: flex-end; gap: 12px; }
  .query-footer > span { max-width: 170px; }
  .result-footer { align-items: flex-start; flex-direction: column; padding-top: 13px; padding-bottom: 13px; }
  .proof-card { padding: 28px 20px; }
  .footer-links { gap: 45px; }
  .footer-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
}

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