@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./assets/fonts/geist-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("./assets/fonts/geist-mono-latin.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --text: #171717;
  --muted: #666666;
  --faint: #8f8f8f;
  --line: rgba(23, 23, 23, 0.1);
  --line-strong: rgba(23, 23, 23, 0.16);
  --panel: #fbfbfb;
  --panel-raised: #ffffff;
  --accent: #006adc;
  --accent-soft: #e8f2ff;
  --pink: #d63c73;
  --pink-soft: #fff0f5;
  --red: #d92d20;
  --red-soft: #fff0ef;
  --shadow-border: inset 0 0 0 1px var(--line), 0 22px 60px rgba(23, 23, 23, 0.06);
  --shadow-tight: inset 0 0 0 1px var(--line), 0 10px 28px rgba(23, 23, 23, 0.05);
  --radius: 8px;
  --radius-button: 999px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 23, 23, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 72%);
}

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

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

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

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 10;
  transform: translateY(-140%);
  border-radius: var(--radius-button);
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  font-size: 14px;
  transition: transform 180ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.brand,
.nav-status,
.nav-links {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: var(--text);
  color: var(--bg);
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.nav-links {
  justify-self: center;
  gap: 4px;
  border-radius: var(--radius-button);
  background: rgba(247, 247, 247, 0.78);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 4px;
}

.nav-links a {
  border-radius: var(--radius-button);
  color: var(--muted);
  font-size: 14px;
  padding: 7px 12px;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover {
  background: #ffffff;
  color: var(--text);
}

.nav-status {
  justify-self: end;
  gap: 8px;
  border-radius: var(--radius-button);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 14px;
  padding: 8px 12px;
  transition: color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.nav-status:hover {
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 8px 22px rgba(23, 23, 23, 0.05);
  transform: translateY(-1px);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #12a150;
  box-shadow: 0 0 0 4px rgba(18, 161, 80, 0.1);
}

.section-space {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 104px 0;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 34px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero-copy {
  max-width: 980px;
  text-align: center;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(54px, 7vw, 96px);
  line-height: 0.91;
  letter-spacing: -0.075em;
  font-weight: 650;
}

.hero p {
  width: min(680px, 100%);
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.hero-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-button);
  font-weight: 550;
  letter-spacing: -0.015em;
  padding: 11px 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
  white-space: nowrap;
}

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

.button:active {
  transform: translateY(1px);
}

.button-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 12px 28px rgba(23, 23, 23, 0.14);
}

.button-primary:hover {
  background: #000000;
}

.button-secondary {
  background: #ffffff;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.button-secondary:hover {
  box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.24), 0 12px 28px rgba(23, 23, 23, 0.07);
}

.product-artifact {
  margin: 0 auto;
  width: min(900px, 100%);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-border);
  overflow: hidden;
}

.artifact-topbar,
.panel-header,
.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.artifact-topbar {
  min-height: 62px;
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.artifact-topbar div {
  display: grid;
  gap: 3px;
}

.mono-label,
.health-pill,
.proof-kicker,
.section-label,
.recipe-meta,
.workflow-index,
.comparison-label,
.matrix-head,
.console-header,
.console-line span,
.final-label {
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0;
}

.mono-label,
.proof-kicker,
.section-label,
.recipe-meta,
.workflow-index,
.comparison-label,
.console-line span,
.final-label {
  color: var(--faint);
  font-size: 12px;
}

.health-pill {
  border-radius: var(--radius-button);
  background: #edfdf3;
  color: #087443;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 10px;
}

.artifact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 14px;
  padding: 14px;
}

.trace-list {
  display: grid;
  gap: 10px;
}

.trace-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  min-height: 72px;
  border-radius: var(--radius);
  padding: 14px;
}

.trace-blue {
  background: var(--accent-soft);
}

.trace-pink {
  background: var(--pink-soft);
}

.trace-red {
  background: var(--red-soft);
}

.step-index {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.trace-row p,
.recipe-card p,
.workflow-step p,
.example-copy p,
.section-heading p,
.stack-copy p,
.final-band p {
  color: var(--muted);
}

.trace-row p {
  margin-top: 3px;
  font-size: 14px;
}

.artifact-panel {
  display: grid;
  align-content: space-between;
  min-height: 100%;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  padding: 16px;
}

.panel-header {
  color: rgba(255, 255, 255, 0.64);
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.mini-stack {
  display: grid;
  gap: 8px;
  margin-top: 30px;
}

.mini-stack span {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  padding: 12px;
  font-size: 14px;
}

.proof-strip {
  width: min(var(--max), calc(100% - 40px));
  position: relative;
  margin: -48px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  box-shadow: var(--shadow-tight);
  border-radius: var(--radius);
  background: #ffffff;
}

.proof-strip > div {
  min-height: 148px;
  padding: 22px;
}

.proof-strip > div + div {
  border-left: 1px solid var(--line);
}

.proof-strip strong {
  display: block;
  margin-top: 18px;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.proof-strip p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2,
.example-copy h2,
.stack-copy h2,
.final-band h2 {
  margin-top: 10px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 640;
}

.section-heading h2:first-child,
.example-copy h2:first-child,
.stack-copy h2:first-child {
  margin-top: 0;
}

.section-heading p:last-child,
.example-copy p:last-child,
.stack-copy p:last-child,
.final-band p {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.8fr;
  grid-auto-rows: minmax(230px, auto);
  gap: 14px;
}

.recipe-card {
  position: relative;
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-tight);
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.recipe-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.16), 0 18px 42px rgba(23, 23, 23, 0.08);
}

.recipe-large {
  grid-column: span 2;
  min-height: 390px;
  background:
    linear-gradient(135deg, rgba(0, 106, 220, 0.08), transparent 38%),
    #ffffff;
}

.recipe-tall {
  grid-row: span 2;
  background:
    radial-gradient(circle at 82% 18%, rgba(214, 60, 115, 0.14), transparent 34%),
    #ffffff;
}

.recipe-quiet {
  background: #f8f8f8;
}

.recipe-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--faint);
  font-size: 12px;
}

.recipe-card h3 {
  max-width: 620px;
  margin-top: 36px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 620;
}

.recipe-card p {
  max-width: 560px;
  margin-top: 14px;
  font-size: 16px;
}

.brief-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.brief-preview div {
  min-height: 94px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 14px;
}

.brief-preview span {
  color: var(--faint);
  font-size: 13px;
}

.brief-preview strong {
  display: block;
  margin-top: 12px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.signal-bars {
  display: grid;
  gap: 8px;
  margin-top: 38px;
}

.signal-bars span {
  height: 10px;
  border-radius: var(--radius-button);
  background: rgba(214, 60, 115, 0.18);
}

.signal-bars span:nth-child(2) {
  width: 82%;
}

.signal-bars span:nth-child(3) {
  width: 58%;
}

.signal-bars span:nth-child(4) {
  width: 72%;
}

.workflow-section {
  padding-top: 88px;
}

.workflow-pipeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr) 58px minmax(0, 1fr);
  align-items: stretch;
}

.workflow-step {
  min-height: 240px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-tight);
  padding: 24px;
}

.workflow-step h3 {
  margin-top: 56px;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.workflow-step p {
  margin-top: 12px;
}

.workflow-connector {
  position: relative;
}

.workflow-connector::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--line-strong);
}

.workflow-connector::after {
  content: "";
  position: absolute;
  right: 4px;
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--line-strong);
  border-top: 1px solid var(--line-strong);
  transform: rotate(45deg);
}

.example-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: 58px;
}

.example-copy {
  max-width: 520px;
}

.run-comparison {
  display: grid;
  gap: 12px;
}

.run-comparison article,
.next-action {
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-tight);
  padding: 22px;
}

.run-comparison article p {
  margin-top: 18px;
  font-size: clamp(20px, 2.8vw, 32px);
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.next-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--accent-soft);
}

.next-action span {
  color: var(--accent);
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.next-action strong {
  max-width: 390px;
  text-align: right;
  letter-spacing: -0.02em;
}

.permissions-grid {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1.35fr;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-tight);
}

.permissions-grid > div {
  min-height: 74px;
  display: flex;
  align-items: center;
  padding: 18px 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.permissions-grid > div:nth-child(-n + 3) {
  min-height: 54px;
  border-top: 0;
  background: #f7f7f7;
  color: var(--text);
  font-weight: 600;
}

.permissions-grid > div:not(:nth-child(3n)) {
  border-right: 1px solid var(--line);
}

.permissions-grid > div:nth-child(3n + 1),
.permissions-grid > div:nth-child(3n + 2) {
  color: var(--text);
}

.stack-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 56px;
}

.stack-copy {
  max-width: 560px;
}

.status-console {
  border-radius: var(--radius);
  background: #101010;
  color: #ffffff;
  box-shadow: 0 28px 80px rgba(23, 23, 23, 0.16);
  overflow: hidden;
}

.console-header {
  min-height: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.68);
  padding: 0 18px;
}

.console-header span:last-child {
  color: #86efac;
}

.console-line {
  display: grid;
  grid-template-columns: 0.58fr 1fr;
  gap: 18px;
  padding: 16px 18px;
}

.console-line + .console-line {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.console-line span {
  color: rgba(255, 255, 255, 0.5);
}

.console-line strong {
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 500;
}

.final-section {
  padding-bottom: 42px;
}

.final-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  border-radius: var(--radius);
  background: var(--text);
  color: #ffffff;
  padding: clamp(28px, 5vw, 52px);
}

.final-band p {
  color: rgba(255, 255, 255, 0.72);
}

.final-label {
  color: rgba(255, 255, 255, 0.52);
}

.button-invert {
  background: #ffffff;
  color: var(--text);
}

.button-ghost-invert {
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.button-ghost-invert:hover {
  background: rgba(255, 255, 255, 0.08);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  padding: 28px 0 0;
}

.site-footer span:first-child {
  color: var(--text);
  font-weight: 600;
}

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

.has-js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

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

  .has-js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .artifact-grid,
  .proof-strip,
  .example-section,
  .stack-layout,
  .final-band {
    grid-template-columns: 1fr;
  }

  .proof-strip > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

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

  .recipe-large,
  .recipe-tall {
    grid-column: auto;
    grid-row: auto;
  }

  .workflow-pipeline {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .workflow-connector {
    height: 22px;
  }

  .workflow-connector::before {
    bottom: 0;
    left: 26px;
    right: auto;
    top: 0;
    width: 1px;
    height: auto;
  }

  .workflow-connector::after {
    left: 22px;
    right: auto;
    top: auto;
    bottom: 3px;
    transform: rotate(135deg);
  }

  .final-actions {
    justify-content: flex-start;
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .nav-shell,
  .section-space,
  .proof-strip {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    position: static;
  }

  .nav-shell {
    min-height: 62px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-status {
    font-size: 13px;
    padding: 8px 10px;
  }

  .section-space {
    padding: 72px 0;
  }

  .proof-strip {
    margin-top: -36px;
  }

  .hero {
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 24px;
    gap: 24px;
  }

  .hero-copy {
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(42px, 15vw, 62px);
    line-height: 0.94;
    letter-spacing: -0.065em;
  }

  .hero p {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
  }

  .product-artifact {
    box-shadow: var(--shadow-tight);
  }

  .product-artifact .artifact-grid {
    gap: 10px;
  }

  .product-artifact .artifact-panel {
    display: none;
  }

  .product-artifact .artifact-topbar {
    min-height: 58px;
    align-items: center;
    flex-direction: row;
  }

  .product-artifact .trace-row {
    min-height: 54px;
    align-items: center;
    grid-template-columns: 36px 1fr;
    padding: 12px 14px;
  }

  .product-artifact .trace-row p {
    display: none;
  }

  .artifact-topbar,
  .artifact-grid,
  .recipe-card,
  .workflow-step,
  .run-comparison article,
  .next-action,
  .final-band {
    padding: 18px;
  }

  .product-artifact .artifact-topbar {
    min-height: 50px;
    padding: 12px 14px;
  }

  .product-artifact .artifact-grid {
    gap: 8px;
    padding: 8px;
  }

  .product-artifact .trace-row {
    min-height: 42px;
    gap: 10px;
    padding: 8px 10px;
  }

  .product-artifact .step-index {
    width: 32px;
    height: 32px;
  }

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

  .mini-stack {
    margin-top: 28px;
  }

  .section-heading h2,
  .example-copy h2,
  .stack-copy h2,
  .final-band h2 {
    font-size: clamp(36px, 13vw, 54px);
  }

  .bento-grid,
  .brief-preview,
  .permissions-grid {
    grid-template-columns: 1fr;
  }

  .permissions-grid > div {
    min-height: 62px;
    border-right: 0 !important;
  }

  .permissions-grid > div:nth-child(-n + 3) {
    display: none;
  }

  .permissions-grid > div:nth-child(3n + 1) {
    background: #f7f7f7;
    font-weight: 600;
  }

  .next-action strong {
    text-align: left;
  }

  .console-line {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 430px) {
  .hero-actions,
  .final-actions {
    gap: 10px;
  }

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

  .product-artifact .trace-row {
    grid-template-columns: 36px 1fr;
  }
}
