/* ═══════════════════════════════════════════════════════════════════
   ariacli.com — primary landing
   Design tokens + components. Zero framework. ~500 LOC.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* palette */
  --bg:            #09090b;
  --bg-1:          #0d0d12;
  --bg-2:          #121219;
  --surface:       #15151c;
  --surface-hi:    #1b1b24;
  --border:        #25252f;
  --border-hi:     #32323e;
  --fg:            #ededf0;
  --fg-2:          #b8b8c2;
  --fg-3:          #85858f;
  --fg-4:          #55555f;

  --accent:        oklch(75% 0.18 295);
  --accent-2:      oklch(68% 0.22 295);
  --accent-dim:    oklch(55% 0.16 295);
  --ok:            oklch(78% 0.15 155);
  --warn:          oklch(80% 0.17 75);
  --err:           oklch(72% 0.21 27);
  --info:          oklch(76% 0.14 220);

  /* type */
  --f-sans: "Inter var", Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  --f-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  /* measure */
  --page:   72rem;      /* 1152 */
  --gutter: clamp(1rem, 3vw, 2rem);

  /* motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* radii */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 14px;
  --r-xl: 20px;

  color-scheme: dark;
}

@supports (font-variation-settings: normal) {
  :root { --f-sans: "Inter var", Inter, system-ui, sans-serif; }
}

/* ═════ reset ═════ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-feature-settings: "cv11", "ss01", "ss03";
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; }
input, textarea, select, button { font-family: inherit; }
code, kbd, pre { font-family: var(--f-mono); font-size: 0.92em; }
pre { margin: 0; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection { background: color-mix(in oklch, var(--accent) 45%, transparent); color: #fff; }

/* ═════ ambient background ═════ */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.ambient__mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(45% 35% at 20% 10%, color-mix(in oklch, var(--accent) 30%, transparent) 0%, transparent 70%),
    radial-gradient(40% 30% at 85% 18%, color-mix(in oklch, #0ea5e9 24%, transparent) 0%, transparent 70%),
    radial-gradient(50% 40% at 60% 90%, color-mix(in oklch, var(--accent) 18%, transparent) 0%, transparent 70%);
  filter: blur(60px) saturate(1.2);
  opacity: 0.55;
}
.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 100%);
}
.ambient__noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.7'/></svg>");
}

/* ═════ nav ═════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem max(1rem, calc((100vw - var(--page)) / 2 + 1rem));
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  background: color-mix(in oklch, var(--bg) 75%, transparent);
  border-bottom: 1px solid color-mix(in oklch, var(--border) 80%, transparent);
}
.nav__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: 1rem;
}
.nav__logo { margin-right: 0.05rem; transform: translateY(2px); }
.nav__word { font-family: var(--f-sans); }
.nav__version {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--fg-3);
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  margin-left: 0.25rem;
}
.nav__links {
  display: flex;
  gap: 1.35rem;
  margin: 0 auto;
  font-size: 0.92rem;
  color: var(--fg-2);
}
.nav__links a { transition: color 0.18s var(--ease-out); }
.nav__links a:hover { color: var(--fg); }
.nav__cta .btn { padding: 0.45rem 0.85rem; font-size: 0.88rem; gap: 0.4rem; }
@media (max-width: 780px) {
  .nav__links { display: none; }
  .nav { gap: 0.8rem; }
}

/* ═════ buttons ═════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r);
  font-weight: 550;
  font-size: 0.93rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition:
    background 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out),
    color 0.22s var(--ease-out),
    transform 0.1s var(--ease-out);
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #0a0a10;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 10px 30px -10px color-mix(in oklch, var(--accent) 50%, transparent);
}
.btn--primary:hover { filter: brightness(1.05); }
.btn--secondary {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border-hi);
}
.btn--secondary:hover { background: var(--surface-hi); border-color: var(--fg-4); }
.btn--ghost {
  background: transparent;
  color: var(--fg-2);
  border-color: var(--border);
}
.btn--ghost:hover { color: var(--fg); border-color: var(--fg-4); }

/* ═════ main layout ═════ */
main > section {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) var(--gutter);
}
.section__head { max-width: 46rem; margin: 0 auto 2.5rem; text-align: center; }
.eyebrow {
  margin: 0 0 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
}
.section__head h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 680;
  letter-spacing: -0.028em;
  line-height: 1.1;
}
.section__head h2 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section__lead {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--fg-2);
  font-size: 1.02rem;
}

/* ═════ hero ═════ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(4rem, 10vw, 7rem) !important;
  padding-bottom: clamp(4rem, 10vw, 7rem) !important;
}
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.75rem 0.35rem 0.6rem;
  border: 1px solid color-mix(in oklch, var(--accent) 30%, var(--border));
  background: color-mix(in oklch, var(--accent) 8%, transparent);
  color: var(--fg-2);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.pulse-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 1.8s var(--ease-out) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 55%, transparent); }
  70%  { box-shadow: 0 0 0 8px color-mix(in oklch, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 0%, transparent); }
}
.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 6.2vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.hero__title em {
  font-style: italic;
  background: linear-gradient(90deg, var(--accent), #f0abfc 60%, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin: 0 0 1.7rem;
  max-width: 32rem;
  color: var(--fg-2);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.55;
}
.hero__sub strong { color: var(--fg); font-weight: 600; }
.hero__ctas { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 1.3rem 0 1.35rem; }
.hero__proof {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--fg-3);
}
.proof-badge {
  display: inline-block;
  padding: 0.12rem 0.55rem;
  margin: 0 0.15rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg-2);
  font-family: var(--f-mono);
  font-size: 0.76rem;
}

/* ═════ install card ═════ */
.install-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  max-width: 36rem;
  box-shadow: 0 18px 60px -20px rgba(0,0,0,0.5);
}
.install-card__tabs {
  display: flex;
  gap: 0;
  padding: 0 0.35rem;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
}
.install-card__tab {
  padding: 0.55rem 0.9rem;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--fg-3);
  position: relative;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  transition: color 0.2s var(--ease-out);
}
.install-card__tab[aria-selected="true"] { color: var(--fg); }
.install-card__tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.install-card__body { position: relative; padding: 0.95rem 1rem; }
.install-card__cmd {
  display: none;
  font-family: var(--f-mono);
  font-size: 0.95rem;
  color: var(--fg);
  line-height: 1.5;
  padding-right: 3.4rem;
  white-space: pre-wrap;
  word-break: break-all;
}
.install-card__cmd[data-active="true"] { display: block; }
.install-card__copy {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.4rem 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--fg-3);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.install-card__copy:hover { color: var(--accent); border-color: var(--accent-dim); }
.install-card__copy--large {
  top: 50%;
  transform: translateY(-50%);
  padding: 0.55rem 0.8rem;
  font-size: 0.82rem;
}
.install-card--large { max-width: none; margin: 1.5rem auto 0; }
.install-card--large .install-card__body { padding: 1.2rem 1.2rem; }
.install-card--large .install-card__cmd { font-size: 1.05rem; }
.tok-prompt { color: var(--accent); user-select: none; margin-right: 0.5rem; }

/* ═════ terminal ═════ */
.terminal {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-1));
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,0.55),
    0 0 0 1px color-mix(in oklch, var(--accent) 8%, transparent) inset;
  overflow: hidden;
  font-family: var(--f-mono);
  font-size: 0.84rem;
  color: var(--fg-2);
  min-height: 24rem;
}
.terminal__chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
}
.terminal__dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal__dot--close { background: #ff5f57; }
.terminal__dot--min   { background: #febc2e; }
.terminal__dot--max   { background: #28c841; }
.terminal__title {
  flex: 1;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--fg-3);
  letter-spacing: 0.02em;
}
.terminal__body {
  padding: 1rem 1.1rem 1.2rem;
  min-height: 21rem;
}
.term-line {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  line-height: 1.75;
  opacity: 0;
  animation: reveal 0.3s var(--ease-out) forwards;
  animation-delay: var(--delay, 0s);
  white-space: pre-wrap;
}
.term-line--sys { color: var(--fg-3); opacity: 1; animation: none; }
.term-line--user { color: var(--fg); }
.term-line--assist { color: var(--fg-2); }
.term-line--indent { margin-left: 1.2rem; color: var(--fg-2); font-size: 0.82rem; }
.term-line--prompt { color: var(--fg); }
.term-line--type .term-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--accent);
  width: 0;
  animation:
    type var(--dur, 1.6s) steps(var(--chars, 30)) forwards,
    blink 0.8s step-end infinite;
  animation-delay: var(--delay, 0s), calc(var(--delay, 0s) + var(--dur, 1.6s));
}
.term-line--type.term-line--reveal { animation: reveal 0.2s var(--ease-out) forwards; }
@keyframes reveal {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes type {
  from { width: 0; border-right-color: var(--accent); }
  to   { width: 100%; border-right-color: transparent; }
}
@keyframes blink {
  0%, 100% { border-right-color: transparent; }
  50%      { border-right-color: var(--accent); }
}
.caret {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--accent);
  margin-left: 0.15rem;
  transform: translateY(2px);
  animation: blink 1s step-end infinite;
  border: 0;
}

.tok-sys   { color: var(--fg-3); }
.tok-ai    { color: var(--accent); }
.tok-ok    { color: var(--ok); }
.tok-warn  { color: var(--warn); }
.tok-err   { color: var(--err); }
.tok-idx   {
  display: inline-block;
  min-width: 1.5rem;
  color: var(--fg-4);
  text-align: right;
}
.tok-mem   { color: color-mix(in oklch, var(--accent) 80%, #fff); }
.tok-kw    { color: var(--accent); }
.tok-str   { color: #fbbf77; }
.tok-var   { color: #a5d6ff; }
.tok-dim   { color: var(--fg-4); }

@media (prefers-reduced-motion: reduce) {
  .term-line { opacity: 1; animation: none; }
  .term-line--type .term-text {
    width: auto;
    overflow: visible;
    white-space: normal;
    border-right: 0;
    animation: none;
  }
  .caret { animation: none; }
  .pulse-dot { animation: none; }
}

/* ═════ pillars ═════ */
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 860px) { .pillars__grid { grid-template-columns: 1fr; } }
.pillar {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.4rem 1.55rem;
  overflow: hidden;
  transition:
    transform 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 10% 0%, color-mix(in oklch, var(--accent) 15%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}
.pillar:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklch, var(--accent) 40%, var(--border));
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.45);
}
.pillar:hover::before { opacity: 1; }
.pillar__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: color-mix(in oklch, var(--accent) 15%, var(--bg-2));
  color: var(--accent);
  margin-bottom: 0.9rem;
  border: 1px solid color-mix(in oklch, var(--accent) 20%, var(--border));
}
.pillar__icon--mesh { color: #67e8f9; background: color-mix(in oklch, #22d3ee 15%, var(--bg-2)); border-color: color-mix(in oklch, #22d3ee 30%, var(--border)); }
.pillar__icon--arion { color: #f0abfc; background: color-mix(in oklch, #e879f9 15%, var(--bg-2)); border-color: color-mix(in oklch, #e879f9 30%, var(--border)); }
.pillar h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  letter-spacing: -0.012em;
  font-weight: 650;
}
.pillar__lead { color: var(--fg-2); font-size: 0.95rem; margin: 0 0 1rem; }
.pillar__lead em {
  font-style: italic;
  color: var(--fg);
  background: linear-gradient(180deg, transparent 60%, color-mix(in oklch, var(--accent) 25%, transparent) 60%);
}
.pillar__code {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--fg-2);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.7rem 0.85rem;
  line-height: 1.55;
  overflow-x: auto;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ═════ safety ═════ */
.safety__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 860px) { .safety__grid { grid-template-columns: 1fr; } }
.safety-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.5rem 1.7rem;
}
.safety-card h3 {
  margin: 0 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.safety-card__tag {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in oklch, var(--accent) 12%, transparent);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  border: 1px solid color-mix(in oklch, var(--accent) 25%, var(--border));
}
.safety-card p { color: var(--fg-2); font-size: 0.95rem; margin: 0 0 0.9rem; }
.safety-card code {
  background: var(--bg-1);
  padding: 0.06rem 0.4rem;
  border-radius: 4px;
  font-size: 0.86em;
  color: var(--fg);
}
.safety-modes {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.safety-modes li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg-2);
  font-size: 0.9rem;
}
.safety-mode {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  white-space: nowrap;
}
.safety-mode--ro   { color: #67e8f9; border-color: color-mix(in oklch, #22d3ee 35%, var(--border)); }
.safety-mode--ws   { color: #86efac; border-color: color-mix(in oklch, #22c55e 35%, var(--border)); }
.safety-mode--full { color: #fde68a; border-color: color-mix(in oklch, #f59e0b 35%, var(--border)); }

/* ═════ code block ═════ */
.code-block {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem 1.15rem;
  font-family: var(--f-mono);
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--fg);
  overflow-x: auto;
}
.code-block--wide { max-width: 52rem; margin: 0 auto; }

/* ═════ messaging ═════ */
.channels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  max-width: 52rem;
  margin: 0 auto;
}
.channels__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (max-width: 640px) { .channels__cards { grid-template-columns: repeat(2, 1fr); } }
.channel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.channel:hover { border-color: var(--fg-4); transform: translateY(-1px); }
.channel__icon {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  font-size: 1.15rem;
  color: #0a0a10;
  background: var(--accent);
  font-weight: 700;
}
.channel__icon--tg { background: #22a6f3; }
.channel__icon--dc { background: #5865F2; color: #fff; }
.channel__icon--im { background: #34c759; }
.channel__icon--wa { background: #25d366; }
.channel__name { font-size: 0.95rem; font-weight: 550; }
.channel__status {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.channel__status--live::before {
  content: "●";
  color: var(--ok);
  margin-right: 0.2rem;
}
.channel__status--opt { color: var(--warn); }

/* ═════ compare ═════ */
.compare__wrap { overflow-x: auto; margin: 0 auto; max-width: 60rem; -webkit-overflow-scrolling: touch; }
.compare__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
  min-width: 44rem;
}
.compare__table th, .compare__table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.compare__table thead th {
  background: var(--bg-1);
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 550;
  border-top: 1px solid var(--border);
}
.compare__table thead th:first-child { border-top-left-radius: var(--r); border-left: 1px solid var(--border); }
.compare__table thead th:last-child  { border-top-right-radius: var(--r); border-right: 1px solid var(--border); }
.compare__table tbody th {
  color: var(--fg);
  font-weight: 500;
  border-left: 1px solid var(--border);
}
.compare__table td { color: var(--fg-2); text-align: center; }
.compare__table td:last-child { border-right: 1px solid var(--border); }
.compare__table tbody tr:last-child td { border-bottom: 1px solid var(--border); }
.compare__table tbody tr:last-child th { border-bottom-left-radius: var(--r); }
.compare__table tbody tr:last-child td:last-child { border-bottom-right-radius: var(--r); }
.cell { font-family: var(--f-mono); font-size: 0.82rem; }
.cell--yes { color: var(--ok); font-weight: 600; }
.cell--partial { color: var(--fg-3); }
.cell--no { color: var(--fg-4); }
.is-us {
  background: color-mix(in oklch, var(--accent) 8%, transparent);
}
.compare__table thead .is-us { color: var(--accent); font-weight: 650; }

/* ═════ quickstart ═════ */
.qs {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 52rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.qs li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.qs__num {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--accent);
  opacity: 0.8;
  padding-top: 0.3rem;
}
.qs h3 { margin: 0 0 0.5rem; font-size: 1rem; letter-spacing: -0.008em; font-weight: 600; }
.qs .code-block { margin: 0; }

/* ═════ cta ═════ */
.cta__inner {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
  background:
    radial-gradient(60% 70% at 50% 0%, color-mix(in oklch, var(--accent) 22%, transparent), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.5);
}
.cta__inner h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.cta__inner > p { color: var(--fg-2); margin: 0 0 1.5rem; }
.cta__alt { color: var(--fg-3); font-size: 0.88rem; margin-top: 1rem; }
.cta__alt code { background: var(--bg-2); padding: 0.1rem 0.45rem; border-radius: 4px; font-size: 0.86rem; }

/* ═════ footer ═════ */
.footer {
  max-width: var(--page);
  margin: 2rem auto 0;
  padding: 2rem var(--gutter) 3rem;
  border-top: 1px solid var(--border);
  color: var(--fg-3);
  font-size: 0.88rem;
}
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.footer__links {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.footer__links a { transition: color 0.2s var(--ease-out); }
.footer__links a:hover { color: var(--fg); }
.footer__note { margin: 0; color: var(--fg-4); font-size: 0.82rem; }

/* ═════ reveal on scroll ═════ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s var(--ease-out) var(--reveal-delay, 0ms),
    transform 0.6s var(--ease-out) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ═════ copy feedback ═════ */
.install-card__copy[data-copied] {
  color: var(--ok);
  border-color: color-mix(in oklch, var(--ok) 40%, var(--border));
}

/* ═════ utilities ═════ */
@media (max-width: 640px) {
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { justify-content: center; }
}
