:root {
  --bg: #f7f8f5;
  --surface: #ffffff;
  --ink: #16201c;
  --muted: #5d6863;
  --line: #d9ded8;
  --strong: #163b2a;
  --accent: #1f7a4d;
  --accent-dark: #125235;
  --risk: #8f2f26;
  --warn: #9a6a17;
  --code: #101412;
  --code-line: #29342f;
  --shadow: 0 24px 70px rgba(22, 32, 28, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(247, 248, 245, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--strong);
  background: var(--strong);
  color: #ffffff;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.nav-links {
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--accent-dark);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  cursor: pointer;
}

.header-cta,
.button.primary {
  background: var(--accent);
  color: #ffffff;
}

.header-cta:hover,
.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: center;
  padding: 112px clamp(20px, 5vw, 72px) 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(247, 248, 245, 0), var(--bg));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 8vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 690px;
  color: #35423c;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

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

.promise {
  max-width: 560px;
  color: var(--muted);
  font-size: 0.98rem;
}

.credibility-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.credibility-strip span {
  display: flex;
  align-items: center;
  min-height: 70px;
  padding: 18px;
  background: var(--surface);
  color: var(--strong);
  font-size: 0.94rem;
  font-weight: 850;
}

.hero-visual {
  position: absolute;
  inset: 82px clamp(20px, 5vw, 72px) 42px auto;
  z-index: 1;
  width: min(55vw, 760px);
  opacity: 0.94;
}

.terminal-window,
.pr-preview,
.access-panel,
.command-block {
  border: 1px solid rgba(22, 32, 28, 0.16);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  background: #17201c;
  border-bottom: 1px solid var(--code-line);
}

.window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #7b8c83;
}

.window-bar span:first-child {
  background: #b7473d;
}

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

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

.window-bar strong {
  margin-left: 8px;
  color: #aebcb5;
  font-size: 0.75rem;
}

.terminal-window pre,
.command-block pre {
  margin: 0;
  white-space: pre-wrap;
}

.terminal-window code {
  display: block;
  padding: 20px;
  color: #e8f3ec;
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
}

.pr-preview {
  position: absolute;
  right: 72px;
  bottom: 0;
  width: min(88%, 430px);
  padding: 22px;
}

.pr-preview p,
.check-row,
.pain-list span,
.trust-list span {
  color: var(--muted);
}

.pr-topline {
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.check-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.check-row strong {
  color: var(--accent-dark);
}

.section {
  padding: 84px clamp(20px, 5vw, 72px);
}

.split-section,
.product-walkthrough,
.trust-section,
.access-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: start;
}

.section p {
  color: var(--muted);
  font-size: 1.02rem;
}

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

.pain-list,
.trust-list,
.numbered-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.pain-list div,
.trust-list div,
.numbered-list li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.pain-list strong,
.trust-list strong,
.numbered-list strong {
  display: block;
  margin-bottom: 4px;
}

.solution-band {
  background: #eef3ee;
  border-block: 1px solid var(--line);
}

.workflow-grid,
.benefit-grid,
.use-case-grid,
.comparison-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.workflow-grid article,
.benefit-grid article,
.use-case-grid article,
.comparison-grid article,
.faq-grid details {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.workflow-grid p,
.benefit-grid p,
.use-case-grid p,
.comparison-grid p {
  margin-bottom: 0;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent-dark);
  font-weight: 900;
}

.numbered-list {
  padding-left: 0;
  list-style: none;
}

.numbered-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
}

.trust-section,
.access-section {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.access-panel {
  padding: 28px;
  box-shadow: none;
}

.access-panel ul {
  margin: 0 0 24px;
  padding-left: 20px;
  color: var(--muted);
}

.access-panel li + li {
  margin-top: 8px;
}

.access-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.form-note {
  margin: 16px 0 0;
  font-size: 0.92rem;
}

.demo-section {
  background: #18221e;
  color: #ffffff;
}

.demo-section .eyebrow,
.demo-section p {
  color: #b9d8c7;
}

.command-block {
  position: relative;
  overflow: hidden;
  background: var(--code);
  box-shadow: none;
}

.command-block button {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #42544c;
  border-radius: 6px;
  background: #223029;
  color: #ffffff;
  font-weight: 750;
  cursor: pointer;
}

.command-block code {
  display: block;
  padding: 28px;
  color: #e8f3ec;
  font-size: clamp(0.82rem, 2vw, 1rem);
}

.online-demo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 1px solid #42544c;
  border-radius: 8px;
  background: #111a16;
}

.online-demo-card h3 {
  color: #ffffff;
}

.online-demo-card p {
  margin-bottom: 0;
}

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

details summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin: 12px 0 0;
}

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

.site-footer span {
  color: var(--ink);
  font-weight: 800;
}

.demo-page {
  background: #f3f6f1;
}

.demo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: end;
  padding: 96px clamp(20px, 5vw, 72px) 62px;
  border-bottom: 1px solid var(--line);
}

.demo-hero h1 {
  max-width: 900px;
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.demo-boundary-card,
.event-panel,
.run-panel,
.result-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.demo-boundary-card {
  padding: 24px;
}

.demo-boundary-card h2 {
  font-size: 1.35rem;
}

.demo-boundary-card ul,
.result-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.demo-boundary-card li + li,
.result-card li + li {
  margin-top: 8px;
}

.demo-runner {
  padding: 62px clamp(20px, 5vw, 72px) 88px;
}

.demo-runner-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.demo-runner-header h2 {
  margin-bottom: 8px;
}

.demo-runner-header p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.demo-actions {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: start;
}

.event-panel,
.run-panel {
  overflow: hidden;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #edf3ed;
  font-weight: 850;
}

.panel-heading strong {
  color: var(--accent-dark);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.event-panel pre,
.result-card pre {
  margin: 0;
  overflow-x: auto;
  background: var(--code);
  color: #e8f3ec;
}

.event-panel code,
.result-card code {
  display: block;
  padding: 18px;
  font-size: 0.82rem;
  line-height: 1.55;
}

.run-panel {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 620px;
}

.status-rail {
  padding: 18px;
  border-right: 1px solid var(--line);
  background: #fbfcfa;
}

.status-step {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding: 0 0 22px;
}

.status-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 8px;
  width: 1px;
  height: calc(100% - 18px);
  background: var(--line);
}

.status-step span {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.status-step strong,
.status-step small {
  grid-column: 2;
}

.status-step strong {
  font-size: 0.93rem;
}

.status-step small {
  color: var(--muted);
}

.status-step[data-state="running"] span {
  border-color: var(--warn);
  background: #fff3d5;
}

.status-step[data-state="running"] small {
  color: var(--warn);
}

.status-step[data-state="done"] span {
  border-color: var(--accent);
  background: var(--accent);
}

.status-step[data-state="done"] small {
  color: var(--accent-dark);
  font-weight: 800;
}

.demo-output {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
}

.empty-output {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.empty-output p,
.result-card p {
  color: var(--muted);
}

.result-card {
  overflow: hidden;
  padding: 20px;
}

.result-card pre {
  margin: 12px -20px -20px;
  border-top: 1px solid var(--line);
}

.compact-button {
  width: auto;
  min-height: 38px;
  margin-top: 16px;
  padding-inline: 14px;
}

@media (max-width: 1040px) {
  .hero {
    min-height: auto;
    padding-top: 92px;
  }

  .hero-visual {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 520px;
    margin-top: 54px;
  }

  .hero-content {
    max-width: 860px;
  }

  .split-section,
  .product-walkthrough,
  .trust-section,
  .access-section {
    grid-template-columns: 1fr;
  }

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

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

  .demo-hero,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .run-panel {
    grid-template-columns: 1fr;
  }

  .status-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .status-step {
    padding: 0;
  }

  .status-step::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .header-cta {
    width: 100%;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-actions,
  .access-actions,
  .demo-actions,
  .online-demo-card {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 600px;
  }

  .terminal-window,
  .pr-preview {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
  }

  .pr-preview {
    margin-top: 18px;
  }

  .workflow-grid,
  .benefit-grid,
  .use-case-grid,
  .comparison-grid,
  .faq-grid,
  .credibility-strip {
    grid-template-columns: 1fr;
  }

  .credibility-strip span {
    min-height: 56px;
  }

  .demo-hero {
    padding-top: 54px;
  }

  .demo-runner-header {
    align-items: stretch;
    flex-direction: column;
  }

  .status-rail {
    grid-template-columns: 1fr;
  }

  .numbered-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
