:root {
  color-scheme: dark;
  --ink: #070908;
  --panel: #101410;
  --paper: #f3f5ef;
  --muted: #a4ada5;
  --line: #2a332b;
  --accent: #8eff50;
  --header: 72px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

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

a { color: inherit; }

.topbar {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 68px);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  background: rgba(7, 9, 8, .74);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.brand img { border-radius: 6px; }

.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 2px;
  color: var(--paper);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.topbar__link svg { width: 17px; height: 17px; }

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: end;
  overflow: hidden;
  background: #080b0a url("/assets/openclaw-ops-proof.png") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 8, .97) 0%, rgba(7, 9, 8, .85) 40%, rgba(7, 9, 8, .30) 74%, rgba(7, 9, 8, .15) 100%),
    linear-gradient(0deg, rgba(7, 9, 8, .82), transparent 45%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: calc(var(--header) + 72px) clamp(20px, 6vw, 96px) 84px;
}

.kicker,
.section-label {
  margin: 0 0 18px;
  color: var(--accent);
  font: 700 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 1.7px;
}

.hero h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(52px, 7.2vw, 112px);
  line-height: .9;
  letter-spacing: 0;
}

.hero__lede {
  max-width: 610px;
  margin: 28px 0 0;
  color: #d7ddd7;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.48;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.button svg { width: 18px; height: 18px; }
.button:hover { color: var(--accent); transform: translateY(-2px); }

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font: 600 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.hero__status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(142, 255, 80, .85);
}

.receipt {
  padding: 108px clamp(20px, 6vw, 96px);
  background: var(--paper);
  color: #101310;
}

.receipt__grid {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
  gap: clamp(56px, 8vw, 130px);
}

.receipt h2,
.handoff h2,
.flow h2,
.close h2 {
  margin: 0;
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: .98;
  letter-spacing: 0;
}

.receipt__intro > p:last-child {
  max-width: 650px;
  margin: 26px 0 0;
  color: #4e574f;
  font-size: 19px;
  line-height: 1.62;
}

.runlist { border-top: 2px solid #101310; }

.runlist__item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid #bbc3bb;
  font: 650 14px/1.35 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.runlist__index { color: #788178; }
.runlist__exit { color: #347315; }

.handoff {
  padding: 118px clamp(20px, 6vw, 96px);
  border-top: 1px solid var(--line);
}

.handoff__inner {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.handoff__columns {
  margin-top: 68px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(44px, 8vw, 130px);
}

.scope {
  padding-top: 22px;
  border-top: 2px solid var(--paper);
}

.scope--trial { border-color: var(--accent); }

.scope h3 {
  margin: 0 0 26px;
  font-size: 22px;
  letter-spacing: 0;
}

.scope ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.scope li {
  position: relative;
  min-height: 48px;
  padding: 13px 0 13px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.45;
}

.scope li::before {
  content: "↳";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.scope__note {
  margin: 28px 0 0;
  color: var(--paper);
  font-size: 15px;
  line-height: 1.6;
}

.flow {
  padding: 118px clamp(20px, 6vw, 96px);
  background: #171d18;
  overflow: hidden;
}

.flow__inner {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.flow__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 74px;
  border-top: 1px solid #4b574c;
}

.flow__step {
  position: relative;
  min-height: 245px;
  padding: 40px 32px 28px 0;
  border-right: 1px solid #4b574c;
}

.flow__step:last-child { border-right: 0; padding-right: 0; padding-left: 32px; }
.flow__step + .flow__step { padding-left: 32px; }

.flow__step::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(142, 255, 80, .7);
}

.flow__step span {
  color: var(--accent);
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.flow__step h3 {
  margin: 30px 0 14px;
  font-size: 22px;
}

.flow__step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.close {
  position: relative;
  min-height: 72svh;
  display: flex;
  align-items: center;
  padding: 110px clamp(20px, 6vw, 96px);
  background:
    linear-gradient(rgba(142, 255, 80, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 255, 80, .045) 1px, transparent 1px),
    #080b0a;
  background-size: 44px 44px;
}

.close__inner { width: min(920px, 100%); }

.close p:not(.section-label) {
  max-width: 700px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.close .button { margin-top: 32px; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 36px clamp(20px, 6vw, 96px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer p { margin: 5px 0 0; }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 650ms ease, transform 650ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 880px) {
  .hero { min-height: 86svh; background-position: 58% center; }
  .hero::before { background: linear-gradient(90deg, rgba(7, 9, 8, .97), rgba(7, 9, 8, .72)); }
  .hero__inner { padding-bottom: 60px; }
  .receipt__grid,
  .handoff__columns { grid-template-columns: 1fr; }
  .flow__track { grid-template-columns: 1fr; border-top: 0; }
  .flow__step,
  .flow__step + .flow__step,
  .flow__step:last-child {
    min-height: 0;
    padding: 28px 0 32px 34px;
    border-top: 1px solid #4b574c;
    border-right: 0;
  }
  .flow__step::before { top: 23px; }
  .footer { flex-direction: column; }
}

@media (max-width: 560px) {
  :root { --header: 64px; }
  .topbar { padding-inline: 16px; }
  .topbar__link span { display: none; }
  .hero { min-height: 780px; }
  .hero__inner { padding: 118px 20px 50px; }
  .hero h1 { font-size: 54px; }
  .hero__lede { font-size: 18px; }
  .hero__actions { display: grid; gap: 16px; }
  .receipt, .handoff, .flow, .close { padding: 82px 20px; }
  .receipt h2, .handoff h2, .flow h2, .close h2 { font-size: 42px; }
  .runlist__item { grid-template-columns: 34px minmax(0, 1fr) auto; font-size: 12px; }
  .footer { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
