/* ---------- design tokens ---------------------------------------- */
:root {
  --bg:          #0a0a0c;
  --surface:     #121216;
  --surface-2:  rgba(255, 255, 255, 0.03);
  --border:     rgba(255, 255, 255, 0.08);
  --border-hi:  rgba(255, 255, 255, 0.16);
  --text:        #f4f4f5;
  --text-muted:  #a1a1aa;
  --text-dim:    #71717a;
  --accent:      #dc2626;
  --accent-2:    #ef4444;
  --accent-soft: rgba(220, 38, 38, 0.14);

  --radius-sm:  8px;
  --radius:    12px;
  --radius-lg: 20px;

  --maxw: 1120px;
  --pad:  clamp(20px, 4vw, 32px);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

/* ---------- base ------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--text); text-decoration: none; transition: color 150ms ease; }
a:hover { color: var(--accent-2); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: white;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- nav -------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-name { font-size: 15px; }
.brand-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.nav nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav nav a { color: var(--text-muted); }
.nav nav a:hover { color: var(--text); }

/* ---------- hero ------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(56px, 10vw, 120px);
  padding-bottom: clamp(48px, 8vw, 96px);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(220, 38, 38, 0.18), transparent 70%),
    radial-gradient(40% 30% at 80% 30%, rgba(120, 0, 0, 0.10), transparent 80%);
  z-index: -1;
  pointer-events: none;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin: 0 0 28px;
  background: var(--surface-2);
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  font-weight: 700;
  max-inline-size: 22ch;
  text-wrap: balance;
}
.hl {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-muted);
  max-inline-size: 58ch;
  margin: 0 0 36px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 120ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: white; }

.btn-ghost {
  background: transparent;
  border-color: var(--border-hi);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.meta {
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- generic section -------------------------------------- */
section { padding: clamp(64px, 9vw, 112px) 0; }

.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}
.section-lede {
  color: var(--text-muted);
  max-inline-size: 56ch;
  margin: 0 0 48px;
  font-size: clamp(15px, 1.2vw, 17px);
  text-wrap: pretty;
}
.hero-lede { text-wrap: pretty; }

/* ---------- anti-feature grid ----------------------------------- */
.anti { border-top: 1px solid var(--border); }
.anti-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.anti-grid li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 15px;
  color: var(--text);
}
.x {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  flex-shrink: 0;
}
.x::before,
.x::after {
  content: "";
  position: absolute;
  inset: 50% 4px auto 4px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 1px;
}
.x::before { transform: rotate(45deg); }
.x::after  { transform: rotate(-45deg); }

/* ---------- features grid --------------------------------------- */
.features { border-top: 1px solid var(--border); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature {
  padding: 28px;
  background: var(--bg);
  transition: background 200ms ease;
}
.feature:hover { background: var(--surface); }
.feature h3 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- install --------------------------------------------- */
.install { border-top: 1px solid var(--border); }
.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.install-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.install-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.install-card > p {
  color: var(--text-muted);
  font-size: 14px;
}
.install-card .btn { margin-top: 4px; }
.install-card .fineprint {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.install-card pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 14px 0 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  -webkit-overflow-scrolling: touch;
}
.install-card pre code { font-family: inherit; }
code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text);
}

/* ---------- how it's built -------------------------------------- */
.how { border-top: 1px solid var(--border); }
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.how-grid h3 {
  margin: 0 0 6px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}
.how-grid p {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.55;
}
.how-grid a {
  color: var(--text);
  border-bottom: 1px solid var(--border-hi);
}
.how-grid a:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* ---------- footer ---------------------------------------------- */
.foot {
  border-top: 1px solid var(--border);
  padding: 36px 0 56px;
  color: var(--text-muted);
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
}
.foot p { display: inline-flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.foot a { color: var(--text-muted); }
.foot a:hover { color: var(--text); }

/* ---------- reduced motion -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- mobile niceties ------------------------------------- */
@media (max-width: 540px) {
  .nav nav { gap: 14px; }
  .nav nav a:not(:last-child) { display: none; }
  .cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
