:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --ink: #07111f;
  --ink-soft: #172033;
  --muted: #617086;
  --muted-strong: #42516a;
  --line: #dfe6ef;
  --line-strong: #cbd6e4;
  --blue: #006cff;
  --cyan: #22e6ff;
  --green: #20c578;
  --amber: #f4a124;
  --red: #ec5166;
  --shadow-sm: 0 10px 30px rgba(10, 23, 46, 0.08);
  --shadow-md: 0 24px 70px rgba(10, 23, 46, 0.14);
  --radius: 8px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

code {
  background: #eef4fb;
  border: 1px solid #dbe6f2;
  border-radius: 6px;
  color: #173a67;
  font-size: 0.92em;
  padding: 0.08rem 0.32rem;
}

::selection {
  background: rgba(34, 230, 255, 0.32);
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(223, 230, 239, 0.86);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 22px;
  height: var(--header-height);
  justify-content: space-between;
  left: 50%;
  padding: 0 14px 0 18px;
  position: fixed;
  top: 16px;
  transform: translateX(-50%);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  width: min(1208px, calc(100% - 48px));
  z-index: 20;
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(203, 214, 228, 0.98);
  box-shadow: 0 18px 46px rgba(10, 23, 46, 0.12);
}

.brand,
.footer-brand {
  align-items: center;
  display: inline-flex;
  font-weight: 500;
  gap: 10px;
  letter-spacing: 0;
}

.brand img,
.footer-brand img {
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(0, 108, 255, 0.2);
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 4px;
}

.site-nav a {
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 13px;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #edf4ff;
  color: var(--blue);
}

.nav-toggle {
  align-items: center;
  background: #f1f5fa;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: none;
  height: 44px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 44px;
}

.nav-toggle span {
  background: currentColor;
  border-radius: 999px;
  height: 2px;
  position: absolute;
  transition: transform 180ms ease;
  width: 18px;
}

.nav-toggle span:first-child {
  transform: translateY(-4px);
}

.nav-toggle span:last-child {
  transform: translateY(4px);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.hero {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(247, 249, 252, 0.94), rgba(247, 249, 252, 1) 68%),
    radial-gradient(circle at 80% 12%, rgba(34, 230, 255, 0.22), transparent 34%),
    radial-gradient(circle at 10% 16%, rgba(244, 161, 36, 0.18), transparent 30%);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  min-height: 92svh;
  overflow: hidden;
  padding: 138px max(24px, calc((100vw - 1160px) / 2)) 68px;
}

.hero-copy {
  max-width: 650px;
  min-width: 0;
  width: 100%;
}

.eyebrow {
  color: #195ea8;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  color: var(--ink);
  font-size: 76px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 24px;
}

h2 {
  color: var(--ink);
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.08;
  margin-bottom: 16px;
}

h3 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-lede {
  color: var(--muted-strong);
  font-size: 20px;
  line-height: 1.55;
  margin-bottom: 0;
  max-width: 620px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.store-badge {
  display: inline-flex;
  line-height: 0;
  transition: filter 160ms ease, transform 160ms ease;
}

.store-badge:hover,
.store-badge:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.store-badge img {
  height: 52px;
  width: auto;
}

.text-link {
  color: var(--blue);
  display: inline-flex;
  font-weight: 500;
  line-height: 1.2;
  padding: 10px 0;
  transition: color 160ms ease, transform 160ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: #004fbf;
  text-decoration: underline;
  transform: translateY(-1px);
}

.hero-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 16px 0 0;
  max-width: 610px;
}

.hero-facts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 38px 0 0;
}

.hero-facts div {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.hero-facts .fact-title {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: flex;
  gap: 8px;
  margin-bottom: 5px;
  padding: 0;
}

.hero-facts svg {
  color: #007aff;
  fill: currentColor;
  flex: 0 0 auto;
  height: 19px;
  width: 19px;
}

.hero-facts strong {
  color: var(--ink);
  display: inline;
  font-size: 15px;
  font-weight: 500;
}

.hero-facts span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

.hero-visual {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 660px;
  min-width: 0;
  position: relative;
  width: 100%;
}

.hero-screenshot-stack {
  aspect-ratio: 1.34;
  min-width: 0;
  position: relative;
  width: min(920px, 116%);
}

.hero-screenshot {
  display: block;
  height: auto;
  min-width: 0;
  object-fit: contain;
  position: absolute;
  user-select: none;
}

.hero-screenshot-back {
  filter: drop-shadow(0 24px 46px rgba(7, 17, 31, 0.16));
  right: 0;
  top: 0;
  width: 91%;
  z-index: 1;
}

.hero-screenshot-front {
  bottom: 0;
  filter: drop-shadow(0 26px 48px rgba(7, 17, 31, 0.24));
  left: 0;
  width: 74%;
  z-index: 2;
}

.json-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(203, 214, 228, 0.92);
  border-radius: var(--radius);
  bottom: 28px;
  box-shadow: var(--shadow-md);
  max-width: 380px;
  padding: 16px;
  position: absolute;
  right: 0;
  width: 56%;
  z-index: 3;
}

.card-title {
  align-items: center;
  color: var(--ink);
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.card-title strong {
  font-weight: 500;
}

.card-title span {
  background: var(--green);
  border-radius: 50%;
  height: 10px;
  width: 10px;
}

pre {
  background: #07111f;
  border-radius: var(--radius);
  color: #dcecff;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  overflow-x: auto;
  padding: 14px;
}

pre code {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
}

.quick-strip {
  background: var(--ink);
  color: #ffffff;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px max(24px, calc((100vw - 1160px) / 2));
}

.quick-strip strong {
  display: block;
  font-size: 17px;
}

.quick-strip span {
  color: rgba(255, 255, 255, 0.76);
  display: block;
  font-size: 14px;
  margin-top: 4px;
}

.section {
  padding: 88px max(24px, calc((100vw - 1160px) / 2));
}

.band {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 34px;
  max-width: 800px;
  min-width: 0;
}

.section-heading p:not(.eyebrow),
.split-copy p,
.trial-copy p {
  color: var(--muted-strong);
  font-size: 18px;
  margin-bottom: 0;
}

.ai-section {
  background:
    linear-gradient(180deg, #ffffff, #f7f9fc),
    radial-gradient(circle at 18% 16%, rgba(34, 230, 255, 0.18), transparent 32%);
  border-bottom: 1px solid var(--line);
}

.agent-flow {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agent-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(10, 23, 46, 0.06);
  min-width: 0;
  padding: 24px;
}

.agent-step span {
  align-items: center;
  background: #edf4ff;
  border: 1px solid #cfe0f5;
  border-radius: 999px;
  color: var(--blue);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  margin-bottom: 18px;
  width: 28px;
}

.agent-step strong {
  color: var(--ink);
  display: block;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 10px;
}

.agent-step p {
  color: var(--muted-strong);
  margin-bottom: 0;
}

.codex-example {
  align-items: stretch;
  background: #07111f;
  border: 1px solid rgba(9, 26, 46, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  color: #ffffff;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  margin-top: 24px;
  overflow: hidden;
  padding: 28px;
}

.codex-example .eyebrow {
  color: #78f3ff;
}

.codex-example h3 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 400;
}

.codex-example p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
}

.agent-conversation {
  display: grid;
  gap: 12px;
}

.agent-message {
  border: 1px solid rgba(130, 159, 190, 0.28);
  border-radius: var(--radius);
  padding: 16px;
}

.agent-message span {
  color: rgba(255, 255, 255, 0.58);
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.agent-message code {
  background: transparent;
  border: 0;
  color: #dcecff;
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.55;
  overflow-wrap: anywhere;
  padding: 0;
}

.user-message {
  background: rgba(0, 108, 255, 0.2);
}

.assistant-message {
  background: rgba(255, 255, 255, 0.06);
}

.feature-grid,
.workflow-grid,
.security-grid {
  display: grid;
  gap: 16px;
}

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

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

.feature-card,
.workflow-card,
.security-card,
.unlock-card,
.spec-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(10, 23, 46, 0.06);
}

.feature-card,
.security-card {
  padding: 24px;
}

.feature-icon {
  color: var(--blue);
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.feature-card p,
.workflow-card p,
.security-card p,
.unlock-card p,
.faq-item p,
.spec-list span {
  color: var(--muted-strong);
  margin-bottom: 0;
}

.workflow-card {
  overflow: hidden;
  padding: 0 24px 24px;
}

.terminal-line {
  background: #07111f;
  color: #dcecff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.4;
  margin: 0 -24px 22px;
  min-height: 62px;
  overflow: hidden;
  padding: 14px 16px;
  white-space: nowrap;
}

.workflow-card ul,
.unlock-card ul {
  color: var(--ink-soft);
  margin: 18px 0 0;
  padding-left: 20px;
}

.workflow-card li,
.unlock-card li {
  margin: 8px 0;
}

.split-section {
  align-items: start;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
}

.split-copy p + p {
  margin-top: 18px;
}

.split-copy,
.trial-copy,
.feature-card,
.workflow-card,
.security-card,
.unlock-card,
.spec-list {
  min-width: 0;
}

.spec-list {
  padding: 8px;
}

.spec-list div {
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.spec-list div:last-child {
  border-bottom: 0;
}

.spec-list strong {
  display: block;
  margin-bottom: 4px;
}

.trial-section {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr) 380px;
}

.unlock-card {
  padding: 28px;
}

.unlock-label {
  color: var(--blue);
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
}

.unlock-card strong {
  color: var(--ink);
  display: block;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.16;
  margin-bottom: 12px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(16, 21, 29, 0.05);
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  list-style: none;
  padding: 20px 22px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  border-top: 1px solid var(--line);
  padding: 0 22px 20px;
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: #ffffff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 42px max(24px, calc((100vw - 1160px) / 2));
}

.site-footer p {
  color: rgba(255, 255, 255, 0.68);
  margin: 10px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--cyan);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}

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

.legal-page {
  background: var(--bg);
}

.legal-main {
  margin: 0 auto;
  max-width: 820px;
  padding: 42px 20px 76px;
}

.legal-main .brand {
  margin-bottom: 42px;
}

.legal-main h1 {
  color: var(--ink);
  font-size: 48px;
  line-height: 1.05;
  margin-bottom: 8px;
}

.legal-main h2 {
  border-top: 1px solid var(--line);
  font-size: 22px;
  margin: 34px 0 10px;
  padding-top: 24px;
}

.legal-main p,
.legal-main li {
  color: var(--muted-strong);
}

.legal-main a {
  color: var(--blue);
  font-weight: 500;
}

.updated {
  color: var(--muted);
}

@media (max-width: 980px) {
  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 36px;
  }

  .hero,
  .quick-strip,
  .hero-facts,
  .agent-flow,
  .codex-example,
  .feature-grid,
  .workflow-grid,
  .security-grid,
  .split-section,
  .trial-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: clamp(500px, 70vw, 660px);
  }

  .hero-screenshot-stack {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
  }

  .site-header {
    left: 14px;
    right: 14px;
    transform: none;
    width: calc(100vw - 28px) !important;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    display: none;
    flex-direction: column;
    left: 14px;
    padding: 10px;
    position: fixed;
    right: 14px;
    top: 96px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }

  .hero {
    max-width: 100vw;
    overflow: hidden;
    padding: 124px 24px 48px;
    width: 100%;
  }

  .hero-copy,
  .hero-visual,
  .hero-facts,
  .codex-example,
  .section-heading,
  .trial-copy {
    max-width: calc(100vw - 48px);
    width: calc(100vw - 48px) !important;
  }

  .hero-lede,
  .hero-note,
  .hero-facts span,
  .quick-strip span,
  .agent-message code {
    overflow-wrap: anywhere;
  }

  h1 {
    font-size: 46px;
  }

  .hero-lede {
    font-size: 19px;
  }

  .store-badge {
    width: 100%;
  }

  .store-badge img {
    height: 54px;
  }

  .hero-screenshot-stack {
    aspect-ratio: 1.18;
    width: calc(100vw - 48px) !important;
  }

  .hero-screenshot-back {
    right: -4px;
    top: 0;
    width: 96%;
  }

  .hero-screenshot-front {
    bottom: 2px;
    left: 0;
    width: 82%;
  }

  .json-card {
    bottom: 16px;
    left: 16px;
    right: 16px;
    width: auto;
  }

  .section {
    max-width: 100vw;
    overflow: hidden;
    padding: 68px 24px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-main h1 {
    font-size: 38px;
  }
}
