:root {
  --bg: #000;
  --fg: #ededed;
  --dim: #a1a1a1;
  --muted: #737373;
  --line: #1f1f1f;
  --line-2: #2e2e2e;
  --card: #0a0a0a;
  --term: #0c0c0c;
  --green: #3fb950;
  --yellow: #e3b341;
  --red: #f85149;
  --blue: #3b8eea;
  --sans: "Geist", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
code, pre { font-family: var(--mono); }
.muted { color: var(--muted); }
.ok { color: var(--green); }
.warn { color: var(--yellow); }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0,0,0,.72);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { height: 60px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.brand.small { font-size: 14px; gap: 8px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--dim); }
.nav-links a:hover { color: var(--fg); }

/* Grid background */
.grid-bg {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  position: relative;
}
.grid-bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, transparent 0%, var(--bg) 80%);
}
.grid-bg > * { position: relative; z-index: 1; }

/* Hero */
.hero { padding: 112px 0 72px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--dim);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 4px 14px; margin-bottom: 28px; background: #050505;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
h1 {
  font-size: clamp(40px, 7.2vw, 80px);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 700;
}
.lede {
  max-width: 640px; margin: 24px auto 0;
  font-size: clamp(17px, 2vw, 20px); color: var(--dim); line-height: 1.55;
}
.cta-row { display: flex; gap: 12px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 500; font-size: 15px; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--fg); color: #000; }
.btn-primary:hover { background: #fff; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--fg); background: #000; }
.btn-ghost:hover { border-color: #555; }

/* Helme window mockup */
.window {
  margin: 72px auto 0;
  max-width: 1040px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  text-align: left;
  box-shadow: 0 0 0 1px #000, 0 40px 120px -20px rgba(255,255,255,.08);
}
.win-bar { display: flex; align-items: center; background: #1b1b1b; border-bottom: 1px solid #262626; height: 38px; }
.lights { display: flex; gap: 6px; padding: 0 14px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; display: block; }
.tabs { display: flex; height: 100%; overflow: hidden; font-size: 12.5px; }
.tab { display: flex; align-items: center; padding: 0 14px; color: #9a9a9a; border-right: 1px solid #262626; white-space: nowrap; }
.tab.on { background: #0c0c0c; color: #fff; box-shadow: inset 0 2px 0 var(--blue); }
.tab.plus { border-right: 0; }
.win-body { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 400px; }
.pane { min-width: 0; }
.pane-h {
  font-size: 12px; font-weight: 600; color: #f1d27a; background: #161616;
  padding: 5px 12px; border-bottom: 1px solid #262626;
}
.grip { color: #555; margin-right: 6px; letter-spacing: -2px; }
.term { background: var(--term); border-right: 1px solid #262626; }
.t {
  font-size: 12.5px; line-height: 1.6; color: #cccccc;
  padding: 14px 16px; white-space: pre; overflow: hidden;
}
.t .p { color: #f1d27a; }
.t .a { color: #d9775a; font-weight: 500; }
.cursor { display: inline-block; width: 8px; height: 15px; background: #ccc; vertical-align: -3px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.report { background: #121212; padding: 0 0 16px; font-size: 13px; }
.rep-tabs { display: flex; gap: 6px; align-items: center; padding: 10px 14px; border-bottom: 1px solid #262626; }
.rep-tabs span { padding: 3px 12px; border-radius: 6px; color: #9a9a9a; }
.rep-tabs span.on { background: #222; color: #fff; border: 1px solid #333; }
.rep-tabs em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 12px; }
.rep-sec { padding: 12px 14px 0; }
.rep-sec h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); font-weight: 600; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.rep-sec h4 b, .card-h b { background: var(--red); color: #fff; font-size: 11px; border-radius: 999px; padding: 0 7px; line-height: 18px; }
.wait {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid #2a2a2a; border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; background: #161616;
}
.wait span { flex: 1; min-width: 0; color: #e6e6e6; }
.wait a { font-size: 11.5px; color: var(--blue); white-space: nowrap; }
.wait a.done { color: #ddd; border: 1px solid #3a3a3a; border-radius: 6px; padding: 1px 8px; }
.proj { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #1f1f1f; }
.proj i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.proj i.g { background: var(--green); }
.proj i.y { background: var(--yellow); }
.proj b { font-weight: 500; color: #eee; }
.proj code { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj span { margin-left: auto; color: var(--dim); font-size: 12px; white-space: nowrap; }
.rev { color: #ccc; }
.pass { font-family: var(--mono); font-size: 11px; color: var(--green); border: 1px solid #23542e; border-radius: 4px; padding: 0 6px; margin-right: 6px; }
.fig-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap; }
.strip p { color: var(--muted); font-size: 14px; }
.strip ul { list-style: none; display: flex; gap: 48px; flex-wrap: wrap; }
.strip li { font-size: 22px; font-weight: 600; letter-spacing: -.03em; color: #cfcfcf; }

/* Stats */
.stats { border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; }
.stat { padding: 48px 24px; border-right: 1px solid var(--line); }
.stat:first-child { border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(44px, 6vw, 64px); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.stat span { display: block; margin-top: 12px; color: var(--dim); font-size: 14px; }

/* Sections */
.section { padding: 120px 0; border-bottom: 1px solid var(--line); }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -.045em; font-weight: 600; }
h2.huge { font-size: clamp(44px, 8vw, 96px); line-height: 1; letter-spacing: -.06em; }
.dim { color: #5c5c5c; }
h3 { font-size: 20px; letter-spacing: -.02em; font-weight: 600; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.cell { padding: 36px 32px 40px; border-right: 1px solid var(--line-2); background: var(--card); }
.cell:last-child { border-right: 0; }
.num { font-family: var(--mono); font-size: 13px; color: var(--muted); display: block; margin-bottom: 40px; }
.cell p { margin-top: 12px; color: var(--dim); font-size: 15px; }

.panes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #262626; border: 1px solid #262626; border-radius: 12px; overflow: hidden; margin-top: 24px; }
.mini { background: var(--term); min-width: 0; }
.mh { font-size: 12px; font-weight: 600; color: #f1d27a; background: #161616; padding: 5px 12px; border-bottom: 1px solid #262626; }
.mini pre { font-size: 12px; line-height: 1.65; color: #c8c8c8; padding: 12px 14px 16px; white-space: pre; overflow: hidden; min-height: 92px; }

/* Features */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 64px 0; border-top: 1px solid var(--line);
}
.feature:first-of-type { margin-top: 56px; }
.f-text p { margin-top: 14px; color: var(--dim); font-size: 17px; max-width: 460px; }
.f-text h3 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.035em; }
.card { border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); padding: 20px; font-size: 14px; }
.card-h { font-weight: 600; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.chat { padding: 12px 14px; border-radius: 10px; max-width: 88%; }
.chat.me { background: var(--fg); color: #000; margin-left: auto; border-bottom-right-radius: 3px; }
.chat.bot { background: #161616; border: 1px solid #2a2a2a; margin-top: 12px; border-bottom-left-radius: 3px; }
.chat.bot b { font-family: var(--mono); font-weight: 500; }
.doc ul { list-style: none; }
.doc li { padding: 10px 0; border-top: 1px solid #1f1f1f; display: flex; gap: 12px; }
.doc li span { width: 14px; text-align: center; flex: none; }
.timeline > div { display: flex; gap: 16px; padding: 10px 0; border-top: 1px solid #1f1f1f; color: var(--dim); }
.timeline > div:first-child { border-top: 0; }
.timeline code { color: var(--fg); min-width: 48px; }
.timeline .hl span { color: var(--fg); }
.bounds > div { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid #1f1f1f; color: #d4d4d4; }
.bounds > div:first-child { border-top: 0; }
.no, .yes { font-family: var(--mono); width: 14px; flex: none; text-align: center; }
.no { color: var(--red); }
.yes { color: var(--green); }
.yes-row { color: var(--fg) !important; }

/* Decide */
.decide .cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid var(--line-2); }
.cols3 > div { padding: 28px 28px 0 0; }
.cols3 > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.cols3 h4 { font-size: 16px; font-weight: 600; }
.cols3 p { margin-top: 8px; color: var(--dim); font-size: 15px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; font-size: 17px; font-weight: 500;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--dim); padding: 0 0 22px; max-width: 640px; }

/* Closing */
.closing { padding: 140px 0; text-align: center; border-bottom: 1px solid var(--line); }
.center { justify-content: center; }

.foot-links { display: flex; gap: 20px; color: var(--dim); }
.foot-links a:hover { color: var(--fg); }
.foot-in { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; padding-bottom: 40px; font-size: 13px; gap: 16px; flex-wrap: wrap; }

/* Tablet */
@media (max-width: 900px) {
  .win-body { grid-template-columns: 1fr; }
  .term { border-right: 0; border-bottom: 1px solid #262626; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr; }
  .cell { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .cell:last-child { border-bottom: 0; }
  .num { margin-bottom: 20px; }
  .panes { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .faq-wrap { grid-template-columns: 1fr; gap: 24px; }
  .decide .cols3 { grid-template-columns: 1fr; }
  .cols3 > div, .cols3 > div + div { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Phone */
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .br-lg { display: none; }
  .hero { padding: 72px 0 48px; }
  .window { margin-top: 48px; border-radius: 10px; }
  .hide-sm { display: none; }
  .lights { display: none; }
  .tab { padding: 0 10px; font-size: 11.5px; }
  .t { font-size: 10.5px; padding: 12px; }
  .win-body { min-height: 0; }
  .btn { width: 100%; justify-content: center; }
  .stat { padding: 32px 16px; }
  .strip ul { gap: 24px; }
  .strip li { font-size: 18px; }
  .section { padding: 80px 0; }
  .panes { grid-template-columns: 1fr; }
  .mini pre { min-height: 0; }
  .closing { padding: 96px 0; }
}

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

.brand .mark { flex: none; display: block; }
