/* ============================================================================
   Searxly — launch site design system
   Mirrors the macOS app: monochrome near-black canvas, white text ramp, white
   pill CTAs, hairline surfaces, hexagon mark. Color = meaning only (green = live
   / positive, red = negative). See the app's WalletTheme for the source palette.
   ============================================================================ */

:root {
  /* Canvas (from WalletTheme.canvas / AdaptiveChrome.canvasDark) */
  --canvas:        #0b0b0d;
  --canvas-raised: #101012;
  --canvas-2:      #141417;

  /* Translucent surfaces (white over canvas) */
  --surface:        rgba(255,255,255,0.05);
  --surface-strong: rgba(255,255,255,0.08);
  --surface-selected: rgba(255,255,255,0.14);

  /* Lines */
  --hairline:        rgba(255,255,255,0.08);
  --hairline-strong: rgba(255,255,255,0.14);

  /* Text ramp */
  --text:        #ffffff;
  --text-2:      rgba(255,255,255,0.62);
  --text-3:      rgba(255,255,255,0.42);
  --text-faint:  rgba(255,255,255,0.30);

  /* Semantic — only for meaning */
  --positive: #34d27b;     /* live / up */
  --negative: #ff6b6b;
  --warning:  #ff9e47;

  /* Geometry */
  --r-card: 18px;
  --r-inner: 12px;
  --r-field: 10px;
  --r-pill: 999px;

  --maxw: 1180px;
  --nav-h: 64px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, "Menlo", monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--canvas);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(255,255,255,0.16); }

/* Ambient page grain + top glow, very subtle (premium dark) */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1200px 620px at 50% -8%, rgba(255,255,255,0.06), transparent 60%),
    radial-gradient(900px 500px at 85% 12%, rgba(255,255,255,0.025), transparent 60%);
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
section { position: relative; z-index: 1; }
.section { padding: 110px 0; }
.section-sm { padding: 72px 0; }

/* ---------- type ---------- */
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.04; font-weight: 600; }
.display {
  font-size: clamp(40px, 7vw, 86px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 0.98;
}
.h2 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -0.03em; }
.h3 { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -0.02em; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--text-2); max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow::before { content: ""; width: 14px; height: 1px; background: var(--hairline-strong); }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.mono  { font-family: var(--mono); }
.center { text-align: center; }
.gradient-text {
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.62) 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; border: 1px solid transparent;
  transition: transform .18s var(--ease), background .2s var(--ease), border-color .2s var(--ease), opacity .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: #ececec; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--hairline); }
.btn-ghost:hover { background: var(--surface-strong); border-color: var(--hairline-strong); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- nav: a floating liquid-glass pill, on every page ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; padding: 0 16px;
  background: var(--canvas); border-bottom: none;
}
.nav .wrap { display: flex; align-items: center; gap: 18px; width: 100%; height: 48px;
  padding: 0 7px 0 18px; border-radius: var(--r-pill);
  background: var(--chrome-glass);
  border: 1px solid var(--chrome-glass-brd);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 10px 30px -20px rgba(0,0,0,0.8);
  transition: box-shadow .3s var(--ease), background .3s var(--ease); }
.nav.scrolled .wrap { background: linear-gradient(180deg, #28282e, #16161a);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 14px 38px -18px rgba(0,0,0,0.86); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 16px; }
.brand .mark { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-links a {
  font-size: 14px; color: var(--text-2); padding: 8px 12px; border-radius: 9px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--hairline);
  width: 40px; height: 40px; border-radius: 10px; color: var(--text); }

/* ---------- hero ---------- */
.hero { padding: 92px 0 40px; text-align: center; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px;
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--hairline);
  font-size: 12.5px; color: var(--text-2);
}
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--positive);
  box-shadow: 0 0 0 0 rgba(52,210,123,.55); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(52,210,123,.5)} 70%{box-shadow:0 0 0 7px rgba(52,210,123,0)} 100%{box-shadow:0 0 0 0 rgba(52,210,123,0)} }
/* neutral "coming soon" indicator — monochrome (green stays reserved for live/status) */
.dot-soon { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55);
  box-shadow: 0 0 0 0 rgba(255,255,255,.4); animation: pulseSoon 2.6s infinite; }
@keyframes pulseSoon { 0%{box-shadow:0 0 0 0 rgba(255,255,255,.35)} 70%{box-shadow:0 0 0 7px rgba(255,255,255,0)} 100%{box-shadow:0 0 0 0 rgba(255,255,255,0)} }
.hero .display { margin: 22px auto 18px; max-width: 16ch; }
.hero .lead { margin: 0 auto; text-align: center; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.hero-sub { margin-top: 18px; font-size: 13px; color: var(--text-3); }

/* ---------- product simulation lives at the end of this file (.sw-* block) ---------- */

/* wallet panel visual — shared by the wallet feature split + token page */
.wpanel { width: 320px; background: var(--canvas); border: 1px solid var(--hairline); border-radius: 22px; padding: 16px; }
.wp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.wp-acct { display: flex; align-items: center; gap: 8px; }
.avatar { width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 65% 35%, #cfcfcf, #4a4a4a); }
.wp-acct b { font-size: 13px; }
.wp-acct small { display: block; font-family: var(--mono); font-size: 10px; color: var(--text-3); }
.chain-chip { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: var(--r-pill); background: var(--surface); font-size: 11px; color: var(--text-2); }
.wp-circ { width: 26px; height: 26px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--text-3); font-size: 11px; }
.wp-balance { text-align: center; padding: 14px 0 4px; }
.wp-balance .n { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.wp-balance .c { font-size: 12px; color: var(--positive); margin-top: 2px; }
.wp-actions { display: flex; justify-content: space-around; padding: 16px 4px; }
.wp-actions div { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11px; color: var(--text-2); }
.wp-actions i { width: 48px; height: 48px; border-radius: 50%; background: var(--surface-strong); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 16px; }
.wp-tokens { display: grid; gap: 8px; }
.trow { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--r-inner); background: var(--surface); }
.trow .ti { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.trow .tname { font-size: 13px; font-weight: 600; }
.trow .tbal { font-size: 11px; color: var(--text-3); }
.trow .tval { margin-left: auto; text-align: right; }
.trow .tval b { font-size: 13px; font-weight: 600; }
.trow .tval span { display: block; font-size: 11px; }

/* ---------- generic sections ---------- */
.sec-head { max-width: 760px; }
.sec-head.center { margin: 0 auto; }
.sec-head .h2 { margin: 14px 0 14px; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card);
  padding: 26px; transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.card:hover { border-color: var(--hairline-strong); background: rgba(255,255,255,0.065); transform: translateY(-2px); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-strong);
  display: grid; place-items: center; margin-bottom: 16px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-2); }

/* feature split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split.rev { grid-template-columns: 1fr 1.05fr; }
.feature-list { display: grid; gap: 14px; margin-top: 22px; }
.feature-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.feature-list .ck { flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--surface-strong); display: grid; place-items: center; color: #fff; font-size: 11px; margin-top: 1px; }
.panel-visual { background: var(--canvas-raised); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 26px; min-height: 280px; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline);
  border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden; }
.stats .s { background: var(--canvas); padding: 26px; text-align: center; }
.stats .s b { display: block; font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -0.02em; }
.stats .s span { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }

/* principles list */
.principle { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 34px 0; border-top: 1px solid var(--hairline); }
.principle:last-child { border-bottom: 1px solid var(--hairline); }
.principle .num { font-family: var(--mono); font-size: 14px; color: var(--text-3); padding-top: 6px; }
.principle h3 { font-size: clamp(20px, 2.6vw, 28px); margin-bottom: 10px; }
.principle p { color: var(--text-2); max-width: 60ch; }

/* token page */
.token-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.ca-box { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-field); padding: 12px 14px; font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.ca-box .copy { margin-left: auto; background: var(--surface-strong); border: 1px solid var(--hairline); color: var(--text);
  height: 30px; padding: 0 12px; border-radius: 8px; font-size: 12px; }
.ca-box .copy.ok { color: var(--positive); }
.disclaimer { font-size: 12px; color: var(--text-3); border-left: 2px solid var(--hairline-strong); padding-left: 14px; }

/* CTA band */
.cta-band { text-align: center; border: 1px solid var(--hairline); border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)); padding: 64px 28px; }

/* AI glow visual */
.ai-orb { aspect-ratio: 1; max-width: 360px; margin: 0 auto; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.16), rgba(255,255,255,0.03) 55%, transparent 70%);
  border: 1px solid var(--hairline); display: grid; place-items: center; position: relative; }
.ai-orb::after { content: ""; position: absolute; inset: -1px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.10), transparent 30%); animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-orb .mark { width: 84px; height: 84px; position: relative; z-index: 1; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding: 56px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 14px; }
.footer a { display: block; font-size: 14px; color: var(--text-2); padding: 5px 0; }
.footer a:hover { color: var(--text); }
/* the footer brand is an <a> inside .footer — restore its flex layout (was collapsing to block) */
.footer .brand { display: inline-flex; align-items: center; gap: 9px; padding: 0; font-size: 16px; }
.footer .brand:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 44px;
  padding-top: 24px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--text-3); flex-wrap: wrap; gap: 12px; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (max-width: 920px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split, .split.rev, .token-hero { grid-template-columns: 1fr !important; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: grid; place-items: center; margin-left: auto; }
  .nav.open .nav-links { display: flex; position: absolute; top: calc(var(--nav-h) - 4px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: linear-gradient(180deg, #1d1d23, #161619);
    border: 1px solid var(--hairline-strong); border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 24px 60px -24px rgba(0,0,0,0.9); padding: 10px; }
  .nav.open .nav-links a { padding: 12px; border-radius: 11px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
  .principle { grid-template-columns: 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ============================================================================
   v2 — new logo, scroll-driven simulation, waitlist, richer pages + motion
   ============================================================================ */

/* brand logo (app-icon S) */
.brand-logo { width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 8px 22px -10px rgba(255,255,255,0.25); }
.brand span { font-weight: 600; letter-spacing: -0.02em; }
.foot-social { margin-top: 16px; display: flex; gap: 10px; }
.foot-social a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--hairline); color: var(--text-2); font-size: 15px;
  transition: color .2s, background .2s, border-color .2s; }
.foot-social a svg { width: 16px; height: 16px; display: block; }
.foot-social a:hover { color: #fff; background: var(--surface-strong); }

/* hero glow behind the logo */
.hero-logo { width: 92px; height: 92px; margin: 0 auto 26px; border-radius: 22px; position: relative; }
.hero-logo img { width: 100%; height: 100%; border-radius: 22px; position: relative; z-index: 1; }
.hero-logo::after { content: ""; position: absolute; inset: -30% -30% -10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 62%); filter: blur(8px); z-index: 0; animation: breathe 4.5s var(--ease) infinite; }
@keyframes breathe { 0%,100% { opacity: .6; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }

/* extra motion utilities */
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.reveal[data-d="4"] { transition-delay: .32s; }

/* local-search flow diagram (product page) */
.lse { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 26px 20px; }
.lse-q { width: 100%; max-width: 320px; display: flex; align-items: center; gap: 8px; justify-content: center;
  font-size: 13px; color: var(--text-2); background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-pill); padding: 10px 16px; }
.lse-q .mg { color: var(--text-3); }
.lse-arrow { color: var(--text-faint); font-size: 14px; line-height: 1; }
.lse-node { width: 100%; max-width: 320px; border: 1px solid var(--hairline-strong); border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); padding: 14px 16px; }
.lse-node-h { font-size: 14px; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 7px; justify-content: center; }
.lse-lock { color: var(--positive); font-size: 12px; }
.lse-node-s { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.lse-engines { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; max-width: 340px; }
.lse-engines span { font-size: 11.5px; color: var(--text-2); background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-pill); padding: 4px 11px; }
.lse-foot { font-size: 11px; color: var(--text-faint); margin-top: 6px; }
/* inline code chip (used in the SearXNG explainer) */
code { font-family: var(--mono); font-size: 0.88em; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 5px; padding: 1px 6px; color: var(--text); }
.reveal[data-d="5"] { transition-delay: .40s; }
.reveal.scale { transform: translateY(18px) scale(.985); }
.reveal.scale.in { transform: none; }
.kpi { font-variant-numeric: tabular-nums; }

/* shimmering hairline divider */
.shimmer-line { height: 1px; background: linear-gradient(90deg, transparent, var(--hairline-strong), transparent);
  background-size: 200% 100%; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 200% 0; } }

/* ---------- waitlist ---------- */
.wl-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 44px; align-items: start; }
.wl-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 28px; }
.wl-step { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--text-3); text-transform: uppercase; margin-bottom: 10px; }
.field { width: 100%; height: 50px; border-radius: var(--r-field); background: var(--canvas-2); border: 1px solid var(--hairline);
  color: #fff; padding: 0 16px; font-size: 15px; font-family: inherit; transition: border-color .2s; }
.field:focus { outline: none; border-color: var(--hairline-strong); }
.field::placeholder { color: var(--text-faint); }
.wl-panel { background: var(--canvas-raised); border: 1px solid var(--hairline); border-radius: var(--r-inner); padding: 20px; margin-top: 8px; }
.wl-btn { width: 100%; height: 50px; border-radius: var(--r-pill); font-size: 15px; font-weight: 600; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.wl-btn.primary { background: #fff; color: #000; } .wl-btn.primary:hover { background: #ececec; }
.wl-btn.secondary { background: var(--surface-strong); color: #fff; border-color: var(--hairline); }
.wl-btn:disabled { opacity: .5; cursor: not-allowed; }
.wl-status { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 8px; }
.wl-good { color: var(--positive); } .wl-warn { color: var(--warning); } .wl-bad { color: var(--negative); }
.addr { font-family: var(--mono); font-size: 12px; color: var(--positive); word-break: break-all; }
.wl-ca { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); margin: 10px 0 16px; flex-wrap: wrap; }
.wl-ca button { font-family: var(--mono); color: var(--positive); background: none; border: none; display: inline-flex; gap: 5px; align-items: center; }
.wl-ca button.ok { color: var(--positive); }
.wl-note { font-size: 11.5px; color: var(--text-faint); margin-top: 14px; }
.wl-side .card { margin-bottom: 14px; }
.req-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 13.5px; color: var(--text-2); border-top: 1px solid var(--hairline); }
.req-row:first-child { border-top: none; }
.req-row .n { width: 22px; height: 22px; border-radius: 6px; background: var(--surface-strong); display: grid; place-items: center; font-size: 11px; color: #fff; }
.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #141417; border: 1px solid var(--hairline-strong); border-radius: 12px; padding: 12px 16px; font-size: 13px; color: #fff;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); animation: toastin .3s var(--ease); max-width: 360px; }
.toast small { display: block; color: var(--text-3); font-size: 11.5px; margin-top: 2px; }
@keyframes toastin { from { opacity: 0; transform: translateY(10px); } }

/* ---------- FAQ accordion ---------- */
.faq-item { border-top: 1px solid var(--hairline); }
.faq-item:last-child { border-bottom: 1px solid var(--hairline); }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: #fff; font-size: clamp(16px,1.8vw,19px); font-weight: 600;
  padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; letter-spacing: -0.01em; }
.faq-q .pm { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--surface); display: grid; place-items: center; transition: transform .25s, background .2s; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); background: var(--surface-strong); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { color: var(--text-2); font-size: 14.5px; padding-bottom: 24px; max-width: 70ch; }

/* ---------- roadmap timeline ---------- */
.timeline { position: relative; margin-top: 30px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--hairline); }
.tl { position: relative; padding: 0 0 34px 6px; }
.tl::before { content: ""; position: absolute; left: -28px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--canvas); border: 2px solid var(--hairline-strong); }
.tl.done::before { background: var(--positive); border-color: var(--positive); }
.tl.now::before { background: #fff; border-color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.tl .ph { font-family: var(--mono); font-size: 12px; color: var(--text-3); display: flex; gap: 10px; align-items: center; }
.tl .tag { font-size: 10px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--hairline); color: var(--text-2); }
.tl .tag.live { color: var(--positive); border-color: rgba(52,210,123,.4); }
.tl h3 { font-size: 20px; margin: 8px 0 6px; }
.tl p { color: var(--text-2); font-size: 14px; max-width: 60ch; }

/* ---------- prose (privacy) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin: 38px 0 12px; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--text-2); font-size: 15px; margin-bottom: 12px; }
.prose ul { padding-left: 20px; }
.prose strong { color: #fff; }
.prose .updated { font-size: 13px; color: var(--text-3); }

/* ---------- AI page bits ---------- */
.ai-hero-logo { width: 120px; height: 120px; border-radius: 28px; margin: 0 auto; position: relative; }
.ai-hero-logo img { width: 100%; height: 100%; border-radius: 28px; position: relative; z-index: 1; }
.ai-hero-logo::after { content: ""; position: absolute; inset: -40%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 60%); filter: blur(10px); animation: breathe 5s var(--ease) infinite; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden; }
.compare > div { background: var(--canvas); padding: 26px; }
.compare h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 14px; }
.compare ul { list-style: none; display: grid; gap: 10px; }
.compare li { font-size: 14px; color: var(--text-2); display: flex; gap: 10px; }
.compare li .m { flex: none; }
.row-feature { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--hairline); }
.row-feature .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--surface-strong); display: grid; place-items: center; font-size: 18px; }
.row-feature h3 { font-size: 18px; margin-bottom: 6px; }
.row-feature p { color: var(--text-2); font-size: 14px; }

@media (max-width: 980px) {
  .wl-grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
}

/* ============================================================================
   v4 — clean redesign: inline mark, real browser chrome (Arc-style sidebar +
   address bar), tighter type & spacing.
   ============================================================================ */

/* inline logo mark (no image, no heavy box) */
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { width: 23px; height: 23px; color: #fff; display: inline-flex; }
.brand-mark .mk { width: 100%; height: 100%; }
.brand-word { font-weight: 600; letter-spacing: -0.02em; font-size: 16px; color: #fff; }
.brand-logo { display: none; } /* retire the old <img> logo */

/* hero mark (inline, with the signature glow) */
.hero-logo { width: 72px; height: 72px; margin: 0 auto 28px; position: relative; color: #fff; }
.hero-logo .mk { width: 100%; height: 100%; position: relative; z-index: 1; filter: drop-shadow(0 0 18px rgba(255,255,255,0.35)); }
.hero-logo::after { content: none; }
.hero-logo img { display: none; }

/* slightly calmer ambient glow */
body::before { background:
  radial-gradient(1100px 560px at 50% -10%, rgba(255,255,255,0.05), transparent 60%); }

/* tighter, cleaner cards */
.card { padding: 24px; border-radius: 16px; background: rgba(255,255,255,0.025); }
.card:hover { background: rgba(255,255,255,0.05); transform: none; }
.card .ico { background: rgba(255,255,255,0.06); }

/* cleaner section headers */
.eyebrow { letter-spacing: 0.16em; }
.h2 { letter-spacing: -0.03em; }

/* ============================================================================
   PRODUCT SIMULATION (.sw-*) — a faithful, display-only recreation of the real
   macOS app, driven by scroll. Rendered by assets/js/sim.js. Metrics, colors and
   type mirror the app (AddressBar, SidebarTabList, WebResultRow, KnowledgePanel,
   WalletPanelView, WalletDiscoverView). The whole window is presentation-only.
   ============================================================================ */
/* Total pinned scroll distance: shorter = quicker to scroll through/past the tour.
   ~300vh → ~50vh of scroll per screen, which feels snappy without skipping screens. */
.sw-scroll { position: relative; height: 300vh; --sw-link: #88ceff; --sw-green: #22c55e; }
.sw-pin { position: sticky; top: calc(var(--nav-h) + 16px);
  height: calc(100vh - var(--nav-h) - 34px); min-height: 540px; display: flex; align-items: center; }

.sw-win { position: relative; width: 100%; height: 100%; max-height: 760px; margin: 0 auto;
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, #0e0e12, #0a0a0c);
  border: 1px solid var(--hairline); border-radius: 16px;
  box-shadow: 0 60px 140px -54px rgba(0,0,0,0.92), 0 0 0 1px rgba(255,255,255,0.02) inset;
  user-select: none; -webkit-user-select: none; }
.sw-win, .sw-win * { pointer-events: none; }   /* presentation only — can't be used */
.swi, .swmk { display: block; }

/* ---- top bar: traffic lights + centered address bar ---- */
.sw-bar { display: flex; height: 46px; flex: none; border-bottom: 1px solid var(--hairline);
  background: rgba(255,255,255,0.014); }
.sw-bar-side { width: 200px; flex: none; display: flex; align-items: center; gap: 10px;
  padding: 0 12px; border-right: 1px solid var(--hairline); }
.sw-lights { display: flex; gap: 7px; }
.sw-lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-strong); }
.sw-collapse { margin-left: auto; color: var(--text-faint); }
.sw-bar-main { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 10px; min-width: 0; }
.sw-nav { display: flex; gap: 2px; }
.sw-nav span { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: var(--text-faint); }
.sw-nav span.on { color: var(--text-2); }
.sw-omni { flex: 1; max-width: 440px; margin: 0 auto; height: 30px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 8px; padding: 0 11px; min-width: 0; }
.sw-omni.is-hidden { visibility: hidden; }
.sw-omni-ic { color: var(--text-3); flex: none; }
.sw-omni-t { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-omni-t.ph { color: var(--text-faint); }
.sw-actions { display: flex; gap: 3px; flex: none; }
.sw-actions span { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--text-faint); }

/* ---- body + left sidebar ---- */
.sw-body { flex: 1; display: flex; min-height: 0; }
.sw-side { width: 200px; flex: none; border-right: 1px solid var(--hairline);
  background: rgba(255,255,255,0.012); display: flex; flex-direction: column; padding: 10px 9px 9px; }
.sw-newtab { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.sw-newtab-pill { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 30px;
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--hairline);
  font-size: 12px; font-weight: 500; color: var(--text); }
.sw-newtab-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  color: var(--text-3); background: var(--surface); }
.sw-tabs { display: flex; flex-direction: column; gap: 2px; }
.sw-tabs-h { font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--text-faint);
  font-weight: 600; padding: 9px 8px 5px; }
.sw-tab { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px;
  font-size: 12.5px; color: var(--text-2); }
.sw-tab.active { background: var(--surface-selected); color: #fff; }
.swfav { width: 16px; height: 16px; border-radius: 4px; flex: none; display: grid; place-items: center;
  color: #fff; overflow: hidden; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.14); }
.swfav-letter { font-size: 9.5px; font-weight: 700; line-height: 1; }
.swfav-logo { width: 70%; height: 70%; display: grid; place-items: center; }
.swfav-logo svg { width: 100%; height: 100%; display: block; }
.sw-tab-t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-tab-x { color: var(--text-faint); }
.sw-foot { margin-top: auto; }
.sw-foot-icons { display: flex; align-items: center; padding: 7px 6px; color: var(--text-3);
  border-top: 1px solid var(--hairline); margin-top: 8px; }
.sw-grow { flex: 1; }
.sw-foot-row { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 7px;
  font-size: 12px; color: var(--text-2); transition: background .25s, color .25s; }
.sw-foot-row.on { background: var(--surface); color: #fff; }
.sw-priv { font-size: 9px; color: var(--text-faint); padding: 7px 8px 1px; }
.sw-ver { font-size: 9px; color: var(--text-faint); padding: 0 8px 2px; }

/* ---- screens ---- */
.sw-main { flex: 1; position: relative; overflow: hidden; min-width: 0; }
.sw-screen { position: absolute; inset: 0; opacity: 0; transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease); overflow: hidden; }
.sw-screen.show { opacity: 1; transform: none; }

/* screen 0 — home */
.sw-home { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 36px; text-align: center; }
.sw-home-logo { color: #fff; margin-bottom: 18px; }
.sw-home-tag { font-size: 14px; font-weight: 500; color: var(--text-2); }
.sw-home-sub { font-size: 11.5px; color: var(--text-3); margin-top: 6px; line-height: 1.55; }
.sw-herobar { width: 100%; max-width: 430px; height: 50px; margin-top: 26px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--hairline-strong);
  display: flex; align-items: center; gap: 11px; padding: 0 18px; color: var(--text-3); }
.sw-typed { font-size: 15px; color: var(--text); }
.sw-caret { width: 1.5px; height: 19px; background: #fff; animation: swblink 1.1s steps(1) infinite; }
@keyframes swblink { 50% { opacity: 0; } }
.sw-home-ai { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; height: 34px; padding: 0 16px;
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--hairline);
  font-size: 12.5px; font-weight: 500; color: var(--text-2); }

/* screen 1 — SERP */
.sw-serp { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 24px; padding: 18px 22px; height: 100%; }
.sw-serp-main { min-width: 0; display: flex; flex-direction: column; }
.sw-serp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sw-serp-q { font-size: 21px; color: #fff; line-height: 1.1; }
.sw-serp-cnt { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.sw-serp-x { width: 28px; height: 28px; border-radius: 50%; background: var(--surface);
  display: grid; place-items: center; color: var(--text-3); flex: none; }
.sw-serp-tabs { display: flex; gap: 8px; margin: 14px 0 12px; }
.sw-serp-tabs span { font-size: 12px; padding: 5px 13px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--hairline); color: var(--text-2); }
.sw-serp-tabs span.on { background: var(--surface-selected); color: #fff; font-weight: 600; }
.sw-serp-div { height: 1px; background: var(--hairline); opacity: .6; margin-bottom: 4px; }
.sw-serp-results { display: flex; flex-direction: column; }
.sw-rrow { display: flex; gap: 14px; padding: 14px 4px; }
.sw-rrow + .sw-rrow { border-top: 1px solid rgba(255,255,255,0.055); }
.sw-rbody { min-width: 0; flex: 1; }
.sw-rcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.sw-rhost { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.sw-rlock { color: var(--sw-green); }
.sw-rsep { color: var(--text-faint); }
.sw-rpath { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-rtitle { font-size: 18px; line-height: 1.3; color: var(--sw-link); margin-bottom: 5px; }
.sw-rsnip { font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,0.7); }
.sw-rsnip mark { background: rgba(34,197,94,0.16); color: #fff; border-radius: 2px; padding: 0 1px; }
.sw-rmeta { font-size: 11px; color: var(--text-3); margin-top: 7px; }

/* knowledge panel (shared by screens 1 + 2) */
.sw-kp { background: var(--canvas-raised); border: 1px solid var(--hairline); border-radius: 12px;
  overflow: hidden; align-self: start; box-shadow: 0 14px 34px -18px rgba(0,0,0,0.6); }
.sw-kbanner { height: 96px; display: grid; place-items: center; border-bottom: 1px solid var(--hairline);
  background: linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.025)); }
.sw-kmono { display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 40px; font-weight: 800; color: rgba(255,255,255,0.5); line-height: 1; }
.sw-kmono-ic { color: var(--text-faint); }
.sw-kbadge { width: 54px; height: 54px; border-radius: 14px; background: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,0.55); }
.sw-kbadge svg { width: 32px; height: 32px; display: block; }
.sw-kbody { padding: 13px 13px 14px; }
.sw-ktitle { font-size: 17px; font-weight: 600; color: #fff; }
.sw-kchiprow { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.sw-kchip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-2);
  padding: 3px 9px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--hairline); }
.sw-koff { font-size: 11px; color: var(--text-3); }
.sw-kh { font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3);
  font-weight: 600; margin: 14px 0 7px; }
.sw-kabout { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.82); }
.sw-kfacts { background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden; }
.sw-kfact { display: flex; gap: 10px; padding: 8px 11px; }
.sw-kfact + .sw-kfact { border-top: 1px solid var(--hairline); }
.sw-kfact .l { width: 74px; flex: none; font-size: 11px; font-weight: 600; color: var(--text-3); }
.sw-kfact .v { font-size: 12.5px; color: rgba(255,255,255,0.88); }
.sw-kacts { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.sw-kact { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--hairline); font-size: 12px; color: var(--text-2); }
.sw-kact.prom { background: var(--surface); color: rgba(255,255,255,0.92); font-weight: 500; font-size: 12.5px; }
.sw-kact .ar { margin-left: auto; color: var(--text-faint); }
.sw-kimprove { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--hairline); margin-top: 12px; }
.sw-kimprove .ico { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-strong);
  display: grid; place-items: center; color: var(--text-2); flex: none; }
.sw-kimprove b { font-size: 12.5px; display: block; color: rgba(255,255,255,0.9); }
.sw-kimprove span { font-size: 10px; color: var(--text-3); }
.sw-kimprove .ch { margin-left: auto; color: var(--text-faint); }
.sw-kattr { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--text-faint); margin-top: 11px; }

/* screen 2 — knowledge explainer */
.sw-kc { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: center; padding: 24px 30px; height: 100%; }
.sw-kc-eyebrow { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--sw-green); font-weight: 600; }
.sw-kc-explain h3 { font-size: 22px; letter-spacing: -.02em; margin: 8px 0 12px; color: #fff; }
.sw-kc-explain p { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.sw-kc-steps { display: flex; flex-direction: column; gap: 11px; margin-top: 18px; }
.sw-kc-step { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: var(--text-2); }
.sw-kc-step .n { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--surface-strong);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.sw-kc-step b { color: #fff; font-weight: 600; }

/* screen 3 — wallet */
.sw-wstage { height: 100%; display: grid; place-items: center; padding: 18px; }
.sw-wallet { width: 340px; background: var(--canvas); border: 1px solid var(--hairline); border-radius: 20px;
  padding-bottom: 0; overflow: hidden; box-shadow: 0 30px 70px -34px rgba(0,0,0,0.8); }
.sw-whead { display: flex; align-items: center; gap: 10px; padding: 15px 16px 4px; }
.sw-wacct { display: flex; align-items: center; gap: 9px; }
.sw-avatar { width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 65% 35%, #d2d2d2, #4a4a4a); }
.sw-wacct-id b { font-size: 13px; color: #fff; display: block; line-height: 1.2; }
.sw-wacct-id small { font-size: 10.5px; font-family: var(--mono); color: var(--text-3); }
.sw-wacct-ch { color: var(--text-3); }
.sw-whead-r { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.sw-chain { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px;
  border-radius: var(--r-pill); background: var(--surface); font-size: 12px; font-weight: 600; color: var(--text-2); }
.sw-chain .swi:last-child { color: var(--text-3); }
.sw-wcirc { width: 28px; height: 28px; border-radius: 50%; background: var(--surface);
  display: grid; place-items: center; color: var(--text-3); }
.sw-wbal { text-align: center; padding: 18px 0 4px; }
.sw-wbal-n { font-size: 38px; font-weight: 700; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.sw-wbal-c { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600;
  color: var(--sw-green); margin-top: 4px; }
.sw-wactions { display: flex; justify-content: space-around; padding: 18px 14px 16px; }
.sw-wact { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11px; color: var(--text-2); }
.sw-wact-c { width: 50px; height: 50px; border-radius: 50%; background: var(--surface-strong);
  display: grid; place-items: center; color: #fff; }
.sw-tokens { padding: 0 6px 4px; }
.sw-tk { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.swcoin { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  box-shadow: inset 0 0 0 0.8px rgba(255,255,255,0.1); }
.swcoin-usdc { color: #fff; font-weight: 700; font-size: 19px; font-family: ui-rounded, "SF Pro Rounded", "Helvetica Neue", sans-serif; }
.sw-tk-id { min-width: 0; flex: 1; }
.sw-tk-name { font-size: 14px; font-weight: 600; color: #fff; }
.sw-tk-bal { font-size: 11px; font-family: var(--mono); color: var(--text-3); }
.sw-tk-val { text-align: right; }
.sw-tk-usd { font-size: 14px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.sw-tk-ch { font-size: 11px; font-weight: 500; }
.sw-tk-ch.pos { color: var(--sw-green); }
.sw-tk-ch.flat { color: var(--text-3); }
.sw-wbnav { display: flex; border-top: 1px solid var(--hairline); margin-top: 4px; }
.sw-wnav { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 0 10px;
  font-size: 9.5px; font-weight: 500; color: var(--text-3); }
.sw-wnav.on { color: #fff; }

/* screen 4 — discover */
.sw-disc { padding: 18px 22px; height: 100%; overflow: hidden; }
.sw-disc-intro { font-size: 11.5px; color: var(--text-3); line-height: 1.5; margin-bottom: 14px; max-width: 560px; }
.sw-dchips { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.sw-dchip { font-size: 12px; font-weight: 500; padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--surface); color: var(--text-2); }
.sw-dchip.on { background: #fff; color: #0b0b0d; }
.sw-dgrid { display: flex; flex-direction: column; gap: 10px; }
.sw-dt { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--hairline); }
.sw-dt-ic { width: 40px; height: 40px; border-radius: 10px; flex: none; background: var(--surface-strong);
  display: grid; place-items: center; color: #fff; }
.sw-dt-body { min-width: 0; flex: 1; }
.sw-dt-h { display: flex; align-items: center; gap: 8px; }
.sw-dt-h b { font-size: 13px; color: #fff; }
.sw-dt-cat { font-size: 8px; font-weight: 700; letter-spacing: .05em; color: var(--text-3);
  background: var(--surface); border-radius: var(--r-pill); padding: 2px 6px; }
.sw-dt-tag { font-size: 11.5px; color: var(--text-2); margin-top: 2px; }
.sw-dt-note { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--text-3); margin-top: 4px; }
.sw-dt-go { color: var(--text-faint); flex: none; }

/* ---- caption + progress dots ---- */
.sw-cap { position: absolute; left: 20px; bottom: 20px; max-width: 330px; z-index: 5;
  background: rgba(8,8,10,0.74); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--hairline-strong); border-radius: 14px; padding: 15px 17px;
  box-shadow: 0 26px 56px -28px rgba(0,0,0,0.8);
  transition: opacity .32s var(--ease), transform .32s var(--ease); }
.sw-cap.swap { opacity: 0; transform: translateY(8px); }
.sw-cap-step { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--positive); }
.sw-cap h3 { font-size: 18px; letter-spacing: -.02em; margin: 7px 0 5px; color: #fff; }
.sw-cap p { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.sw-dots { position: absolute; right: 20px; bottom: 24px; z-index: 5; display: flex; gap: 7px; }
.sw-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--surface-selected); transition: all .3s var(--ease); }
.sw-dots i.on { width: 22px; border-radius: 4px; background: #fff; }

/* ---- responsive: collapse the pinned scroller; stack screens ---- */
@media (max-width: 980px) {
  .sw-scroll { height: auto; }
  .sw-pin { position: static; height: auto; min-height: 0; }
  .sw-win { height: auto; max-height: none; }
  .sw-main { display: flex; flex-direction: column; min-height: 0; }
  .sw-screen { position: relative; opacity: 1; transform: none; min-height: 430px;
    border-top: 1px solid var(--hairline); }
  .sw-screen:first-child { border-top: none; }
  .sw-serp, .sw-kc, .sw-wstage, .sw-disc, .sw-home { min-height: 430px; }
  .sw-cap, .sw-dots { display: none; }
}
@media (max-width: 760px) {
  .sw-serp { grid-template-columns: 1fr; }
  .sw-kp { display: none; }
  .sw-kc { grid-template-columns: 1fr; gap: 18px; }
  .sw-side { display: none; }
  .sw-bar-side { width: auto; border-right: none; }
}

/* ============================================================================
   SECURITY section (security.html + security-*.html)
   Liquid-glass surfaces, a single glassy segmented sub-nav, trust-boundary
   diagrams, flow pipelines, layer stacks, spec & threat tables.
   Palette: monochrome — PROTECTION / on-device / safe = BRIGHT WHITE (with a
   soft white glow), threat = red, everything else neutral. No green here.
   ============================================================================ */

/* liquid-glass design tokens */
:root {
  --glass-bg:   linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.035));
  --glass-soft: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.018));
  --glass-brd:  rgba(255,255,255,0.18);
  --glass-blur: blur(20px) saturate(150%);
  --glass-hl:   inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -1px 0 rgba(0,0,0,0.12);
  --white-glow: 0 0 26px -12px rgba(255,255,255,0.5);
  /* darker "chrome" glass for the nav + sub-nav pills (reads as sleek dark glass,
     not a milky-grey slab, over the dark canvas) */
  --chrome-glass:     linear-gradient(180deg, #212127, #151519);
  --chrome-glass-brd: rgba(255,255,255,0.13);
}

/* --- nav dropdown: hovering "Security" reveals the sub-pages (set in site.js) --- */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-caret { margin-left: 5px; font-size: 9px; color: var(--text-faint); display: inline-block;
  transition: transform .22s var(--ease), color .2s; }
.nav-item:hover .nav-caret, .nav-item:focus-within .nav-caret { transform: rotate(180deg); color: var(--text-2); }
.nav-sub { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  min-width: 224px; display: flex; flex-direction: column; gap: 2px; padding: 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, #1d1d23, #161619);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 30px 66px -22px rgba(0,0,0,0.95);
  opacity: 0; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease); z-index: 60; }
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.nav-sub::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; } /* hover bridge */
.nav-sub .sub-head { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint);
  font-weight: 600; padding: 6px 12px 5px; }
.nav-sub a { padding: 9px 12px; border-radius: 11px; font-size: 13.5px; color: var(--text-2); white-space: nowrap;
  display: flex; align-items: center; gap: 11px; transition: background .18s, color .18s; }
.nav-sub a:hover { background: var(--surface-strong); color: #fff; }
.nav-sub a .sgi { flex: none; width: 16px; text-align: center; color: var(--text-faint); font-size: 12.5px; }
.nav-sub a:hover .sgi { color: #fff; }

/* --- sub-nav: a SINGLE glassy segmented pill linking across the security pages --- */
.secnav { position: sticky; top: var(--nav-h); z-index: 40; padding: 13px 0; background: var(--canvas); }
.secnav .wrap { display: flex; justify-content: center; }
.secnav-pill { display: inline-flex; gap: 2px; max-width: 100%; padding: 5px; overflow-x: auto;
  border-radius: var(--r-pill);
  background: var(--chrome-glass);
  border: 1px solid var(--chrome-glass-brd);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 16px 40px -26px rgba(0,0,0,0.8);
  scrollbar-width: none; -ms-overflow-style: none; }
.secnav-pill::-webkit-scrollbar { display: none; }
.secnav-pill a { flex: none; font-size: 13px; color: var(--text-2); padding: 8px 15px; border-radius: var(--r-pill);
  white-space: nowrap; transition: color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease); }
.secnav-pill a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.secnav-pill a.on { color: #0b0b0d; background: #fff; font-weight: 600;
  box-shadow: 0 2px 12px -2px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.8); }

/* --- status chips (safe = white / risk = red / neutral) --- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: var(--r-pill); font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
  background: var(--surface); border: 1px solid var(--hairline); color: var(--text-2); }
.chip.safe { color: #fff; border-color: rgba(255,255,255,0.45); }
.chip.risk { color: var(--negative); border-color: rgba(255,107,107,.32); }
.chip .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* --- trust-boundary zone: a labelled glass box for "Your Mac" vs the outside --- */
.sx-zone { border: 1px solid var(--glass-brd); border-radius: var(--r-card); padding: 18px 18px 20px;
  background: var(--glass-bg);
  box-shadow: var(--glass-hl), 0 24px 60px -38px rgba(0,0,0,0.8); position: relative; }
.sx-zone.safe { border-color: rgba(255,255,255,0.42); }
.sx-zone.safe::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), inset 0 0 70px -34px rgba(255,255,255,0.3); }
.sx-zone-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.sx-zone.safe .sx-zone-h { color: #fff; }
.sx-zone-h .lk { font-size: 12px; color: #fff; }
.sx-zone-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }

/* --- node: a single block in a diagram (sits on the frosted glass) --- */
.sx-node { background: rgba(255,255,255,0.04); border: 1px solid var(--hairline); border-radius: var(--r-inner);
  padding: 13px 14px; text-align: left; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
.sx-node b { display: block; font-size: 13px; color: #fff; }
.sx-node small { display: block; font-size: 11px; color: var(--text-3); margin-top: 3px; line-height: 1.45; }
.sx-node.accent { border-color: var(--hairline-strong); background: rgba(255,255,255,0.07); }

/* --- vertical flow pipeline (query -> instance -> engines -> result) --- */
.sx-flow { display: flex; flex-direction: column; align-items: stretch; gap: 9px; max-width: 460px; margin: 0 auto; }
.sx-flow .step { background: var(--glass-soft); border: 1px solid var(--hairline); border-radius: 14px;
  padding: 14px 16px; text-align: center; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
.sx-flow .step.boundary { border-color: rgba(255,255,255,0.42);
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), var(--white-glow); }
.sx-flow .step .t { font-size: 14px; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 8px; justify-content: center; }
.sx-flow .step .s { font-size: 11.5px; color: var(--text-3); margin-top: 4px; line-height: 1.5; }
.sx-flow .step .t .lk { color: #fff; font-size: 12px; }
.sx-flow .tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.sx-flow .tags span { font-size: 11px; color: var(--text-2); background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-pill); padding: 3px 10px; }
.sx-arrow { text-align: center; color: var(--text-faint); font-size: 13px; line-height: 1; }
.sx-flow .foot { text-align: center; font-size: 11px; color: var(--text-faint); margin-top: 4px; }

/* --- layer stack (Bulwark five layers) --- */
.sx-stack { display: flex; flex-direction: column; gap: 8px; max-width: 720px; }
.sx-layer { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start;
  background: var(--glass-soft); border: 1px solid var(--glass-brd); border-radius: var(--r-card);
  box-shadow: var(--glass-hl); padding: 18px 20px; transition: border-color .25s, background .25s, box-shadow .25s; }
.sx-layer:hover { border-color: rgba(255,255,255,0.3); background: var(--glass-bg);
  box-shadow: var(--glass-hl), 0 0 30px -16px rgba(255,255,255,0.4); }
.sx-layer .n { width: 40px; height: 40px; border-radius: 11px; background: var(--surface-strong);
  display: grid; place-items: center; font-family: var(--mono); font-size: 14px; font-weight: 700; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12); }
.sx-layer h3 { font-size: 17px; margin-bottom: 6px; letter-spacing: -.01em; }
.sx-layer h3 .k { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3);
  font-family: var(--mono); margin-left: 8px; font-weight: 600; }
.sx-layer p { font-size: 13.5px; color: var(--text-2); }
.sx-layer.model { background: linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.03));
  border-style: dashed; border-color: rgba(255,255,255,0.4); box-shadow: var(--glass-hl), var(--white-glow); }
.sx-layer.model .n { background: #fff; color: #0b0b0d; box-shadow: 0 2px 10px -2px rgba(255,255,255,0.5); }
.sx-layer.model h3 { color: #fff; }

/* --- spec / fact table (key -> value) --- */
.sx-spec { border: 1px solid var(--glass-brd); border-radius: var(--r-card); overflow: hidden; background: var(--glass-soft);
  box-shadow: var(--glass-hl); }
.sx-spec .r { display: grid; grid-template-columns: 200px 1fr; gap: 18px; padding: 13px 18px; }
.sx-spec .r + .r { border-top: 1px solid var(--hairline); }
.sx-spec .k { font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.sx-spec .v { font-size: 13.5px; color: rgba(255,255,255,0.9); }
.sx-spec .v code { font-size: 0.86em; }

/* --- threat -> mitigation rows (red threat, white mitigation) --- */
.sx-threats { display: grid; gap: 12px; }
.sx-threat { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--glass-brd);
  border-radius: var(--r-card); overflow: hidden; box-shadow: var(--glass-hl); }
.sx-threat > div { padding: 18px 20px; }
.sx-threat .th { background: rgba(255,107,107,0.05); border-right: 1px solid var(--hairline); }
.sx-threat .mi { background: var(--glass-soft); }
.sx-threat .lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.sx-threat .th .lbl { color: var(--negative); }
.sx-threat .mi .lbl { color: #fff; }
.sx-threat b { color: #fff; font-size: 14px; display: block; margin-bottom: 4px; }
.sx-threat p { font-size: 13px; color: var(--text-2); }

/* --- "what we can never do" assurance list --- */
.sx-never { display: grid; gap: 10px; }
.sx-never li { list-style: none; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2);
  background: var(--glass-soft); border: 1px solid var(--hairline); border-radius: var(--r-inner); padding: 13px 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
.sx-never li .x { flex: none; width: 22px; height: 22px; border-radius: 6px; background: rgba(255,107,107,0.12);
  color: var(--negative); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.sx-never li b { color: #fff; }

/* --- horizontal arch diagram (sandbox: app <-> XPC <-> helper) --- */
.sx-arch { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.sx-arch .bus { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-3); font-size: 11px; }
.sx-arch .bus .ln { width: 1px; height: 28px; background: linear-gradient(180deg, transparent, var(--hairline-strong), transparent); }
.sx-arch .bus .lr { font-size: 16px; color: rgba(255,255,255,0.5); }

/* --- security-page-scoped polish: glass panels, glass cards, white status dot --- */
body[data-page="security"] .panel-visual { background: var(--glass-bg);
  border: 1px solid var(--glass-brd); box-shadow: var(--glass-hl), 0 32px 72px -42px rgba(0,0,0,0.85); }
body[data-page="security"] .card { background: var(--glass-soft); border-color: var(--hairline);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
body[data-page="security"] .card:hover { background: var(--glass-bg); border-color: rgba(255,255,255,0.26);
  box-shadow: var(--glass-hl), 0 0 30px -18px rgba(255,255,255,0.4); }
body[data-page="security"] .cta-band { box-shadow: var(--glass-hl); }
body[data-page="security"] .dot-live { background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.4); animation: pulseSoon 2.6s infinite; }
/* render the padlock glyphs as a clean white silhouette (no gold emoji color) */
body[data-page="security"] .lk { filter: brightness(0) invert(1); }

@media (max-width: 760px) {
  .sx-threat { grid-template-columns: 1fr; }
  .sx-threat .th { border-right: none; border-bottom: 1px solid var(--hairline); }
  .sx-spec .r { grid-template-columns: 1fr; gap: 4px; }
  .sx-arch { grid-template-columns: 1fr; }
  .sx-arch .bus { flex-direction: row; }
  .sx-arch .bus .ln { width: 28px; height: 1px; }
}

/* --- mobile: dropdown collapses inline into the open hamburger menu --- */
@media (max-width: 680px) {
  .nav-item { display: flex; flex-direction: column; align-items: stretch; }
  .nav-caret { display: none; }
  .nav-sub { position: static; transform: none; opacity: 1; pointer-events: auto; min-width: 0;
    margin: 2px 0 6px 12px; padding: 0; background: none; border: none; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-sub::before { display: none; }
  .nav-sub .sub-head { display: none; }
  .nav-sub a { padding: 10px 12px; }
}

