/*
  Shared landing stylesheet for the SSH, FTP, and SQL apps.
  The three copies are identical. Edit one, then copy it to the other two.
  Each page sets <body data-app="ssh|ftp|sql">, which only picks the accent.
*/
:root {
  color-scheme: dark;
  --bg: #0e0e0e;
  --band: #131313;
  --card: #161616;
  --term: #121212;
  --text: #f2f2f0;
  --muted: #9a9a96;
  --faint: #6e6e6a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --fill: rgba(255, 255, 255, 0.045);
  --fill-strong: rgba(255, 255, 255, 0.08);
  --green: #3dd68c;
  --accent: #3dd68c;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: min(1160px, calc(100% - 48px));
  --section-y: clamp(88px, 11vw, 144px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body[data-app="ftp"] { --accent: #5cb4ff; }
body[data-app="sql"] { --accent: #b49cff; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid #d8d8d4; outline-offset: 3px; }
section { scroll-margin-top: 72px; }
.wrap { width: var(--wrap); margin: 0 auto; }

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.hero .reveal { animation: rise 0.8s cubic-bezier(.2, .7, .2, 1) both; }
.hero .reveal.late { animation-delay: 0.15s; }
@supports (animation-timeline: view()) {
  .reveal:not(.in) {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 24%;
  }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 14, 14, 0.78);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
  width: var(--wrap);
  margin: 0 auto;
}
.word {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.04em;
  font-size: 18px;
  text-decoration: none;
}
.word img { width: 26px; height: 26px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line); }
.nav-links { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nav-links a {
  padding: 7px 12px;
  border-radius: 99px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.on { color: var(--text); background: var(--fill-strong); }
.nav-cta { display: flex; gap: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: #f4f4f2;
  color: #161616;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn:hover { background: #ffffff; }
.btn:active { transform: translateY(1px); }
.btn.large { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn.small { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn.tiny { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; cursor: default; }
.btn.ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn.ghost:hover { background: var(--fill); }
.btn .arrow { transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn.busy { gap: 8px; }
.spinner {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 99px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Type ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow .num {
  color: var(--accent);
  font-family: var(--mono);
  letter-spacing: 0;
}
.eyebrow .num::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin-left: 10px;
  vertical-align: middle;
  background: var(--line-strong);
}
h1, h2, h3 { letter-spacing: -0.04em; font-weight: 600; }
h1 {
  margin: 0 auto;
  max-width: 14ch;
  font-size: clamp(48px, 7.6vw, 96px);
  line-height: 0.96;
  text-wrap: balance;
}
h2 { text-wrap: balance; }
.lede, .feature-copy p, .fact p, .close p, .note, .section-head p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 128px) 0 var(--section-y);
  text-align: center;
  isolation: isolate;
}
.hero::before {
  /* faint grid that fades out toward the edges */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: -1;
  width: min(1100px, 120%);
  height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent);
  filter: blur(20px);
  pointer-events: none;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 6px 14px 6px 10px;
  border-radius: 99px;
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--muted);
  font-size: 13px;
}
.badge i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.badge b { color: var(--text); font-weight: 600; }
.hero .lede { margin: 26px auto 0; max-width: 40rem; font-size: clamp(17px, 1.6vw, 20px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .cta-row, .close .cta-row { justify-content: center; }
.note { margin: 16px 0 0; font-size: 13px; min-height: 1.2em; color: var(--faint); }
.stage {
  width: min(1060px, calc(100% - 48px));
  margin: clamp(56px, 7vw, 88px) auto 0;
  text-align: left;
}

/* ---------- Windows / frames ---------- */
.window {
  background: #141414;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.02),
    0 40px 120px rgba(0, 0, 0, 0.55),
    0 0 80px color-mix(in srgb, var(--accent) 8%, transparent);
}
.chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: #181818;
  border-bottom: 1px solid var(--line);
}
.chrome i { width: 11px; height: 11px; border-radius: 99px; background: #2c2c2c; }
.chrome span {
  margin: 0 auto;
  padding: 3px 14px;
  border-radius: 7px;
  background: var(--fill);
  color: var(--faint);
  font-size: 12px;
  transform: translateX(-27px);
}
.shot {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 440px;
}
.frame {
  display: flex;
  flex-direction: column;
  background: #141414;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  min-height: 340px;
}
.frame.split { display: grid; grid-template-columns: 180px minmax(0, 1fr); }
.frame.pad { padding: 20px 16px; }

.shot-side {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-right: 1px solid var(--line);
  padding: 16px 10px 12px;
  min-height: 0;
}
.shot-brand { font-weight: 650; letter-spacing: -0.04em; padding: 0 8px 12px; }
.shot-label {
  margin: 4px 8px 6px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.shot-host, .hrow {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  border-radius: 8px;
  padding: 8px;
}
.shot-host.on, .hrow.on { background: var(--fill-strong); }
.shot-host b, .hmain b { display: block; font-size: 13px; font-weight: 600; letter-spacing: -0.02em; }
.shot-host small, .hmain small { color: var(--muted); font-size: 11px; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #3c3c3c;
  flex: 0 0 auto;
}
.dot.live { background: var(--green); box-shadow: 0 0 0 3px rgba(61, 214, 140, 0.14); }
.dot.wait { background: #e6b450; }
.shot-who {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 8px 4px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.ava {
  width: 22px;
  height: 22px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2a2a2a;
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
  flex: 0 0 auto;
}
.ava.lg { width: 52px; height: 52px; font-size: 20px; }
.shot-main { display: flex; flex-direction: column; min-width: 0; background: var(--term); }
.shot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.shot-top strong { font-size: 14px; letter-spacing: -0.02em; }
.shot-top p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.shot-top p.ok { color: var(--green); }
.pill {
  height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.pill.quiet { color: var(--muted); }
.pill.accent { color: #111; background: var(--accent); box-shadow: none; }

/* Terminal (SSH) */
.shot-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 8px 0;
  background: #181818;
  border-bottom: 1px solid var(--line);
}
.stab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  transition: background 0.2s, color 0.2s;
}
.stab.on { background: var(--term); color: var(--text); border-color: var(--line); }
.stab i { width: 6px; height: 6px; border-radius: 99px; background: var(--green); }
.shot-term {
  margin: 0;
  padding: 18px 18px 22px;
  min-height: 0;
  flex: 1;
  color: #d7d7d2;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.shot-term.tall { min-height: 200px; }
.pr { color: #f2f2f0; }
.pa { color: var(--faint); }
.caret {
  display: inline-block;
  width: 7px;
  height: 13px;
  margin-left: 2px;
  background: #f2f2f0;
  transform: translateY(2px);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Host list (SSH) */
.filter-row { display: flex; gap: 6px; padding: 0 6px 10px; }
.chip {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px 10px;
  color: var(--muted);
  font-size: 12px;
}
.chip.on { background: var(--fill-strong); color: var(--text); }
.hrow { position: relative; padding-right: 4px; }
.hmain { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.grip {
  width: 10px;
  height: 16px;
  background: radial-gradient(circle, var(--faint) 1.1px, transparent 1.2px) 0 0 / 6px 6px;
  flex: 0 0 auto;
}
.more { color: var(--faint); padding: 0 6px; }

/* Profile */
.profile-frame { padding: 24px; display: block; min-height: 0; }
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.profile-head strong { font-size: 16px; }
.profile-head p, .saved { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.profile-frame label { display: block; color: var(--muted); font-size: 12px; margin-top: 12px; }
.fake-input {
  display: block;
  margin-top: 6px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #101010;
  padding: 11px 12px;
  color: var(--text);
  font-size: 15px;
}
.fake-input.quiet { color: var(--faint); letter-spacing: 0.2em; }
.profile-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.saved { min-height: 1.2em; color: var(--green); }

/* Files (FTP) */
.path {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}
.path b { color: var(--text); font-weight: 500; }
.files { padding: 8px; }
.file {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
}
.file.on { background: var(--fill-strong); }
.file > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ficon {
  width: 18px;
  height: 14px;
  border-radius: 3px;
  background: #3a3a3a;
  position: relative;
}
.ficon.dir { background: color-mix(in srgb, var(--accent) 55%, #2a2a2a); }
.ficon.dir::before {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 8px;
  height: 4px;
  border-radius: 2px 2px 0 0;
  background: inherit;
}
.ficon.doc { width: 13px; height: 16px; margin-left: 2px; background: #4a4a4a; }
.bar {
  display: block;
  width: 96px;
  height: 4px;
  border-radius: 99px;
  background: var(--fill-strong);
  overflow: hidden;
}
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1.2s ease; }
.transfer {
  margin: auto 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #171717;
  color: var(--muted);
  font-size: 12px;
}
.transfer b { color: var(--text); font-weight: 600; }

/* Settings rows (FTP / SQL) */
.rows { padding: 8px 16px 16px; }
.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.row:last-child { border-bottom: 0; }
.row span { color: var(--muted); }
.row b { font-weight: 500; }
.row b.ok { color: var(--green); }
.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--fill); }
.seg em { font-style: normal; padding: 3px 9px; border-radius: 6px; color: var(--muted); font-size: 12px; }
.seg em.on { background: var(--fill-strong); color: var(--text); }

/* Query + grid (SQL) */
.sql {
  margin: 0;
  padding: 18px;
  min-height: 7.5em;
  border-bottom: 1px solid var(--line);
  color: #d7d7d2;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.sql .kw { color: var(--accent); }
.grid { padding: 8px 10px; font-family: var(--mono); font-size: 12px; }
.grid > div {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.grid > div:first-child { color: var(--faint); }
.grid > div:last-child { border-bottom: 0; }
.grid.two > div { grid-template-columns: 0.7fr 1fr; }

/* ---------- Facts strip ---------- */
.facts {
  padding: 0 0 var(--section-y);
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.fact {
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.2s, transform 0.2s;
}
.fact:hover { box-shadow: inset 0 0 0 1px var(--line-strong); transform: translateY(-2px); }
.fact-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--accent);
}
.fact-icon svg { width: 20px; height: 20px; }
.fact h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.03em; }
.fact p { margin: 0; font-size: 15px; }

/* ---------- Section heads ---------- */
.section-head {
  max-width: 44rem;
  margin: 0 auto;
  padding: var(--section-y) 0 0;
  text-align: center;
}
.section-head .eyebrow { justify-content: center; }
.section-head h2 { margin: 0; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.02; }
.section-head p { margin: 18px auto 0; max-width: 36rem; }

/* ---------- Features ---------- */
.features { border-top: 1px solid var(--line); }
.feature { padding: var(--section-y) 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.band { background: var(--band); }
.feature-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1.15fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.feature.flip .feature-copy { order: 2; }
.feature-copy h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.04; }
.feature-copy p { margin: 20px 0 0; }
.feature-copy .install { margin-top: 24px; }
.points {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.points li {
  position: relative;
  padding-left: 30px;
  color: #c9c9c5;
  font-size: 15px;
  line-height: 1.5;
}
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}
.points li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 7px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* Phone */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 290px;
  height: 580px;
  border-radius: 44px;
  padding: 12px;
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 80px color-mix(in srgb, var(--accent) 8%, transparent);
}
.phone-screen {
  height: 100%;
  border-radius: 33px;
  background: var(--card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 26px 12px 12px;
}
.phone-screen.alt { display: none; background: var(--term); padding: 22px 0 0; }
.phone.show-alt .phone-screen:not(.alt) { display: none; }
.phone.show-alt .phone-screen.alt { display: flex; }
.phone-term { font-size: 12px; padding: 14px; }
.keys {
  margin-top: auto;
  display: flex;
  gap: 6px;
  overflow: hidden;
  padding: 8px 8px 14px;
  border-top: 1px solid var(--line);
  background: #141414;
}
.keys span {
  flex: 1 1 0;
  min-width: 0;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #222;
  font-family: var(--mono);
  font-size: 11px;
}

/* ---------- Closing CTA ---------- */
.close-wrap { padding: var(--section-y) 0; border-top: 1px solid var(--line); }
.close {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 104px) 24px;
  border-radius: 32px;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    linear-gradient(180deg, #161616, #111);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.close img { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 28px; box-shadow: 0 0 0 1px var(--line-strong), 0 20px 50px rgba(0, 0, 0, 0.5); }
.close h2 { margin: 0; font-size: clamp(40px, 6vw, 68px); line-height: 1; }
.close p { margin: 18px auto 0; max-width: 34rem; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); }
.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 0 40px;
  color: var(--faint);
  font-size: 13px;
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 22px; height: 22px; border-radius: 6px; }
.family { display: flex; align-items: center; gap: 4px; }
.family span { margin-right: 8px; }
.family a {
  padding: 6px 12px;
  border-radius: 99px;
  color: var(--muted);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line);
}
.family a:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.family a[aria-current] { color: var(--text); background: var(--fill-strong); }
.foot-in > a { color: var(--muted); text-decoration: none; }
.foot-in > a:hover { color: var(--text); }

/* ---------- Dialog ---------- */
dialog {
  width: min(420px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  color: var(--text);
  padding: 24px;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.62); }
dialog h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
dialog p { margin: 12px 0 0; color: var(--muted); }
dialog .btn { margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
  .fact-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
}
@media (max-width: 720px) {
  :root { --wrap: calc(100% - 32px); }
  .stage { width: calc(100% - 32px); }
  .shot, .frame.split { grid-template-columns: 1fr; min-height: 360px; }
  .shot-side, .frame.split .shot-side { display: none; }
  .chrome span { transform: none; }
  .nav-cta .ghost { display: none; }
  .hero .cta-row .btn { flex: 1 1 100%; }
  .family span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .caret, .spinner { animation: none !important; opacity: 1; transform: none; }
  .bar i { transition: none; }
  .fact:hover { transform: none; }
}
@media (scripting: none) {
  .reveal { opacity: 1 !important; transform: none !important; }
}
