@font-face {
  font-family: 'Geist Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./vendor/fonts/geist-sans-latin-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./vendor/fonts/geist-sans-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./vendor/fonts/geist-mono-latin-400.woff2') format('woff2');
}

:root {
  --ink: #edf8f7;
  --ink-muted: rgba(227, 241, 240, 0.62);
  --deep: #041015;
  --deep-2: #07191e;
  --aqua: #8fe9e4;
  --aqua-dark: #1a7779;
  --coral: #ff9b7c;
  --line: rgba(207, 239, 237, 0.16);
  --glass-alpha: 0.36;
  --glass-blur: 24px;
  --shell: min(1340px, calc(100vw - 64px));
  --display: 'Geist Sans', 'Helvetica Neue', sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--deep);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

button,
input,
a {
  font: inherit;
}

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

button {
  color: inherit;
}

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

::selection {
  color: #041015;
  background: var(--aqua);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--aqua);
  color: var(--deep);
  transform: translateY(-160%);
}

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

.site-nav {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 20;
  width: var(--shell);
  transform: translateX(-50%);
  height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(222, 245, 242, 0.18);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(228, 248, 246, 0.28);
  border-radius: 50%;
  color: var(--aqua);
  font-size: 23px;
  line-height: 1;
}

.brand small {
  margin-left: 2px;
  padding: 2px 5px;
  border: 1px solid rgba(228, 248, 246, 0.32);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: rgba(237, 248, 247, 0.7);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.nav-links a,
.language-toggle,
.nav-github {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-links a {
  color: rgba(236, 248, 247, 0.62);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--aqua);
}

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

.language-toggle,
.nav-github {
  min-height: 36px;
  border: 1px solid rgba(228, 248, 246, 0.2);
  background: rgba(4, 13, 17, 0.2);
  backdrop-filter: blur(14px);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.language-toggle {
  width: 42px;
  cursor: pointer;
}

.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 15px;
}

.language-toggle:hover,
.nav-github:hover {
  color: var(--aqua);
  border-color: rgba(143, 233, 228, 0.5);
  background: rgba(18, 51, 56, 0.34);
}

.hero {
  position: relative;
  min-height: 1040px;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #0c282c;
}

.ocean-fallback,
.ocean-frame,
.grain,
.chart-lines {
  position: absolute;
  inset: 0;
}

.ocean-fallback {
  z-index: -5;
  background:
    radial-gradient(circle at 74% 14%, rgba(255, 177, 128, 0.68), transparent 22%),
    linear-gradient(180deg, #78989a 0%, #244e55 45%, #06171c 100%);
}

.ocean-frame {
  z-index: -4;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 1.3s ease;
  pointer-events: none;
}

.ocean-frame.ready {
  opacity: 1;
}

.grain {
  z-index: -2;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    repeating-linear-gradient(100deg, transparent 0 3px, rgba(255, 255, 255, 0.018) 3px 4px),
    repeating-linear-gradient(8deg, transparent 0 5px, rgba(0, 0, 0, 0.025) 5px 6px);
  mix-blend-mode: overlay;
}

.chart-lines {
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 12, 16, 0.46) 0%, rgba(2, 12, 16, 0.18) 46%, transparent 68%),
    linear-gradient(180deg, rgba(1, 9, 12, 0.25), transparent 34%, rgba(1, 9, 12, 0.48) 100%),
    radial-gradient(90% 70% at 50% 42%, transparent 45%, rgba(2, 9, 12, 0.48) 100%);
}

.chart-lines::before,
.chart-lines::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.chart-lines::before {
  inset: 84px max(32px, calc((100vw - 1340px) / 2));
  border-left: 1px solid rgba(223, 247, 244, 0.08);
  border-right: 1px solid rgba(223, 247, 244, 0.08);
}

.chart-lines::after {
  left: 50%;
  top: 84px;
  bottom: 0;
  width: 1px;
  background: rgba(223, 247, 244, 0.055);
}

.hero-copy {
  position: absolute;
  z-index: 4;
  top: 132px;
  left: max(32px, calc((100vw - 1340px) / 2));
  width: min(570px, calc(100vw - 420px));
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(234, 248, 246, 0.68);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 14px rgba(143, 233, 228, 0.9);
  animation: breathe 2.2s ease-in-out infinite;
}

@keyframes breathe {
  50% { opacity: 0.42; transform: scale(0.76); }
}

.hero-copy h1 {
  margin: 22px 0 20px;
  font-size: clamp(52px, 5.2vw, 82px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-shadow: 0 6px 32px rgba(0, 11, 15, 0.36);
}

.hero-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(235, 247, 246, 0.7);
  font-size: 15px;
  line-height: 1.8;
  text-shadow: 0 3px 20px rgba(0, 8, 12, 0.58);
}

.hero-actions,
.closing-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
}

.primary-action,
.quiet-action,
.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.primary-action {
  min-width: 142px;
  padding: 12px 15px 12px 18px;
  color: #061216;
  background: var(--aqua);
  border: 1px solid var(--aqua);
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(5, 34, 36, 0.22);
}

.quiet-action {
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(233, 248, 246, 0.34);
  color: rgba(238, 249, 248, 0.78);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.primary-action:hover,
.quiet-action:hover,
.download-link:hover {
  transform: translateY(-2px);
}

.primary-action:hover {
  background: #c4fffa;
}

.quiet-action:hover {
  color: var(--aqua);
  border-color: var(--aqua);
}

.hero .quiet-action {
  padding: 10px 12px;
  border: 1px solid rgba(233, 248, 246, 0.28);
  background: rgba(3, 14, 18, 0.2);
  backdrop-filter: blur(10px);
}

.hero .quiet-action:hover {
  border-color: var(--aqua);
  background: rgba(3, 18, 22, 0.38);
}

.hero-meta {
  display: flex;
  gap: 9px;
  margin-top: 24px;
}

.hero-meta span {
  padding: 5px 8px;
  border: 1px solid rgba(225, 246, 244, 0.17);
  background: rgba(4, 15, 19, 0.18);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.11em;
  color: rgba(229, 245, 243, 0.62);
}

.control-dock {
  position: absolute;
  z-index: 8;
  top: 126px;
  right: max(32px, calc((100vw - 1340px) / 2));
  width: 324px;
  padding: 18px;
  border: 1px solid rgba(223, 247, 244, 0.23);
  background: rgba(5, 15, 20, 0.7);
  backdrop-filter: blur(26px) saturate(135%);
  box-shadow: 0 28px 80px rgba(1, 8, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.control-dock::before {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 38px;
  height: 38px;
  border-top: 1px solid var(--aqua);
  border-right: 1px solid var(--aqua);
  pointer-events: none;
}

.dock-heading,
.dock-footer,
.control-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dock-index,
.feature-code,
.section-number,
.detail-index {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: rgba(219, 241, 239, 0.44);
}

.dock-heading h2 {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.renderer-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: rgba(226, 246, 244, 0.5);
}

.renderer-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffd27a;
  box-shadow: 0 0 10px #ffd27a;
}

.renderer-status.ready i {
  background: var(--aqua);
  box-shadow: 0 0 10px var(--aqua);
}

.renderer-status.fallback i {
  background: var(--coral);
  box-shadow: 0 0 10px var(--coral);
}

.presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.presets button {
  min-height: 56px;
  padding: 8px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.presets button:last-child {
  border-right: 0;
}

.presets button span,
.presets button b {
  display: block;
}

.presets button span {
  font-family: var(--mono);
  font-size: 7px;
  color: rgba(228, 247, 245, 0.34);
}

.presets button b {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 400;
  color: rgba(236, 248, 247, 0.68);
}

.presets button:hover,
.presets button.active {
  background: rgba(143, 233, 228, 0.08);
}

.presets button:hover b,
.presets button.active b {
  color: var(--aqua);
}

.control-line {
  margin: 14px 0 7px;
}

.control-line span,
.control-line b,
.control-line small {
  display: block;
}

.control-line b {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.control-line small {
  margin-top: 1px;
  font-family: var(--mono);
  font-size: 7px;
  color: rgba(222, 243, 241, 0.36);
}

.control-line output {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--aqua);
}

.range {
  appearance: none;
  display: block;
  width: 100%;
  height: 16px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.range::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(90deg, rgba(143, 233, 228, 0.82) 0 var(--fill), rgba(255, 255, 255, 0.18) var(--fill) 100%);
}

.sunset-range::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, #ff8f73 0, #ffd491 var(--fill), rgba(255, 255, 255, 0.18) var(--fill) 100%);
}

.range::-webkit-slider-thumb {
  appearance: none;
  width: 13px;
  height: 13px;
  margin-top: -5.5px;
  border: 2px solid #d8fffc;
  border-radius: 50%;
  background: #316a6d;
  box-shadow: 0 0 14px rgba(143, 233, 228, 0.75);
}

.range::-moz-range-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.range::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 2px solid #d8fffc;
  border-radius: 50%;
  background: #316a6d;
}

.range:focus-visible {
  outline: 1px solid var(--aqua);
  outline-offset: 4px;
}

.dock-footer {
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: rgba(228, 246, 244, 0.46);
}

.theme-toggle {
  display: flex;
  padding: 2px;
  border: 1px solid rgba(226, 246, 244, 0.14);
}

.theme-toggle button {
  padding: 5px 9px;
  border: 0;
  background: transparent;
  color: rgba(231, 247, 245, 0.45);
  font-family: var(--mono);
  font-size: 7px;
  cursor: pointer;
}

.theme-toggle button.active {
  background: var(--aqua);
  color: var(--deep);
}

.harness-window {
  position: absolute;
  z-index: 3;
  left: max(32px, calc((100vw - 1340px) / 2));
  right: max(32px, calc((100vw - 1340px) / 2));
  bottom: 62px;
  height: 440px;
  border: 1px solid rgba(225, 246, 244, 0.25);
  background: rgba(7, 16, 20, calc(var(--glass-alpha) * 0.48));
  backdrop-filter: blur(calc(var(--glass-blur) * 0.45)) saturate(120%);
  box-shadow: 0 40px 100px rgba(0, 7, 10, 0.36);
  overflow: hidden;
}

.harness-topbar {
  height: 38px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid rgba(222, 245, 243, 0.14);
  background: rgba(4, 11, 15, calc(var(--glass-alpha) * 0.65));
  font-family: var(--mono);
  font-size: 8px;
  color: rgba(227, 246, 244, 0.44);
}

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

.window-dots i {
  width: 6px;
  height: 6px;
  border: 1px solid rgba(230, 248, 246, 0.35);
  border-radius: 50%;
}

.harness-address {
  letter-spacing: 0.08em;
}

.window-mode {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 7px;
}

.window-mode i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--aqua);
}

.harness-shell {
  height: calc(100% - 38px);
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr) 210px;
}

.demo-sidebar,
.demo-conversation,
.demo-details {
  min-width: 0;
  background: rgba(7, 14, 18, var(--glass-alpha));
  backdrop-filter: blur(var(--glass-blur)) saturate(125%);
}

.demo-sidebar {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-right: 1px solid rgba(226, 247, 245, 0.14);
}

.demo-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}

.demo-logo > span {
  color: var(--aqua);
  font-size: 19px;
}

.demo-logo b {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.demo-logo small {
  padding: 2px 4px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 6px;
  opacity: 0.6;
}

.demo-new {
  width: 100%;
  margin: 20px 0;
  padding: 10px 12px;
  border: 1px solid rgba(224, 246, 244, 0.16);
  background: rgba(255, 255, 255, calc(var(--glass-alpha) * 0.1));
  color: inherit;
  text-align: left;
}

.demo-new span:first-child {
  margin-right: 8px;
  color: var(--aqua);
}

.demo-caption,
.detail-index {
  margin: 0 0 9px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  opacity: 0.55;
}

.demo-workspace {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.folder {
  color: var(--aqua);
  font-size: 17px;
}

.demo-list {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(233, 247, 245, 0.56);
  font-size: 10px;
}

.demo-list li {
  padding: 6px 8px 6px 24px;
}

.demo-list .selected {
  border-left: 1px solid var(--aqua);
  background: rgba(143, 233, 228, 0.07);
  color: rgba(240, 250, 249, 0.9);
}

.demo-settings {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.skin-chip {
  margin-left: auto;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(143, 233, 228, 0.35);
  background: rgba(143, 233, 228, 0.1);
  color: var(--aqua);
}

.demo-conversation {
  position: relative;
  padding: 18px 24px;
  background: rgba(8, 17, 21, calc(var(--glass-alpha) * 0.8));
}

.demo-conversation-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
}

.demo-conversation-top b {
  font-weight: 400;
}

.demo-conversation-top span {
  font-family: var(--mono);
  font-size: 8px;
  opacity: 0.56;
}

.demo-welcome {
  position: absolute;
  top: 45%;
  left: 50%;
  width: min(400px, 70%);
  text-align: center;
  transform: translate(-50%, -50%);
}

.whale {
  margin-bottom: 4px;
  color: var(--aqua);
  font-size: 25px;
}

.demo-welcome h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.demo-welcome p {
  margin: 8px auto 0;
  color: rgba(231, 246, 244, 0.53);
  font-size: 10px;
}

.demo-composer {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  min-height: 88px;
  padding: 13px;
  border: 1px solid rgba(227, 247, 245, 0.18);
  background: rgba(8, 13, 17, calc(var(--glass-alpha) + 0.2));
  color: rgba(232, 247, 245, 0.48);
  font-size: 10px;
}

.demo-composer > div {
  position: absolute;
  right: 10px;
  bottom: 9px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 7px;
}

.demo-composer b,
.send {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(229, 247, 245, 0.15);
  border-radius: 50%;
}

.send {
  margin-left: auto;
  border-color: var(--aqua);
  background: var(--aqua);
  color: var(--deep);
}

.demo-details {
  padding: 20px;
  border-left: 1px solid rgba(226, 247, 245, 0.14);
}

.demo-details h3 {
  margin: 8px 0 22px;
  font-size: 15px;
  font-weight: 400;
}

.demo-details dl {
  margin: 0;
}

.demo-details dl div {
  padding: 12px 0;
  border-top: 1px solid rgba(226, 247, 245, 0.12);
}

.demo-details dt {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  opacity: 0.45;
}

.demo-details dd {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--aqua);
}

html[data-ui-theme='light'] .demo-sidebar,
html[data-ui-theme='light'] .demo-conversation,
html[data-ui-theme='light'] .demo-details {
  background: rgba(235, 243, 242, var(--glass-alpha));
  color: #092127;
}

html[data-ui-theme='light'] .demo-conversation {
  background: rgba(237, 244, 243, calc(var(--glass-alpha) * 0.84));
}

html[data-ui-theme='light'] .demo-list,
html[data-ui-theme='light'] .demo-welcome p,
html[data-ui-theme='light'] .demo-composer {
  color: rgba(6, 29, 35, 0.62);
}

html[data-ui-theme='light'] .demo-composer {
  background: rgba(246, 249, 248, calc(var(--glass-alpha) + 0.22));
}

.hero-coordinate {
  position: absolute;
  z-index: 5;
  left: max(32px, calc((100vw - 1340px) / 2));
  bottom: 26px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  color: rgba(226, 245, 243, 0.42);
}

.scroll-cue {
  position: absolute;
  z-index: 5;
  right: max(32px, calc((100vw - 1340px) / 2));
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  color: rgba(230, 247, 245, 0.58);
}

.scroll-cue i {
  width: 28px;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  animation: scan 2s ease-in-out infinite;
}

@keyframes scan {
  50% { transform: scaleX(0.35); opacity: 0.4; }
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(223, 246, 244, 0.14);
  border-bottom: 1px solid rgba(223, 246, 244, 0.14);
  background: #06161b;
}

.signal-strip > div {
  min-height: 118px;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  padding: 24px clamp(20px, 3vw, 52px);
  border-right: 1px solid rgba(223, 246, 244, 0.12);
}

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

.signal-strip span {
  grid-row: 1 / 3;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--aqua);
}

.signal-strip b {
  font-size: 12px;
  font-weight: 400;
}

.signal-strip small {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: rgba(224, 244, 242, 0.38);
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

.feature-section,
.gallery-section,
.install-section {
  padding: 150px 0;
}

.feature-section {
  display: grid;
  grid-template-columns: 0.78fr 1.62fr;
  gap: clamp(50px, 8vw, 130px);
}

.section-heading {
  position: relative;
}

.section-heading::before {
  content: '';
  position: absolute;
  top: 4px;
  left: -24px;
  width: 1px;
  height: 48px;
  background: var(--aqua);
}

.section-heading h2 {
  margin: 20px 0 26px;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.section-heading > p {
  max-width: 480px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.9;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-grid article {
  position: relative;
  min-height: 270px;
  padding: 30px;
  background: #06161b;
  overflow: hidden;
}

.feature-grid h3 {
  margin: 46px 0 14px;
  max-width: 330px;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.feature-grid p {
  max-width: 430px;
  margin: 0;
  color: rgba(223, 241, 239, 0.52);
  font-size: 11px;
  line-height: 1.8;
}

.feature-large,
.feature-wide {
  grid-column: 1 / -1;
}

.feature-large {
  min-height: 340px !important;
}

.wave-diagram {
  position: absolute;
  right: -5%;
  bottom: 12px;
  left: 42%;
  height: 210px;
  transform: skewY(-6deg);
}

.wave-diagram i {
  position: absolute;
  right: 0;
  left: 0;
  height: 70px;
  border-top: 1px solid rgba(143, 233, 228, 0.38);
  border-radius: 50%;
  box-shadow: inset 0 14px 32px rgba(28, 112, 113, 0.06);
}

.wave-diagram i:nth-child(1) { top: 0; }
.wave-diagram i:nth-child(2) { top: 34px; transform: scaleX(0.88); }
.wave-diagram i:nth-child(3) { top: 68px; transform: scaleX(0.74); }
.wave-diagram i:nth-child(4) { top: 102px; transform: scaleX(0.6); }
.wave-diagram i:nth-child(5) { top: 136px; transform: scaleX(0.46); }

.accent-card {
  background:
    linear-gradient(140deg, rgba(255, 153, 120, 0.16), transparent 55%),
    #07161a !important;
}

.feature-wide {
  min-height: 190px !important;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 40px;
}

.feature-wide h3 {
  margin: 10px 0 0;
}

.privacy-seal {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px solid rgba(143, 233, 228, 0.28);
  border-radius: 50%;
  text-align: center;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--aqua);
  transform: rotate(-8deg);
}

.privacy-seal i {
  position: absolute;
  width: 74px;
  height: 74px;
  border: 1px dashed rgba(143, 233, 228, 0.22);
  border-radius: 50%;
}

.gallery-section {
  width: 100%;
  padding-right: max(32px, calc((100vw - 1340px) / 2));
  padding-left: max(32px, calc((100vw - 1340px) / 2));
  background: #e6eeec;
  color: #07181c;
}

.gallery-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
}

.gallery-heading .section-number {
  grid-column: 1 / -1;
  color: rgba(5, 26, 30, 0.48);
}

.gallery-heading h2 {
  grid-column: 1;
}

.gallery-heading > p {
  grid-column: 2;
  align-self: end;
  margin-bottom: 32px;
  color: rgba(7, 29, 34, 0.58);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 34px 18px;
  margin-top: 70px;
}

.gallery-item {
  grid-column: span 6;
  margin: 0;
}

.gallery-dark {
  grid-column: 1 / 8;
}

.gallery-light {
  grid-column: 8 / 13;
  margin-top: 110px;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(7, 29, 34, 0.18);
  box-shadow: 0 26px 70px rgba(12, 42, 45, 0.12);
}

.gallery-item figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 12px;
  border-top: 1px solid rgba(7, 29, 34, 0.28);
  margin-top: 10px;
}

.gallery-item figcaption span {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  color: rgba(7, 29, 34, 0.48);
}

.gallery-item figcaption b {
  font-size: 11px;
  font-weight: 400;
}

.install-section {
  position: relative;
}

.install-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.install-heading .section-number {
  grid-column: 1 / -1;
}

.install-heading > p {
  align-self: end;
  margin-bottom: 32px;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 70px;
  background: var(--line);
  border: 1px solid var(--line);
}

.install-card {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: #06161b;
}

.install-card.recommended::before {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid var(--aqua);
  pointer-events: none;
}

.install-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: rgba(224, 244, 242, 0.44);
}

.install-card-head strong {
  padding: 4px 7px;
  border: 1px solid rgba(143, 233, 228, 0.3);
  color: var(--aqua);
  font-size: 7px;
  font-weight: 400;
}

.install-card h3 {
  margin: 70px 0 14px;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.install-card > p {
  margin: 0;
  color: rgba(222, 241, 239, 0.52);
  font-size: 11px;
  line-height: 1.8;
}

.code-line,
.download-link {
  margin-top: auto;
}

.code-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid rgba(221, 244, 241, 0.15);
  background: rgba(2, 8, 11, 0.45);
}

.code-line code {
  min-width: 0;
  max-height: 76px;
  padding: 12px;
  overflow: auto;
  color: rgba(229, 246, 244, 0.72);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  scrollbar-width: thin;
}

.code-line button {
  width: 52px;
  border: 0;
  border-left: 1px solid rgba(221, 244, 241, 0.15);
  background: transparent;
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 7px;
  cursor: pointer;
}

.code-line button:hover {
  background: rgba(143, 233, 228, 0.08);
}

.install-card > small {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 7px;
  color: rgba(221, 241, 239, 0.35);
}

.download-link {
  padding: 12px 0;
  border-top: 1px solid rgba(143, 233, 228, 0.38);
  border-bottom: 1px solid rgba(143, 233, 228, 0.38);
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.copy-status {
  min-height: 24px;
  margin: 16px 0 0;
  text-align: right;
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 8px;
}

.closing-section {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  padding: 120px max(32px, calc((100vw - 1340px) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 164, 123, 0.24), transparent 26%),
    linear-gradient(145deg, #082228, #06151a 55%, #030c10);
}

.closing-ocean {
  position: absolute;
  right: -12%;
  bottom: -42%;
  width: 82%;
  aspect-ratio: 1;
  border: 1px solid rgba(143, 233, 228, 0.18);
  border-radius: 50%;
  box-shadow:
    0 -30px 120px rgba(44, 127, 129, 0.12),
    inset 0 70px 140px rgba(143, 233, 228, 0.08);
}

.closing-ocean::before,
.closing-ocean::after {
  content: '';
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(143, 233, 228, 0.12);
  border-radius: 50%;
}

.closing-ocean::after {
  inset: 22%;
}

.closing-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.closing-copy > span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--aqua);
}

.closing-copy h2 {
  margin: 24px 0;
  font-size: clamp(52px, 7vw, 94px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.closing-copy p {
  max-width: 560px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.9;
}

.closing-mark {
  position: absolute;
  right: 6%;
  bottom: 3%;
  color: rgba(143, 233, 228, 0.08);
  font-family: var(--display);
  font-size: clamp(180px, 28vw, 480px);
  line-height: 0.7;
}

footer {
  min-height: 130px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: var(--shell);
  margin: 0 auto;
  color: rgba(224, 243, 241, 0.42);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.footer-brand {
  color: var(--ink);
}

footer p {
  margin: 0;
}

footer > div {
  justify-self: end;
  display: flex;
  gap: 20px;
}

footer > div a:hover {
  color: var(--aqua);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  :root { --shell: calc(100vw - 40px); }

  .hero-copy {
    left: 20px;
    width: calc(100vw - 390px);
  }

  .control-dock {
    right: 20px;
  }

  .harness-window {
    right: 20px;
    left: 20px;
  }

  .chart-lines::before {
    right: 20px;
    left: 20px;
  }

  .demo-details {
    display: none;
  }

  .harness-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .feature-section {
    grid-template-columns: 1fr;
  }

  .section-heading > p {
    max-width: 620px;
  }
}

@media (max-width: 820px) {
  :root { --shell: calc(100vw - 28px); }

  .site-nav {
    height: 68px;
    grid-template-columns: 1fr auto;
  }

  .nav-links,
  .nav-github span:first-child,
  .brand small {
    display: none;
  }

  .hero {
    height: auto;
    min-height: 1120px;
  }

  .hero-copy {
    top: 100px;
    left: 20px;
    width: calc(100vw - 40px);
  }

  .hero-copy h1 {
    font-size: clamp(45px, 12vw, 68px);
  }

  .hero-copy p {
    max-width: 560px;
  }

  .hero-meta {
    flex-wrap: wrap;
  }

  .control-dock {
    top: 440px;
    right: 20px;
    left: 20px;
    width: auto;
  }

  .harness-window {
    bottom: 54px;
    height: 300px;
  }

  .harness-shell {
    grid-template-columns: 1fr;
  }

  .demo-sidebar {
    display: none;
  }

  .demo-conversation {
    padding: 15px;
  }

  .demo-composer {
    right: 15px;
    bottom: 15px;
    left: 15px;
  }

  .hero-coordinate {
    display: none;
  }

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

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

  .signal-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(223, 246, 244, 0.12);
  }

  .feature-section,
  .gallery-section,
  .install-section {
    padding-top: 100px;
    padding-bottom: 100px;
  }

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

  .feature-large,
  .feature-wide {
    grid-column: 1;
  }

  .feature-wide {
    grid-template-columns: 1fr;
  }

  .privacy-seal {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 82px;
    height: 82px;
    font-size: 6px;
  }

  .gallery-heading,
  .install-heading {
    display: block;
  }

  .gallery-heading > p,
  .install-heading > p {
    margin-bottom: 0;
  }

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

  .gallery-item,
  .gallery-dark,
  .gallery-light {
    grid-column: 1;
    margin-top: 0;
  }

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

  .install-card {
    min-height: 340px;
  }

  .closing-section {
    min-height: 620px;
  }

  footer {
    grid-template-columns: 1fr auto;
    gap: 20px;
  }

  footer p {
    display: none;
  }
}

@media (max-width: 520px) {
  .site-nav,
  .hero-copy,
  .control-dock,
  .harness-window {
    right: 14px;
    left: 14px;
    width: auto;
  }

  .site-nav {
    transform: none;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-github {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .hero {
    min-height: 1100px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-copy p {
    font-size: 13px;
  }

  .hero-actions,
  .closing-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero-meta span:nth-child(3) {
    display: none;
  }

  .control-dock {
    top: 450px;
    padding: 16px;
  }

  .presets {
    margin-bottom: 14px;
  }

  .harness-window {
    height: 275px;
  }

  .demo-welcome h3 {
    font-size: 19px;
  }

  .demo-welcome p {
    display: none;
  }

  .signal-strip > div {
    min-height: 100px;
    padding: 18px 14px;
  }

  .signal-strip b {
    font-size: 10px;
  }

  .section-heading h2,
  .closing-copy h2 {
    font-size: 43px;
  }

  .section-heading::before {
    display: none;
  }

  .feature-grid article,
  .install-card {
    padding: 24px;
  }

  .wave-diagram {
    left: 22%;
    opacity: 0.65;
  }

  .privacy-seal {
    position: relative;
    right: auto;
    bottom: auto;
  }

  .gallery-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .closing-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  footer {
    display: flex;
    justify-content: space-between;
    padding: 24px 0;
  }

  footer > div {
    flex-direction: column;
    gap: 5px;
    text-align: right;
  }
}

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