/* ============================================================
   AtlasFiles — marketing site
   Brand-aligned with the app: near-black + orange, blue index-beam,
   serif display (Fraunces), Inter body, JetBrains Mono for queries.
   ============================================================ */

:root {
  /* surfaces (from the app's :root) */
  --bg:           #08090b;
  --surface:      #101216;
  --surface-2:    #15181e;
  --border:       #282c34;
  --border-soft:  #1b1e24;

  /* text */
  --text:   #e9ecf1;
  --muted:  #969ba6;
  --faint:  #5b606b;

  /* action — orange */
  --accent:      #f97316;
  --accent-2:    #fb9a4b;
  --accent-ink:  #1a0f06;
  --accent-tint: rgba(249,115,22,0.13);
  --accent-bd:   rgba(249,115,22,0.32);
  --accent-glow: rgba(249,115,22,0.45);

  /* index-beam — the logo's electric blue (cool counterweight) */
  --beam:      #4f86ff;
  --beam-2:    #6ba2ff;
  --info:      #7cb0ff;
  --info-bg:   rgba(59,130,246,0.15);
  --info-bd:   rgba(79,134,255,0.30);

  /* folder violet (from app badges) */
  --folder:    #c89bf5;
  --folder-bg: rgba(168,85,247,0.14);
  --folder-bd: rgba(168,85,247,0.30);

  --good: #56d39a;

  /* type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Mono', ui-monospace, monospace;

  /* rhythm */
  --container: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* atmosphere knobs (theme-tuned) */
  --grain-opacity: 0.05;
  --glow-opacity: 0.5;
  --nav-bg: rgba(8,9,11,0.72);
  color-scheme: dark;
}

/* ---------- LIGHT THEME ----------
   Page chrome goes light; the brand orange stays the accent.
   App mockups keep their own dark scope (see .appwin/.scan/.scatter below). */
html[data-theme="light"] {
  --bg:           #f5f6f9;
  --surface:      #ffffff;
  --surface-2:    #eef1f6;
  --border:       #d7dde7;
  --border-soft:  #e6eaf1;

  --text:   #14233d;
  --muted:  #4a5568;
  --faint:  #76808f;

  --accent-ink:  #ffffff;
  --accent-tint: rgba(249,115,22,0.10);
  --accent-bd:   rgba(249,115,22,0.34);
  --accent-glow: rgba(249,115,22,0.30);

  --info:   #2563eb;  --info-bg: rgba(37,99,235,0.10);  --info-bd: rgba(37,99,235,0.26);
  --folder: #7c3aed;  --folder-bg: rgba(124,58,237,0.09); --folder-bd: rgba(124,58,237,0.24);
  --good:   #15935f;

  --grain-opacity: 0.025;
  --glow-opacity: 0.34;
  --nav-bg: rgba(255,255,255,0.82);
  color-scheme: light;
}

/* Mockups stay dark in every theme — a dark "app screenshot" reads correctly
   on a light page. Lock the surface tokens for their whole subtree, and set
   `color` explicitly so inherited text doesn't pick up the light-theme navy. */
.appwin, .scan, .scatter {
  --bg:          #08090b;
  --surface:     #101216;
  --surface-2:   #15181e;
  --border:      #282c34;
  --border-soft: #1b1e24;
  --text:        #e9ecf1;
  --muted:       #969ba6;
  --faint:       #5b606b;
  --info:        #7cb0ff;  --info-bg: rgba(59,130,246,0.15);  --info-bd: rgba(79,134,255,0.30);
  --folder:      #c89bf5;  --folder-bg: rgba(168,85,247,0.14); --folder-bd: rgba(168,85,247,0.30);
  color: var(--text);
}
/* default inherited text inside a mockup stays light in both themes */
.appwin .row__name, .appwin .count, .appwin .appwin__search span,
.scan .scan__n { color: var(--text); }

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -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; border: none; background: none; color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- atmosphere: grain + ambient glows ---------- */
body::before { /* grain */
  content: "";
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: var(--grain-opacity); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(90px); opacity: var(--glow-opacity); z-index: 0;
}
.glow--orange { background: radial-gradient(circle, var(--accent-glow), transparent 70%); }
.glow--beam   { background: radial-gradient(circle, rgba(79,134,255,0.40), transparent 70%); }
.glow--violet { background: radial-gradient(circle, rgba(168,85,247,0.35), transparent 70%); }

/* ---------- layout primitives ---------- */
.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: 24px;
}
.section {
  position: relative; z-index: 2;
  padding-block: clamp(72px, 11vw, 140px);
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 0.6em;
  margin-bottom: 20px;
}
.section-eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--accent-bd);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.04; letter-spacing: -0.02em;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-lead {
  color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  max-width: 54ch; margin-top: 18px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em;
  padding: 13px 22px; border-radius: 12px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 8px 24px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn--ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--accent-bd); background: var(--surface-2); transform: translateY(-2px); }
.btn--blue {
  background: linear-gradient(180deg, #6aa0ff, #4f86ff);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(79,134,255,0.45), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--blue:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(79,134,255,0.55), inset 0 1px 0 rgba(255,255,255,0.3); }
/* Microsoft Store CTA = orange primary; colorful bag sits on a white tile */
.store-badge-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 7px;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.store-badge-icon { width: 22px; height: 22px; }
.btn--lg { padding: 16px 28px; font-size: 1.02rem; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s var(--ease), border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: var(--nav-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border-soft);
}
.nav__inner {
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 5px 14px -4px rgba(47,107,255,0.6); }
.brand__text { font-family: var(--font-display); font-weight: 500; font-size: 1.62rem; letter-spacing: -0.01em; }
.brand__text b { font-weight: 600; font-style: italic; color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a.navlink {
  font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--text); opacity: 0.72; transition: color .2s, opacity .2s; position: relative;
}
.nav__links a.navlink:hover { color: var(--text); opacity: 1; }
.nav__links a.navlink::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px;
  background: var(--accent); transition: right .3s var(--ease);
}
.nav__links a.navlink:hover::after { right: 0; }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; }
.nav__links.is-open { display: flex; }

/* theme toggle */
.theme-toggle {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  transition: color .2s, border-color .2s, background .2s, transform .2s var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent-bd); transform: translateY(-1px); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun  { display: none; }
.theme-toggle .i-moon { display: block; }
html[data-theme="light"] .theme-toggle .i-sun  { display: block; }
html[data-theme="light"] .theme-toggle .i-moon { display: none; }

/* ============================================================
   HERO — the search universe
   ============================================================ */
.hero {
  position: relative; z-index: 2;
  min-height: 100svh; display: flex; align-items: center;
  padding-top: 120px; padding-bottom: 80px; overflow: hidden;
}
.hero .glow--orange { width: 620px; height: 620px; top: -180px; left: -120px; }
.hero .glow--beam   { width: 520px; height: 520px; bottom: -200px; right: -120px; opacity: 0.35; }

.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero__pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em;
  color: var(--muted); background: var(--surface); border: 1px solid var(--border-soft);
  padding: 7px 14px 7px 11px; border-radius: 100px; margin-bottom: 28px;
}
.hero__pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(86,211,154,0.18); }
.hero h1 {
  font-family: var(--font-display); font-weight: 340;
  font-size: clamp(2.7rem, 6.2vw, 4.7rem); line-height: 0.98; letter-spacing: -0.03em;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero__sub { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.24rem); max-width: 46ch; margin-top: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__meta { margin-top: 18px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--faint); letter-spacing: 0.02em; }
.hero__meta b { color: var(--muted); font-weight: 500; }

/* hero stage: orbiting cards + result list */
.stage { position: relative; height: 480px; }
.orbit { position: absolute; inset: 0; z-index: 1; }
.filecard {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 11px 15px 11px 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.8);
  font-size: 0.82rem; font-weight: 500; white-space: nowrap;
  backdrop-filter: blur(6px); will-change: transform;
}
.filecard .ext {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.02em;
  color: #fff;
}
.ext--pdf { background: linear-gradient(150deg,#ff5a5a,#c0392b); }
.ext--doc { background: linear-gradient(150deg,#4f86ff,#2f6bff); }
.ext--img { background: linear-gradient(150deg,#56d39a,#1f9d6d); }
.ext--xls { background: linear-gradient(150deg,#3fcf8e,#187a4f); }
.ext--ppt { background: linear-gradient(150deg,#fb9a4b,#e8730f); }
.ext--htm { background: linear-gradient(150deg,#c89bf5,#9b5de5); }

/* ============================================================
   APP MOCKUP — reusable recreation of the real UI
   ============================================================ */
.appwin {
  position: relative;
  background: linear-gradient(180deg, #0d0f14, #0a0c10);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.02) inset;
  overflow: hidden;
}
.appwin__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-bottom: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.015);
}
.tl { display: flex; gap: 7px; }
.tl i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.tl i:nth-child(1){ background:#ff5f57; } .tl i:nth-child(2){ background:#febc2e; } .tl i:nth-child(3){ background:#28c840; }
.appwin__search {
  flex: 1; display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 9px; padding: 8px 13px; color: var(--muted);
  font-family: var(--font-mono); font-size: 0.8rem;
}
.appwin__search svg { width: 14px; height: 14px; color: var(--faint); flex: none; }
.appwin__search .caret { width: 1px; height: 14px; background: var(--accent); animation: blink 1s steps(2) infinite; }

.appwin__sub {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--border-soft);
  font-size: 0.72rem; color: var(--muted);
}
.tag-private {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-tint); border: 1px solid var(--accent-bd);
  padding: 4px 8px; border-radius: 6px;
}
.appwin__sub .count b { color: var(--text); font-weight: 600; }
.pillrow { display: flex; gap: 7px; flex-wrap: wrap; }
.pill {
  font-size: 0.7rem; padding: 5px 11px; border-radius: 100px;
  border: 1px solid var(--border); color: var(--muted); background: var(--surface);
  transition: all .25s var(--ease);
}
.pill.is-active { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }

.rows { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-left: 3px solid var(--rowc, var(--border)); position: relative;
}
.row__thumb {
  width: 42px; height: 42px; border-radius: 8px; flex: none;
  display: grid; place-items: center; color: #fff; overflow: hidden;
  font-family: var(--font-mono); font-size: 0.58rem; font-weight: 700;
}
.row__name { font-family: var(--font-display); font-weight: 500; font-size: 0.92rem; letter-spacing: -0.01em; }
.row__path { font-family: var(--font-mono); font-size: 0.66rem; color: var(--faint); margin-top: 2px; }
.row__meta { display: flex; align-items: center; gap: 9px; }
.badge {
  font-family: var(--font-mono); font-size: 0.64rem; padding: 4px 9px; border-radius: 7px; white-space: nowrap;
}
.badge--size   { color: var(--info);   background: var(--info-bg);   border: 1px solid var(--info-bd); }
.badge--folder { color: var(--folder); background: var(--folder-bg); border: 1px solid var(--folder-bd); }
.badge--date   { color: var(--faint); }
.badge--lock   { color: var(--folder); background: var(--folder-bg); border: 1px solid var(--folder-bd); display: inline-flex; align-items: center; gap: 5px; }
.badge--lock svg { width: 11px; height: 11px; }
.row__open {
  font-size: 0.74rem; font-weight: 600; color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  padding: 7px 13px; border-radius: 8px; white-space: nowrap;
}

/* ============================================================
   PROBLEM → SOLUTION
   ============================================================ */
.problem .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.scatter {
  position: relative; height: 420px;
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,0.015) 39px, rgba(255,255,255,0.015) 40px),
    var(--surface);
  overflow: hidden;
}
.zone-label {
  position: absolute; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--faint);
}
.chip {
  position: absolute; display: flex; align-items: center; gap: 7px;
  padding: 7px 11px; border-radius: 9px; font-size: 0.72rem; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--muted); will-change: transform, opacity;
  transition: transform .8s var(--ease), opacity .6s var(--ease), border-color .6s, color .6s;
}
.chip .sw { width: 8px; height: 8px; border-radius: 2px; background: var(--faint); }
/* organized state (added by JS on reveal) */
.scatter.is-sorted .chip { color: var(--text); }
.scatter .beam-line {
  position: absolute; left: 50%; top: 8%; bottom: 8%; width: 2px; transform: translateX(-50%) scaleY(0);
  transform-origin: top; background: linear-gradient(180deg, transparent, var(--beam), transparent);
  opacity: 0; transition: transform 1s var(--ease) .2s, opacity .6s .2s;
}
.scatter.is-sorted .beam-line { transform: translateX(-50%) scaleY(1); opacity: 0.8; }

/* ============================================================
   FEATURES
   ============================================================ */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 84px); align-items: center;
  padding-block: clamp(54px, 8vw, 96px);
}
.feature + .feature { border-top: 1px solid var(--border-soft); }
.feature--flip .feature__media { order: -1; }
.feature__k {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.feature h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.06; letter-spacing: -0.02em;
}
.feature p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; max-width: 44ch; }
.feature__list { list-style: none; padding: 0; margin-top: 22px; display: flex; flex-direction: column; gap: 11px; }
.feature__list li { display: flex; align-items: center; gap: 11px; font-size: 0.94rem; color: var(--text); }
.feature__list svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.feature__examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.feature__examples .qchip {
  background: var(--surface-2); color: var(--muted); border-color: var(--border);
  font-size: 0.72rem; padding: 6px 11px;
}
.feature__media { position: relative; }

/* scan progress mock */
.scan {
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 12px;
}
.scan__top { display: flex; justify-content: space-between; align-items: baseline; }
.scan__n { font-family: var(--font-display); font-size: 2.1rem; font-weight: 500; }
.scan__n span { color: var(--accent); }
.scan__label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.scan__track { height: 8px; border-radius: 100px; background: var(--surface-2); overflow: hidden; }
.scan__fill { height: 100%; width: 0; border-radius: 100px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.scan__foot { display: flex; justify-content: space-between; align-items: center; font-size: 0.74rem; color: var(--faint); }
.scan__cancel { font-size: 0.72rem; color: var(--muted); border: 1px solid var(--border); padding: 5px 12px; border-radius: 7px; }

/* chips for smart search */
.qchips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.qchip {
  font-family: var(--font-mono); font-size: 0.66rem; padding: 5px 10px; border-radius: 7px;
  background: var(--info-bg); color: var(--info); border: 1px solid var(--info-bd);
}
.qchip.qchip--type { background: var(--accent-tint); color: var(--accent); border-color: var(--accent-bd); }
.qchip.qchip--folder { background: var(--folder-bg); color: var(--folder); border-color: var(--folder-bd); }

/* ============================================================
   HOW IT WORKS — the one real sequence (numbered)
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 38px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--accent-bd), var(--border), transparent);
}
.step { position: relative; padding: 30px 26px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); }
.step__n {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-family: var(--font-display); font-style: italic; font-size: 1.3rem; font-weight: 500;
  color: var(--accent); background: var(--accent-tint); border: 1px solid var(--accent-bd);
  margin-bottom: 22px; position: relative; z-index: 1;
}
.step h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.01em; }
.step p { color: var(--muted); margin-top: 10px; font-size: 0.96rem; }

/* ============================================================
   PRIVACY
   ============================================================ */
.privacy { text-align: center; overflow: hidden; }
.privacy .glow--beam { width: 560px; height: 560px; top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: 0.22; }
.privacy__inner { position: relative; z-index: 2; max-width: 760px; margin-inline: auto; }
.shield { width: 96px; height: 96px; margin: 0 auto 30px; color: var(--accent); }
.privacy h2 { font-family: var(--font-display); font-weight: 360; font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.05; letter-spacing: -0.02em; }
.privacy h2 em { font-style: italic; color: var(--accent); }
.privacy__lead { color: var(--muted); font-size: 1.14rem; margin-top: 20px; }
.proofs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.proof {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text);
  padding: 9px 15px; border-radius: 100px; background: var(--surface); border: 1px solid var(--border);
  display: inline-flex; align-items: center; gap: 8px;
}
.proof svg { width: 14px; height: 14px; color: var(--good); }
.codeproof {
  margin: 34px auto 0; max-width: 520px; text-align: left;
  background: #0a0c10; border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.codeproof__bar { padding: 9px 14px; border-bottom: 1px solid var(--border-soft); font-family: var(--font-mono); font-size: 0.7rem; color: var(--faint); }
.codeproof pre { padding: 16px; font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.7; overflow-x: auto; }
.codeproof .k { color: var(--folder); } .codeproof .s { color: var(--accent-2); } .codeproof .c { color: var(--faint); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-final { position: relative; text-align: center; overflow: hidden; }
.cta-final .glow--orange { width: 640px; height: 460px; top: 40%; left: 50%; transform: translate(-50%,-50%); opacity: 0.4; }
.cta-final__inner { position: relative; z-index: 2; }
.cta-final h2 { font-family: var(--font-display); font-weight: 360; font-size: clamp(2.2rem, 5.4vw, 3.8rem); line-height: 1.02; letter-spacing: -0.025em; }
.cta-final h2 em { font-style: italic; color: var(--accent); }
.cta-final__actions { display: inline-flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; justify-content: center; }
.cta-final__meta { margin-top: 20px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--faint); }

.particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.particle { position: absolute; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); opacity: 0.5; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--border-soft); padding-block: 56px 40px; }
.footer__grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer__tag { color: var(--muted); max-width: 30ch; margin-top: 16px; font-size: 0.92rem; }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__col h5 { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer__col a { display: block; color: var(--muted); font-size: 0.9rem; padding: 5px 0; transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; color: var(--faint); }

/* ============================================================
   REVEAL (default hidden states; animations.css drives motion)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s 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; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* ============================================================
   DOWNLOADS PAGE
   ============================================================ */
.dl-hero { padding-top: 150px; padding-bottom: 40px; text-align: center; position: relative; overflow: hidden; }
.dl-hero .glow--beam { width: 520px; height: 360px; top: -80px; left: 50%; transform: translateX(-50%); opacity: 0.3; }
.dl-hero h1 { font-family: var(--font-display); font-weight: 350; font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.03em; line-height: 1; }
.dl-hero h1 em { font-style: italic; color: var(--accent); }
.dl-hero p { color: var(--muted); margin-top: 18px; font-size: 1.1rem; }

.dl-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 12px; }
.dlcard {
  position: relative; padding: 34px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border-soft);
  transition: border-color .3s, transform .3s var(--ease);
  display: flex; flex-direction: column;
}
.dlcard .btn { margin-top: auto; }
.dlcard__btns { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 2px; }
.dlcard__btns .btn { margin-top: 0; }
.dlcard:hover { border-color: var(--accent-bd); transform: translateY(-3px); }
.dlcard.is-detected { border-color: var(--accent-bd); box-shadow: 0 0 0 1px var(--accent-bd), 0 30px 60px -40px var(--accent-glow); }
.dlcard__flag {
  position: absolute; top: 18px; right: 18px; font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-tint); border: 1px solid var(--accent-bd); padding: 4px 9px; border-radius: 6px;
  opacity: 0; transition: opacity .3s;
}
.dlcard.is-detected .dlcard__flag { opacity: 1; }
.dlcard__os { width: 44px; height: 44px; color: var(--text); margin-bottom: 20px; }
.dlcard h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; }
.dlcard__chips { display: flex; gap: 8px; margin-top: 14px; }
.chip-btn {
  font-family: var(--font-mono); font-size: 0.74rem; padding: 7px 14px; border-radius: 100px;
  border: 1px solid var(--border-soft); background: var(--surface-2); color: var(--muted);
  cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.chip-btn:hover { color: var(--text); }
.chip-btn.is-active { background: var(--accent-tint); color: var(--accent); border-color: var(--accent-bd); }
.dlcard__type { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); margin-top: 6px; }
.dlcard__specs { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-direction: column; gap: 10px; }
.dlcard__specs li { display: flex; justify-content: space-between; gap: 16px; font-size: 0.86rem; padding-bottom: 10px; border-bottom: 1px solid var(--border-soft); }
.dlcard__specs .lbl { color: var(--faint); }
.dlcard__specs .val { color: var(--text); font-family: var(--font-mono); font-size: 0.8rem; }
.dlcard .btn { width: 100%; justify-content: center; }
.dlcard__sum { margin-top: 14px; font-family: var(--font-mono); font-size: 0.66rem; color: var(--faint); word-break: break-all; }

.dl-strip { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; margin-top: 18px; }
.panel { padding: 30px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); }
.panel h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; margin-bottom: 18px; }
.changelog { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.changelog li { display: flex; gap: 12px; font-size: 0.92rem; color: var(--muted); }
.changelog .v { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); background: var(--accent-tint); border: 1px solid var(--accent-bd); padding: 2px 8px; border-radius: 6px; height: fit-content; white-space: nowrap; }
.reqtable { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.reqtable td { padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.reqtable td:first-child { color: var(--faint); }
.reqtable td:last-child { text-align: right; color: var(--text); font-family: var(--font-mono); font-size: 0.8rem; }

.getting-started-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.getting-started-list li { padding-left: 28px; position: relative; font-size: 0.95rem; color: var(--text); line-height: 1.55; }
.getting-started-list li:before { content: counter(item); counter-increment: item; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-tint); border: 1px solid var(--accent-bd); color: var(--accent); font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.getting-started-list { counter-reset: item; }
.getting-started-list strong { color: var(--text); font-weight: 600; }

.accordion { margin-top: 20px; border: 1px solid var(--border-soft); border-radius: 12px; overflow: hidden; }
.acc { border-bottom: 1px solid var(--border-soft); }
.acc:last-child { border-bottom: none; }
.acc__q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-size: 0.96rem; font-weight: 500; color: var(--text); }
.acc__q svg { width: 16px; height: 16px; color: var(--accent); transition: transform .3s var(--ease); flex: none; }
.acc.is-open .acc__q svg { transform: rotate(45deg); }
.acc__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc__a div { padding: 0 20px 20px; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* ============================================================
   NAV AUTH (avatar + dropdown — used on all pages)
   ============================================================ */
.nav-avatar-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  background: var(--accent-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  transition: border-color .2s;
}
.nav-avatar-btn:hover { border-color: var(--accent-bd); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 40px -8px rgba(0,0,0,0.5);
  padding: 8px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s;
}
.nav-dropdown.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.nav-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s, background .2s;
  cursor: pointer;
  width: 100%;
  border: none;
  background: none;
  font-family: inherit;
  text-align: left;
}
.nav-dropdown__item:hover { color: var(--text); background: var(--surface-2); }
.nav-dropdown__item svg { width: 14px; height: 14px; flex: none; color: var(--faint); }
.nav-dropdown__divider { height: 1px; background: var(--border-soft); margin: 6px 4px; }
.nav-dropdown__signout { color: #ef4444; }
.nav-dropdown__signout:hover { color: #ef4444; background: rgba(239,68,68,0.08); }

/* ============================================================
   SHOWCASE — extra ext colors used by new sections
   ============================================================ */
.ext--zip  { background: linear-gradient(150deg,#f4c04e,#c8881a); }
.ext--code { background: linear-gradient(150deg,#7cb0ff,#3f6bff); }

/* "New" eyebrow dot */
.new-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--good);
  box-shadow: 0 0 0 3px rgba(86,211,154,0.18); display: inline-block;
}

/* footer proof chips */
.sl-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.sl-foot__chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.84rem; color: var(--text);
  padding: 9px 16px; border-radius: 100px; background: var(--surface); border: 1px solid var(--border);
}
.sl-foot__chip svg { width: 15px; height: 15px; color: var(--good); flex: none; }
.sl-foot__chip em { font-style: italic; color: var(--accent); }

/* ============================================================
   SMART INSIGHTS — surfaces what's worth a second look
   ============================================================ */
.insights { position: relative; overflow: hidden; }
.insights .glow--violet { width: 600px; height: 420px; top: 6%; left: 50%; transform: translateX(-50%); opacity: 0.18; }

.insights-stage { margin-top: clamp(40px, 6vw, 70px); position: relative; }
.insights-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  position: relative; z-index: 2;
}
.insight-card {
  position: relative; padding: 14px 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border-soft);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.insight-card__icon {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  font-size: 0.9rem; margin-bottom: 8px;
  background: color-mix(in srgb, var(--ic-color) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--ic-color) 34%, transparent);
}
.insight-card__title { font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.insight-card__stats { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.insight-card__count {
  font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; line-height: 1;
  color: var(--ic-color); letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.insight-card__label { font-size: 0.74rem; color: var(--muted); }
.insight-card--alert { border-color: color-mix(in srgb, var(--ic-color) 30%, var(--border-soft)); }

/* ============================================================
   DUPLICATE CENTER — one-click cleanup
   ============================================================ */
.dupe { position: relative; overflow: hidden; }
.dupe .glow--orange { width: 540px; height: 460px; top: 30%; right: -140px; opacity: 0.30; }
.dupe__grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.dupe__copy .section-eyebrow { margin-bottom: 18px; }
.dupe__copy p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; max-width: 46ch; }

/* the reclaimable-space dial */
.dupe__dial {
  margin-top: 30px; display: inline-flex; flex-direction: column;
  padding: 20px 26px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border-soft);
  box-shadow: 0 24px 60px -40px var(--accent-glow);
}
.dupe__dial-num {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1; color: var(--accent); letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums;
}
.dupe__dial-num i { font-style: normal; font-size: 1.1rem; color: var(--muted); font-family: var(--font-ui); }
.dupe__dial-cap { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-top: 8px; }

/* the duplicate window mock */
.dupe-win { position: relative; }
.dupe-win__title {
  flex: 1; display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 500; font-size: 0.96rem; color: var(--text);
}
.dupe-win__title svg { width: 16px; height: 16px; color: var(--accent); }
.dupe-win__found {
  font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border-soft); padding: 5px 10px; border-radius: 7px;
}
.dupe-groups { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.dgroup { border: 1px solid var(--border-soft); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,0.012); }
.dgroup__head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 14px; background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-soft);
}
.dgroup__head strong { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.dgroup__head span { font-family: var(--font-mono); font-size: 0.68rem; color: var(--accent); }
.dfile {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px;
  padding: 11px 14px; border-top: 1px solid var(--border-soft);
}
.dfile:first-of-type { border-top: 0; }
.dfile__thumb {
  width: 38px; height: 38px; border-radius: 8px; flex: none; display: grid; place-items: center;
  color: #fff; font-family: var(--font-mono); font-size: 0.56rem; font-weight: 700;
}
.dfile__id { min-width: 0; }
.dfile__name { font-family: var(--font-display); font-weight: 500; font-size: 0.88rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dfile__path { font-family: var(--font-mono); font-size: 0.64rem; color: var(--faint); margin-top: 2px; }
.dfile__tag { font-family: var(--font-mono); font-size: 0.64rem; font-weight: 700; padding: 5px 10px; border-radius: 100px; white-space: nowrap; }
.dfile__tag--keep  { color: var(--good); background: rgba(86,211,154,0.12); border: 1px solid rgba(86,211,154,0.30); }
.dfile__tag--trash { color: #ff7a7a; background: rgba(239,107,107,0.10); border: 1px solid rgba(239,107,107,0.32); }

/* one-click cleanup button */
.dupe-clean {
  position: relative; overflow: hidden; width: calc(100% - 24px); margin: 0 12px 14px;
  display: flex; align-items: center; justify-content: center;
  padding: 13px 18px; border-radius: 11px;
  font-weight: 600; font-size: 0.92rem; color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 10px 26px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .3s;
}
.dupe-clean__label { position: relative; z-index: 2; transition: opacity .25s; }
.dupe-clean__ripple {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 12px; height: 12px;
  border-radius: 50%; background: rgba(255,255,255,0.55); transform: translate(-50%,-50%) scale(0); opacity: 0;
}
.dupe-clean.is-press { transform: scale(0.975); }
.dupe-clean.is-press .dupe-clean__ripple { animation: dupe-ripple .6s var(--ease) forwards; }
.dupe-clean.is-done {
  background: linear-gradient(180deg, #5fdca0, #2ea76f); color: #06120c;
  box-shadow: 0 10px 30px -12px rgba(86,211,154,0.6);
}

/* ============================================================
   TESTIMONIALS MARQUEE
   ============================================================ */
.testimonials { padding-bottom: 8px; }
.marquee {
  margin-top: 44px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee-scroll 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tcard {
  flex: 0 0 340px;
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 22px 22px 20px;
}
.tcard__avatar {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-ui); font-weight: 700; font-size: 0.86rem;
  color: #fff;
  background: linear-gradient(155deg, var(--tc, var(--accent)), color-mix(in srgb, var(--tc, var(--accent)) 70%, #000));
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--tc, var(--accent)) 60%, transparent);
  overflow: hidden;
}
.tcard__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.tcard__quote { color: var(--text); font-size: 0.9rem; line-height: 1.58; }
.tcard__name { margin-top: 12px; font-size: 0.82rem; font-weight: 600; color: var(--text); }
.tcard__name span { display: block; margin-top: 1px; font-weight: 400; color: var(--faint); font-size: 0.78rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__links.is-open {
    position: absolute;
    top: 68px;
    right: 18px;
    flex-direction: column;
    align-items: stretch;
    min-width: 190px;
    padding: 14px 20px;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 16px 40px -16px rgba(0,0,0,.65);
  }
  .nav__toggle { display: inline-flex; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .stage { height: 380px; }
  .problem .container { grid-template-columns: 1fr; gap: 40px; }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature--flip .feature__media { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .dl-cards { grid-template-columns: 1fr; }
  .dl-strip { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
  .dupe__grid { grid-template-columns: 1fr; gap: 40px; }
  .dupe__media { order: 0; }
  .tcard { flex-basis: 300px; }
}
@media (max-width: 540px) {
  .container { padding-inline: 18px; }
  .hero__actions .btn, .cta-final__actions .btn { flex: 1 1 auto; justify-content: center; }
  .tcard { flex-basis: 260px; padding: 18px 18px 16px; }
  /* give the brand room: the hamburger menu + hero CTAs cover downloading */
  .nav__cta .btn--primary { display: none; }
  .insights-grid { grid-template-columns: 1fr; }
  .insight-card__count { font-size: 1.4rem; }
  /* tighten nav on small screens */
  .nav__cta { gap: 6px; }
  #nav-signin-btn { padding: 6px 13px !important; font-size: 0.82rem !important; margin-left: 0 !important; }
  .theme-toggle { width: 34px; height: 34px; border-radius: 9px; }
  .theme-toggle svg { width: 16px; height: 16px; }
}
