/* ==========================================================================
   SnapQio — premium dark marketing site
   Pure CSS · no frameworks · zero external requests · self-hosted Inter.
   Design values calibrated against linear.app / raycast.com / screen.studio.
   ========================================================================== */

/* ---------- Fonts (self-hosted, swap) ---------- */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/Inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/Inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/Inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/Inter-700.woff2") format("woff2"); }

/* ---------- Design tokens ---------- */
:root {
  color-scheme: dark;
  --bg:            #08090c;
  --bg-raised:     #0d0e12;
  --surface:       rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.055);
  --border:        rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text:          #f7f8f8;
  --text-2:        #b4bcc8;
  --text-3:        #8a8f98;
  --accent:        #7c8aff;
  --accent-hot:    #a5afff;
  --accent-soft:   rgba(124, 138, 255, 0.72);
  --accent-glow:   rgba(124, 138, 255, 0.13);
  --green:         #3fdd9e;
  --red:           #ff5f57;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", "Segoe UI Mono", Consolas, monospace;

  --text-hero:  clamp(2.5rem, 1.2rem + 5vw, 4.25rem);
  --text-h2:    clamp(1.875rem, 1rem + 3vw, 3rem);
  --text-h3:    1.25rem;
  --text-lead:  clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  --text-body:  0.9375rem;
  --text-small: 0.8125rem;
  --text-micro: 0.75rem;

  --r-pill: 9999px;
  --r-card: 16px;
  --r-inner: 12px;
  --container: 1120px;
  --nav-h: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(124, 138, 255, 0.35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2 { font-weight: 600; letter-spacing: -0.022em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); font-weight: 600; letter-spacing: -0.012em; line-height: 1.33; }
p  { text-wrap: pretty; }
.dim { color: var(--text-3); }
kbd {
  font: 500 0.78em var(--font-mono);
  background: var(--surface-hover); border: 1px solid var(--border-strong);
  border-bottom-width: 2px; border-radius: 6px; padding: 0.14em 0.5em;
  white-space: nowrap;
}

.container { width: min(100% - 3rem, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.eyebrow {
  display: inline-block;
  font-size: var(--text-micro); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-soft); margin-bottom: 14px;
}
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-3); font-size: var(--text-lead); margin-top: 16px; letter-spacing: -0.011em; }

.grad-text {
  background: linear-gradient(120deg, #e8eaff 0%, var(--accent-hot) 55%, #6ee7f5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 300;
  background: var(--accent); color: #0a0b0e; font-weight: 600;
  padding: 10px 16px; border-radius: 10px; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100; height: var(--nav-h);
  background: linear-gradient(rgba(10, 11, 14, 0), rgba(10, 11, 14, 0));
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: linear-gradient(rgba(10, 11, 14, 0.8), rgba(10, 11, 14, 0.72));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.06rem; letter-spacing: -0.012em; }
.brand svg { width: 24px; height: 24px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: var(--text-small); font-weight: 500; color: var(--text-3); }
.nav-links a { transition: color 0.18s; padding: 6px 2px; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 11px; width: 20px; height: 1.8px; border-radius: 2px;
  background: var(--text); transition: transform 0.25s var(--ease-out), opacity 0.2s, background 0.2s;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { left: 0; top: -6px; }
.nav-toggle span::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: var(--text-small); font-weight: 600; line-height: 1;
  padding: 12px 22px; border-radius: var(--r-pill);
  transition: transform 0.2s var(--ease-out), background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 15px; height: 15px; flex: none; }
/* Primary: near-white pill — on near-black, white outguns any colored button */
.btn-primary {
  background: #edeef2; color: #0a0b0e;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.07), 0 3px 8px rgba(0, 0, 0, 0.25);
}
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
/* Accent: reserved for the Pro purchase action */
.btn-accent {
  background: linear-gradient(180deg, #8b97ff, #6a79f7); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 18px -4px rgba(106, 121, 247, 0.55);
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 26px -6px rgba(106, 121, 247, 0.7); }
/* Glass chip secondary */
.btn-ghost {
  background: rgba(255, 255, 255, 0.05); color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: var(--text-body); }
.btn .sub { font-weight: 500; opacity: 0.6; font-size: 0.92em; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: clip; text-align: center;
  padding-top: calc(var(--nav-h) + clamp(56px, 10vw, 110px));
  padding-bottom: clamp(40px, 7vw, 80px);
}
.hero::before { /* aurora — multi-stop radial pinned top-center */
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(85% 50% at 50% 5%,
      rgba(124, 138, 255, 0.13) 0%,
      rgba(222, 226, 255, 0.07) 46%,
      rgba(241, 242, 255, 0.02) 75%,
      transparent 100%);
  pointer-events: none;
  animation: drift 26s ease-in-out infinite alternate;
}
.hero::after { /* white ambient glow */
  content: ""; position: absolute; width: 800px; height: 500px; z-index: -1;
  left: 50%; top: -10%; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, 0.045) 0%, transparent 90%);
  pointer-events: none;
}
@keyframes drift { from { transform: translate(-3%, -2%) scale(1); } to { transform: translate(3%, 2%) scale(1.05); } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-micro); font-weight: 600; color: var(--text-2);
  padding: 7px 14px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  margin-bottom: 26px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.hero h1 { max-width: 15ch; margin-inline: auto; }
.hero .lede {
  max-width: 560px; margin: 22px auto 0;
  font-size: var(--text-lead); line-height: 1.5; color: var(--text-3);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center;
  margin-top: 22px; font-size: var(--text-micro); color: var(--text-3);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 13px; height: 13px; color: var(--green); flex: none; }

/* Hero media frame — gradient border + fade into bg */
.hero-visual { margin-top: clamp(48px, 7vw, 84px); position: relative; }
.hero-visual .glow {
  position: absolute; inset: 10% 6% -6%; z-index: -1; border-radius: 50%;
  background: radial-gradient(ellipse 55% 50% at 50% 42%, rgba(124, 138, 255, 0.16), transparent 70%);
  filter: blur(40px);
}
.frame {
  position: relative; border-radius: 18px; background: #101116; overflow: hidden;
}
.frame::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 40%, rgba(124, 138, 255, 0.25) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.frame svg { width: 100%; height: auto; display: block; }
.hero-visual .frame {
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}

/* ---------- Stats strip ---------- */
.stats { border-block: 1px solid var(--border); background: rgba(255, 255, 255, 0.015); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 30px; text-align: center; }
.stat strong { display: block; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.022em; font-variant-numeric: tabular-nums; }
.stat span { font-size: var(--text-micro); color: var(--text-3); }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 12px; grid-template-columns: repeat(6, 1fr); }
.card {
  position: relative; border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
  padding: 26px 24px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease-out);
  overflow: hidden;
}
.card:hover { border-color: var(--border-strong); background: var(--surface-hover); transform: translateY(-2px); }
.card .icon {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(124, 138, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(124, 138, 255, 0.22);
  margin-bottom: 16px;
}
.card .icon svg { width: 19px; height: 19px; color: var(--accent-hot); }
.card h3 { margin-bottom: 6px; }
.card p { font-size: var(--text-body); color: var(--text-3); }
.card .tag {
  position: absolute; top: 18px; right: 18px;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--r-pill);
}
.tag-pro { background: rgba(124, 138, 255, 0.12); color: var(--accent-hot); box-shadow: inset 0 0 0 1px rgba(124, 138, 255, 0.3); }
.tag-free { background: rgba(63, 221, 158, 0.08); color: var(--green); box-shadow: inset 0 0 0 1px rgba(63, 221, 158, 0.25); }
.cell   { grid-column: span 2; }
.cell-wide { grid-column: span 3; }
.cell-hero { grid-column: span 4; }
.card-media { margin: -26px -24px 18px; border-bottom: 1px solid var(--border); overflow: hidden; background: #0b0d13; }
.card-media svg { width: 100%; height: auto; display: block; }

/* ---------- Deep-dive rows ---------- */
.feature-row { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(72px, 9vw, 120px); }
.feature-row:nth-of-type(even) .copy { order: 2; }
.feature-row h3 { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.1rem); font-weight: 600; letter-spacing: -0.022em; line-height: 1.1; margin-bottom: 14px; }
.feature-row .copy > p { color: var(--text-3); font-size: 1rem; max-width: 46ch; }
.feature-row ul { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.feature-row li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-body); color: var(--text-2); }
.feature-row li .check {
  width: 20px; height: 20px; flex: none; margin-top: 1px;
  display: grid; place-items: center; border-radius: 6px;
  background: var(--surface-hover); color: var(--accent-hot);
}
.feature-row li .check svg { width: 11px; height: 11px; }
.feature-media { position: relative; }
.feature-media .blob {
  position: absolute; inset: 12%; z-index: -1; border-radius: 50%;
  background: var(--accent-glow); filter: blur(60px);
}

/* ---------- "Plus everything" chips ---------- */
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.chip {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--text-small); font-weight: 500; color: var(--text-2);
  padding: 13px 16px; border-radius: var(--r-inner);
  background: var(--surface); border: 1px solid var(--border);
}
.chip svg { width: 15px; height: 15px; color: var(--accent-soft); flex: none; }

/* ---------- Quote band ---------- */
.band { text-align: center; }
.band blockquote {
  font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem); font-weight: 600;
  letter-spacing: -0.022em; line-height: 1.25; max-width: 22ch; margin-inline: auto;
}
.band .who { margin-top: 18px; color: var(--text-3); font-size: var(--text-small); }

/* ---------- Tables (comparison, specs, plans) ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-card); border: 1px solid var(--border); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; min-width: 620px; font-size: var(--text-body); }
.t th, .t td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.t thead th {
  font-size: var(--text-micro); letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-3); font-weight: 600; white-space: nowrap;
}
.t tbody tr:last-child td, .t tbody tr:last-child th { border-bottom: 0; }
.t tbody th { font-weight: 500; color: var(--text-2); }
.t td.yes { color: var(--green); font-weight: 500; }
.t td.no { color: var(--text-3); opacity: 0.6; }
.t .hl { background: rgba(124, 138, 255, 0.05); }
.t .hl-head { color: var(--accent-hot) !important; }
.t .group th {
  font-size: var(--text-micro); letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-3); padding-top: 22px; font-weight: 600;
}
.t td { color: var(--text-2); }
.t strong { color: var(--text); font-weight: 600; }
.t .price-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
.t .sticky-col { position: sticky; left: 0; background: #0b0c10; z-index: 1; }

/* ---------- Pricing ---------- */
.seg-wrap { display: flex; justify-content: center; margin-bottom: 40px; }
.seg {
  display: inline-flex; position: relative; padding: 4px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border);
}
.seg button {
  position: relative; z-index: 1; padding: 9px 22px; border-radius: var(--r-pill);
  font-size: var(--text-small); font-weight: 600; color: var(--text-3);
  transition: color 0.2s;
}
.seg button[aria-pressed="true"] { color: var(--text); }
.seg .thumb {
  position: absolute; top: 4px; bottom: 4px; border-radius: var(--r-pill);
  background: #191b22;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: left 0.25s var(--ease-out), width 0.25s var(--ease-out);
}
.seg .mini {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.03em;
  background: rgba(63, 221, 158, 0.15); color: var(--green);
  padding: 2px 6px; border-radius: var(--r-pill); margin-left: 6px;
  box-shadow: inset 0 0 0 1px rgba(63, 221, 158, 0.25);
}

.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 880px; margin-inline: auto; align-items: stretch; }
.plan {
  border-radius: 20px; padding: 32px 30px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
  display: flex; flex-direction: column; position: relative;
}
.plan-pro { background: #101116; border: 0; }
.plan-pro::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04) 40%, rgba(124, 138, 255, 0.4) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.plan-flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 5px 14px; border-radius: var(--r-pill);
  background: linear-gradient(180deg, #8b97ff, #6a79f7); color: #fff;
  box-shadow: 0 4px 16px rgba(106, 121, 247, 0.45); white-space: nowrap;
}
.plan .plan-name { font-size: var(--text-micro); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.plan-pro .plan-name { color: var(--accent-soft); }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; min-height: 56px; }
.price { font-size: clamp(2.5rem, 4vw, 3.25rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-per { color: var(--text-3); font-size: var(--text-body); }
.price-note { font-size: var(--text-small); color: var(--text-3); min-height: 1.5em; margin-top: 8px; }
.plan ul { list-style: none; margin: 26px 0 30px; display: grid; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-body); color: var(--text-2); }
.plan li svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--green); }
.plan li.lead-item { color: var(--text); font-weight: 500; }
.plan li strong { color: var(--text); font-weight: 600; }
.guarantee { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; font-size: var(--text-small); color: var(--text-3); }
.guarantee svg { width: 15px; height: 15px; color: var(--green); }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px; font-weight: 500; font-size: 1rem; cursor: pointer; list-style: none;
  transition: color 0.2s;
}
.faq summary:hover { color: var(--accent-hot); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 20px; font-weight: 400; color: var(--text-3);
  transition: rotate 0.25s var(--ease-out); flex: none; line-height: 1;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq .a { padding: 0 4px 22px; color: var(--text-3); font-size: var(--text-body); max-width: 65ch; }
.faq .a a { color: var(--accent-hot); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Final CTA ---------- */
.cta-final { position: relative; overflow: clip; text-align: center; }
.cta-final::before {
  content: ""; position: absolute; inset: auto -10% -40%; height: 120%; z-index: -1;
  background: radial-gradient(85% 60% at 50% 100%, rgba(124, 138, 255, 0.12) 0%, rgba(222, 226, 255, 0.04) 55%, transparent 100%);
  pointer-events: none;
}
.cta-final h2 { max-width: 20ch; margin-inline: auto; }
.cta-final p { color: var(--text-3); margin-top: 16px; font-size: var(--text-lead); }

/* ---------- Download page ---------- */
.dl-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 780px; margin: 40px auto 0; }
.dl-card {
  border-radius: var(--r-card); padding: 30px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}
.dl-card h2 { font-size: 1.25rem; letter-spacing: -0.012em; }
.dl-card .meta { color: var(--text-3); font-size: var(--text-small); margin: 6px 0 22px; }
.dl-card .hash {
  margin-top: 16px; font: 400 0.64rem var(--font-mono); color: var(--text-3);
  word-break: break-all; opacity: 0.75;
}
.steps { max-width: 640px; margin: 56px auto 0; display: grid; gap: 12px; counter-reset: step; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 20px 22px;
}
.step::before {
  counter-increment: step; content: counter(step);
  width: 28px; height: 28px; flex: none; display: grid; place-items: center;
  border-radius: 9px; font-weight: 600; font-size: var(--text-small);
  background: rgba(124, 138, 255, 0.1); color: var(--accent-hot);
  box-shadow: inset 0 0 0 1px rgba(124, 138, 255, 0.25);
}
.step p { color: var(--text-3); font-size: var(--text-body); }
.step strong { color: var(--text); font-weight: 600; }
.arch-hint { text-align: center; color: var(--accent-hot); font-size: var(--text-small); margin-top: 18px; }

/* ---------- Prose (legal, compare) ---------- */
.prose { max-width: 720px; margin-inline: auto; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); margin-bottom: 10px; }
.prose .updated { color: var(--text-3); font-size: var(--text-small); margin-bottom: 40px; }
.prose h2 { font-size: 1.35rem; margin: 40px 0 14px; }
.prose h3 { font-size: 1.05rem; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--text-2); font-size: var(--text-body); }
.prose p { margin-bottom: 14px; max-width: 68ch; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 16px; display: grid; gap: 7px; }
.prose a { color: var(--accent-hot); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }
.prose .table-wrap { margin: 22px 0; }
.prose table.t { min-width: 520px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding-block: 56px 36px; background: rgba(255, 255, 255, 0.012); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer .brand { margin-bottom: 14px; }
.footer .tagline { color: var(--text-3); font-size: var(--text-small); max-width: 30ch; }
.footer h3 { font-size: var(--text-micro); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); font-weight: 600; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 9px; font-size: var(--text-small); }
.footer ul a { color: var(--text-2); transition: color 0.18s; }
.footer ul a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: var(--text-3); font-size: var(--text-micro);
}
.footer-bottom .ver { font-family: var(--font-mono); }

/* ---------- 404 ---------- */
.err { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-top: var(--nav-h); }
.err .code { font-size: clamp(4.5rem, 15vw, 8rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }

/* ---------- Reveal (js-gated: without JS everything stays visible) ---------- */
.js .reveal { opacity: 0; translate: 0 20px; transition: opacity 0.6s var(--ease-out), translate 0.6s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; translate: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell, .cell-wide, .cell-hero { grid-column: span 2; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row:nth-of-type(even) .copy { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .chips { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8, 9, 12, 0.97);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 18px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform 0.25s var(--ease-out), opacity 0.25s, visibility 0.25s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 2px; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .dl-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-cta .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .chips { grid-template-columns: 1fr; }
  .seg button { padding: 9px 14px; }
}
