:root {
  color-scheme: light;
  --ink: #111827;
  --copy: #273449;
  --muted: #64748b;
  --panel: #ffffff;
  --line: #d9e2ee;
  --soft: #f5f8fc;
  --teal: #14b8a6;
  --blue: #2563eb;
  --amber: #f59e0b;
  --red: #ef4444;
  --shadow: 0 18px 55px rgba(22, 34, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #fbfcff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

.nav {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 66px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(251, 252, 255, 0.9);
  border-bottom: 1px solid rgba(217, 226, 238, 0.82);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 30% 30%, var(--teal) 0 16%, transparent 17%),
    radial-gradient(circle at 68% 48%, var(--blue) 0 16%, transparent 17%),
    radial-gradient(circle at 42% 72%, var(--amber) 0 13%, transparent 14%),
    #172033;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-cta {
  color: #fff;
  background: var(--ink);
  padding: 9px 13px;
  border-radius: 6px;
  cursor: pointer;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: #253149;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 132px clamp(20px, 5vw, 72px) 86px;
  background: #f8fbff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0), #fbfcff 76%);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(248, 251, 255, 0.98) 0%, rgba(248, 251, 255, 0.92) 34%, rgba(248, 251, 255, 0.45) 62%, rgba(248, 251, 255, 0.15) 100%),
    url("assets/hero-product.png") right center / cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(790px, 100%);
  max-width: 790px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.3rem, 7.2vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.tagline {
  max-width: 700px;
  margin-bottom: 24px;
  color: var(--copy);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.answer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.answer-row span {
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.76);
  color: #2b3a51;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(22, 34, 51, 0.08);
}

.cta-row,
.agent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn-primary {
  color: #fff;
  background: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #253149;
  box-shadow: 0 10px 22px rgba(22, 34, 51, 0.14);
}

.btn-secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
.file-button:hover,
.file-button:focus-within {
  border-color: #aebdd0;
  background: #f4f8fc;
  box-shadow: 0 10px 22px rgba(22, 34, 51, 0.08);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: #fff;
}

.proof-strip a {
  padding: 18px 24px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.proof-strip a:last-child {
  border-right: 0;
}

.explain,
.visualizer,
.alongside,
.benefits,
.how,
.install,
.exports {
  padding: 76px clamp(20px, 5vw, 72px);
}

.visualizer {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.visualizer-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(460px, 1.18fr);
  gap: 24px;
  align-items: start;
}

.log-input-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(22, 34, 51, 0.07);
}

.input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.file-button input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#log-input {
  width: 100%;
  min-height: 330px;
  resize: vertical;
  padding: 14px;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  color: #dbeafe;
  background: #0f172a;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.5;
}

.input-status {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.visualizer-shell .demo-controls {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.visualizer-shell .demo-pane {
  min-height: 520px;
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.demo-tab {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--copy);
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.demo-tab.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.demo-tab:hover,
.demo-tab:focus-visible {
  border-color: #aebdd0;
  background: #f4f8fc;
}

.demo-tab.is-active:hover,
.demo-tab.is-active:focus-visible {
  color: #fff;
  background: #253149;
  border-color: #253149;
}

.demo-shell {
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  color: #a8b4c7;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

.demo-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--red);
}

.demo-bar span:nth-child(2) {
  background: var(--amber);
}

.demo-bar span:nth-child(3) {
  background: var(--teal);
}

.demo-bar strong {
  margin-left: 8px;
  font-weight: 700;
}

.demo-pane {
  min-height: 420px;
  padding: 24px;
  color: #e5edf8;
}

.demo-caption {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}

.demo-caption strong {
  color: #fff;
  font-size: 1.05rem;
}

.demo-caption span {
  color: #a8b4c7;
}

.event-stream {
  display: grid;
  gap: 10px;
}

.event-stream div,
.handoff-card div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.event-stream div:nth-child(3),
.handoff-card div:nth-child(1) {
  border-left-color: var(--blue);
}

.event-stream div:nth-child(4),
.handoff-card div:nth-child(2) {
  border-left-color: var(--amber);
}

.event-stream div:nth-child(5),
.handoff-card div:nth-child(3) {
  border-left-color: var(--red);
}

.event-stream code {
  color: #dbeafe;
  font-size: 0.84rem;
}

.event-stream span,
.handoff-card strong {
  color: #f8fafc;
  font-size: 0.92rem;
}

.terminal {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.58);
}

.terminal code {
  color: #e5edf8;
  font-size: 0.86rem;
}

.handoff-card {
  display: grid;
  gap: 10px;
}

.handoff-card div {
  grid-template-columns: 150px minmax(0, 1fr);
}

.handoff-card span {
  color: #a8b4c7;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

.section-heading {
  width: 100%;
  max-width: 820px;
  margin-bottom: 30px;
}

.section-heading p,
.split-copy p,
.benefits p,
.exports p {
  color: var(--muted);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.value-grid article,
.benefits article {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 30px rgba(22, 34, 51, 0.06);
}

.value-grid p,
.flow-step p {
  margin-bottom: 0;
  color: var(--muted);
}

.alongside {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 44px;
  align-items: center;
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.flow-panel {
  display: grid;
  gap: 14px;
}

.flow-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(22, 34, 51, 0.07);
}

.flow-step span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
}

.flow-step strong {
  font-size: 1.02rem;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.how {
  background: #fff;
  border-block: 1px solid var(--line);
}

.runtime-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.node {
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px solid #cfd8e6;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: #fbfcff;
  text-align: center;
  font-weight: 800;
}

.runtime-flow .node:nth-of-type(2) {
  border-left-color: var(--blue);
}

.runtime-flow .node:nth-of-type(3) {
  border-left-color: var(--amber);
}

.runtime-flow .node:nth-of-type(4) {
  border-left-color: var(--red);
}

.arrow {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
}

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

.install-card {
  padding: 24px;
  border: 1px solid #18243a;
  border-radius: 8px;
  background: #0f172a;
  color: #e5edf8;
  box-shadow: var(--shadow);
}

.install-card h3 {
  color: #fff;
}

pre {
  margin: 0;
  overflow: auto;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.exports {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.exports > div {
  max-width: 780px;
}

.exports pre {
  max-width: 100%;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #0f172a;
  color: #e5edf8;
  box-shadow: 0 10px 32px rgba(22, 34, 51, 0.07);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: #f8fafc;
  border-top: 1px solid var(--line);
}

footer span:last-child {
  display: flex;
  gap: 16px;
}

@media (max-width: 980px) {
  .nav {
    position: static;
  }

  .hero {
    min-height: 82vh;
    padding-top: 78px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(248, 251, 255, 0.9) 0%, rgba(248, 251, 255, 0.96) 54%, #fbfcff 100%),
      url("assets/hero-product.png") center top / cover no-repeat;
  }

  .proof-strip,
  .value-grid,
  .visualizer-grid,
  .alongside,
  .benefits,
  .install-grid {
    grid-template-columns: 1fr;
  }

  .runtime-flow {
    grid-template-columns: 1fr;
  }

  .arrow {
    text-align: center;
  }

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

@media (max-width: 660px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: auto;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9rem;
  }

  .nav-cta {
    padding: 8px 10px;
  }

  h1 {
    font-size: 2.35rem;
    line-height: 1.02;
  }

  .desktop-break {
    display: block;
  }

  h2 {
    font-size: 1.72rem;
    line-height: 1.08;
  }

  .hero {
    min-height: auto;
    padding-bottom: 58px;
  }

  .tagline {
    max-width: 330px;
    font-size: 0.98rem;
    overflow-wrap: anywhere;
  }

  .hero-inner,
  .section-heading,
  .split-copy,
  .exports > div {
    max-width: 330px;
  }

  .answer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .proof-strip a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-step {
    grid-template-columns: 1fr;
  }

  .demo-pane {
    min-height: auto;
    padding: 18px;
  }

  .event-stream div,
  .handoff-card div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .visualizer-shell .demo-pane {
    min-height: auto;
  }

  #log-input {
    min-height: 260px;
  }

  .flow-step span {
    grid-row: auto;
  }
}
