:root {
  color-scheme: dark;
  --ink: #080a0b;
  --ink-2: #101416;
  --ink-3: #171d1f;
  --paper: #f4f6f1;
  --muted: #a8b0ad;
  --quiet: #737d7a;
  --line: #293235;
  --line-soft: rgba(244, 246, 241, 0.12);
  --break: #ff5a36;
  --trace: #78d9b6;
  --signal: #f2c14e;
  --data: #7fb2ff;
  --ok: #8be08f;
  --danger: #ff7d65;
  --max: 1180px;
  --header-h: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(244, 246, 241, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 246, 241, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 72%);
  z-index: -1;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(120, 217, 182, 0.78);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header-h);
  background: rgba(8, 10, 11, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.02rem;
}

.brand-mark,
.mini-mark {
  width: 19px;
  height: 19px;
  border: 2px solid var(--break);
  position: relative;
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.brand-mark::after,
.mini-mark::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  right: -7px;
  bottom: -7px;
  background: var(--trace);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.primary-nav a,
.nav-cta a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: var(--muted);
  font-size: 0.92rem;
  border: 1px solid transparent;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--paper);
  border-color: var(--line-soft);
  background: rgba(244, 246, 241, 0.04);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-soft);
  background: var(--ink-2);
  color: var(--paper);
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  width: 18px;
  height: 2px;
  display: block;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 0 18px;
  color: var(--paper);
  background: rgba(244, 246, 241, 0.05);
  font-weight: 760;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(244, 246, 241, 0.3);
}

.button.primary {
  color: #111514;
  border-color: var(--trace);
  background: var(--trace);
}

.button.break {
  color: #140807;
  border-color: var(--break);
  background: var(--break);
}

.button.text {
  padding: 0;
  min-height: auto;
  border: 0;
  background: transparent;
  color: var(--trace);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--trace);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: calc(82svh - var(--header-h));
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
}

.hero-trace {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.78;
}

.trace-line {
  position: absolute;
  left: 8vw;
  right: 6vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 217, 182, 0.18), rgba(255, 90, 54, 0.35), transparent);
}

.trace-line:nth-child(1) { top: 16%; }
.trace-line:nth-child(2) { top: 31%; left: 18vw; }
.trace-line:nth-child(3) { top: 47%; right: 18vw; }
.trace-line:nth-child(4) { top: 63%; left: 12vw; }
.trace-line:nth-child(5) { top: 79%; right: 10vw; }

.trace-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--trace);
  background: var(--ink);
  box-shadow: 0 0 0 6px rgba(120, 217, 182, 0.05);
}

.trace-dot.breakpoint {
  border-color: var(--break);
  background: var(--break);
  box-shadow: 0 0 0 8px rgba(255, 90, 54, 0.12);
}

.trace-dot.d1 { top: calc(16% - 6px); left: 28vw; }
.trace-dot.d2 { top: calc(31% - 6px); left: 54vw; }
.trace-dot.d3 { top: calc(47% - 6px); left: 72vw; }
.trace-dot.d4 { top: calc(63% - 6px); left: 38vw; }
.trace-dot.d5 { top: calc(79% - 6px); left: 64vw; }

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.hero-copy {
  max-width: 780px;
}

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

h1,
.page-title {
  margin-bottom: 22px;
  font-size: 5.4rem;
  line-height: 0.94;
  font-weight: 900;
  max-width: 950px;
}

.page-title {
  font-size: 4.25rem;
  line-height: 0.98;
  max-width: 800px;
}

h2 {
  margin-bottom: 18px;
  font-size: 3rem;
  line-height: 1.04;
  font-weight: 860;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  line-height: 1.22;
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.58;
  max-width: 680px;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 820px;
  margin-top: 54px;
  border: 1px solid var(--line-soft);
  background: var(--line-soft);
}

.hero-facts div {
  min-height: 118px;
  padding: 18px;
  background: rgba(8, 10, 11, 0.74);
}

.hero-facts dt {
  margin-bottom: 8px;
  color: var(--paper);
  font-weight: 820;
}

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

.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line-soft);
}

.section.tight {
  padding: 58px 0;
}

.pricing-cards {
  padding-top: 46px;
}

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

.section.light .lead,
.section.light .muted,
.section.light .feature p,
.section.light .step p,
.section.light .faq p {
  color: #53605c;
}

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

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.55fr);
  gap: 54px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head p {
  margin-bottom: 0;
}

.grid-3,
.grid-2,
.grid-4 {
  display: grid;
  gap: 14px;
}

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

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

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

.card,
.feature,
.step,
.price-card,
.faq,
.contact-panel,
.doc-card {
  border: 1px solid var(--line-soft);
  background: rgba(244, 246, 241, 0.045);
  border-radius: 8px;
}

.card,
.feature,
.step,
.faq,
.doc-card {
  padding: 22px;
}

.feature p,
.step p,
.faq p,
.doc-card p,
.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.label {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  margin-bottom: 16px;
  border: 1px solid var(--line-soft);
  color: var(--trace);
  font-size: 0.75rem;
  font-weight: 820;
  text-transform: uppercase;
}

.trace-demo {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.demo-controls {
  display: grid;
  gap: 10px;
}

.demo-option {
  width: 100%;
  min-height: 64px;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  background: rgba(244, 246, 241, 0.035);
  color: var(--paper);
}

.demo-option[aria-pressed="true"] {
  border-color: var(--break);
  background: rgba(255, 90, 54, 0.11);
}

.console {
  min-height: 410px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #070909;
  overflow: hidden;
}

.console-top {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--quiet);
  font-size: 0.82rem;
}

.console-body {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.event-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(244, 246, 241, 0.08);
}

.event-row:last-child {
  border-bottom: 0;
}

.event-kind {
  color: var(--trace);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.event-copy strong {
  display: block;
  margin-bottom: 5px;
}

.event-copy span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.diff-box {
  padding: 14px;
  border-left: 3px solid var(--break);
  background: rgba(255, 90, 54, 0.08);
}

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

.page-hero {
  padding: 76px 0 58px;
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(120, 217, 182, 0.038) 1px, transparent 1px),
    linear-gradient(rgba(120, 217, 182, 0.028) 1px, transparent 1px),
    var(--ink);
  background-size: 46px 46px;
}

.page-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(280px, 1fr);
  gap: 46px;
  align-items: end;
}

.page-hero .eyebrow,
.page-hero .page-title,
.page-hero .lead,
.page-hero .action-row {
  grid-column: 1;
}

.page-hero .lead {
  max-width: 680px;
}

.page-panel {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(244, 246, 241, 0.045);
}

.page-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.06rem;
}

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

.panel-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}

.panel-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}

.panel-list span:last-child {
  color: var(--paper);
  font-weight: 760;
}

.media-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 54px;
  align-items: center;
}

.product-image {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #070909;
  overflow: hidden;
}

.steps {
  counter-reset: step;
}

.step {
  position: relative;
  min-height: 190px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 24px;
  background: var(--trace);
  color: #101413;
  font-weight: 900;
}

.pricing-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(244, 246, 241, 0.04);
}

.pricing-toggle button {
  min-height: 42px;
  border: 0;
  padding: 0 18px;
  background: transparent;
  color: var(--muted);
}

.pricing-toggle button[aria-pressed="true"] {
  color: #101413;
  background: var(--signal);
}

.price-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 460px;
}

.price-card.highlight {
  border-color: rgba(120, 217, 182, 0.68);
  background: rgba(120, 217, 182, 0.08);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 16px 0 18px;
}

.price strong {
  font-size: 3rem;
  line-height: 1;
}

.price span {
  color: var(--muted);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.45;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 10px;
  height: 2px;
  background: var(--trace);
}

.price-card .button {
  margin-top: auto;
}

.doc-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.doc-layout > *,
.doc-stack,
.doc-card,
.code-block,
.console,
.product-image {
  min-width: 0;
}

.doc-side {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  display: grid;
  gap: 12px;
}

.search {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(244, 246, 241, 0.05);
  color: var(--paper);
}

.side-links {
  display: grid;
  gap: 4px;
}

.side-links a {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: var(--muted);
  border-left: 2px solid transparent;
}

.side-links a:hover {
  color: var(--paper);
  border-left-color: var(--trace);
}

.doc-stack {
  display: grid;
  gap: 18px;
}

.code-block {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
  background: #050707;
}

.code-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--quiet);
  font-size: 0.8rem;
}

.copy-btn {
  min-height: 28px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  color: var(--paper);
  background: rgba(244, 246, 241, 0.05);
}

pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
  gap: 54px;
  align-items: start;
}

.contact-panel {
  padding: 24px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--muted);
  font-size: 0.88rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 0 13px;
  background: rgba(244, 246, 241, 0.055);
  color: var(--paper);
}

.field textarea {
  min-height: 130px;
  padding-top: 12px;
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--trace);
}

.site-footer {
  padding: 42px 0;
  background: #050707;
}

.footer-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: start;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 12px 22px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--paper);
}

.not-found {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 70px 16px;
}

.not-found > div {
  max-width: 620px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .nav-shell {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

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

  .primary-nav,
  .nav-cta {
    grid-column: 1 / -1;
    display: none;
    justify-content: stretch;
  }

  .primary-nav {
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 12px;
  }

  .primary-nav a,
  .nav-cta a {
    width: 100%;
  }

  .site-header[data-open="true"] .primary-nav,
  .site-header[data-open="true"] .nav-cta {
    display: flex;
  }

  .section-head,
  .media-band,
  .trace-demo,
  .page-hero .container,
  .doc-layout,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-panel {
    grid-column: 1;
    grid-row: auto;
    min-height: auto;
  }

  .doc-side {
    position: static;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .hero-facts {
    grid-template-columns: 1fr;
  }

  h1,
  .page-title {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .page-hero {
    padding: 56px 0 42px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 58px 0 70px;
  }

  h1,
  .page-title {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1rem;
  }

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

  .price-card {
    min-height: auto;
  }
}
