/* ==========================================================================
   DiskManager landing page
   Design tokens mirror src/renderer/index.css 1:1 (same --background, --panel,
   --accent, module-accent palette) so this page reads as the same product,
   not a reskin. Deliberately no build step: plain CSS, system-loaded fonts,
   lucide icons via CDN — the page must open from a bare file:// or any
   static host with zero tooling.

   Motion language is deliberately Apple-like: long ease-out curves
   (cubic-bezier(0.22, 1, 0.36, 1)), blur-to-focus reveals, scroll-scrubbed
   perspective on the hero shot, and gentle parallax — all disabled under
   prefers-reduced-motion.
   ========================================================================== */

:root {
  --background: #050505;
  --panel: #0a0a0a;
  --panel-border: rgba(255, 255, 255, 0.1);
  --foreground: #ffffff;
  --accent: #ff3e00;
  --accent-glow: rgba(255, 62, 0, 0.35);
  --muted: rgba(255, 255, 255, 0.4);
  --muted-2: rgba(255, 255, 255, 0.6);

  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --container: 1180px;
  --radius-window: 12px;

  /* Apple-style ease: fast start, very long settle. */
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--font-mono); }
::selection { background: var(--accent); color: #000; }

.accent-text { color: var(--accent); }

/* Faint grain overlay for depth — matches the app's near-black (never flat
   pure-black) panel treatment. */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  /* Plain low-opacity composite — the previous `mix-blend-mode: overlay`
     forced a full-viewport blend recomposite on every scrolled frame, the
     single biggest source of scroll jank on this page. */
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Premium detail: scrollbar matched to the panel language instead of the
   default chrome — subtle, dark, hover-brightening. */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border: 3px solid var(--background);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }

/* ---------- shared: eyebrow / dot / buttons ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  border: 1px solid var(--panel-border);
  padding: 6px 12px;
  margin-bottom: 20px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease-out-expo), color 0.25s var(--ease-out-expo),
    border-color 0.25s var(--ease-out-expo), box-shadow 0.25s var(--ease-out-expo),
    transform 0.25s var(--ease-out-expo);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.1s; }
.btn svg, .btn i { width: 15px; height: 15px; }

.btn--primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn--outline {
  background: transparent;
  color: var(--foreground);
  border-color: var(--panel-border);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm { padding: 9px 16px; font-size: 10px; }
.btn--lg { padding: 18px 34px; font-size: 13px; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo);
}
.nav.scrolled {
  background: rgba(5, 5, 5, 0.85);
  border-bottom-color: var(--panel-border);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height 0.4s var(--ease-out-expo);
}
.nav.scrolled .nav__inner { height: 56px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__icon { width: 18px; height: 18px; color: var(--accent); }
.brand__word {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-size: 17px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-right: auto;
  margin-left: 48px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.nav__links a { color: var(--muted-2); transition: color 0.15s; }
.nav__links a:hover { color: var(--foreground); }

.nav__cta { flex-shrink: 0; }
.nav__burger {
  display: none;
  background: none;
  border: 1px solid var(--panel-border);
  color: var(--foreground);
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav__burger svg, .nav__burger i { width: 18px; height: 18px; }

.nav__mobile {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--panel-border);
  background: var(--background);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: 16px 24px;
  border-bottom: 1px solid var(--panel-border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 168px 24px 120px;
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__grid {
  position: absolute;
  inset: -40px 0 auto 0;
  height: 640px;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 20%, black, transparent);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 20%, black, transparent);
}

.hero__title {
  font-size: clamp(48px, 10vw, 118px);
  line-height: 0.86;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
}

.hero__sub {
  max-width: 620px;
  color: var(--muted-2);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 40px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 88px;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat__num { font-family: var(--font-mono); font-size: 20px; font-weight: 700; }
.stat__label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat__sep { width: 1px; height: 28px; background: var(--panel-border); }

/* The hero screenshot gets a scroll-scrubbed perspective settle (see
   js/main.js) — it starts gently tilted back and eases flat as it enters
   the viewport, Apple product-page style. */
.hero__shot {
  position: relative;
  width: 100%;
  max-width: 980px;
  perspective: 1400px;
}
.hero__shot .window-frame--glow {
  transform: rotateX(var(--rx, 0deg)) scale(var(--sc, 1));
  transform-origin: 50% 0%;
  will-change: transform;
}

/* ---------- window chrome (used for hero + showcase) ---------- */

.window-frame {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-window);
  overflow: hidden;
  background: var(--panel);
}
.window-frame--glow { box-shadow: 0 40px 120px -20px rgba(255, 62, 0, 0.25), 0 0 0 1px rgba(255,255,255,0.04); }

.window-frame__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: #0c0c0c;
  border-bottom: 1px solid var(--panel-border);
}
.window-frame__bar .dot { box-shadow: none; }
.dot--r { background: #ff5f57; }
.dot--y { background: #febc2e; }
.dot--g { background: #28c840; }
.window-frame__title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.floating-card {
  position: absolute;
  background: rgba(10, 10, 10, 0.9);
  /* solid panel, no backdrop-filter — these sit over a busy screenshot and
     get parallax-translated every frame; live blur there costs real paint */
  border: 1px solid var(--panel-border);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
  will-change: transform;
}

.floating-card--payload {
  left: -24px;
  bottom: 48px;
  animation: bob 7s ease-in-out infinite alternate;
}
.floating-card__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.floating-card__value {
  font-size: 26px;
  font-weight: 300;
  font-family: var(--font-mono);
}
.floating-card__value small { font-size: 13px; color: var(--muted); margin-left: 2px; }

.floating-card--trash {
  right: -20px;
  top: 60px;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  animation: bob 9s ease-in-out infinite alternate-reverse;
}
.floating-card--trash i { width: 16px; height: 16px; color: #22c55e; }

/* Idle drift on the floating cards — layered on top of the JS parallax
   (parallax moves the wrapper var, keyframes move margin so they compose). */
@keyframes bob {
  from { margin-top: 0; }
  to { margin-top: -10px; }
}

/* ---------- marquee ---------- */

.marquee {
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  overflow: hidden;
  padding: 22px 0;
  background: var(--panel);
}
.marquee__track {
  display: flex;
  gap: 14px;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--muted);
  will-change: transform;
  animation: marquee 32s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- section shell ---------- */

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 140px 24px;
}
.section--tight { padding-top: 40px; }
.section--pricing { padding-top: 100px; }

.section__head { max-width: 720px; margin-bottom: 64px; }
.section__title {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.section__sub { color: var(--muted-2); font-size: 16px; line-height: 1.7; max-width: 560px; }
.section__sub code {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: 2px 6px;
  font-size: 0.85em;
}

/* ---------- bento feature grid ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--panel-border);
  border: 1px solid var(--panel-border);
}

.bento__card {
  background: var(--background);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  grid-column: span 2;
  position: relative;
}
.bento__card:hover { background: var(--panel); }
.bento__card[data-span="3"] { grid-column: span 3; }

.bento__icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--panel-border);
  color: var(--m, var(--accent));
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.bento__card:hover .bento__icon {
  border-color: var(--m, var(--accent));
  box-shadow: 0 0 18px color-mix(in srgb, var(--m, var(--accent)) 45%, transparent);
}
.bento__icon svg, .bento__icon i { width: 16px; height: 16px; }

.bento__label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bento__desc { font-size: 13px; line-height: 1.6; color: var(--muted-2); margin: 0; }

.bento__pro {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  padding: 3px 6px;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  flex-shrink: 0;
}
.bento__pro--ai {
  color: var(--m, var(--accent));
  border-color: color-mix(in srgb, var(--m, var(--accent)) 45%, transparent);
  background: color-mix(in srgb, var(--m, var(--accent)) 8%, transparent);
}

/* ---------- showcase (screenshot tabs) ---------- */

.showcase__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.showcase__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  padding: 10px 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
}
.showcase__tab svg, .showcase__tab i { width: 14px; height: 14px; }
.showcase__tab:hover { color: var(--foreground); border-color: var(--panel-border); }
.showcase__tab.active {
  color: var(--foreground);
  border-color: color-mix(in srgb, var(--m, var(--accent)) 40%, transparent);
  background: color-mix(in srgb, var(--m, var(--accent)) 8%, transparent);
}
.showcase__tab.active .bento__icon,
.showcase__tab.active i { color: var(--m, var(--accent)); }

.showcase__stage img {
  width: 100%;
  transition: opacity 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo),
    filter 0.35s var(--ease-out-expo);
}
.showcase__stage img.is-swapping {
  opacity: 0;
  transform: scale(0.985);
  filter: blur(8px);
}

/* ---------- security triad ---------- */

.triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--panel-border);
  border: 1px solid var(--panel-border);
  margin-bottom: 1px;
}
.triad__card { background: var(--background); padding: 32px; }
.triad__icon { width: 26px; height: 26px; color: var(--accent); margin-bottom: 18px; }
.triad__card h3 { font-size: 16px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.02em; }
.triad__card p { font-size: 13.5px; line-height: 1.7; color: var(--muted-2); margin: 0; }

.ai-strip {
  border: 1px solid var(--panel-border);
  border-top: none;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.ai-strip__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted-2);
}
.ai-strip__label i { width: 16px; height: 16px; color: var(--accent); }
.ai-strip__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-strip__chips span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--panel-border);
  padding: 5px 10px;
  color: var(--muted-2);
}

/* ---------- pricing ---------- */

.pricing {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1px;
  background: var(--panel-border);
  border: 1px solid var(--panel-border);
}

.plan {
  background: var(--background);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}
.plan--pro {
  background: var(--panel);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent),
    inset 0 0 80px -40px var(--accent-glow);
}

.plan__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 10px;
  color: #000;
  background: var(--accent);
}

.plan__name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 18px;
}

.plan__price {
  font-family: var(--font-mono);
  font-size: 46px;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 10px;
}
.plan__per { font-size: 13px; color: var(--muted); margin-left: 8px; }

.plan__blurb { font-size: 13px; color: var(--muted-2); margin: 0 0 26px; }

.plan__list {
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
  width: 100%;
}
.plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted-2);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.plan__list li:last-child { border-bottom: none; }
.plan__list svg, .plan__list i {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.plan .btn { margin-top: auto; }

/* ---------- download strip ---------- */

.download {
  margin-top: 64px;
  border: 1px solid var(--panel-border);
  background:
    radial-gradient(ellipse 60% 120% at 85% 50%, rgba(255, 62, 0, 0.08), transparent),
    var(--panel);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  scroll-margin-top: 100px;
}
.download__copy h3 {
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.download__copy p { font-size: 13px; color: var(--muted-2); margin: 0; }
.download__action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.download__fine {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- faq ---------- */

.faq {
  border: 1px solid var(--panel-border);
  background: var(--panel-border);
  display: grid;
  gap: 1px;
}

.faq details {
  background: var(--background);
}
.faq details[open] { background: var(--panel); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.25s var(--ease-out-expo);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }

.faq p {
  margin: 0;
  padding: 0 28px 24px;
  max-width: 720px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted-2);
}
.faq code {
  background: var(--background);
  border: 1px solid var(--panel-border);
  padding: 1px 6px;
  font-size: 0.85em;
}

/* ---------- closing ---------- */

.closing {
  text-align: center;
  padding: 140px 24px 160px;
  border-top: 1px solid var(--panel-border);
}
.closing__title {
  font-size: clamp(32px, 6vw, 68px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
}

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--panel-border); padding: 72px 24px 32px; }
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer__brand p { color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 16px; max-width: 260px; }
.footer__col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin: 0 0 18px;
}
.footer__col a { display: block; font-size: 13px; color: var(--muted-2); margin-bottom: 12px; transition: color 0.15s; }
.footer__col a:hover { color: var(--foreground); }

.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--panel-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ---------- motion: load reveal (hero) ----------
   Blur-to-focus rise with a long settle — the Apple keynote-page reveal. */

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(10px);
  animation: reveal 1.1s var(--ease-out-expo) forwards;
  animation-delay: calc(var(--d, 0) * 110ms);
}
@keyframes reveal {
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ---------- motion: scroll reveal ----------
   Same language as .reveal but driven by IntersectionObserver, with an
   optional per-item stagger via --i (used by the bento grid, triad,
   pricing cards). */

.fade-in {
  opacity: 0;
  transform: translateY(28px) scale(0.99);
  /* opacity+transform only — compositor-friendly. The blur() this used to
     transition repainted large section textures mid-scroll (jank); the
     blur-to-focus language now lives only in the one-shot hero .reveal. */
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo), background 0.25s ease;
  transition-delay: calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), 0ms;
}
.fade-in.is-visible { opacity: 1; transform: translateY(0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; transform: none; filter: none; }
  .fade-in { transition: none; opacity: 1; transform: none; filter: none; }
  .marquee__track { animation: none; }
  .floating-card--payload, .floating-card--trash { animation: none; }
  .hero__shot .window-frame--glow { transform: none; }
  .btn, .nav, .nav__inner, .showcase__stage img { transition: none; }
  .nav__mobile.open { animation: none; }
  .mobile-bar__cta, .mobile-bar__ghost { transition: none; }
}

/* ---------- responsive ---------- */

/* Mobile-only sticky action bar — hidden on desktop so the web UI is untouched. */
.mobile-bar { display: none; }

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Tablet & below: collapse the multi-column desktop layout ===== */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__cta { display: none; }
  .nav__mobile.open { animation: navDrop 0.3s var(--ease-out-expo); }
  .nav__mobile a:active { background: var(--panel); color: var(--accent); }

  .pricing { grid-template-columns: 1fr; }
  .triad { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .bento__card { grid-column: span 6 !important; }
  .floating-card--payload { left: 12px; bottom: -20px; }
  .floating-card--trash { right: 12px; top: -20px; }
  .download { padding: 36px 28px; }

  /* Persistent thumb-reachable CTA while the top-nav button is hidden. */
  .mobile-bar {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(5, 5, 5, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--panel-border);
  }
  .mobile-bar__cta,
  .mobile-bar__ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: transform 0.15s var(--ease-out-expo);
  }
  .mobile-bar__cta {
    flex: 1;
    background: var(--accent);
    color: #000;
    box-shadow: 0 -4px 34px -8px var(--accent-glow);
  }
  .mobile-bar__ghost {
    padding: 0 18px;
    color: var(--foreground);
    border: 1px solid var(--panel-border);
  }
  .mobile-bar__cta:active,
  .mobile-bar__ghost:active { transform: scale(0.97); }
  .mobile-bar__cta i, .mobile-bar__ghost i { width: 16px; height: 16px; }

  /* Reserve room so the fixed bar never hides the footer. */
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* ===== Phone: purpose-built mobile layout ===== */
@media (max-width: 600px) {
  /* -- hero -- */
  .hero { padding: 120px 20px 68px; }
  .hero__title { margin-bottom: 20px; }
  .hero__sub { font-size: 15.5px; margin-bottom: 32px; }
  .hero__cta { flex-direction: column; width: 100%; gap: 12px; margin-bottom: 52px; }
  .hero__cta .btn { width: 100%; justify-content: center; }

  /* stats as a bordered 2x2 grid (site's 1px-gap language, separators dropped) */
  .hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    width: 100%;
    margin-bottom: 8px;
    background: var(--panel-border);
    border: 1px solid var(--panel-border);
  }
  .stat { background: var(--background); padding: 18px 10px; }
  .stat__sep { display: none; }
  .stat__num { font-size: 22px; }

  .hero__shot { perspective: none; display: flex; flex-direction: column; gap: 10px; }
  .hero__shot .window-frame--glow { transform: none !important; }
  /* payload/trash chips are desktop-only flavor — hidden on mobile to keep the hero focused on the shot */
  .floating-card { display: none; }

  /* -- section rhythm -- */
  .section { padding: 60px 20px; }
  .section--tight { padding-top: 20px; }
  .section--pricing { padding-top: 56px; }
  .section__head { margin-bottom: 40px; }
  .closing { padding: 76px 20px 96px; }
  .marquee { padding: 16px 0; }

  /* -- bento: compact 2-col tile grid, names only (full desc lives on desktop) -- */
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__card {
    grid-column: auto !important;
    padding: 18px 15px;
    gap: 12px;
    min-height: 118px;
    min-width: 0;
    justify-content: flex-start;
  }
  .bento__desc { display: none; }
  .bento__label { font-size: 12px; letter-spacing: 0.03em; flex-wrap: wrap; }

  /* -- showcase: single-row horizontal scroll strip instead of wrapped tabs -- */
  .showcase__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -20px 24px;
    padding: 0 20px 6px;
  }
  .showcase__tabs::-webkit-scrollbar { display: none; }
  .showcase__tab { flex: 0 0 auto; scroll-snap-align: center; padding: 12px 16px; }

  /* -- showcase: swipeable on mobile, no tap required -- */
  .showcase__stage .window-frame { touch-action: pan-y; }

  /* -- triad / ai-strip / pricing / download -- */
  .triad__card { padding: 28px 22px; }
  .ai-strip { flex-direction: column; align-items: flex-start; padding: 22px 20px; gap: 16px; }
  .plan { padding: 32px 24px; }
  .download { padding: 28px 22px; gap: 18px; }
  .download__copy h3 { font-size: 21px; }

  /* -- footer: brand full-width, links in a tidy 2-col grid -- */
  .footer { padding: 56px 20px 28px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__brand p { max-width: none; }
}

/* Short (landscape phone) viewports: the fixed nav + sticky bar would eat too
   much height — drop the bar; the in-page hero and download CTAs still serve. */
@media (max-height: 500px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}
