/* ==========================================================================
   NanoVault marketing site
   Shared by the standalone static build and the WordPress theme.
   Palette mirrors the app: restrained neutrals + iPod-ish purple accent.
   ========================================================================== */

:root {
  --accent: #6f5bd6;
  --accent-2: #8b6fe8;
  --accent-3: #4e3bb8;
  --accent-soft: #efeafb;
  --ink: #1c1b22;
  --ink-2: #52506a;
  --ink-3: #7c7a93;
  --bg: #f6f5fb;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --border: #e6e3f2;
  --success: #1f9d55;
  --success-soft: #e4f6ec;
  --warning: #b7791f;
  --shadow-sm: 0 1px 2px rgba(28, 20, 60, .06), 0 2px 8px rgba(28, 20, 60, .05);
  --shadow-md: 0 6px 24px rgba(70, 55, 140, .12);
  --shadow-lg: 0 24px 70px rgba(70, 55, 140, .22);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #9b8af0;
    --accent-2: #b3a4f5;
    --accent-3: #7c6ae6;
    --accent-soft: #241f39;
    --ink: #ecebf5;
    --ink-2: #b6b3cc;
    --ink-3: #8b88a6;
    --bg: #131019;
    --bg-elevated: #1c1930;
    --card: #1e1b30;
    --border: #322d4a;
    --success: #57cc8a;
    --success-soft: #17301f;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, .38);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, .5);
    --border-strong: #3d3760;
  }
}

/* ----------------------------------------------------------------- reset */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
}

.section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 18px; }

/* ------------------------------------------------------------- buttons */
.btn {
  --bg-btn: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-weight: 650;
  font-size: 16px;
  color: #fff;
  background: var(--bg-btn);
  border: 0;
  border-radius: 12px;
  padding: 15px 26px;
  cursor: pointer;
  position: relative;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s;
  box-shadow: 0 8px 22px rgba(111, 91, 214, .32);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(111, 91, 214, .42); background: var(--accent-3); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn--lg { padding: 18px 34px; font-size: 17px; }
.btn--ghost {
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.btn--coffee { background: #ff5e5b; box-shadow: 0 8px 22px rgba(255, 94, 91, .35); }
.btn--coffee:hover { background: #ef4b48; box-shadow: 0 14px 34px rgba(255, 94, 91, .45); }

.btn .sub { font-size: 12px; font-weight: 500; opacity: .85; }
.btn-col { flex-direction: column; gap: 2px; line-height: 1.2; }

/* --------------------------------------------------------------- navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.nav__links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav__links a { padding: 9px 14px; border-radius: 9px; font-size: 15px; color: var(--ink-2); font-weight: 550; transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--ink); background: var(--accent-soft); }
.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }

@media (max-width: 860px) {
  .nav__links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-elevated); border-bottom: 1px solid var(--border); padding: 12px; transform: translateY(-140%); transition: transform .35s var(--ease); box-shadow: var(--shadow-md); }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 14px; border-radius: 10px; font-size: 16px; }
  .nav__cta { margin: 8px 0 0; }
  .nav__toggle { display: inline-flex; margin-left: auto; }
}

/* ----------------------------------------------------------------- hero */
.hero { position: relative; padding: 76px 0 92px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: -20% -10% auto -10%; height: 720px; z-index: -1;
  background:
    radial-gradient(50% 60% at 20% 10%, rgba(139, 111, 232, .40), transparent 60%),
    radial-gradient(45% 55% at 85% 5%, rgba(94, 200, 224, .28), transparent 62%),
    radial-gradient(60% 60% at 60% 40%, rgba(111, 91, 214, .22), transparent 65%);
  filter: blur(6px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-3%, 3%, 0) scale(1.08); }
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 850; letter-spacing: -.03em; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, #5ec8e0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin-top: 22px; font-size: 20px; color: var(--ink-2); max-width: 34ch; }
.hero__cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__meta { margin-top: 18px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-3); }
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta svg { width: 15px; height: 15px; color: var(--success); }

.hero__art { position: relative; }
.device {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-.4deg); }
  50% { transform: translateY(-14px) rotate(.4deg); }
}
.device img { width: 100%; height: auto; display: block; aspect-ratio: 980 / 700; object-fit: cover; }
.hero__chip {
  position: absolute; padding: 11px 15px; border-radius: 13px; background: var(--card);
  box-shadow: var(--shadow-md); border: 1px solid var(--border); font-size: 13.5px; font-weight: 600;
  display: flex; align-items: center; gap: 9px;
}
.hero__chip svg { width: 17px; height: 17px; }
.hero__chip--tl { top: 6%; left: -6%; animation: float 5s ease-in-out infinite; }
.hero__chip--br { bottom: 8%; right: -5%; animation: float 6.5s ease-in-out .6s infinite; }
.hero__chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { order: -1; max-width: 460px; margin: 0 auto; }
  .hero__lead { max-width: none; }
  .hero__chip--tl { left: 2%; }
  .hero__chip--br { right: 2%; }
}

/* ------------------------------------------------------------- ticker */
.ticker { border-block: 1px solid var(--border); background: var(--bg-elevated); padding: 20px 0; }
.ticker__inner { display: flex; gap: 48px; align-items: center; justify-content: center; flex-wrap: wrap; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.ticker__inner span { display: inline-flex; align-items: center; gap: 9px; }
.ticker__inner svg { width: 18px; height: 18px; color: var(--accent); }

/* ------------------------------------------------------------- callout */
.callout { background: linear-gradient(135deg, var(--accent-3), var(--accent)); color: #fff; border-radius: 28px; padding: 56px; position: relative; overflow: hidden; }
.callout::after { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 80% at 90% 10%, rgba(255,255,255,.18), transparent 60%); pointer-events: none; }
.callout h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 850; max-width: 20ch; }
.callout p { margin-top: 16px; font-size: 18px; max-width: 54ch; color: rgba(255,255,255,.92); }
.callout .strike { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.6); opacity: .85; }

/* ------------------------------------------------------------ features */
.grid-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.feature__icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; font-weight: 700; }
.feature p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .grid-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-features { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 22px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step__num { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 18px; margin-bottom: 14px; }
.step h3 { font-size: 17px; font-weight: 700; }
.step p { margin-top: 7px; color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat { padding: 28px 16px; }
.stat__num { font-size: clamp(30px, 4.4vw, 46px); font-weight: 850; letter-spacing: -.03em; background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------- devices list */
.devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.devcard { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.devcard h3 { font-size: 16px; display: flex; align-items: center; gap: 9px; }
.devcard ul { margin: 14px 0 0; padding: 0; list-style: none; }
.devcard li { padding: 7px 0; color: var(--ink-2); font-size: 14.5px; border-top: 1px solid var(--border); }
.devcard li:first-child { border-top: 0; }
.pill { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; }
.pill--yes { background: var(--success-soft); color: var(--success); }
.pill--maybe { background: #fff4e0; color: var(--warning); }
.pill--no { background: #fce8e8; color: #c0392b; }
@media (prefers-color-scheme: dark) { .pill--maybe { background: #33290f; } .pill--no { background: #3a1f1f; color: #f0908a; } }
@media (max-width: 860px) { .devices { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- safety */
.safety { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 28px; padding: 48px; box-shadow: var(--shadow-sm); }
.safety h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 850; }
.safety p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.safety__list { margin-top: 22px; display: grid; gap: 12px; }
.safety__item { display: flex; gap: 12px; align-items: flex-start; }
.safety__item svg { width: 22px; height: 22px; color: var(--success); flex: 0 0 auto; margin-top: 1px; }
.safety__item b { font-weight: 700; }
.safety__badge { aspect-ratio: 1; border-radius: 24px; background: linear-gradient(150deg, var(--accent), var(--accent-3)); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.safety__badge::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 30% 20%, rgba(255,255,255,.25), transparent 60%); }
.safety__badge svg { width: 42%; height: 42%; }
@media (max-width: 860px) { .safety { grid-template-columns: 1fr; padding: 32px; } .safety__badge { max-width: 260px; margin: 0 auto; } }

/* ------------------------------------------------------------- donate */
.donate { text-align: center; background: linear-gradient(160deg, var(--accent-soft), transparent); border: 1px solid var(--border); border-radius: 28px; padding: 56px 32px; }
.donate .coffee-emoji { font-size: 46px; display: block; animation: steam 3.4s ease-in-out infinite; }
@keyframes steam { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
.donate h2 { margin-top: 10px; font-size: clamp(26px, 3.6vw, 38px); font-weight: 850; }
.donate p { margin: 14px auto 26px; max-width: 52ch; color: var(--ink-2); font-size: 18px; }
.donate__row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ----------------------------------------------------------------- faq */
.faq { max-width: 780px; margin: 0 auto; }
.qa { border: 1px solid var(--border); border-radius: 14px; background: var(--card); margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.qa__q { width: 100%; text-align: left; background: none; border: 0; font: inherit; font-weight: 650; font-size: 17px; color: var(--ink); padding: 20px 22px; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.qa__q svg { width: 20px; height: 20px; flex: 0 0 auto; transition: transform .3s var(--ease); color: var(--accent); }
.qa[open] .qa__q svg { transform: rotate(45deg); }
.qa__a { padding: 0 22px 20px; color: var(--ink-2); font-size: 15.5px; }
.qa__a a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------------- final */
.final { text-align: center; }
.final .card { background: linear-gradient(135deg, var(--accent-3), var(--accent)); color: #fff; border-radius: 28px; padding: 64px 40px; position: relative; overflow: hidden; }
.final .card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 70% at 20% 10%, rgba(255,255,255,.16), transparent 55%); }
.final h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 850; position: relative; }
.final p { margin: 14px auto 28px; max-width: 46ch; color: rgba(255,255,255,.9); font-size: 18px; position: relative; }
.final .btn { position: relative; background: #fff; color: var(--accent-3); box-shadow: 0 12px 30px rgba(0,0,0,.22); }
.final .btn:hover { background: #fff; color: var(--accent-3); transform: translateY(-2px); }

/* -------------------------------------------------------------- ad slot */
.ad-slot { margin: 0 auto; max-width: var(--maxw); padding: 0 24px; }
.ad-slot__inner { border: 1px dashed var(--border); border-radius: 12px; padding: 14px; text-align: center; color: var(--ink-3); font-size: 13px; background: var(--bg-elevated); }

/* -------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--border); background: var(--bg-elevated); padding: 56px 0 40px; margin-top: 40px; }
.footer__grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand { max-width: 320px; }
.footer__brand p { margin-top: 12px; color: var(--ink-2); font-size: 14.5px; }
.footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer__col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin: 0 0 12px; }
.footer__col a { display: block; color: var(--ink-2); font-size: 15px; padding: 5px 0; transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.footer__note { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--ink-3); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__disclaimer { margin-top: 14px; color: var(--ink-3); font-size: 12.5px; max-width: 70ch; }

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