:root {
  --ink: #07090d;
  --ink-2: #11151d;
  --paper: #f6f7fb;
  --white: #ffffff;
  --line: rgba(8, 12, 18, 0.14);
  --line-dark: rgba(255, 255, 255, 0.14);
  --muted: #626975;
  --muted-dark: #a7b0bf;
  --blue: #0a84ff;
  --green: #30d158;
  --cyan: #5ac8fa;
  --orange: #ff9f0a;
  --pink: #ff375f;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

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

.site-header {
  align-items: center;
  backdrop-filter: blur(22px);
  background: rgba(7, 9, 13, 0.78);
  border-bottom: 1px solid var(--line-dark);
  color: var(--white);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  min-height: 68px;
  padding: 12px clamp(18px, 5vw, 54px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--blue);
  border-radius: 50%;
  display: inline-flex;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
}

.nav-links a,
.header-cta,
.site-footer a {
  color: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.header-cta {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 10px 15px;
}

.section-dark,
.section-ink,
.section-light {
  padding: clamp(62px, 9vw, 116px) clamp(18px, 5vw, 54px);
}

.section-dark {
  background:
    linear-gradient(180deg, rgba(10, 132, 255, 0.18), rgba(7, 9, 13, 0) 42%),
    radial-gradient(circle at 82% 22%, rgba(48, 209, 88, 0.14), transparent 34%),
    var(--ink);
  color: var(--white);
}

.section-ink {
  background: var(--ink-2);
  color: var(--white);
}

.section-light {
  background: var(--paper);
  color: var(--ink);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(38px, 6vw, 76px);
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  min-height: calc(92svh - 68px);
  overflow: hidden;
  padding-top: clamp(52px, 8vw, 90px);
}

.hero-copy,
.hero-stage,
.section-heading,
.section-split,
.bench-section,
.architecture-section,
.custom-section,
.privacy-section,
.site-footer {
  margin: 0 auto;
  max-width: var(--max);
}

.hero-label,
.section-kicker {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: ui-rounded, "SF Pro Rounded", ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(3.5rem, 7vw, 7rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin: 0;
  max-width: 900px;
}

.hero-subhead,
.bench-heading p,
.custom-section p,
.privacy-copy p,
.split-copy p {
  color: var(--muted-dark);
  font-size: clamp(1.02rem, 1.7vw, 1.32rem);
  line-height: 1.58;
  margin: 24px 0 0;
  max-width: 720px;
}

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

.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  text-decoration: none;
}

.button-primary {
  background: var(--blue);
  color: var(--white);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-dark);
  color: var(--white);
}

.button-dark {
  background: var(--ink);
  color: var(--white);
  margin-top: 28px;
}

.hero-proof {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 44px 0 0;
}

.hero-proof div {
  border-top: 1px solid var(--line-dark);
  padding-top: 14px;
}

.hero-proof dt {
  color: var(--white);
  font-weight: 850;
}

.hero-proof dd {
  color: var(--muted-dark);
  font-size: 0.94rem;
  line-height: 1.45;
  margin: 7px 0 0;
}

.hero-stage {
  min-height: 620px;
  position: relative;
  width: min(100%, 560px);
}

.signal-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  inset: 0;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 72%);
  position: absolute;
}

.lab-panel {
  background: rgba(16, 22, 32, 0.86);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: absolute;
}

.transcript-panel {
  left: 0;
  padding: 18px;
  top: 18px;
  width: min(390px, 86vw);
}

.harness-panel {
  bottom: 42px;
  padding: 18px;
  right: 0;
  width: min(330px, 72vw);
}

.panel-topline,
.trace-row {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.panel-topline {
  color: var(--muted-dark);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.status-dot {
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(48, 209, 88, 0.12);
  height: 9px;
  width: 9px;
}

.panel-mode {
  color: var(--cyan);
}

.message-stack {
  display: grid;
  gap: 12px;
}

.bubble {
  border-radius: 22px;
  line-height: 1.38;
  max-width: 90%;
  padding: 12px 14px;
}

.bubble-user {
  align-self: end;
  background: var(--blue);
  color: var(--white);
}

.bubble-agent {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  min-height: 82px;
}

.suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-row button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 8px 11px;
}

.trace-row {
  border-top: 1px solid var(--line-dark);
  color: var(--muted-dark);
  font-size: 0.92rem;
  padding: 13px 0;
}

.trace-row strong {
  color: var(--white);
}

.meter {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  height: 9px;
  overflow: hidden;
}

.meter span {
  animation: meter 4s ease-in-out infinite;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--orange));
  border-radius: inherit;
  display: block;
  height: 100%;
  width: 72%;
}

.section-heading,
.bench-heading,
.architecture-copy {
  max-width: var(--max);
}

.section-heading h2,
.split-copy h2,
.bench-heading h2,
.architecture-copy h2,
.custom-section h2,
.privacy-copy h2 {
  font-family: ui-rounded, "SF Pro Rounded", ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2.45rem, 5.8vw, 5.25rem);
  letter-spacing: 0;
  line-height: 0.96;
  margin: 0;
  max-width: 960px;
}

.screens-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 48px auto 0;
  max-width: var(--max);
}

.screens-grid figure,
.large-phone,
.persona-card {
  margin: 0;
}

.screens-grid figure {
  align-items: center;
  display: grid;
  gap: 14px;
}

.screens-grid img,
.large-phone img {
  background: #111;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(9, 13, 20, 0.2);
  margin: 0 auto;
  max-height: 650px;
  object-fit: contain;
}

.screens-grid figcaption,
.large-phone figcaption {
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.section-split {
  align-items: start;
  display: grid;
  gap: clamp(30px, 6vw, 76px);
  grid-template-columns: 0.9fr 1.1fr;
}

.persona-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.persona-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 20px;
}

.persona-card span {
  color: var(--blue);
  display: block;
  font-weight: 900;
  margin-bottom: 44px;
}

.persona-card h3 {
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1.08;
  margin: 0;
}

.persona-card p {
  color: var(--muted-dark);
  line-height: 1.45;
  margin: 12px 0 0;
}

.persona-card.accent-green span {
  color: var(--green);
}

.persona-card.accent-cyan span {
  color: var(--cyan);
}

.persona-card.accent-orange span {
  color: var(--orange);
}

.bench-section {
  display: grid;
  gap: 44px;
}

.bench-heading p,
.custom-section p,
.privacy-copy p,
.split-copy p {
  color: var(--muted);
}

.bench-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.bench-row {
  display: grid;
  grid-template-columns: 0.6fr 1fr 1.2fr;
}

.bench-row span {
  border-top: 1px solid var(--line);
  line-height: 1.45;
  padding: 18px;
}

.bench-row:first-child span {
  border-top: 0;
}

.bench-row span + span {
  border-left: 1px solid var(--line);
}

.bench-row-header {
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
}

.bench-row:not(.bench-row-header) span:first-child {
  font-weight: 900;
}

.architecture-section {
  display: grid;
  gap: 46px;
}

.pipeline {
  counter-reset: step;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.pipeline li {
  border-left: 1px solid var(--line-dark);
  min-height: 300px;
  padding: 18px;
}

.pipeline span {
  color: var(--orange);
  display: block;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 900;
  margin-bottom: 90px;
}

.pipeline strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.pipeline p {
  color: var(--muted-dark);
  line-height: 1.5;
  margin: 0;
}

.custom-section {
  align-items: center;
  display: grid;
  gap: clamp(30px, 7vw, 90px);
  grid-template-columns: 0.9fr 1fr;
}

.large-phone img {
  max-height: 760px;
}

.privacy-section {
  display: grid;
  gap: clamp(28px, 6vw, 72px);
  grid-template-columns: 0.9fr 1.1fr;
}

.privacy-list {
  display: grid;
  gap: 12px;
}

.privacy-list div {
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: 8px;
  padding: 20px 0;
}

.privacy-list strong {
  color: var(--white);
  font-size: 1.15rem;
}

.privacy-list span {
  color: var(--muted-dark);
  line-height: 1.5;
}

.site-footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  padding: 28px clamp(18px, 5vw, 54px);
}

.site-footer span {
  color: var(--ink);
  font-weight: 900;
}

@keyframes meter {
  0%,
  100% {
    transform: translateX(-18%);
    width: 72%;
  }
  50% {
    transform: translateX(10%);
    width: 88%;
  }
}

@media (max-width: 940px) {
  .site-header {
    gap: 14px;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .section-split,
  .custom-section,
  .privacy-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 5.4rem);
  }

  .hero-proof,
  .screens-grid,
  .pipeline {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 560px;
    width: 100%;
  }

  .harness-panel {
    bottom: 0;
  }

  .bench-row {
    grid-template-columns: 1fr;
  }

  .bench-row span + span {
    border-left: 0;
  }

  .bench-row span {
    border-top: 1px solid var(--line);
  }

  .bench-row-header {
    display: none;
  }

  .pipeline li {
    min-height: 0;
  }

  .pipeline span {
    margin-bottom: 40px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 60px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .header-cta {
    padding: 9px 12px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-stage {
    display: none;
    min-height: 330px;
  }

  .hero-proof {
    display: none;
  }

  .transcript-panel,
  .harness-panel {
    left: 0;
    right: auto;
    width: 100%;
  }

  .harness-panel {
    display: none;
  }

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

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