/* ==========================================================================
   SolFox — marketing site
   Pure CSS, no frameworks, no webfonts. Apple-inspired design language.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* surfaces */
  --bg:           #fbfbfd;
  --bg-alt:       #f5f5f7;
  --bg-card:      #ffffff;
  --bg-dark:      #000000;
  --bg-dark-card: #161617;

  /* text */
  --text:         #1d1d1f;
  --text-2:       #6e6e73;
  --text-3:       #86868b;
  --text-on-dark: #f5f5f7;

  /* brand (derived from the logo cube) */
  --blue-300: #4090e0;
  --blue-400: #2878d0;
  --blue-500: #0b5ac2;
  --blue-600: #0848a8;
  --blue-hover: #1268d9;

  /* gradients */
  --grad-brand: linear-gradient(135deg, #4090e0 0%, #0b5ac2 55%, #0848a8 100%);
  --grad-hero-glow:
    radial-gradient(42% 46% at 50% 42%, rgba(64,144,224,.28) 0%, rgba(64,144,224,0) 70%),
    radial-gradient(30% 34% at 62% 60%, rgba(8,72,168,.18) 0%, rgba(8,72,168,0) 70%);
  --grad-text: linear-gradient(90deg, #2878d0, #0848a8);

  /* hairlines */
  --hairline:      rgba(0,0,0,.08);
  --hairline-soft: rgba(0,0,0,.06);
  --divider:       #d2d2d7;

  /* status */
  --status-green: #30d158;
  --status-gray:  #d2d2d7;
  --green-text:   #1e7e34;
  --mac-red:    #ff5f57;
  --mac-yellow: #febc2e;
  --mac-green:  #28c840;

  /* spacing (4px base) */
  --sp-1: 4px;  --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px;  --sp-7: 48px;  --sp-8: 64px;
  --sp-9: 96px; --sp-10: 120px; --sp-11: 160px;

  /* radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 24px;
  --r-pill: 980px;

  /* shadows */
  --shadow-window: 0 30px 60px rgba(0,0,0,.12), 0 10px 24px rgba(0,0,0,.08);
  --shadow-card-hover: 0 20px 40px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
  --shadow-nav: 0 1px 0 rgba(0,0,0,.08);
  --shadow-btn: 0 1px 2px rgba(0,0,0,.12);

  /* layout */
  --content-w: 980px;
  --wide-w: 1200px;
  --nav-h: 48px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  /* the hero glow (.hero-stage::before) intentionally bleeds past the
     viewport; clip (not hidden — no scroll container, sticky nav intact) */
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
svg { display: inline-block; vertical-align: middle; }

:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.download :focus-visible { outline-color: #fff; }

/* CJK: negative tracking looks wrong */
html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3,
html[lang="zh-CN"] .dd-h { letter-spacing: 0; }

/* skip link */
.skip {
  position: absolute; top: -48px; left: 8px; z-index: 200;
  background: #fff; color: var(--blue-500);
  padding: 8px 16px; border-radius: var(--r-sm);
  transition: top .2s ease;
}
/* shadow only when visible — while parked off-screen it bleeds into the
   top-left corner of the viewport as a grey smudge */
.skip:focus { top: 8px; box-shadow: var(--shadow-card-hover); }

/* ---------- 3. Typography helpers ---------- */
.eyebrow {
  font-size: 14px; font-weight: 600; line-height: 1.2;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: var(--sp-3);
}

.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 4. Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--r-pill);
  font-size: 17px; font-weight: 500; line-height: 1;
  padding: 12px 24px; min-height: 48px;
  transition: background .2s ease, transform .2s ease;
  cursor: pointer;
}
.btn-primary { background: var(--blue-500); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-primary:active { background: var(--blue-600); }
.btn-secondary { background: transparent; color: var(--blue-500); }
.btn-secondary:hover { text-decoration: underline; }

.chev { flex: none; transition: transform .2s ease; }
.btn-secondary:hover .chev,
.link-chev:hover .chev { transform: translateX(3px); }

.link-chev {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue-500); font-size: 17px;
}
.link-chev:hover { text-decoration: underline; }

/* ---------- 5. Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(251,251,253,.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
@supports not (backdrop-filter: blur(20px)) {
  .nav { background: rgba(251,251,253,.94); }
}
.nav.scrolled { border-bottom-color: var(--hairline); box-shadow: var(--shadow-nav); }

.nav-inner {
  max-width: 1024px; margin-inline: auto; height: 100%;
  padding-inline: 22px;
  display: flex; align-items: center; gap: var(--sp-6);
}
.nav-logo { display: flex; align-items: center; gap: 8px; }
.nav-logo img { width: 28px; height: 28px; }
.nav-logo span { font-size: 17px; font-weight: 600; color: var(--text); }

.nav-links { display: flex; gap: var(--sp-6); margin-left: auto; }
.nav-links a {
  font-size: 13px; line-height: 1; letter-spacing: -0.01em;
  color: rgba(29,29,31,.8);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: var(--sp-4); margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }

.lang-switch {
  display: flex; padding: 2px;
  border: 1px solid var(--hairline); border-radius: var(--r-pill);
}
.lang-switch a {
  font-size: 12px; line-height: 1; padding: 5px 10px;
  border-radius: var(--r-pill); color: var(--text-2);
  transition: color .2s ease;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active { background: var(--text); color: #fff; }

.btn-nav { min-height: 28px; padding: 4px 14px; font-size: 12px; }

/* ---------- 6. Hero ---------- */
.hero {
  padding: var(--sp-10) 22px var(--sp-9);
  text-align: center;
  /* clip the glow's horizontal bleed at the source (x-axis only, so the
     vertical glow and the app-window shadow are untouched) */
  overflow-x: clip;
}
.hero-logo { width: 56px; height: 56px; margin: 0 auto var(--sp-5); }
.hero h1 {
  font-size: clamp(48px, 7.5vw, 96px);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.02em;
  max-width: 14ch; margin-inline: auto;
}
.hero-sub {
  font-size: clamp(19px, 2.2vw, 28px);
  line-height: 1.25; letter-spacing: -0.01em;
  color: var(--text-2);
  max-width: 600px; margin: var(--sp-5) auto 0;
}
.hero-cta {
  display: flex; gap: var(--sp-4); justify-content: center;
  margin-top: var(--sp-6);
}
.hero-stage { position: relative; max-width: var(--wide-w); margin: var(--sp-8) auto 0; }
.hero-stage::before {
  content: ""; position: absolute; inset: -12% -8% -18%;
  background: var(--grad-hero-glow);
  filter: blur(48px);
  z-index: 0; pointer-events: none;
}

/* ---------- 7. App window mockup ---------- */
.app-window {
  position: relative; z-index: 1;
  max-width: 940px; margin-inline: auto;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  text-align: left;
  display: grid; grid-template-rows: 40px 1fr;
  aspect-ratio: 16 / 10;
  font-size: 13px;
  letter-spacing: -0.01em;
}

/* titlebar */
.aw-titlebar {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--hairline-soft);
}
.aw-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.aw-dot.red    { background: var(--mac-red); }
.aw-dot.yellow { background: var(--mac-yellow); }
.aw-dot.green  { background: var(--mac-green); }
.aw-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 13px; font-weight: 600; color: var(--text-2);
}

/* body: sidebar + main */
.aw-body { display: grid; grid-template-columns: 200px 1fr; min-height: 0; }

.aw-sidebar {
  background: var(--bg-alt);
  border-right: 1px solid var(--hairline-soft);
  padding: 14px 10px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 0; overflow: hidden;
}
.aw-account { display: flex; align-items: center; gap: 10px; padding: 2px 6px; }
.aw-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--blue-500); color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600;
}
.aw-account-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.aw-account-meta strong { font-size: 13px; font-weight: 600; }
.aw-account-meta small {
  font-size: 11px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.aw-nav { display: flex; flex-direction: column; gap: 2px; }
.aw-nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: var(--r-sm);
  font-size: 13px; color: var(--text-2);
  white-space: nowrap;
}
.aw-nav-item svg { width: 14px; height: 14px; flex: none; }
.aw-nav-item.active {
  background: rgba(11,90,194,.10);
  color: var(--blue-500); font-weight: 600;
}
.aw-nav-footer { margin-top: auto; }

.aw-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }

.aw-toolbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline-soft);
}
.aw-page-title { font-size: 15px; font-weight: 700; white-space: nowrap; }
.aw-online {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-2); white-space: nowrap;
}
.aw-online i { width: 8px; height: 8px; border-radius: 50%; background: var(--status-green); }
.aw-search {
  margin-left: auto;
  display: flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px;
  border-radius: var(--r-sm); background: var(--bg-alt);
  color: var(--text-3); font-size: 12px;
  flex: 0 1 240px; min-width: 0;
  white-space: nowrap; overflow: hidden;
}
.aw-search svg { width: 12px; height: 12px; flex: none; }
.aw-newbtn {
  display: inline-flex; align-items: center;
  height: 28px; padding: 0 12px; flex: none;
  border-radius: var(--r-pill);
  background: var(--blue-500); color: #fff;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}

.aw-chips {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--hairline-soft);
  overflow: hidden;
}
.aw-chip {
  font-size: 11px; line-height: 1; padding: 5px 10px;
  border: 1px solid var(--hairline); border-radius: var(--r-pill);
  color: var(--text-2); white-space: nowrap;
}
.aw-chip.active { background: var(--text); border-color: var(--text); color: #fff; }

.aw-table { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.aw-row {
  display: grid;
  grid-template-columns: 16px 1.6fr 1.5fr 70px 92px 70px;
  align-items: center; gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--hairline-soft);
}
.aw-check {
  width: 14px; height: 14px;
  border: 1.5px solid var(--divider); border-radius: 4px;
}
.aw-profile { display: flex; align-items: center; gap: 10px; min-width: 0; }
.aw-pava {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: #ff7139; color: #fff;
  display: grid; place-items: center;
}
.aw-pava svg { width: 15px; height: 15px; }
.aw-pmeta { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.aw-pmeta b {
  font-size: 13px; font-weight: 600; color: var(--blue-500);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.aw-pmeta small { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.aw-proxy { display: flex; align-items: center; gap: 8px; min-width: 0; }
.aw-cc {
  font-size: 10px; font-weight: 700; letter-spacing: .02em;
  padding: 3px 6px; border-radius: 5px; flex: none;
  background: rgba(11,90,194,.10); color: var(--blue-500);
}
.aw-pxmeta { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.aw-pxline {
  font-size: 11.5px; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.aw-ip {
  font-size: 11px; color: var(--green-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.aw-ip.muted { color: var(--text-3); }
.aw-tag {
  justify-self: start;
  font-size: 11px; line-height: 1; padding: 4px 9px;
  border: 1px solid var(--hairline); border-radius: var(--r-pill);
  color: var(--text-2); white-space: nowrap;
}
.aw-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.aw-status i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.aw-status.running { color: var(--text); }
.aw-status.running i { background: var(--status-green); }
.aw-status.idle { color: var(--text-2); }
.aw-status.idle i { background: var(--status-gray); }
.aw-btn {
  justify-self: end;
  font-size: 12px; line-height: 1; color: var(--blue-500);
  border: 1px solid var(--hairline); border-radius: var(--r-pill);
  padding: 5px 12px; white-space: nowrap;
}
.aw-pagination {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  font-size: 11.5px; color: var(--text-3);
  border-top: 1px solid var(--hairline-soft);
}
.aw-pages { display: flex; align-items: center; gap: 8px; }
.aw-pages b {
  width: 20px; height: 20px; display: grid; place-items: center;
  background: rgba(11,90,194,.10); color: var(--blue-500);
  border-radius: 6px; font-weight: 600;
}

/* ---------- 8. Bento feature grid ---------- */
.features {
  max-width: var(--wide-w); margin-inline: auto;
  padding: var(--sp-10) 22px;
}
.section-head { text-align: center; margin-bottom: var(--sp-8); }
.section-head h2,
.faq > h2,
.download h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.015em;
}

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.bento > :nth-child(1) { grid-column: span 2; }
.bento > :nth-child(6) { grid-column: span 2; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  min-height: 200px;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.card-icon { width: 40px; height: 40px; margin-bottom: var(--sp-4); }
.card h3 {
  font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: -0.011em;
  margin-bottom: var(--sp-2);
}
.card p { font-size: 15px; line-height: 1.47; color: var(--text-2); }

/* ---------- 9. Deep-dive rows ---------- */
.deepdive {
  max-width: 1100px; margin-inline: auto;
  padding: var(--sp-9) 22px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-8); align-items: center;
}
.deepdive.flip .dd-text { order: 2; }
.deepdive.flip .dd-visual { order: 1; }

.dd-h {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.012em;
  margin-bottom: var(--sp-4);
}
.dd-body {
  font-size: 17px; line-height: 1.47; color: var(--text-2);
  max-width: 44ch; margin-bottom: var(--sp-5);
}
.dd-visual {
  aspect-ratio: 1 / 1;
  width: 100%; max-width: 460px; margin-inline: auto;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #f5f5f7, #fbfbfd);
  border: 1px solid var(--hairline-soft);
  display: grid; place-items: center;
}
.dd-visual > svg { width: 70%; height: auto; }

/* animated proxy route */
.route-dash { animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.pulse {
  animation: pulse 2s ease-out infinite;
  transform-origin: center; transform-box: fill-box;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: .6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* isolation stack */
.stack { position: relative; width: 70%; aspect-ratio: 4 / 3; }
.stack .layer {
  position: absolute; inset: 0; height: 31%;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: 0 12px 24px rgba(0,0,0,.06);
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px;
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.stack .layer:nth-child(1) { top: 0;     z-index: 3; }
.stack .layer:nth-child(2) { top: 34.5%; z-index: 2; transform: scale(.96); opacity: .9; }
.stack .layer:nth-child(3) { top: 69%;   z-index: 1; transform: scale(.92); opacity: .8; }
.dd-visual:hover .layer:nth-child(1) { transform: translateY(-6px); }
.dd-visual:hover .layer:nth-child(3) { transform: scale(.92) translateY(8px); }
.layer .pdot { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.layer b { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.layer svg { margin-left: auto; width: 14px; height: 14px; color: var(--text-3); flex: none; }

/* ---------- 10. Download (dark) ---------- */
.download {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--sp-10) 22px;
  text-align: center;
}
.dl-logo { position: relative; display: inline-block; margin-bottom: var(--sp-5); }
.dl-logo::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 220px; height: 220px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(64,144,224,.4), transparent);
  filter: blur(40px);
  pointer-events: none;
}
.dl-logo img { position: relative; width: 64px; height: 64px; }
.dl-sub { margin-top: var(--sp-3); font-size: 17px; color: var(--text-3); }
.dl-buttons {
  margin-top: var(--sp-6);
  display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap;
}
.btn-dl {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: #1d1d1f;
  min-height: 56px; padding: 14px 28px;
  border-radius: var(--r-pill);
  font-size: 17px; font-weight: 600; line-height: 1;
  transition: background .2s ease;
}
.btn-dl:hover { background: #e8e8ed; }
.btn-dl svg { fill: currentColor; flex: none; }
.dl-caption { margin-top: 20px; font-size: 12px; line-height: 1.33; color: #86868b; }

/* ---------- 11. FAQ ---------- */
.faq { max-width: 680px; margin-inline: auto; padding: var(--sp-10) 22px; }
.faq > h2 { text-align: center; margin-bottom: var(--sp-7); }
.faq-item { border-top: 1px solid var(--divider); }
.faq-item:last-child { border-bottom: 1px solid var(--divider); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 4px;
  font-size: 19px; font-weight: 600; letter-spacing: -0.012em;
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chev-d { flex: none; color: var(--text-2); transition: transform .3s ease; }
.faq-item[open] summary .chev-d { transform: rotate(180deg); }
.faq-body { padding: 0 4px 22px; font-size: 17px; color: var(--text-2); max-width: 60ch; }

/* ---------- 12. Footer ---------- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--divider);
  padding: var(--sp-7) 22px;
  font-size: 12px; line-height: 1.33; letter-spacing: -0.01em;
  color: #424245;
}
.footer-inner { max-width: var(--content-w); margin-inline: auto; }
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand img { width: 20px; height: 20px; }
.footer-brand span { font-size: 14px; font-weight: 600; color: var(--text); }
.footer-links { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.footer-links a { color: #424245; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom {
  margin-top: var(--sp-6); padding-top: var(--sp-4);
  border-top: 1px solid var(--divider);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  /* --text-2, not --text-3: 4.66:1 on --bg-alt, passes WCAG AA at 12px */
  color: var(--text-2);
}
.footer-bottom a { color: var(--text-2); }
.footer-bottom a:hover { color: var(--text); text-decoration: underline; }

/* ---------- 13. Motion: scroll reveal ---------- */
/* The hidden state is gated on the .js class, which app.js adds to <html>.
   If JS is disabled or app.js fails to load, content stays fully visible. */
.js .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- 14. Responsive: ≤1068px ---------- */
@media (max-width: 1068px) {
  .hero { padding: var(--sp-9) 22px var(--sp-8); }
  .features, .download, .faq { padding-top: var(--sp-9); padding-bottom: var(--sp-9); }
  .deepdive { padding-top: var(--sp-8); padding-bottom: var(--sp-8); gap: var(--sp-6); }
  .dd-visual { max-width: 400px; }

  .nav-links { gap: var(--sp-4); }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > * { grid-column: span 1; }
  .bento > :nth-child(1), .bento > :nth-child(6) { grid-column: span 2; }

  .aw-body { grid-template-columns: 168px 1fr; }
  .aw-nav-item, .aw-account-meta strong { font-size: 12px; }
  .aw-row { grid-template-columns: 16px 1.6fr 1.5fr 92px 70px; }
  .aw-tag { display: none; }
}

/* Below ~880px the fixed 16/10 window is too short for all six profile
   rows — let it grow to fit instead of slicing the last row. */
@media (max-width: 880px) {
  .app-window { aspect-ratio: auto; min-height: 380px; }
}

/* ---------- 15. Responsive: ≤734px ---------- */
@media (max-width: 734px) {
  .hero { padding: var(--sp-8) 16px var(--sp-8); }
  .features, .download, .faq { padding: var(--sp-8) 16px; }
  .deepdive { padding: var(--sp-8) 16px; }

  .nav-links { display: none; }
  .nav-inner { padding-inline: 16px; }

  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: min(320px, 100%); }

  .aw-body { grid-template-columns: 1fr; }
  .aw-sidebar { display: none; }
  .aw-search { flex-basis: 140px; }
  .aw-row { grid-template-columns: 14px 1fr 84px 64px; font-size: 12px; }
  .aw-proxy { display: none; }
  .aw-btn { padding: 4px 10px; }

  .bento { grid-template-columns: 1fr; }
  .bento > :nth-child(1), .bento > :nth-child(6) { grid-column: span 1; }
  .card { min-height: auto; padding: var(--sp-5); }

  .deepdive { grid-template-columns: 1fr; }
  .deepdive .dd-text, .deepdive.flip .dd-text { order: 1; }
  .deepdive .dd-visual, .deepdive.flip .dd-visual { order: 2; max-width: 340px; }

  .dl-buttons { flex-direction: column; align-items: center; }
  .btn-dl { width: min(320px, 100%); }

  .faq-item summary { font-size: 17px; padding: 18px 4px; }

  .footer-bottom { flex-direction: column; }
}
