/* ============================================================
   Babak Askary — app product pages (/apps/<slug>/)
   Self-contained: the home page's style.css locks the body to
   overflow:hidden and fixed-position views, which product pages
   (long, scrolling, Apple-style) must not inherit.
   ============================================================ */

:root {
  --bg:        #000000;
  --bg-2:      #0a0a0c;
  --card:      #161618;
  --card-2:    #1c1c1e;
  --line:      rgba(255,255,255,.10);
  --line-2:    rgba(255,255,255,.16);

  --text:      #f5f5f7;
  --text-2:    #a1a1a6;
  --text-3:    #86868b;

  --accent:    #2997ff;   /* Apple dark-mode blue */
  --accent-hi: #57adff;

  /* per-app accent — each page overrides these.
     --on-tint is the text colour that sits ON a solid --tint fill, so light
     tints (gold, lime) stay readable instead of white-on-yellow. */
  --tint:      #2997ff;
  --tint-2:    #7856ff;
  --on-tint:   #ffffff;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --nav-h: 56px;
  --wrap: 1040px;
  --radius: 20px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
code {
  font-family: var(--mono); font-size: .88em;
  background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 5px;
}
::selection { background: rgba(41,151,255,.32); color: #fff; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 500;
  background: var(--text); color: #000; padding: 10px 16px; border-radius: 10px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--tint); outline-offset: 3px; border-radius: 6px; }

/* ---------- nav (matches home) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  background: rgba(0,0,0,.6);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--wrap); margin: 0 auto; height: 100%; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: color .2s var(--ease); position: relative; padding: 4px 0;
}
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--tint); border-radius: 2px;
}
.nav__toggle {
  display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav__toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- shared layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 116px) 0; position: relative; }
.section--tight { padding: clamp(44px, 6vw, 72px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.eyebrow {
  margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--tint);
}
.section__head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__title {
  font-size: clamp(30px, 4.4vw, 48px); line-height: 1.06; letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 0%, #c9ced8 140%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-wrap: balance;
}
.section__lede {
  margin-top: 18px; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.6; color: var(--text-2);
  text-wrap: pretty;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; border: 0;
  font-family: var(--sans); font-size: 16px; font-weight: 500;
  padding: 12px 24px; border-radius: 980px; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn--sm { font-size: 14px; padding: 9px 18px; }
.btn--primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 88%, #fff), var(--tint));
  color: var(--on-tint); box-shadow: 0 6px 20px color-mix(in srgb, var(--tint) 34%, transparent);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 26px color-mix(in srgb, var(--tint) 46%, transparent);
}
.btn--ghost { background: rgba(255,255,255,.04); color: var(--text); border: 1px solid var(--line-2); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: var(--text-2); transform: translateY(-1px); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }

/* ---------- breadcrumb ---------- */
.crumbs {
  padding-top: calc(var(--nav-h) + 26px);
  font-size: 13px; color: var(--text-3);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.crumbs a { color: var(--text-3); transition: color .2s var(--ease); }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-current] { color: var(--text-2); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 clamp(56px, 7vw, 88px); }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero__glow {
  position: absolute; border-radius: 50%; filter: blur(90px);
  width: min(680px, 84vw); aspect-ratio: 1; top: -30%; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--tint) 40%, transparent), transparent 68%);
}
.hero__glow--2 {
  width: min(460px, 62vw); top: auto; bottom: -34%; left: 16%; transform: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--tint-2) 30%, transparent), transparent 68%);
}
.hero__grain {
  position: absolute; inset: 0; opacity: .045; background-size: 130px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='130'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }

.hero__icon {
  width: 112px; height: 112px; border-radius: 26px; overflow: hidden;
  display: grid; place-items: center; margin-bottom: 26px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 14px 40px rgba(0,0,0,.6),
              0 0 60px color-mix(in srgb, var(--tint) 26%, transparent);
}
.hero__icon img { width: 100%; height: 100%; object-fit: cover; }

.hero__platform {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .03em; color: var(--text-2);
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  padding: 5px 13px; border-radius: 980px; margin-bottom: 20px;
}
.hero__platform svg { color: var(--text-2); }

.hero__title {
  font-size: clamp(42px, 7vw, 78px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600;
  background: linear-gradient(180deg, #ffffff 0%, #c9ced8 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-wrap: balance;
}
.hero__tagline {
  margin-top: 20px; max-width: 660px;
  font-size: clamp(18px, 2.3vw, 25px); line-height: 1.45; color: var(--text);
  font-weight: 500; letter-spacing: -0.015em; text-wrap: balance;
}
.hero__sub {
  margin-top: 16px; max-width: 620px;
  font-size: clamp(15px, 1.7vw, 17px); line-height: 1.62; color: var(--text-2); text-wrap: pretty;
}
.hero__cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: 16px; font-size: 12.5px; color: var(--text-3); }

/* ---------- stat strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: clamp(44px, 6vw, 64px);
}
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 18px; text-align: center;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.stat:hover { border-color: color-mix(in srgb, var(--tint) 34%, transparent); background: var(--card-2); transform: translateY(-2px); }
.stat__num {
  font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; letter-spacing: -0.03em; line-height: 1;
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--tint) 62%, #fff));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { margin-top: 9px; font-size: 12.5px; color: var(--text-3); line-height: 1.4; }

/* ---------- alternating feature rows ---------- */
.frow {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.frow + .frow { margin-top: clamp(56px, 8vw, 96px); }
.frow--flip .frow__text { order: 2; }
/* grid items default to min-width:auto, which lets the nowrap paths inside a
   panel widen the column instead of ellipsing. Let both columns shrink. */
.frow__text, .frow__visual { min-width: 0; }
.frow__kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tint); margin-bottom: 14px;
}
.frow__title {
  font-size: clamp(25px, 3.2vw, 36px); line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance;
}
.frow__body { margin-top: 16px; font-size: 16px; line-height: 1.65; color: var(--text-2); text-wrap: pretty; }
.frow__body + .frow__body { margin-top: 13px; }
.frow__list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.frow__list li {
  position: relative; padding-left: 26px; font-size: 15px; color: var(--text-2); line-height: 1.55;
}
.frow__list li::before {
  content: ""; position: absolute; left: 0; top: .48em;
  width: 15px; height: 15px; border-radius: 50%;
  background: color-mix(in srgb, var(--tint) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--tint) 55%, transparent);
}
.frow__list li::after {
  content: ""; position: absolute; left: 4.4px; top: .72em;
  width: 6px; height: 3px; border-left: 1.6px solid var(--tint); border-bottom: 1.6px solid var(--tint);
  transform: rotate(-45deg);
}
.frow__list strong { color: var(--text); font-weight: 600; }

/* the visual side: a framed device-ish panel */
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 140px) var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; overflow: hidden; position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 70% at 50% -10%, color-mix(in srgb, var(--tint) 12%, transparent), transparent 60%);
}
.panel__bar { display: flex; gap: 6px; margin-bottom: 16px; }
.panel__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.panel__caption { margin-top: 16px; font-size: 12px; color: var(--text-3); text-align: center; }

/* mock rows used inside panels */
.mock { display: grid; gap: 10px; position: relative; }
.mock__row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 12px;
  background: rgba(255,255,255,.035); border: 1px solid var(--line);
}
.mock__ico {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--tint) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--tint) 34%, transparent);
  color: var(--tint); font-size: 13px;
}
.mock__body { flex: 1; min-width: 0; }
.mock__name { font-size: 13.5px; font-weight: 500; color: var(--text); }
.mock__path {
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px;
}
.mock__size { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* confidence pills */
.cpill {
  font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 980px; white-space: nowrap;
}
.cpill--exact  { color: #6ee7a8; background: rgba(48,209,88,.14);  border: 1px solid rgba(48,209,88,.34); }
.cpill--strong { color: #78bbff; background: rgba(41,151,255,.14); border: 1px solid rgba(41,151,255,.34); }
.cpill--partial{ color: #ffc46b; background: rgba(255,159,10,.14); border: 1px solid rgba(255,159,10,.34); }
.cpill--uncert { color: #a1a1a6; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); }

/* segmented progress bar (download engine visual) */
.segbar {
  display: flex; height: 26px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: rgba(255,255,255,.04);
}
.segbar__seg { position: relative; height: 100%; border-right: 1px solid rgba(0,0,0,.5); }
.segbar__seg:last-child { border-right: 0; }
.segbar__done { height: 100%; background: linear-gradient(180deg, var(--accent-hi), var(--accent)); }
.segbar__legend {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 11.5px; color: var(--text-3);
}
.segbar__key { display: inline-flex; align-items: center; gap: 6px; }
.segbar__sw { width: 10px; height: 10px; border-radius: 3px; }

/* ---------- feature grid ---------- */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fgrid--2 { grid-template-columns: repeat(2, 1fr); }
.fcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.fcard:hover {
  transform: translateY(-4px); background: var(--card-2);
  border-color: color-mix(in srgb, var(--tint) 34%, transparent);
  box-shadow: 0 18px 44px rgba(0,0,0,.42);
}
.fcard__ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: color-mix(in srgb, var(--tint) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tint) 30%, transparent);
  color: var(--tint);
}
.fcard__title { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.fcard__desc { margin-top: 9px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }

/* ---------- spec table ---------- */
.specs {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.spec {
  display: grid; grid-template-columns: 230px 1fr; gap: 20px;
  padding: 17px clamp(18px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
}
.spec:last-child { border-bottom: 0; }
.spec__k { font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: .02em; }
.spec__v { font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.spec__v strong { color: var(--text); font-weight: 600; }

/* ---------- callout ---------- */
.callout {
  border: 1px solid color-mix(in srgb, var(--tint) 28%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 9%, transparent), rgba(255,255,255,.02));
  border-radius: var(--radius); padding: clamp(24px, 3.4vw, 36px);
  display: flex; gap: 20px; align-items: flex-start;
}
.callout__ico {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--tint) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--tint) 34%, transparent); color: var(--tint);
}
.callout__title { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.callout__body { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.faq__item[open] { background: var(--card-2); border-color: var(--line-2); }
.faq__q {
  list-style: none; cursor: pointer; padding: 19px 22px;
  font-size: 16px; font-weight: 500; color: var(--text); letter-spacing: -0.01em;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ""; flex: 0 0 auto; width: 9px; height: 9px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg) translateY(-2px); }
.faq__a { padding: 0 22px 20px; font-size: 15px; line-height: 1.65; color: var(--text-2); text-wrap: pretty; }
.faq__a a { color: var(--tint); }

/* ---------- closing CTA ---------- */
.cta-band { text-align: center; }
.cta-band__title {
  font-size: clamp(30px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 0%, #c9ced8 140%);
  -webkit-background-clip: text; background-clip: text; color: transparent; text-wrap: balance;
}
.cta-band__sub { margin-top: 18px; font-size: 17px; color: var(--text-2); text-wrap: pretty; }
.cta-band__actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- App Store badge ---------- */
.asbadge-link { display: inline-flex; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.asbadge-link:hover { transform: translateY(-1px); opacity: .9; }
.asbadge-soon { display: inline-flex; }
.asbadge { display: block; }

/* ---------- other apps ---------- */
.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.more__card {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.more__card:hover { transform: translateY(-3px); background: var(--card-2); border-color: var(--line-2); }
.more__ico {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 11px; overflow: hidden;
  display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--line);
}
.more__ico img { width: 100%; height: 100%; object-fit: cover; }
.more__name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.more__meta { margin-top: 2px; font-size: 12.5px; color: var(--text-3); }

/* ---------- footer ---------- */
.pfooter { border-top: 1px solid var(--line); padding: 40px 0 120px; }
.pfooter__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.pfooter__copy { font-size: 13px; color: var(--text-3); }
.pfooter__links { display: flex; gap: 22px; flex-wrap: wrap; }
.pfooter__links a { font-size: 13px; color: var(--text-3); transition: color .2s var(--ease); }
.pfooter__links a:hover { color: var(--text); }

/* ---------- contact dock (matches home) ---------- */
.footdock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; justify-content: center; gap: 20px;
  padding: 30px 0 max(18px, env(safe-area-inset-bottom));
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 45%, rgba(0,0,0,0) 100%);
}
.footdock::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent);
  mask-image: linear-gradient(to top, #000 55%, transparent);
}
.footdock__link {
  pointer-events: auto; color: var(--text-3);
  display: inline-flex; padding: 8px;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.footdock__link:hover { color: var(--text); transform: translateY(-2px); }
.footdock__link[aria-label="LinkedIn"] svg { transform: scale(.92); }
.footdock__link[aria-label="Email Babak"] svg { transform: scale(1.1); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(20px);
  background: #f5f5f7; color: #000; padding: 13px 20px; border-radius: 980px;
  font-size: 14.5px; font-weight: 500; z-index: 400; box-shadow: 0 10px 40px rgba(0,0,0,.5);
  opacity: 0; transition: opacity .28s var(--ease), transform .28s var(--ease); max-width: 90vw; text-align: center;
}
.toast[hidden] { display: none; }
.toast.is-shown { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .fgrid { grid-template-columns: repeat(2, 1fr); }
  .more  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .frow { grid-template-columns: 1fr; gap: 30px; }
  .frow--flip .frow__text { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .spec { grid-template-columns: 1fr; gap: 6px; }
  .callout { flex-direction: column; gap: 16px; }
}

@media (max-width: 640px) {
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,10,12,.96);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 15px 24px; font-size: 16px; border-top: 1px solid var(--line); }
  .nav__links a.is-active::after { display: none; }
  .nav__toggle { display: flex; }
  .fgrid, .fgrid--2, .more { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; justify-content: center; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
