:root {
  color-scheme: light;
  --ink: #18201d;
  --muted: #61706a;
  --line: #d8e0dc;
  --paper: #f7f6ef;
  --panel: #ffffff;
  --soft: #eef3ee;
  --green: #1f6b4f;
  --green-dark: #123f31;
  --blue: #286a9b;
  --red: #b64836;
  --amber: #c68120;
  --shadow: 0 24px 60px rgba(33, 46, 40, 0.16);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

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

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(247, 246, 239, 0.86);
  border-bottom: 1px solid rgba(216, 224, 220, 0.8);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  left: 0;
  padding: 16px clamp(20px, 5vw, 64px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand,
.nav-links,
.signal-row,
.hero-actions {
  align-items: center;
  display: flex;
}

.brand {
  font-weight: 800;
  gap: 10px;
}

.brand-mark {
  align-items: center;
  background: var(--green-dark);
  border-radius: 6px;
  color: #f4fff7;
  display: inline-flex;
  font-family: var(--mono);
  height: 30px;
  justify-content: center;
  width: 30px;
}

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

.nav-links a:hover,
.header-cta:hover {
  color: var(--ink);
}

.header-cta,
.primary-action,
.secondary-action,
.waitlist-form button {
  border-radius: 7px;
  font-weight: 700;
}

.header-cta {
  background: var(--ink);
  color: #fffdf7;
  font-size: 14px;
  padding: 10px 14px;
}

.hero {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  min-height: calc(100vh - 65px);
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 64px) 56px;
}

.hero-copy {
  align-self: center;
  max-width: 660px;
}

.eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 16px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(48px, 7vw, 86px);
  letter-spacing: 0;
  line-height: 0.94;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 18px;
}

h3 {
  font-size: 19px;
  letter-spacing: 0;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.hero-text {
  font-size: 19px;
  max-width: 590px;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  justify-content: center;
  min-width: 146px;
  padding: 14px 18px;
}

.primary-action {
  background: var(--green-dark);
  color: #fffdf7;
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--ink);
}

.signal-row {
  color: var(--muted);
  flex-wrap: wrap;
  font-size: 13px;
  gap: 10px;
}

.signal-row span {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
}

.product-stage {
  align-self: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 0.72fr;
  position: relative;
}

.terminal-window,
.review-panel,
.architecture-map,
.intro-grid > div,
.steps article,
.scenario-grid article,
.code-block {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.terminal-window {
  background: #15211d;
  box-shadow: var(--shadow);
  color: #e9fff2;
  grid-column: 1 / 3;
  overflow: hidden;
}

.window-bar {
  align-items: center;
  background: #0f1916;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 8px;
  padding: 12px 14px;
}

.window-bar span {
  border-radius: 999px;
  display: block;
  height: 11px;
  width: 11px;
}

.window-bar span:nth-child(1) {
  background: #ef6b5a;
}

.window-bar span:nth-child(2) {
  background: #e7bc4b;
}

.window-bar span:nth-child(3) {
  background: #54c878;
}

.window-bar p {
  color: #9cb7ac;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1;
  margin: 0 0 0 8px;
}

.terminal-body {
  font-family: var(--mono);
  padding: clamp(18px, 3vw, 28px);
}

.terminal-body p {
  color: #dff8e9;
  font-family: var(--mono);
  font-size: clamp(13px, 1.55vw, 15px);
  line-height: 1.65;
  margin-bottom: 12px;
}

.terminal-body .muted {
  color: #83a999;
}

.prompt {
  color: #65d68d;
  font-weight: 700;
}

.question {
  color: #8ed6ff !important;
}

.answer {
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid #65d68d;
  padding: 12px 14px;
}

.warning {
  color: #ffd98a !important;
}

.review-panel {
  background: var(--panel);
  box-shadow: 0 16px 36px rgba(33, 46, 40, 0.1);
  padding: 18px;
}

.score-line {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.score-line span {
  color: var(--muted);
  font-size: 14px;
}

.score-line strong {
  color: var(--red);
  font-size: 14px;
}

.meter {
  background: #e9eeeb;
  border-radius: 999px;
  height: 9px;
  margin-bottom: 18px;
  overflow: hidden;
}

.meter span {
  background: linear-gradient(90deg, var(--red), var(--amber));
  display: block;
  height: 100%;
  width: 42%;
}

.finding {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.finding + .finding {
  margin-top: 12px;
}

.finding strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.finding p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.architecture-map {
  align-content: center;
  background: #fffdf8;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 20px 1fr 20px 1fr;
  padding: 18px;
}

.node {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  display: flex;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  min-height: 46px;
  padding: 8px;
}

.node.risk {
  background: #fff0e9;
  border-color: #efb29f;
  color: #8a3528;
}

.link {
  align-self: center;
  background: var(--line);
  height: 2px;
}

.branch {
  display: grid;
  gap: 8px;
  grid-column: 1 / 6;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 8px;
}

.section {
  padding: clamp(58px, 8vw, 108px) clamp(20px, 5vw, 64px);
}

.section-header {
  max-width: 860px;
  margin-bottom: 32px;
}

.section-header.narrow {
  max-width: 720px;
}

.intro-band {
  background: #fffdf8;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

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

.intro-grid > div,
.scenario-grid article {
  background: var(--panel);
  padding: 22px;
}

.intro-grid p,
.scenario-grid p,
.steps p,
.cli-section p,
.waitlist p {
  margin-bottom: 0;
}

.steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps article {
  background: #fffdf8;
  min-height: 230px;
  padding: 22px;
}

.steps span {
  color: var(--green);
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 34px;
}

.scenario-section {
  background: #edf3ef;
}

.tag {
  background: #e5f0ea;
  border-radius: 999px;
  color: var(--green);
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 18px;
  padding: 6px 9px;
}

.cli-section {
  align-items: center;
  display: grid;
  gap: 40px;
  grid-template-columns: 0.82fr 1fr;
}

.code-block {
  background: #15211d;
  box-shadow: var(--shadow);
  color: #e9fff2;
  font-family: var(--mono);
  padding: 26px;
}

.code-block p {
  color: #dff8e9;
  font-family: var(--mono);
  margin-bottom: 14px;
}

.code-block p:last-child {
  margin-bottom: 0;
}

.code-block span {
  color: #65d68d;
  font-weight: 700;
}

.waitlist {
  align-items: center;
  background: var(--green-dark);
  color: #fffdf7;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 0.9fr;
  margin: 0 clamp(20px, 5vw, 64px) clamp(24px, 4vw, 48px);
  padding: clamp(34px, 5vw, 56px);
}

.waitlist h2,
.waitlist p {
  color: #fffdf7;
}

.waitlist-status {
  color: #c9f3d9 !important;
  font-size: 14px;
  margin-top: 12px;
}

.waitlist .eyebrow {
  color: #8fe0b0;
}

.waitlist-form {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 18px;
}

.waitlist-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.waitlist-form div {
  display: flex;
  gap: 10px;
}

.waitlist-form input {
  background: #fffdf7;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  flex: 1;
  font: inherit;
  min-width: 0;
  padding: 14px;
}

.waitlist-form button {
  background: #8fe0b0;
  border: 0;
  color: #0f2d23;
  cursor: pointer;
  font: inherit;
  padding: 14px 16px;
  white-space: nowrap;
}

.waitlist-form input:disabled,
.waitlist-form button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.form-note {
  color: #c9f3d9 !important;
  font-size: 13px;
  min-height: 22px;
  padding-top: 10px;
}

.site-footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 64px) 30px;
}

.site-footer p {
  font-size: 14px;
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .cli-section,
  .waitlist {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 720px) {
  .site-header {
    gap: 14px;
  }

  .nav-links {
    display: none;
  }

  .header-cta {
    padding: 9px 11px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .product-stage,
  .intro-grid,
  .scenario-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .terminal-window {
    grid-column: auto;
  }

  .architecture-map {
    grid-template-columns: 1fr;
  }

  .link {
    height: 16px;
    justify-self: center;
    width: 2px;
  }

  .branch {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .waitlist {
    margin-left: 0;
    margin-right: 0;
  }

  .waitlist-form div {
    flex-direction: column;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
