:root {
  --bg: oklch(15% 0.012 260);
  --surface: oklch(19% 0.016 260);
  --surface-2: oklch(23% 0.02 260);
  --text: oklch(96% 0 0);
  --muted: oklch(72% 0.02 260);
  --border: oklch(100% 0 0 / 0.08);
  --accent: oklch(80% 0.17 165);
  --accent-ai: oklch(74% 0.16 30);
  --glow: color-mix(in oklch, var(--accent) 40%, transparent);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 200ms;
  --duration: 400ms;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --hero-type: clamp(2.1rem, 1.1rem + 3.4vw, 4rem);
  --section-type: clamp(1.75rem, 1.12rem + 2.4vw, 3.5rem);
  --body-type: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  --container: 74rem;
  --radius: 0.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, oklch(100% 0 0 / 0.025) 1px, transparent 1px) 50% 0 / 4.5rem 4.5rem,
    linear-gradient(0deg, oklch(100% 0 0 / 0.018) 1px, transparent 1px) 50% 0 / 4.5rem 4.5rem,
    radial-gradient(circle at 72% 12%, oklch(80% 0.17 165 / 0.12), transparent 28rem),
    var(--bg);
  font-family: var(--font-body);
  font-size: var(--body-type);
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: clip;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 24% 18%, oklch(100% 0 0 / 0.07) 0 1px, transparent 1.4px),
    radial-gradient(circle at 68% 52%, oklch(100% 0 0 / 0.045) 0 1px, transparent 1.6px);
  background-size: 3px 3px, 5px 5px;
  opacity: 0.16;
  mix-blend-mode: screen;
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

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

::selection {
  color: var(--bg);
  background: var(--accent);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  transform: translateY(-140%);
  transition: transform var(--duration-fast) var(--ease);
}

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

.section-shell {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: oklch(15% 0.012 260 / 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 1.5rem, var(--container));
  min-height: 4.25rem;
  margin-inline: auto;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
}

.nav-menu {
  position: fixed;
  top: 4.25rem;
  right: 0.75rem;
  left: 0.75rem;
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: oklch(19% 0.016 260 / 0.98);
  box-shadow: 0 1.25rem 4rem oklch(0% 0 0 / 0.36);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.75rem);
  transition:
    opacity var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease);
}

.nav-open .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-menu a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  transition:
    color var(--duration-fast) var(--ease),
    background var(--duration-fast) var(--ease);
}

.nav-menu a:hover {
  color: var(--text);
  background: oklch(100% 0 0 / 0.06);
}

.nav-menu a.is-current {
  color: var(--text);
  background: oklch(100% 0 0 / 0.06);
}

.nav-menu .nav-cta {
  justify-content: center;
  color: var(--bg);
  background: var(--accent);
  box-shadow: 0 0 1.75rem var(--glow);
}

.nav-menu .nav-cta:hover {
  color: var(--bg);
  background: color-mix(in oklch, var(--accent) 86%, white);
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 1px;
  margin: -0.28rem 0;
  background: currentColor;
  transition:
    transform var(--duration-fast) var(--ease),
    opacity var(--duration-fast) var(--ease);
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(0.56rem) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-0.56rem) rotate(-45deg);
}

.hero {
  display: grid;
  gap: 2rem;
  padding-block: 3.5rem 2.75rem;
}

.hero-copy {
  max-width: 39rem;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow span,
.section-kicker::before {
  display: inline-block;
  width: 1.7rem;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 1rem currentColor;
  content: "";
}

.hero h1,
.section-heading h2,
.privacy h2,
.cta-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero h1 {
  font-size: var(--hero-type);
  line-height: 1.04;
  max-width: 23ch;
  text-wrap: balance;
}

.hero-sub {
  max-width: 35rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 0.94rem + 0.35vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.45rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  gap: 0.55rem;
  padding: 0.8rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 800;
  transition:
    transform var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    background var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease);
}

.button svg {
  width: 1rem;
  height: 1rem;
}

.button path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

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

.button-primary {
  color: var(--bg);
  background: var(--accent);
  box-shadow: 0 0 2.5rem var(--glow);
}

.button-primary:hover {
  background: color-mix(in oklch, var(--accent) 88%, white);
  box-shadow: 0 0 3rem color-mix(in oklch, var(--accent) 54%, transparent);
}

.button-ghost {
  color: var(--text);
  background: oklch(100% 0 0 / 0.035);
}

.button-ghost:hover {
  border-color: oklch(100% 0 0 / 0.16);
  background: oklch(100% 0 0 / 0.07);
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  max-width: 33rem;
  margin: 1.55rem 0 0;
}

.hero-metrics div {
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: oklch(100% 0 0 / 0.035);
}

.hero-metrics dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-metrics dd {
  margin: 0.25rem 0 0;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
}

.hero-visual {
  min-width: 0;
}

.instrument-frame {
  position: relative;
  min-height: 26rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, oklch(100% 0 0 / 0.07), transparent 38%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow:
    0 1.5rem 5rem oklch(0% 0 0 / 0.36),
    inset 0 1px 0 oklch(100% 0 0 / 0.08);
  overflow: hidden;
}

.instrument-frame::after {
  position: absolute;
  inset: auto 8% -22% 8%;
  height: 13rem;
  border-radius: 50%;
  background: color-mix(in oklch, var(--accent) 22%, transparent);
  filter: blur(54px);
  content: "";
}

.frame-topbar,
.window-top,
.terminal-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.65rem;
  padding: 0 0.8rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.frame-topbar span,
.window-top span,
.terminal-top span {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: oklch(100% 0 0 / 0.16);
}

.frame-topbar span:nth-child(1),
.window-top span:nth-child(1),
.terminal-top span:nth-child(1) {
  background: var(--accent-ai);
}

.frame-topbar span:nth-child(2),
.window-top span:nth-child(2),
.terminal-top span:nth-child(2) {
  background: oklch(82% 0.14 88);
}

.frame-topbar span:nth-child(3),
.window-top span:nth-child(3),
.terminal-top span:nth-child(3) {
  background: var(--accent);
}

.frame-topbar strong,
.window-top strong,
.terminal-top strong {
  margin-left: 0.35rem;
  font-weight: 600;
}

.pulse-visual {
  position: absolute;
  inset: 2.7rem 0 0;
  width: 100%;
  height: calc(100% - 2.7rem);
}

.grid-lines path {
  fill: none;
  stroke: oklch(100% 0 0 / 0.06);
  stroke-width: 1;
}

.pulse-wave {
  fill: none;
  stroke: url("#wave-gradient");
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
  animation: pulse-draw 4.8s var(--ease) 0.3s infinite;
}

.chart-bars rect {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: bar-rise 4.8s var(--ease) 0.9s infinite;
}

.chart-bars path {
  fill: none;
  stroke: oklch(100% 0 0 / 0.18);
}

.bar-you {
  fill: var(--accent);
  filter: drop-shadow(0 0 12px var(--glow));
}

.bar-ai {
  fill: var(--accent-ai);
  filter: drop-shadow(0 0 12px color-mix(in oklch, var(--accent-ai) 35%, transparent));
}

.svg-label {
  fill: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.svg-label-ai {
  fill: var(--accent-ai);
}

.today-card {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  width: min(22rem, calc(100% - 2rem));
  padding: 1rem;
  border: 1px solid oklch(100% 0 0 / 0.12);
  border-radius: var(--radius);
  background: oklch(12% 0.014 260 / 0.84);
  box-shadow: 0 1rem 3rem oklch(0% 0 0 / 0.45);
  backdrop-filter: blur(16px);
}

.today-card-head,
.time-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.today-card-head {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.today-card-head strong {
  color: var(--accent);
}

.time-row {
  margin-top: 0.85rem;
  font-family: var(--font-mono);
}

.time-row span {
  color: var(--muted);
}

.time-row strong {
  color: var(--text);
  font-size: 0.94rem;
}

.time-row.ai strong {
  color: var(--accent-ai);
  font-size: 0.82rem;
}

.meter {
  height: 0.45rem;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: oklch(100% 0 0 / 0.08);
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.ai-meter span {
  background: var(--accent-ai);
}

.editorial-band {
  margin-block: 1rem 5rem;
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, transparent, oklch(100% 0 0 / 0.045), transparent);
}

.editorial-band p {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
  padding: 1.5rem 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 0.92rem + 1vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.privacy h2,
.cta-panel h2 {
  max-width: 14ch;
  font-size: var(--section-type);
}

.section-heading p,
.privacy p {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
}

.surfaces,
.features,
.how-it-works,
.final-cta {
  padding-block: 4.5rem;
}

.surface-showcase {
  display: grid;
  gap: 1rem;
}

.surface-tabs {
  display: grid;
  gap: 0.55rem;
}

.surface-tab {
  min-height: 4.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  background: oklch(100% 0 0 / 0.035);
  text-align: left;
  cursor: pointer;
  transition:
    color var(--duration-fast) var(--ease),
    background var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease);
}

.surface-tab:hover,
.surface-tab.is-active {
  color: var(--text);
  border-color: oklch(100% 0 0 / 0.15);
  background: var(--surface-2);
}

.surface-tab.is-active {
  box-shadow: inset 3px 0 0 var(--accent);
}

.surface-tab span,
.surface-tab em {
  display: block;
}

.surface-tab span {
  font-family: var(--font-display);
  font-weight: 700;
}

.surface-tab em {
  margin-top: 0.2rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-style: normal;
}

.surface-panel {
  display: grid;
  gap: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, oklch(100% 0 0 / 0.07), transparent 36%),
    var(--surface);
  box-shadow: 0 1.25rem 4rem oklch(0% 0 0 / 0.24);
}

.surface-panel[hidden] {
  display: none;
}

.panel-copy h3,
.bento-card h3,
.steps h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.05rem + 1vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.panel-copy p {
  color: var(--muted);
}

.panel-copy code {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.command-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.command-strip span,
.chip-cloud span {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.45rem 0.55rem;
  color: var(--muted);
  background: oklch(100% 0 0 / 0.04);
  font-family: var(--font-mono);
  font-size: 0.73rem;
}

.mockup {
  min-width: 0;
  border: 1px solid oklch(100% 0 0 / 0.1);
  border-radius: var(--radius);
  background: oklch(11% 0.014 260);
  overflow: hidden;
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.07);
}

.vscode-body,
.desktop-body {
  display: grid;
  min-height: 31rem;
}

.vscode-body {
  grid-template-columns: 2.75rem 1fr;
}

.vscode-rail {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-right: 1px solid var(--border);
  background: oklch(9% 0.014 260);
}

.vscode-rail b {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: var(--radius);
  color: var(--bg);
  background: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.vscode-rail span {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.25rem;
  background: oklch(100% 0 0 / 0.08);
}

.vscode-sidebar {
  display: none;
}

.vscode-main,
.desktop-main {
  min-width: 0;
  padding: 1rem;
}

.dash-head,
.card-title,
.desktop-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dash-head span,
.desktop-heading span,
.card-title em {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-style: normal;
}

.dash-head strong,
.desktop-heading strong {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.1;
}

.dash-head em {
  flex: 0 0 auto;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius);
  color: var(--accent);
  background: color-mix(in oklch, var(--accent) 12%, transparent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-style: normal;
}

.stats-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
}

.stats-row div,
.ai-tools-card,
.timeline-card,
.token-strip {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: oklch(100% 0 0 / 0.04);
}

.stats-row div {
  padding: 0.7rem;
}

.stats-row span,
.stats-row strong,
.ai-tool-row span,
.ai-tool-row strong {
  display: block;
}

.stats-row span,
.ai-tool-row span {
  color: var(--muted);
  font-size: 0.78rem;
}

.stats-row strong,
.ai-tool-row strong,
.card-title span {
  font-family: var(--font-mono);
  font-weight: 700;
}

.chart-panel {
  height: 8rem;
  margin-top: 1rem;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(0deg, oklch(100% 0 0 / 0.045) 1px, transparent 1px) 0 0 / 100% 25%,
    oklch(0% 0 0 / 0.12);
}

.chart-bars-mini {
  display: flex;
  align-items: end;
  height: 100%;
  gap: 0.5rem;
}

.chart-bars-mini span {
  flex: 1;
  min-width: 0.55rem;
  border-radius: 0.3rem 0.3rem 0 0;
  background: linear-gradient(180deg, var(--accent), oklch(64% 0.14 172));
  box-shadow: 0 0 1rem var(--glow);
}

.chart-bars-mini span:nth-child(3n) {
  background: linear-gradient(180deg, var(--accent-ai), oklch(58% 0.14 30));
  box-shadow: 0 0 1rem color-mix(in oklch, var(--accent-ai) 24%, transparent);
}

.ai-tools-card {
  margin-top: 1rem;
  padding: 0.8rem;
}

.ai-tool-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.7rem;
  margin-top: 0.7rem;
  border-top: 1px solid var(--border);
}

.ai-tool-row span {
  color: var(--accent-ai);
  font-family: var(--font-mono);
  text-align: right;
}

.ai-tool-row.muted-row span {
  color: var(--muted);
}

.desktop-body {
  grid-template-columns: 1fr;
}

.desktop-sidebar {
  display: none;
}

.split-bars {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.split-line {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  padding-bottom: 1rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.split-line strong {
  color: var(--text);
}

.split-line i {
  grid-column: 1 / -1;
  display: block;
  height: 0.8rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 1.35rem var(--glow);
}

.split-line .ai-bar {
  background: var(--accent-ai);
  box-shadow: 0 0 1.35rem color-mix(in oklch, var(--accent-ai) 30%, transparent);
}

.timeline-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding: 0.85rem;
}

.timeline-dot {
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid var(--accent-ai);
  border-radius: 50%;
  box-shadow: 0 0 1rem color-mix(in oklch, var(--accent-ai) 34%, transparent);
}

.timeline-card strong,
.timeline-card p,
.timeline-card em {
  margin: 0;
  font-family: var(--font-mono);
}

.timeline-card p {
  color: var(--accent-ai);
  font-size: 0.86rem;
}

.timeline-card em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
}

.token-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.8rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.token-strip strong {
  color: var(--text);
}

.terminal-mockup pre {
  min-height: 24rem;
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 0.72rem + 0.25vw, 0.96rem);
  line-height: 1.75;
}

.prompt,
.ok {
  color: var(--accent);
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 1rem;
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 13rem;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, oklch(100% 0 0 / 0.06), transparent 42%),
    var(--surface);
  overflow: hidden;
  transition:
    transform var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    background var(--duration-fast) var(--ease);
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: oklch(100% 0 0 / 0.16);
  background:
    linear-gradient(145deg, oklch(80% 0.17 165 / 0.08), transparent 38%),
    var(--surface-2);
}

.feature-icon {
  width: 2.15rem;
  height: 2.15rem;
  margin-bottom: 1.6rem;
  color: var(--accent);
  filter: drop-shadow(0 0 12px var(--glow));
}

.feature-icon path,
.feature-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.bento-card p,
.steps p {
  max-width: 31rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.42rem;
  max-width: 18rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

.heatmap span {
  aspect-ratio: 1;
  border-radius: 0.22rem;
  background: oklch(100% 0 0 / 0.08);
}

.heatmap span:nth-child(3n + 1) {
  background: color-mix(in oklch, var(--accent) 28%, transparent);
}

.heatmap span:nth-child(4n + 2) {
  background: color-mix(in oklch, var(--accent-ai) 35%, transparent);
}

.privacy {
  margin-block: 4rem;
  border-block: 1px solid var(--border);
  background:
    linear-gradient(90deg, oklch(80% 0.17 165 / 0.12), transparent 35%),
    linear-gradient(180deg, var(--surface), oklch(12% 0.014 260));
}

.privacy-inner {
  display: grid;
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  gap: 2rem;
  padding-block: 4.5rem;
}

.privacy p {
  margin-top: 1.3rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.proof-item {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: oklch(0% 0 0 / 0.18);
}

.proof-item span {
  display: block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.proof-item strong {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.steps::before {
  position: absolute;
  top: 2rem;
  bottom: 2rem;
  left: 1.4rem;
  width: 1px;
  background: linear-gradient(var(--accent), var(--accent-ai));
  opacity: 0.45;
  content: "";
}

.steps li {
  position: relative;
  padding: 1rem 1rem 1rem 4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: oklch(100% 0 0 / 0.035);
}

.steps li > span {
  position: absolute;
  top: 1rem;
  left: 0.95rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid color-mix(in oklch, var(--accent) 46%, transparent);
  border-radius: 50%;
  color: var(--bg);
  background: var(--accent);
  font-family: var(--font-mono);
  font-weight: 800;
}

.cta-panel {
  position: relative;
  padding: 2rem 1.2rem;
  border: 1px solid color-mix(in oklch, var(--accent) 28%, var(--border));
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, oklch(80% 0.17 165 / 0.16), transparent 42%),
    linear-gradient(315deg, oklch(74% 0.16 30 / 0.14), transparent 46%),
    var(--surface);
  box-shadow: 0 0 4rem oklch(80% 0.17 165 / 0.12);
  overflow: hidden;
}

.cta-panel::after {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: min(18rem, 45vw);
  height: 5rem;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent-ai);
  opacity: 0.22;
  content: "";
}

.site-footer {
  display: grid;
  gap: 1.5rem;
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.site-footer p {
  margin: 0.5rem 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
}

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

.download {
  scroll-margin-top: 5.5rem;
}

.download-grid,
.quickstart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.download-card,
.quickstart-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, oklch(100% 0 0 / 0.055), transparent 42%),
    oklch(100% 0 0 / 0.026);
}

.download-card {
  display: grid;
  align-content: start;
  gap: 0.95rem;
  min-height: 25rem;
  padding: 1.1rem;
}

.download-label,
.download-note,
.quickstart-card span {
  font-family: var(--font-mono);
  font-weight: 700;
}

.download-label {
  color: var(--accent);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.download-card h3,
.quickstart-card h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0;
}

.download-card h3 {
  font-size: 1.35rem;
}

.download-card p,
.quickstart-card p {
  margin: 0;
  color: var(--muted);
}

.download-card .button {
  width: 100%;
  min-height: 2.75rem;
  justify-content: center;
}

.download-note {
  align-self: end;
  color: var(--muted);
  font-size: 0.78rem;
}

.quickstart-grid {
  margin-top: 1rem;
}

.quickstart-card {
  display: grid;
  gap: 0.7rem;
  min-height: 11rem;
  padding: 1rem;
}

.quickstart-card span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  color: var(--bg);
  background: var(--accent);
  font-size: 0.85rem;
}

.quickstart-card h3 {
  font-size: 1.05rem;
}

.license {
  font-family: var(--font-mono);
}

.docs-main {
  padding-bottom: 1rem;
}

.docs-hero {
  padding-block: 3.5rem 2rem;
}

.docs-hero h1 {
  max-width: 15ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 1.25rem + 4.4vw, 4.75rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.docs-hero p {
  max-width: 54rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 0.94rem + 0.35vw, 1.18rem);
}

.docs-layout {
  display: grid;
  gap: 2rem;
  padding-block: 1rem 5rem;
}

.docs-sidebar {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: oklch(100% 0 0 / 0.035);
}

.docs-sidebar nav {
  display: grid;
  gap: 0.2rem;
  padding: 0.65rem;
}

.docs-sidebar a {
  display: flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  transition:
    color var(--duration-fast) var(--ease),
    background var(--duration-fast) var(--ease);
}

.docs-sidebar a:hover {
  color: var(--text);
  background: oklch(100% 0 0 / 0.06);
}

.docs-content {
  min-width: 0;
  max-width: 72ch;
}

.docs-section {
  scroll-margin-top: 5.5rem;
  padding-block: 2rem;
  border-top: 1px solid var(--border);
}

.docs-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.docs-content h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.08rem + 1.25vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.docs-content p,
.docs-content li {
  color: var(--muted);
}

.docs-content p {
  margin: 0.9rem 0 0;
}

.docs-content ul,
.docs-content ol {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.docs-content li + li {
  margin-top: 0.45rem;
}

.docs-content code {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.docs-code {
  margin: 1rem 0 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  background:
    linear-gradient(145deg, oklch(100% 0 0 / 0.05), transparent 40%),
    oklch(10% 0.014 260);
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 0.72rem + 0.24vw, 0.92rem);
  line-height: 1.7;
  overflow-x: auto;
}

.docs-code code {
  color: inherit;
  font: inherit;
  overflow-wrap: normal;
}

.docs-note {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid color-mix(in oklch, var(--accent) 28%, var(--border));
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--accent) 8%, transparent);
}

.docs-note p {
  margin: 0;
}

.tool-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  padding-left: 0;
  list-style: none;
}

.tool-list li {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: oklch(100% 0 0 / 0.035);
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.trouble-list {
  display: grid;
  gap: 0.75rem;
  padding-left: 0;
  list-style: none;
}

.trouble-list li {
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: oklch(100% 0 0 / 0.035);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

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

@keyframes pulse-draw {
  0% {
    opacity: 0.2;
    stroke-dashoffset: 1;
  }
  42%,
  72% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
  100% {
    opacity: 0.35;
    stroke-dashoffset: -1;
  }
}

@keyframes bar-rise {
  0%,
  30% {
    transform: scaleY(0.08);
  }
  50%,
  78% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(0.16);
  }
}

@media (min-width: 36rem) {
  .hero-metrics,
  .stats-row,
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .surface-panel,
  .bento-card,
  .cta-panel {
    padding: 1.35rem;
  }
}

@media (min-width: 48rem) {
  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-heading {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: end;
  }

  .download-card {
    padding: 1.25rem;
  }

  .surface-showcase {
    grid-template-columns: 17rem 1fr;
    align-items: start;
  }

  .surface-tabs {
    position: sticky;
    top: 5.25rem;
  }

  .vscode-body {
    grid-template-columns: 3rem 9.5rem 1fr;
  }

  .vscode-sidebar {
    display: grid;
    align-content: start;
    gap: 0.35rem;
    padding: 1rem 0.7rem;
    border-right: 1px solid var(--border);
    background: oklch(13% 0.014 260);
  }

  .sidebar-title {
    margin-bottom: 0.6rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
  }

  .vscode-sidebar a,
  .desktop-sidebar a {
    padding: 0.5rem 0.55rem;
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 0.82rem;
  }

  .vscode-sidebar .selected,
  .desktop-sidebar .selected {
    color: var(--text);
    background: oklch(100% 0 0 / 0.08);
  }

  .stats-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .desktop-body {
    grid-template-columns: 10rem 1fr;
  }

  .desktop-sidebar {
    display: grid;
    align-content: start;
    gap: 0.35rem;
    padding: 1rem 0.7rem;
    border-right: 1px solid var(--border);
    background: oklch(13% 0.014 260);
  }

  .desktop-sidebar strong {
    margin-bottom: 0.7rem;
    font-family: var(--font-display);
  }

  .privacy-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .steps::before {
    top: 2rem;
    right: 12%;
    bottom: auto;
    left: 12%;
    width: auto;
    height: 1px;
  }

  .steps li {
    padding: 4.25rem 1rem 1.1rem;
  }

  .steps li > span {
    top: 1rem;
    left: 1rem;
  }

  .site-footer {
    grid-template-columns: 1fr auto auto;
    align-items: start;
  }
}

@media (min-width: 64rem) {
  .nav-toggle {
    display: none;
  }

  body.nav-open {
    overflow: auto;
  }

  .nav-menu {
    position: static;
    display: flex;
    align-items: center;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-menu a {
    min-height: 2.5rem;
    padding-inline: 0.7rem;
  }

  .nav-menu .nav-cta {
    min-width: 5.5rem;
  }

  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    min-height: min(42rem, calc(100svh - 4.25rem));
    padding-block: 3rem;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .instrument-frame {
    min-height: 31rem;
  }

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

  .surface-panel {
    grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    min-height: 36rem;
  }

  .panel-copy {
    padding-left: 0.25rem;
  }

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

  .docs-hero {
    padding-block: 4rem 2.5rem;
  }

  .docs-layout {
    grid-template-columns: 16rem minmax(0, 72ch);
    align-items: start;
    gap: 3rem;
  }

  .docs-sidebar {
    position: sticky;
    top: 5.25rem;
  }
}

@media (min-width: 90rem) {
  .section-shell,
  .nav,
  .editorial-band p,
  .privacy-inner,
  .site-footer {
    width: min(100% - 4rem, var(--container));
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .pulse-wave {
    stroke-dashoffset: 0;
  }

  .chart-bars rect {
    transform: scaleY(1);
  }
}
