:root {
  --navy: #12233f;
  --navy-deep: #071426;
  --navy-soft: #273a57;
  --gold: #f2b84b;
  --gold-deep: #d89417;
  --gold-wash: #fff0cf;
  --ivory: #f5f0e8;
  --paper: #fffdf8;
  --sage: #8fa79a;
  --graphite: #20242b;
  --muted: #69717d;
  --line: rgba(18, 35, 63, 0.14);
  --shadow: 0 28px 80px rgba(18, 35, 63, 0.14);
  --shadow-soft: 0 12px 34px rgba(18, 35, 63, 0.09);
  --shell: min(1240px, calc(100vw - 48px));
  --display: "Avenir Next", "SF Pro Rounded", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--graphite);
  background: var(--ivory);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  position: fixed;
  z-index: 20;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

button,
a {
  font: inherit;
}

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

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(216, 148, 23, 0.45);
  outline-offset: 4px;
}

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

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

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: white;
  background: var(--navy);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

.page-progress {
  position: fixed;
  z-index: 120;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(245, 240, 232, 0.82);
  backdrop-filter: blur(18px) saturate(150%);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(18, 35, 63, 0.06);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.wordmark img {
  border-radius: 11px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.desktop-nav a,
.text-link {
  position: relative;
  color: var(--navy-soft);
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav a::after,
.text-link::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after,
.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions,
.hero-actions,
.download-actions,
.open-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 220ms var(--ease), box-shadow 220ms ease, background 220ms ease;
}

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

.button:active {
  transform: translateY(0) scale(0.98);
}

.button-small {
  min-height: 40px;
  padding: 8px 15px;
}

.button-large {
  min-height: 54px;
  padding: 14px 24px;
  font-size: 15px;
}

.button-ink {
  color: white;
  background: var(--navy);
  box-shadow: 0 10px 24px rgba(18, 35, 63, 0.18);
}

.button-ink:hover {
  background: var(--navy-deep);
}

.button-gold {
  color: var(--navy-deep);
  background: var(--gold);
  box-shadow: 0 14px 30px rgba(216, 148, 23, 0.23);
}

.button-gold:hover {
  background: #f6c55e;
  box-shadow: 0 18px 38px rgba(216, 148, 23, 0.3);
}

.button-light {
  color: var(--navy-deep);
  background: var(--ivory);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
  font-weight: 700;
}

.arrow-link span {
  transition: transform 220ms var(--ease);
}

.arrow-link:hover span {
  transform: translate(3px, 3px);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 92px 0 86px;
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 80% 18%, rgba(242, 184, 75, 0.2), transparent 31%),
    radial-gradient(circle at 10% 74%, rgba(143, 167, 154, 0.18), transparent 28%);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  top: 10%;
  right: -7%;
  width: 520px;
  aspect-ratio: 1;
  border: 1px solid rgba(18, 35, 63, 0.07);
  border-radius: 50%;
  box-shadow: inset 0 0 100px rgba(255, 255, 255, 0.42);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.87fr) minmax(560px, 1.35fr);
  align-items: center;
  gap: 64px;
}

.kicker,
.section-index,
.capability-label {
  margin: 0;
  color: var(--navy-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  text-transform: none;
  letter-spacing: 0.06em;
}

.kicker span {
  width: 24px;
  height: 2px;
  background: var(--gold-deep);
}

.hero h1,
.section-heading h2,
.capability h3,
.open-source h2,
.download h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(48px, 5.3vw, 78px);
  line-height: 1.08;
}

.hero h1 em {
  color: var(--gold-deep);
  font-style: normal;
}

.hero-lead {
  max-width: 630px;
  margin: 26px 0 0;
  color: #4e5866;
  font-size: 17px;
  line-height: 1.9;
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 34px;
  flex-wrap: wrap;
}

.release-note {
  min-height: 23px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: var(--navy-soft);
  font-size: 12px;
  font-weight: 650;
}

.hero-facts li::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--sage);
  content: "";
  vertical-align: 1px;
}

.hero-product {
  position: relative;
  min-width: 0;
}

.brand-orbit {
  position: absolute;
  border: 1px dashed rgba(18, 35, 63, 0.15);
  border-radius: 50%;
}

.orbit-one {
  z-index: -1;
  top: -90px;
  right: -105px;
  width: 260px;
  height: 260px;
}

.orbit-two {
  z-index: -1;
  bottom: -80px;
  left: -75px;
  width: 180px;
  height: 180px;
}

.product-window {
  overflow: hidden;
  border: 1px solid rgba(18, 35, 63, 0.14);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-3deg) rotateX(1.5deg);
  transition: transform 500ms var(--ease), box-shadow 500ms var(--ease);
}

.hero-product:hover .product-window {
  box-shadow: 0 38px 100px rgba(18, 35, 63, 0.19);
  transform: perspective(1200px) rotateY(0) rotateX(0) translateY(-4px);
}

.window-bar {
  min-height: 43px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 253, 248, 0.92);
  font-size: 10px;
  font-weight: 600;
}

.traffic {
  display: flex;
  gap: 6px;
}

.traffic i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e97767;
}

.traffic i:nth-child(2) { background: var(--gold); }
.traffic i:nth-child(3) { background: #73b37d; }

.window-state {
  justify-self: end;
  color: #5c7468;
}

.window-state::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: #6ea47a;
  content: "";
}

.workspace {
  min-height: 430px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 176px;
}

.workspace-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px 9px;
  border-right: 1px solid var(--line);
  color: #7d8794;
  background: #f8f3ea;
}

.workspace-nav img {
  margin-bottom: 12px;
  border-radius: 9px;
}

.workspace-nav span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 14px;
}

.workspace-nav span.active {
  color: var(--navy);
  background: var(--gold-wash);
}

.conversation-panel {
  min-width: 0;
  padding: 22px 20px;
}

.panel-eyebrow,
.answer-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.user-message {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px 12px 3px 12px;
  color: white;
  background: var(--navy);
  font-size: 11px;
  line-height: 1.55;
}

.process-rail {
  display: grid;
  gap: 10px;
  margin: 18px 4px;
  padding-left: 13px;
  border-left: 1px solid rgba(18, 35, 63, 0.18);
}

.process-rail div {
  display: grid;
  grid-template-columns: 63px 1fr;
  gap: 8px;
  color: #7b8490;
  font-size: 9px;
}

.process-rail b {
  color: var(--navy-soft);
  font-family: var(--mono);
  font-weight: 700;
}

.process-rail .running b {
  color: var(--gold-deep);
}

.answer-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.answer-card strong {
  display: block;
  margin-top: 7px;
  color: var(--navy);
  font-size: 12px;
}

.answer-card p {
  margin: 6px 0 0;
  color: #626b77;
  font-size: 10px;
  line-height: 1.65;
}

.evidence-row {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.evidence-row span {
  padding: 3px 6px;
  border-radius: 4px;
  color: #5e7468;
  background: #edf3ed;
  font-size: 8px;
  font-weight: 700;
}

.scope-panel {
  padding: 18px 12px;
  border-left: 1px solid var(--line);
  background: #f8f3ea;
}

.scope-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6fa57b;
  box-shadow: 0 0 0 4px rgba(111, 165, 123, 0.13);
}

.scope-item {
  display: grid;
  gap: 1px;
  margin-top: 15px;
}

.scope-item small {
  color: var(--muted);
  font-size: 8px;
}

.scope-item b {
  color: var(--navy-soft);
  font-size: 9px;
}

.patch-card {
  margin-top: 20px;
  padding: 11px;
  border: 1px solid rgba(216, 148, 23, 0.3);
  border-radius: 10px;
  background: var(--paper);
  font-size: 8px;
}

.patch-card > span {
  color: var(--gold-deep);
  font-weight: 800;
}

.patch-card > b {
  display: block;
  margin: 4px 0 8px;
  color: var(--navy);
}

.patch-line {
  margin-top: 3px;
  padding: 3px;
  border-radius: 3px;
  font-family: var(--mono);
}

.patch-line.remove { color: #914f48; background: #fff0ed; }
.patch-line.add { color: #417153; background: #eaf5ed; }

.patch-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 9px;
  font-style: normal;
}

.patch-actions i { color: var(--muted); font-style: normal; }
.patch-actions strong { color: var(--navy); }

.hero-caption {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 14px 0 0 28px;
  color: var(--muted);
  font-size: 11px;
}

.hero-caption span {
  color: var(--navy);
  font-weight: 800;
}

.hero-caption p { margin: 0; }

.signal-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.58);
}

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

.signal-grid p {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 24px 28px;
  border-right: 1px solid var(--line);
}

.signal-grid p:first-child { padding-left: 0; }
.signal-grid p:last-child { border-right: 0; }
.signal-grid strong { color: var(--navy); font-size: 13px; }
.signal-grid span { color: var(--muted); font-size: 11px; }

.section {
  padding: 128px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 66px;
}

.section-heading .section-index {
  grid-column: 1 / -1;
  margin-bottom: -34px;
}

.section-heading h2 {
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 1.1;
}

.section-heading > p:last-child {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  text-wrap: pretty;
}

.section-heading.compact {
  display: block;
}

.section-heading.compact .section-index {
  margin-bottom: 18px;
}

.section-heading.side {
  display: block;
  margin: 0;
}

.section-heading.side .section-index {
  margin-bottom: 20px;
}

.section-heading.side h2 {
  margin-bottom: 24px;
}

.section-heading.side > p:last-of-type {
  margin-bottom: 28px;
}

.workflow {
  background: var(--paper);
}

.workflow-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.workflow-track article {
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  padding: 34px 28px 28px;
  border-right: 1px solid var(--line);
  transition: background 250ms ease, transform 250ms var(--ease);
}

.workflow-track article:last-child { border-right: 0; }
.workflow-track article:hover { background: var(--gold-wash); transform: translateY(-4px); }

.workflow-track article::after {
  position: absolute;
  z-index: 1;
  top: -5px;
  right: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.workflow-track article:last-child::after { display: none; }

.step-number {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.step-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-top: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--navy);
  background: var(--ivory);
  font-size: 22px;
}

.workflow-track h3 {
  margin: 24px 0 12px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.workflow-track p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.workflow-track small {
  margin-top: auto;
  color: var(--gold-deep);
  font-weight: 800;
}

.product {
  overflow: hidden;
}

.capability-stack {
  display: grid;
  gap: 28px;
}

.capability {
  min-height: 570px;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 64px;
  align-items: center;
  overflow: hidden;
  padding: 70px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.capability-writing {
  grid-template-columns: 1.18fr 0.82fr;
  background: #e7eee9;
}

.capability-studio {
  grid-template-columns: 0.76fr 1.24fr;
  color: #dce4ed;
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--navy-deep);
}

.capability-label {
  color: var(--gold-deep);
}

.capability h3 {
  margin-top: 18px;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.12;
}

.capability-studio h3 { color: white; }

.capability-copy > p {
  margin: 24px 0 0;
  color: var(--muted);
}

.capability-studio .capability-copy > p { color: #aeb9c7; }

.capability-copy ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--navy-soft);
  font-size: 13px;
  font-weight: 650;
}

.capability-copy li::before {
  margin-right: 9px;
  color: var(--gold-deep);
  content: "—";
}

.conversation-demo,
.writing-demo,
.studio-demo {
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow);
}

.conversation-demo {
  padding: 28px;
  transform: rotate(1.5deg);
}

.demo-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}

.demo-top span {
  color: #5e7468;
  font-size: 11px;
  font-weight: 800;
}

.demo-line {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.demo-line i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.demo-line p { display: grid; gap: 2px; margin: 0; }
.demo-line b { color: var(--navy); font-size: 13px; }
.demo-line small { color: var(--muted); font-size: 11px; }
.demo-line.done i { color: white; border-color: var(--sage); background: var(--sage); }
.demo-line.active i { color: var(--navy); border-color: var(--gold); background: var(--gold); }

.demo-answer {
  margin-top: 20px;
  padding: 18px;
  border-left: 3px solid var(--gold);
  color: var(--navy);
  background: var(--gold-wash);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 650;
}

.writing-demo {
  overflow: hidden;
  transform: rotate(-1.2deg);
}

.doc-toolbar,
.review-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.doc-toolbar small { color: #5f786a; font-size: 10px; }

.doc-body {
  min-height: 300px;
  padding: 36px 38px;
  color: #53606c;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.9;
}

.doc-body p { margin: 8px 0; }
.doc-body .doc-heading { color: var(--navy); font-weight: 800; }
.doc-body .diff-remove,
.doc-body .diff-add { margin-inline: -12px; padding-inline: 12px; }
.doc-body .diff-remove { color: #91524d; background: #fff0ed; }
.doc-body .diff-add { color: #3f7652; background: #e9f5ec; }
.doc-body u { color: #5b7368; text-decoration: none; font-weight: 800; }

.review-bar {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.review-bar span { margin-right: auto; color: var(--muted); font-size: 10px; }
.review-bar button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--navy); background: white; font-size: 10px; font-weight: 800; }
.review-bar button:last-child { border-color: var(--navy); color: white; background: var(--navy); }

.boundary-note {
  display: grid;
  gap: 5px;
  margin-top: 26px;
  padding: 16px;
  border-left: 2px solid var(--gold);
  background: rgba(255, 255, 255, 0.06);
}

.boundary-note b { color: white; font-size: 13px; }
.boundary-note span { color: #aeb9c7; font-size: 12px; }

.studio-demo {
  overflow: hidden;
  color: #d5dde8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b1728;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
  transform: rotate(1deg);
}

.studio-tabs {
  display: flex;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #7e8b9e;
  font-size: 10px;
  font-weight: 800;
}

.studio-tabs span.on { color: var(--gold); }

.studio-body {
  min-height: 340px;
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
}

.file-tree {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ba8b9;
  font-family: var(--mono);
  font-size: 9px;
}

.file-tree b { color: white; }
.file-tree .selected { margin-inline: -8px; padding: 4px 8px; color: white; background: rgba(242, 184, 75, 0.13); }

.code-pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 0 0;
}

.code-pane > small { padding: 0 18px 12px; color: #8290a3; font-family: var(--mono); }
.code-pane pre { flex: 1; overflow: hidden; margin: 0; padding: 20px 18px; color: #b8c5d6; background: #0f1c2f; font: 10px/2 var(--mono); }
.code-pane pre em { color: #536177; font-style: normal; }
.code-pane pre mark { color: #7fa58f; background: none; }

.terminal {
  display: grid;
  gap: 5px;
  padding: 13px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8794a5;
  font: 9px/1.4 var(--mono);
}

.terminal b { color: white; }
.terminal .ok { color: #80b28f; }

.studio-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 14px;
  color: var(--navy-deep);
  background: var(--gold);
  font-size: 8px;
  font-weight: 800;
}

.principles {
  background: var(--paper);
}

.principles-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
  align-items: start;
}

.principle-list {
  border-top: 1px solid var(--line);
}

.principle-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.principle-list article > span {
  color: var(--gold-deep);
  font-family: var(--mono);
  font-size: 11px;
}

.principle-list h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--display);
  font-size: 22px;
}

.principle-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.open-source {
  padding-block: 90px;
}

.open-source-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 86px;
  align-items: center;
  overflow: hidden;
  padding: 80px;
  border-radius: 32px;
  color: #d9e1eb;
  background: var(--navy-deep);
  box-shadow: var(--shadow);
}

.open-source-card::before {
  position: absolute;
  top: -55%;
  left: 10%;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(242, 184, 75, 0.15);
  border-radius: 50%;
  content: "";
}

.section-index.light { color: var(--gold); }
.open-source h2 { margin-top: 18px; color: white; font-size: clamp(38px, 4.5vw, 60px); line-height: 1.08; }
.open-source-copy > p:not(.section-index) { max-width: 620px; margin: 24px 0 0; color: #aeb9c7; }
.open-actions { margin-top: 30px; }
.light-link { color: white; }

.repo-card {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.repo-head { display: flex; align-items: center; gap: 15px; }
.repo-head img { border-radius: 13px; }
.repo-head div { display: grid; }
.repo-head small { color: #8f9bad; }
.repo-head b { color: white; font-size: 23px; }
.repo-card > p { margin: 24px 0; color: #b9c3cf; font-size: 13px; }
.repo-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.repo-meta span { padding: 5px 8px; border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 5px; color: #c8d1db; font-size: 9px; font-weight: 700; }
.repo-card > a { display: flex; justify-content: space-between; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: var(--gold); font-family: var(--mono); font-size: 10px; }

.download-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 100px;
  align-items: center;
}

.download-mark {
  position: relative;
  width: 100%;
  max-width: 522px;
  aspect-ratio: 522 / 516;
  justify-self: center;
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  background: var(--navy-deep);
  box-shadow: 0 28px 70px rgba(18, 35, 63, 0.2);
}

.download-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.055);
  transform-origin: center;
}

.download h2 { margin-top: 18px; font-size: clamp(42px, 5vw, 68px); line-height: 1.08; }
.download-copy > p:not(.section-index, .release-card) { max-width: 680px; margin: 24px 0 0; color: var(--muted); }
.download-actions { margin-top: 32px; flex-wrap: wrap; }
.release-card { max-width: 680px; min-height: 48px; margin: 24px 0 0; padding: 12px 15px; border-left: 2px solid var(--gold); color: var(--navy-soft); background: rgba(255, 253, 248, 0.7); font-size: 12px; }

.faq {
  padding-top: 80px;
  background: var(--paper);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 110px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 26px 44px 26px 0;
  color: var(--navy);
  cursor: pointer;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 25px; right: 3px; color: var(--gold-deep); content: "+"; font: 22px/1 var(--display); transition: transform 200ms ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { max-width: 780px; margin: -6px 0 26px; color: var(--muted); font-size: 14px; }
.faq-list p a { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

.site-footer {
  padding: 54px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 34px;
}

.footer-wordmark { font-size: 18px; }
.footer-grid > div:first-child > p { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.footer-grid nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; color: var(--navy-soft); font-size: 12px; font-weight: 700; }
.footer-grid nav a:hover { color: var(--gold-deep); }
.footer-legal { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.footer-legal a:hover { color: var(--navy); }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

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

.legal-page {
  min-height: 100vh;
}

.legal-main {
  padding: 72px 0 120px;
}

.legal-card {
  max-width: 820px;
  margin-inline: auto;
  padding: 52px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.legal-card h1 { margin: 24px 0 16px; color: var(--navy); font: 700 clamp(38px, 6vw, 58px)/1.1 var(--display); letter-spacing: -0.045em; }
.legal-card h2 { margin: 34px 0 8px; color: var(--navy); font: 700 22px/1.3 var(--display); }
.legal-card p,
.legal-card li { color: var(--muted); }
.legal-card a { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.legal-card .updated { color: var(--gold-deep); font-size: 12px; font-weight: 800; }
.legal-card .back-link { display: inline-flex; margin-top: 32px; }
.compact-footer { padding-top: 28px; }
.compact-footer .footer-legal { width: var(--shell); margin-inline: auto; }

.not-found {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
}

.not-found img { width: 150px; margin: 0 auto; }
.not-found h1 { margin: 24px 0 12px; color: var(--navy); font: 700 clamp(42px, 8vw, 78px)/1 var(--display); letter-spacing: -0.05em; }
.not-found p { max-width: 520px; margin: 0 auto 28px; color: var(--muted); }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 780px; }
  .hero-product { width: min(820px, 100%); margin-inline: auto; }
  .capability { grid-template-columns: 1fr; }
  .capability-writing .writing-demo { order: 2; }
  .capability-studio { grid-template-columns: 1fr; }
  .principles-grid,
  .faq-grid { gap: 70px; }
  .open-source-card { gap: 60px; padding: 64px; }
}

@media (max-width: 900px) {
  :root { --shell: min(100% - 32px, 760px); }
  .desktop-nav,
  .desktop-only { display: none; }
  .hero { padding-top: 64px; }
  .hero h1 { font-size: clamp(44px, 10vw, 68px); }
  .section { padding: 96px 0; }
  .section-heading { display: block; }
  .section-heading .section-index { margin-bottom: 18px; }
  .section-heading h2 { margin-bottom: 22px; }
  .workflow-track { grid-template-columns: 1fr 1fr; }
  .workflow-track article:nth-child(2) { border-right: 0; }
  .workflow-track article:nth-child(3),
  .workflow-track article:nth-child(4) { border-top: 1px solid var(--line); }
  .workflow-track article:nth-child(2)::after { display: none; }
  .capability { min-height: 0; padding: 50px; }
  .principles-grid,
  .open-source-card,
  .download-grid,
  .faq-grid { grid-template-columns: 1fr; }
  .open-source-card { gap: 46px; }
  .download-mark { width: min(100%, 560px); }
}

@media (max-width: 680px) {
  .nav-shell { min-height: 64px; }
  .wordmark { font-size: 18px; }
  .wordmark img { width: 34px; height: 34px; }
  .nav-actions .button { min-height: 38px; padding: 8px 12px; font-size: 12px; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: clamp(39px, 12vw, 56px); }
  .hero-lead { font-size: 15px; }
  .hero-actions,
  .download-actions,
  .open-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .arrow-link,
  .download-actions .arrow-link { min-height: 44px; justify-content: center; }
  .workspace { grid-template-columns: 46px minmax(0, 1fr); }
  .scope-panel { display: none; }
  .workspace-nav { padding-inline: 6px; }
  .conversation-panel { padding: 18px 14px; }
  .product-window { transform: none; }
  .hero-caption { align-items: flex-start; flex-direction: column; gap: 2px; margin-left: 4px; }
  .signal-grid { grid-template-columns: 1fr; }
  .signal-grid p { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .signal-grid p:last-child { border-bottom: 0; }
  .section { padding: 78px 0; }
  .section-heading { margin-bottom: 44px; }
  .section-heading h2 { font-size: 38px; }
  .workflow-track { grid-template-columns: 1fr; border-top: 0; }
  .workflow-track article { min-height: 290px; border-top: 1px solid var(--line); border-right: 0; }
  .workflow-track article::after { display: none; }
  .step-icon { margin-top: 28px; }
  .capability { gap: 42px; padding: 34px 24px; border-radius: 22px; }
  .capability h3 { font-size: 34px; }
  .conversation-demo { padding: 18px; transform: none; }
  .demo-top { align-items: flex-start; flex-direction: column; gap: 5px; }
  .writing-demo,
  .studio-demo { transform: none; }
  .doc-body { min-height: 260px; padding: 26px 20px; font-size: 10px; }
  .studio-body { grid-template-columns: 105px minmax(0, 1fr); }
  .file-tree { padding-inline: 8px; }
  .code-pane pre { padding-inline: 10px; font-size: 8px; }
  .principles-grid { gap: 46px; }
  .open-source { padding-block: 54px; }
  .open-source-card { width: 100%; padding: 42px 24px; border-radius: 0; }
  .open-source h2 { font-size: 38px; }
  .repo-card { padding: 22px; }
  .download-grid { gap: 50px; }
  .download-mark { width: 100%; border-radius: 20px; }
  .download h2 { font-size: 43px; }
  .faq-grid { gap: 32px; }
  .faq-list summary { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid nav { justify-content: flex-start; }
  .footer-legal { align-items: flex-start; flex-direction: column; }
  .legal-card { padding: 30px 22px; }
}

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