/* ─── Theme & Reset ───────────────────────────────────────────── */
:root {
  --background: oklch(100% 0 0);
  --foreground: oklch(10% 0 0);
  --primary: #272727;
  --primary-foreground: oklch(100% 0 0);
  --muted: oklch(95% 0 0);
  --muted-foreground: oklch(45% 0 0);
  --border: oklch(85% 0 0);
  --radius: 0;
  --font: "JetBrains Mono", "IBM Plex Mono", "Roboto Mono", "Courier New", monospace;
  --font-brand: "Montserrat Alternates", sans-serif;
  --brand: #272727;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { background: var(--background); font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ─── Utility ─────────────────────────────────────────────────── */
.section-inner { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .section-inner { padding: 0 24px; } }

/* ─── lp-label ────────────────────────────────────────────────── */
.lp-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.lp-label::before { content: "▸"; color: var(--foreground); }

/* ─── lp-h2 ───────────────────────────────────────────────────── */
.lp-h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ─── section-sub ─────────────────────────────────────────────── */
.section-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted-foreground);
}

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 10px 20px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
}
.btn-primary:hover { background: color-mix(in oklab, var(--primary) 85%, transparent); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid color-mix(in oklab, var(--brand) 40%, transparent);
  background: transparent;
  color: var(--foreground);
  padding: 10px 20px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.2s;
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--foreground); }

/* ─── Nav ─────────────────────────────────────────────────────── */
.nav {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--background);
}
.nav-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-left  { display: flex; align-items: center; gap: 24px; }
.nav-right { display: flex; align-items: center; gap: 24px; }

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--foreground);
}
.logo-text {
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0;
}
.nav-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link {
  color: var(--foreground);
  font-size: 13px;
  display: inline-block;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--foreground);
  transition: width 0.3s cubic-bezier(0, 0, 0.2, 1);
}
.nav-link:hover::after { width: 100%; }

/* ─── Crosshair corners ───────────────────────────────────────── */
.crosshair {
  pointer-events: none;
  width: 12px;
  height: 12px;
  position: absolute;
}
.crosshair::before, .crosshair::after {
  content: "";
  position: absolute;
  background: #cecece;
}
.crosshair::before { width: 1px; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); }
.crosshair::after  { height: 1px; top: 50%; left: 0; right: 0; transform: translateY(-50%); }

/* ─── Diagram box ─────────────────────────────────────────────── */
.diagram-box {
  position: relative;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 16px;
}
.diagram-svg { display: block; height: auto; width: 100%; }
.diagram-caption {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted-foreground);
  font-family: var(--font);
}

/* ─── Hero ────────────────────────────────────────────────────── */
.hero-section {
  padding: 48px 24px 64px;
}
@media (min-width: 768px) { .hero-section { padding: 80px 24px 56px; } }
.hero-inner {
  max-width: 1152px;
  margin: 0 auto;
  display: grid;
  align-items: center;
  gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1fr 1.1fr; } }

.hero-h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 6.4vw, 68px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}
.hero-sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted-foreground);
  margin-bottom: 28px;
}
@media (min-width: 640px) { .hero-sub { font-size: 17px; } }

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
@media (min-width: 480px) { .hero-ctas { flex-direction: row; } }

.hero-note {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-bottom: 24px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  padding: 6px 12px;
  font-size: 12px;
  color: var(--muted-foreground);
  transition: border-color 0.2s;
  cursor: default;
}
.pill:hover { border-color: var(--foreground); }

/* ─── Strip ───────────────────────────────────────────────────── */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: oklch(99% 0 0);
  padding: 20px 24px;
}
.strip-inner {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.strip-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  opacity: 0.55;
}
.strip-items span {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* ─── Features ────────────────────────────────────────────────── */
.features-section {
  padding: 80px 24px;
  border-bottom: 1px solid var(--border);
}
.section-header { margin-bottom: 48px; }
.section-header .lp-label { margin-bottom: 16px; }
.section-header .lp-h2   { margin-bottom: 16px; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  overflow: hidden;
}
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--background);
  padding: 32px;
}
.feat-diagram {
  display: flex;
  height: 96px;
  align-items: center;
}
.feat-diagram-inner { width: 100%; }
.feat-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  margin: 0;
}
.feat-title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}
.feat-body {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted-foreground);
  margin: 0;
}

/* ─── Stats section ───────────────────────────────────────────── */
.stats-section {
  background: oklch(98% 0 0);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
}
.stats-inner {
  max-width: 1152px;
  margin: 0 auto;
  display: grid;
  align-items: center;
  gap: 56px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .stats-inner { grid-template-columns: 1fr 1fr; } }

.stats-left .lp-label { margin-bottom: 16px; }
.stats-left .lp-h2   { margin-bottom: 16px; }
.stats-left .section-sub { margin-bottom: 32px; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.stat-num {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-title { font-size: 13px; font-weight: 500; margin: 6px 0 2px; }
.stat-sub   { font-size: 11px; color: var(--muted-foreground); }

/* ─── Steps ───────────────────────────────────────────────────── */
.steps-section {
  padding: 80px 24px;
  border-bottom: 1px solid var(--border);
}
.steps-section .section-header { margin-bottom: 40px; }

.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
  color: var(--muted-foreground);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.step:hover .step-num {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

.step-title { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 6px; }
.step-desc  { font-size: 14px; color: var(--muted-foreground); line-height: 1.65; max-width: 560px; }

/* ─── Download ────────────────────────────────────────────────── */
.download-section { padding: 80px 24px; }

.download-box {
  position: relative;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 48px;
}
@media (min-width: 900px) { .download-box { grid-template-columns: 1fr 1fr; } }

.download-left .lp-label { margin-bottom: 16px; }
.download-left .lp-h2   { margin-bottom: 16px; }
.download-left .section-sub { margin-bottom: 28px; }

.download-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.download-req  { font-size: 11px; color: var(--muted-foreground); margin-bottom: 24px; }
.download-legal {
  font-size: 11px;
  color: var(--muted-foreground);
  line-height: 1.7;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.download-legal strong { color: var(--foreground); }

/* ─── Terminal mock ───────────────────────────────────────────── */
.terminal {
  border: 1px solid var(--border);
  font-family: var(--font);
}
.terminal-bar {
  background: oklch(96% 0 0);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tdot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.ttitle { flex: 1; text-align: center; font-size: 11px; color: var(--muted-foreground); }
.terminal-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.t-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  padding: 8px 10px;
  border: 1px solid var(--border);
}
.t-dot  { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.t-name { font-weight: 500; flex: 1; }
.t-meta { color: var(--muted-foreground); font-size: 11px; }
.t-badge { font-size: 10px; padding: 2px 8px; border: 1px solid; }
.t-ok   { border-color: #d1fae5; background: #f0fdf4; color: #15803d; }
.t-pend { border-color: #fef08a; background: #fefce8; color: #a16207; }
.t-divider { border-top: 1px dashed var(--border); margin: 4px 0; }
.t-line { font-size: 11px; }
.t-dim  { color: var(--muted-foreground); }

/* ─── Footer ──────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-brand { flex: 1; min-width: 180px; }
.footer-tagline { font-size: 12px; color: var(--muted-foreground); line-height: 1.65; margin-top: 10px; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 120px; }
.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 4px;
}
.footer-col a { font-size: 13px; color: var(--muted-foreground); position: relative; display: inline-block; }
.footer-col a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--foreground);
  transition: width 0.3s cubic-bezier(0, 0, 0.2, 1);
}
.footer-col a:hover { color: var(--foreground); }
.footer-col a:hover::after { width: 100%; }

.footer-bottom {
  max-width: 1152px;
  margin: 0 auto;
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted-foreground);
  flex-wrap: wrap;
  gap: 8px;
}

/* ─── Animations ──────────────────────────────────────────────── */
@keyframes lpFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both lpFadeUp; }
