:root {
  --bg:        #0a0d11;
  --bg-elev:   #11161d;
  --bg-soft:   #161c25;
  --line:      #232a35;
  --line-soft: #1b212b;
  --text:      #e6edf3;
  --muted:     #7d8694;
  --dim:       #5c6371;

  --green: #3fb950;
  --green-strong: #2ea043;
  --blue: #58a6ff;
  --purple: #bc8cff;
  --pink: #ff7b72;

  --accent: #58a6ff;

  --radius: 14px;
  --radius-sm: 10px;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
img { display: block; max-width: 100%; }
a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 5px;
  letter-spacing: -0.01em;
}

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

/* ── header ───────────────────────────────────────── */

.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 13, 17, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  flex-shrink: 0;
}
.brand-name { letter-spacing: -0.01em; }

.top-nav { display: flex; align-items: center; gap: 28px; }
.top-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.top-nav a:hover { color: var(--text); text-decoration: none; }
.top-nav a.cta {
  background: var(--text);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.top-nav a.cta:hover { background: #fff; }
.top-nav a.ghost {
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 8px;
  color: var(--text);
}

/* ── shared ───────────────────────────────────────── */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
h1 {
  font-family: var(--sans);
  font-size: clamp(48px, 7.5vw, 88px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  max-width: 1060px;
}
h1 .h1-soft,
h1 .h1-strong {
  display: block;
}
h1 .h1-soft {
  color: var(--muted);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 34px);
}
h1 .h1-strong {
  color: var(--text);
}

.h1-mark {
  display: inline-block;
  vertical-align: -0.12em;
  width: 0.88em;
  height: 0.88em;
  margin-right: 0.18em;
}
.h1-mark-brand {
  display: inline-block;
  width: 0.82em;
  height: 0.82em;
  vertical-align: -0.14em;
  margin-right: 0.16em;
}
.h1-mark-brand img { display: block; width: 100%; height: 100%; }
.h1-vs {
  display: block;
  font-family: var(--mono);
  font-size: 0.22em;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0.7em 0 0.5em;
  padding-left: 0.4em;
  position: relative;
}
.h1-vs::before {
  content: "";
  position: absolute;
  left: 2.4em;
  top: 50%;
  width: 28px;
  height: 1px;
  background: var(--line);
}
.grad {
  background: linear-gradient(90deg, var(--blue) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  max-width: 820px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

section {
  padding: 100px 0;
  position: relative;
}
section + section { border-top: 1px solid var(--line-soft); }

.cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin: 22px 0 0;
}
.cta-row.center { justify-content: center; }
.cta {
  display: inline-flex; align-items: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
  letter-spacing: -0.005em;
}
.cta:hover { text-decoration: none; transform: translateY(-1px); }
.cta.primary {
  background: var(--text);
  color: var(--bg);
}
.cta.primary:hover { background: #fff; }
.cta.ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}
.cta.ghost:hover { background: var(--bg-elev); border-color: var(--muted); }

/* ── hero ─────────────────────────────────────────── */

.hero {
  padding: 112px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(88, 166, 255, 0.10), transparent 45%),
    radial-gradient(circle at 88% 0%, rgba(88, 166, 255, 0.08), transparent 50%),
    radial-gradient(circle at 12% 95%, rgba(188, 140, 255, 0.07), transparent 50%);
  z-index: 0;
}
.hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero .wrap { position: relative; z-index: 1; max-width: 920px; text-align: left; }

.badge {
  display: inline-flex; align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.hero .lede {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
  max-width: 640px;
  margin: 0;
  line-height: 1.6;
  letter-spacing: -0.005em;
}

.meta-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 28px 0 0;
}
.meta-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  border: 1px solid;
  transition: transform 0.15s ease;
}
.meta-badge:hover { transform: translateY(-1px); }
.meta-badge.green  { background: rgba(63,185,80,0.08);   border-color: rgba(63,185,80,0.35); }
.meta-badge.blue   { background: rgba(88,166,255,0.08);  border-color: rgba(88,166,255,0.35); }
.meta-badge.purple { background: rgba(188,140,255,0.08); border-color: rgba(188,140,255,0.35); }
.meta-badge.yellow { background: rgba(210,153,34,0.08);  border-color: rgba(210,153,34,0.35); }
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
}
.dot-green  { background: var(--green); box-shadow: 0 0 12px var(--green); }
.dot-blue   { background: var(--blue);  box-shadow: 0 0 12px var(--blue); }
.dot-purple { background: var(--purple); box-shadow: 0 0 12px var(--purple); }
.dot-yellow { background: #d29922; box-shadow: 0 0 12px #d29922; }

/* ── shot band ────────────────────────────────────── */

.shot-band {
  padding: 0 0 100px;
  border-top: none;
}
.shot-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02),
    0 40px 80px -30px rgba(0,0,0,0.6),
    0 0 60px rgba(88, 166, 255, 0.08);
}
.shot-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.shot-bar .dot {
  width: 10px; height: 10px;
  box-shadow: none;
}
.shot-bar .d-r { background: #ff5f56; }
.shot-bar .d-y { background: #ffbd2e; }
.shot-bar .d-g { background: #27c93f; }
.shot-url {
  margin-left: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.shot-frame img { width: 100%; height: auto; display: block; }

/* ── why / vs ─────────────────────────────────────── */

.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}
.vs-col {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  position: relative;
}
.vs-col-strong {
  border-color: rgba(63, 185, 80, 0.4);
  background:
    linear-gradient(180deg, rgba(63, 185, 80, 0.06), transparent 60%),
    var(--bg-elev);
}
.vs-col h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0;
  color: var(--muted);
  margin: 0 0 18px;
}
.vs-col-strong h3 { color: var(--blue); }
.vs-mark {
  width: 18px;
  height: 18px;
  display: inline-block;
}
.vs-mark-brand {
  background: linear-gradient(140deg, #161b22 0%, #1f3a5f 100%);
  border: 1px solid var(--blue);
  color: var(--blue);
  border-radius: 5px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}
.vs-col ul { list-style: none; padding: 0; margin: 0; }
.vs-col li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.vs-col li:last-child { border-bottom: none; }
.vs-col-strong li::before {
  content: "→ ";
  color: var(--blue);
  font-weight: 600;
  margin-right: 4px;
}
.vs-col:not(.vs-col-strong) li {
  color: var(--muted);
  font-weight: 400;
}

/* ── onboarding ───────────────────────────────────── */

.step-grid {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.step:hover {
  border-color: var(--muted);
  transform: translateY(-2px);
}
.step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -22px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--dim);
  z-index: 2;
  width: 28px;
  height: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

/* ── features ─────────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 12px;
}
.feature {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature:hover {
  border-color: var(--muted);
  transform: translateY(-2px);
}
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  margin-bottom: 18px;
  color: var(--blue);
}
.feature-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ── screenshots ──────────────────────────────────── */

.shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}
.shot-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
}
.shot-grid img { width: 100%; height: auto; display: block; }
.shot-grid figcaption {
  padding: 14px 18px;
  font-size: 13px;
  font-family: var(--mono);
  color: var(--muted);
  letter-spacing: 0.02em;
  border-top: 1px solid var(--line);
}

/* ── privacy ──────────────────────────────────────── */

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}
.privacy-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.pc-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(88, 166, 255, 0.10);
  border: 1px solid rgba(88, 166, 255, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.privacy-card h3 { font-size: 17px; margin-bottom: 8px; }
.privacy-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ── self-host ────────────────────────────────────── */

.selfhost { background: linear-gradient(180deg, transparent, rgba(63,185,80,0.03)); }
.selfhost-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.selfhost h2 { margin-bottom: 14px; font-size: clamp(24px, 3vw, 32px); }
.selfhost .subtle {
  color: var(--muted);
  margin: 0 0 22px;
  font-size: 15px;
}
.codeblock {
  background: #050709;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text);
}
.codeblock .c-c { color: var(--dim); user-select: none; }
.codeblock .c-m { color: var(--green); }

/* ── cta band ─────────────────────────────────────── */

.cta-band {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(88, 166, 255, 0.08), transparent 60%);
}
.cta-brand { display: inline-flex; align-items: center; gap: 0.22em; }
.cta-mark { display: block; height: 1.6em; width: 1.6em; flex-shrink: 0; }
.cta-band h2 {
  margin: 0 auto 18px;
  max-width: 640px;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.1;
}
.cta-band-sub {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 32px;
  letter-spacing: -0.005em;
}

/* ── footer ───────────────────────────────────────── */

.bottom {
  padding: 40px 0;
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
}
.bottom-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.bottom .brand { display: inline-flex; }
.bottom .muted {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 13px;
  font-family: var(--mono);
}
.link-cols {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.link-cols a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.link-cols a:hover { color: var(--text); text-decoration: none; }

/* ── responsive ───────────────────────────────────── */

@media (max-width: 880px) {
  section { padding: 72px 0; }
  .hero { padding: 80px 0 56px; }
  .vs-grid,
  .privacy-grid,
  .step-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .shot-grid { grid-template-columns: 1fr; }
  .selfhost-grid { grid-template-columns: 1fr; gap: 28px; }
  .top-nav a:not(.cta):not(.ghost) { display: none; }
  .meta-row { gap: 14px; font-size: 12px; }
  .step:not(:last-child)::after { display: none; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .top-nav { gap: 8px; }
  .top-nav a.ghost { display: none; }
  .codeblock { font-size: 12px; padding: 16px 18px; }
  .bottom-grid { flex-direction: column; align-items: flex-start; }
}
