:root {
  --bg: #f2f4ef;
  --ink: #111316;
  --muted: #616772;
  --line: #d8ded6;
  --panel: #fffdf7;
  --dark: #0d0f12;
  --dark-2: #171a1f;
  --green: #a8ff60;
  --green-soft: #dcffc7;
  --red: #f15d42;
  --amber: #f0b24f;
  --blue: #4f7cff;
  --shadow: 0 20px 38px rgb(13 15 18 / 10%), 0 52px 110px rgb(13 15 18 / 16%);
  color-scheme: light;
  font-family:
    "Aptos", "Suisse Intl", "Inter Variable", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgb(13 15 18 / 4.5%) 1px, transparent 1px),
    linear-gradient(rgb(13 15 18 / 4.5%) 1px, transparent 1px),
    linear-gradient(180deg, rgb(255 255 255 / 64%), rgb(242 244 239 / 0%) 520px),
    var(--bg);
  background-size: 32px 32px, 32px 32px, auto, auto;
  color: var(--ink);
  -webkit-tap-highlight-color: rgb(78 121 169 / 20%);
}

a {
  color: inherit;
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--blue);
  color: white;
  font-weight: 850;
  text-decoration: none;
  transform: translateY(-140%);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgb(242 244 239 / 88%);
  border-bottom: 1px solid rgb(17 19 22 / 10%);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.proof-strip,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  width: fit-content;
  font-weight: 820;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  stroke-linecap: square;
  stroke-linejoin: round;
  filter: drop-shadow(0 7px 16px rgb(13 15 18 / 18%));
}

.brand-mark rect {
  fill: var(--dark);
  stroke: rgb(255 255 255 / 20%);
}

.brand-mark path {
  fill: none;
  stroke-width: 2.65;
}

.mark-trace {
  stroke: var(--green);
}

.mark-spine,
.mark-line {
  stroke: var(--panel);
}

.nav {
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav a,
.top-cta,
.button,
.text-link {
  text-decoration: none;
}

.nav a:hover,
.text-link:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.top-cta {
  justify-self: end;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--panel);
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.top-cta:hover,
.button.primary:hover {
  background: #252b32;
}

.button.secondary:hover {
  background: rgb(23 22 18 / 6%);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1.18fr);
  gap: clamp(32px, 5vw, 72px);
  min-height: min(960px, calc(100vh - 72px));
  padding: clamp(58px, 8vw, 108px) clamp(20px, 5vw, 72px) 58px;
  align-items: center;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(50px, 6.2vw, 88px);
  font-weight: 860;
  line-height: 0.96;
  text-wrap: balance;
}

.hero-lede {
  max-width: 610px;
  color: #383e47;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.38;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--ink);
  font-weight: 850;
}

.button.primary {
  background: var(--ink);
  color: var(--panel);
}

.button.secondary {
  background: transparent;
}

.button.wide {
  width: 100%;
}

.proof-strip {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.proof-strip div {
  min-width: 150px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgb(251 250 244 / 72%);
}

.proof-strip dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.proof-strip dd {
  margin: 4px 0 0;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.trust-note {
  display: grid;
  max-width: 590px;
  gap: 4px;
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--green);
  background: rgb(251 250 244 / 82%);
}

.trust-note strong {
  font-size: 14px;
}

.trust-note span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.product-visual {
  position: relative;
  min-height: 660px;
}

.terminal-card,
.report-card,
.log-card,
.output-card,
.beta-panel {
  border: 1px solid rgb(20 19 15 / 16%);
  box-shadow: var(--shadow);
}

.terminal-card {
  position: absolute;
  right: 0;
  top: 0;
  width: min(620px, 100%);
  overflow: hidden;
  background: var(--dark);
  color: #f7f0de;
}

.diagnostic-chain {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(640px, 100%);
  border: 1px solid rgb(20 19 15 / 16%);
  background: #e5ece1;
  box-shadow: var(--shadow);
}

.diagnostic-chain div {
  min-height: 138px;
  padding: 18px;
  border-right: 1px solid rgb(20 19 15 / 14%);
}

.diagnostic-chain div:last-child {
  border-right: 0;
}

.diagnostic-chain span {
  display: block;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.diagnostic-chain strong {
  display: block;
  margin-bottom: 6px;
}

.diagnostic-chain p {
  margin: 0;
  color: #4f5962;
  font-size: 14px;
  line-height: 1.35;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  color: #9f988c;
  font-size: 13px;
}

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

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

.window-bar span:nth-child(3) {
  background: var(--green);
}

.window-bar strong {
  margin-left: 8px;
}

pre {
  margin: 0;
  white-space: pre-wrap;
}

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

.terminal-card pre {
  padding: 24px;
  color: var(--green);
  font-size: clamp(13px, 1.4vw, 17px);
  line-height: 1.65;
}

.report-card {
  position: absolute;
  left: 0;
  bottom: 148px;
  width: min(560px, 88%);
  padding: clamp(24px, 4vw, 38px);
  background: var(--panel);
}

.report-kicker {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.report-card h2,
.section h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 3.6vw, 54px);
  font-weight: 820;
  line-height: 1.02;
  text-wrap: balance;
}

.report-card h2 {
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 760;
  line-height: 1.02;
}

.report-card ul,
.beta-panel ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-card li,
.beta-panel li {
  line-height: 1.45;
}

.report-card li span {
  display: block;
  margin-bottom: 2px;
  font-weight: 850;
}

.section {
  padding: clamp(68px, 9vw, 118px) clamp(20px, 5vw, 72px);
  scroll-margin-top: 90px;
}

.band {
  background:
    radial-gradient(circle at 86% 22%, rgb(168 255 96 / 10%), transparent 26%),
    var(--dark);
  color: var(--panel);
}

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

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgb(255 250 240 / 18%);
  border: 1px solid rgb(255 250 240 / 18%);
}

.feature-grid article {
  min-height: 220px;
  padding: clamp(22px, 3vw, 34px);
  background: rgb(13 15 18 / 92%);
}

.feature-grid h3 {
  font-size: 24px;
}

.feature-grid p {
  color: #c6cec0;
  line-height: 1.55;
}

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

.log-card {
  overflow: hidden;
  background: var(--dark);
  color: #f8f2e4;
}

.window-bar.compact {
  padding: 10px 12px;
}

.log-card pre {
  padding: clamp(20px, 3vw, 30px);
  font-size: 15px;
  line-height: 1.7;
}

.output-card {
  padding: clamp(24px, 4vw, 38px);
  background: var(--panel);
}

.status-pill {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  background: var(--green-soft);
  color: #315300;
  font-size: 13px;
  font-weight: 850;
}

.output-card h3 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  text-wrap: balance;
}

.output-card p,
.output-card li,
.privacy-list p,
.beta-copy p {
  color: #454c55;
  font-size: 17px;
  line-height: 1.55;
}

.output-card ol {
  margin: 20px 0 0;
  padding-left: 22px;
}

.privacy-section,
.contact-section,
.beta-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.privacy-list {
  display: grid;
  gap: 14px;
}

.privacy-list p {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.beta-section {
  background: #e7ebe3;
}

.contact-section {
  background: var(--panel);
}

.contact-panel {
  display: grid;
  gap: 20px;
  align-content: start;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  background: rgb(242 244 239 / 78%);
}

.contact-panel p {
  margin: 0;
  color: #454c55;
  font-size: 18px;
  line-height: 1.55;
}

.beta-panel {
  padding: clamp(24px, 4vw, 38px);
  background: var(--panel);
}

.beta-panel ul {
  margin-bottom: 24px;
}

.beta-panel li {
  position: relative;
  padding-left: 24px;
}

.beta-panel li::before {
  position: absolute;
  left: 0;
  color: var(--red);
  content: ">";
  font-weight: 900;
}

.text-link {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 750;
  text-align: center;
}

.footer {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  font-weight: 750;
  text-decoration: none;
}

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

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .sample-layout,
  .privacy-section,
  .contact-section,
  .beta-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .product-visual {
    min-height: auto;
    display: grid;
    gap: 18px;
  }

  .terminal-card,
  .report-card,
  .diagnostic-chain {
    position: static;
    width: 100%;
  }

  .diagnostic-chain {
    grid-template-columns: 1fr;
  }

  .diagnostic-chain div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgb(20 19 15 / 14%);
  }

  .diagnostic-chain div:last-child {
    border-bottom: 0;
  }

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

@media (max-width: 560px) {
  .topbar {
    padding: 14px 16px;
  }

  .top-cta {
    padding: 9px 12px;
  }

  .hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 44px;
  }

  .button {
    width: 100%;
  }

  .proof-strip div {
    width: 100%;
  }

  .footer {
    display: grid;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
