:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --bg-soft: #f4f2ec;
  --paper: #ffffff;
  --ink: #1c1d22;
  --ink-soft: #4a4d55;
  --muted: #7c8089;
  --line: rgba(28, 29, 34, 0.1);
  --line-strong: rgba(28, 29, 34, 0.16);
  --accent: #2f6f5b;
  --accent-soft: rgba(47, 111, 91, 0.1);
  --amber: #b67410;
  --coral: #c0455f;
  --shadow-sm: 0 1px 2px rgba(28, 29, 34, 0.06);
  --shadow-md: 0 12px 32px rgba(28, 29, 34, 0.08);
  --shadow-lg: 0 28px 64px rgba(28, 29, 34, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --page-max: 1240px;
  --page-pad: 40px;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}

body::selection {
  background: var(--accent-soft);
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 max(24px, calc((100vw - var(--page-max)) / 2 + 24px));
  background: rgba(251, 250, 247, 0.78);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: border-color 200ms ease, background 200ms ease;
}

.site-header[data-elevated="true"] {
  background: rgba(251, 250, 247, 0.92);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 680;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand-logo {
  display: block;
  height: 60px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 15px;
}

.nav a,
.header-action,
.button,
.footer a {
  text-decoration: none;
}

.nav a {
  transition: color 160ms ease;
}

.nav a:hover,
.footer a:hover {
  color: var(--accent);
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  font-weight: 560;
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, transform 160ms ease, color 160ms ease;
}

.header-action:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 150px var(--page-pad) 110px;
  isolation: isolate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

.hero-glow {
  position: absolute;
  z-index: -3;
  top: -10%;
  left: 50%;
  width: 900px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(47, 111, 91, 0.12), transparent 65%);
  filter: blur(20px);
}

.hero-content {
  width: min(100%, var(--page-max));
  margin-inline: auto;
  max-width: 940px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--accent);
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 900px;
  font-size: 76px;
  font-weight: 720;
  line-height: 1.02;
}

.hero-sub {
  margin: 18px 0 0;
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.5;
}

.hero-actions,
.install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.button-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: var(--shadow-md);
}

.button-primary:hover {
  background: #285f4e;
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: statusPulse 1.6s ease-in-out infinite;
}

.status-separator {
  color: var(--line-strong);
}

.section {
  width: min(100%, var(--page-max));
  margin-inline: auto;
  padding: 96px var(--page-pad);
}

.section-tight {
  padding-top: 72px;
}

.statement-grid,
.install-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 56px;
  align-items: start;
}

.statement-grid h2,
.section h2 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.05;
}

.statement-grid p,
.install-layout p,
.demo-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.55;
}

.workflow-section,
.capabilities-section {
  background: var(--bg-soft);
  width: 100%;
  max-width: none;
  padding-inline: 0;
}

.workflow-section > *,
.capabilities-section > * {
  width: min(100%, var(--page-max));
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.workflow-card {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.workflow-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.workflow-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

.step-number {
  color: var(--accent);
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
}

.workflow-card strong,
.capability-grid h3,
.not-grid h3 {
  font-size: 21px;
  font-weight: 640;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.workflow-card span:last-child,
.capability-grid p,
.not-grid p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
}

.workflow-stage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: auto auto;
  gap: 18px;
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at top left, rgba(47, 111, 91, 0.05), transparent 55%),
    var(--paper);
  box-shadow: var(--shadow-lg);
}

.os-window {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: opacity 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.os-window[data-active="false"] {
  opacity: 0.62;
}

.os-window[data-active="true"] {
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg);
  transform: translateY(-2px);
}

.os-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fafaf8, #f1efe9);
}

.os-controls {
  display: inline-flex;
  gap: 7px;
}

.os-controls i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d6d3cc;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.os-controls i:nth-child(1) { background: #ec6a5e; }
.os-controls i:nth-child(2) { background: #f4bf4f; }
.os-controls i:nth-child(3) { background: #61c554; }

.os-title {
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-panel { grid-column: 1; grid-row: 1 / span 2; }
.summary-panel { grid-column: 2; grid-row: 1; }
.voice-panel { grid-column: 2; grid-row: 2; }

.terminal-panel .os-titlebar {
  background: linear-gradient(180deg, #2b2d33, #232529);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.terminal-panel .os-title {
  color: rgba(255, 255, 255, 0.55);
}

.terminal-body {
  padding: 18px 20px;
  background: #1e2024;
  min-height: 320px;
}

.terminal-lines {
  display: grid;
  gap: 12px;
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
  color: #d4d8de;
}

.terminal-lines b {
  display: inline-block;
  min-width: 64px;
  font-weight: 600;
}

.tl-prompt b { color: #61c554; }
.tl-agent b { color: #6ea8ff; }
.tl-tool b { color: #c9a0ff; }
.tl-risk b { color: #f4bf4f; }

.summary-list {
  display: grid;
  gap: 10px;
  padding: 18px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}

.summary-list span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.summary-list b {
  color: var(--muted);
  font-weight: 600;
  margin-right: 6px;
}

.voice-toolbar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.control-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 540;
}

.control-pill.active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.voice-readout {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.voice-readout p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
}

.voice-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

.voice-icon i {
  width: 5px;
  height: 18px;
  border-radius: 2px;
  background: var(--accent);
  animation: voiceBars 0.8s ease-in-out infinite;
}

.voice-icon i:nth-child(2) {
  height: 28px;
  animation-delay: 120ms;
}

.voice-icon i:nth-child(3) {
  animation-delay: 220ms;
}

.demo-section {
  background: var(--bg);
}

.demo-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.75fr);
  gap: 48px;
  align-items: end;
}

.demo-frame {
  margin-top: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.demo-frame .os-titlebar {
  height: 42px;
}

.demo-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.contrast-section {
  background: var(--ink);
  color: #f4f2ec;
  width: 100%;
  max-width: none;
  padding-inline: 0;
}

.contrast-section > * {
  width: min(100%, var(--page-max));
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.contrast-section .section-kicker {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #8fd2bd;
}

.not-grid,
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.capability-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.not-grid article {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.not-grid article span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--coral);
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
}

.not-grid h3 {
  margin: 0 0 10px;
}

.not-grid p {
  margin: 0;
  color: rgba(244, 242, 236, 0.66);
}

.capability-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.capability-grid article:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.capability-grid h3 {
  margin: 0 0 10px;
}

.capability-grid p {
  margin: 0;
}

.install-section {
  background: var(--bg);
}

.code-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.code-card .os-titlebar {
  background: linear-gradient(180deg, #2b2d33, #232529);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.code-card .os-title {
  color: rgba(255, 255, 255, 0.55);
}

.code-card pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  background: #1e2024;
  color: #d4d8de;
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  font-size: 14.5px;
  line-height: 1.6;
}

.footer {
  min-height: 110px;
  width: min(100%, var(--page-max));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-inline: auto;
  padding: 32px var(--page-pad);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer strong,
.footer span {
  display: block;
}

.footer strong {
  color: var(--ink);
  margin-bottom: 6px;
  font-weight: 640;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 15px;
}

@keyframes statusPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes voiceBars {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1.15); }
}

@media (max-width: 1000px) {
  :root {
    --page-pad: 24px;
  }

  .nav {
    display: none;
  }

  .hero {
    padding-top: 120px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-sub {
    font-size: 22px;
  }

  .hero-copy,
  .statement-grid p,
  .install-layout p,
  .demo-heading p {
    font-size: 18px;
  }

  .statement-grid,
  .install-layout,
  .demo-heading,
  .workflow,
  .not-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .section h2,
  .statement-grid h2 {
    font-size: 36px;
  }

  .workflow-stage {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    padding: 18px;
  }

  .terminal-panel,
  .summary-panel,
  .voice-panel {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 600px) {
  .site-header {
    height: 58px;
  }

  .header-action {
    display: none;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-actions,
  .install-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section h2,
  .statement-grid h2 {
    font-size: 30px;
  }

  .voice-readout {
    grid-template-columns: 1fr;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
