/* Aura Tab site — liquid glass, responsive, vanilla.
   Design language: vivid fluid color fields behind highly transparent,
   specular-edged glass surfaces (inspired by OS-level "liquid glass"),
   implemented with original CSS only. */
:root {
  --bg0: #0b1026;
  --bg1: #1b1440;
  --card: rgba(255, 255, 255, .04);
  --stroke: rgba(255, 255, 255, .16);
  --text: #f2f5fb;
  --dim: rgba(226, 232, 244, .78);
  --faint: rgba(226, 232, 244, .55);
  --a1: #818cf8;
  --a2: #a855f7;
  --a3: #22d3ee;
  --r: 26px;
  --font: "Inter", -apple-system, "Segoe UI", sans-serif;
  --disp: "Space Grotesk", "Inter", sans-serif;

  /* liquid glass recipe */
  --lg-bg: linear-gradient(155deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .018) 45%, rgba(255, 255, 255, .04));
  --lg-blur: blur(32px) saturate(200%);
  --lg-edge:
    inset 0 1px 0 rgba(255, 255, 255, .52),
    inset 1px 0 0 rgba(255, 255, 255, .16),
    inset 0 -1px 0 rgba(255, 255, 255, .08),
    inset 0 -14px 24px -18px rgba(255, 255, 255, .26);
  --lg-shadow:
    0 24px 60px rgba(2, 6, 23, .55),
    0 4px 14px rgba(2, 6, 23, .35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text);
  background:
    radial-gradient(55% 42% at 82% 4%, rgba(129, 140, 248, .56), transparent 62%),
    radial-gradient(48% 38% at 6% 88%, rgba(34, 211, 238, .46), transparent 64%),
    radial-gradient(60% 50% at 50% 52%, rgba(168, 85, 247, .42), transparent 68%),
    radial-gradient(38% 30% at 92% 62%, rgba(244, 114, 182, .28), transparent 66%),
    radial-gradient(34% 28% at 12% 30%, rgba(45, 212, 191, .24), transparent 66%),
    linear-gradient(165deg, var(--bg0), var(--bg1) 55%, #082f45);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.skip { position: fixed; top: -70px; left: 12px; z-index: 200; background: #fff; color: #111; padding: 10px 16px; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 12px; }
a { color: var(--a3); }
:focus-visible { outline: 2px solid var(--a3); outline-offset: 2px; }

/* ---- floating liquid-glass nav capsule ---- */
.nav {
  position: sticky; top: 10px; z-index: 100;
  display: flex; align-items: center; gap: 18px;
  margin: 10px auto 0; max-width: min(1120px, calc(100% - 24px));
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025) 55%, rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  box-shadow: var(--lg-edge), 0 18px 44px rgba(2, 6, 23, .5);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--disp); font-weight: 700; font-size: 17px; }
.brand img { border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 4px 10px rgba(2, 6, 23, .4); }
.nav nav { display: flex; gap: 4px; margin-left: auto; }
.nav nav a {
  color: var(--dim); text-decoration: none; font-size: 13.5px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.nav nav a:hover, .nav nav a.active {
  color: #fff;
  background: linear-gradient(155deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(255, 255, 255, .06);
}

/* ---- buttons: glossy liquid pills ---- */
.btn {
  position: relative; display: inline-block; padding: 10px 22px; border-radius: 999px;
  font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .3);
  background: linear-gradient(155deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  color: var(--text);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .4),
    inset 0 -1px 0 rgba(255, 255, 255, .06),
    inset 0 -10px 16px -12px rgba(255, 255, 255, .25),
    0 10px 24px rgba(2, 6, 23, .4);
  transition: filter .15s ease, box-shadow .15s ease;
}
.btn:hover { filter: brightness(1.14); }
.btn.primary {
  border-color: rgba(255, 255, 255, .45);
  background: linear-gradient(135deg, #6366f1, #8b5cf6 55%, #06b6d4);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -2px 0 rgba(2, 6, 23, .18),
    inset 0 -12px 18px -12px rgba(255, 255, 255, .3),
    0 10px 30px rgba(124, 93, 250, .5),
    0 2px 8px rgba(2, 6, 23, .4);
  transition: transform .12s ease, box-shadow .12s ease, filter .15s ease;
}
.btn.primary:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 8px rgba(2, 6, 23, .35), 0 2px 8px rgba(2, 6, 23, .4);
}
.btn.ghost {
  background: linear-gradient(155deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    inset 0 -1px 0 rgba(255, 255, 255, .05),
    0 8px 20px rgba(2, 6, 23, .38);
  transition: transform .12s ease, box-shadow .12s ease, filter .15s ease;
}
.btn.ghost:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 6px rgba(2, 6, 23, .35), 0 2px 6px rgba(2, 6, 23, .3);
}
.btn.big { padding: 14px 30px; font-size: 16px; }

main { max-width: 1120px; margin: 0 auto; padding: 0 24px 60px; position: relative; z-index: 1; }
section { padding: 56px 0 8px; scroll-margin-top: 84px; }
h1 { font-family: var(--disp); font-size: clamp(44px, 7vw, 84px); margin: 0; letter-spacing: -.03em; line-height: 1.02; }
h2 { font-family: var(--disp); font-size: clamp(28px, 4vw, 42px); letter-spacing: -.02em; margin: 0 0 6px; }
.section-sub { color: var(--dim); margin: 0 0 26px; max-width: 640px; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: center; padding-top: 64px; }
.kicker { color: var(--a3); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
.tagline { font-family: var(--disp); font-size: clamp(19px, 2.6vw, 25px); color: var(--dim); margin: 10px 0 6px; }
.sub { color: var(--dim); margin: 0 0 24px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { list-style: none; display: flex; gap: 8px 20px; flex-wrap: wrap; padding: 0; margin: 22px 0 0; color: var(--dim); font-size: 13px; font-weight: 600; }
.trust li::before { content: "✓ "; color: #34d399; }
.store-note { margin: 14px 0 0; font-size: 12.5px; color: var(--dim); max-width: 46ch; }
.hero-art img {
  width: 100%; height: auto; border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    0 34px 80px rgba(2, 6, 23, .6),
    0 0 64px rgba(139, 92, 246, .25);
}

/* shared liquid-glass surface */
.card, .step, details, .policy, .gallery figure, .stats div {
  position: relative;
  background: var(--lg-bg);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r);
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  box-shadow: var(--lg-edge), var(--lg-shadow);
}
/* liquid sheen across the top of every glass surface */
.card::before, .step::before, .policy::before, .gallery figure::before, .stats div::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 46%;
  border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 60%, transparent);
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 44px; }
.stats div { padding: 18px 16px; text-align: center; border-radius: 22px; }
.stats b { display: block; font-family: var(--disp); font-size: 30px; }
.stats span { color: var(--dim); font-size: 12.5px; }

/* features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { padding: 24px 22px; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.card:hover {
  transform: translateY(-4px);
  box-shadow:
    var(--lg-edge),
    0 30px 64px rgba(2, 6, 23, .6),
    0 0 40px rgba(139, 92, 246, .22);
}
.card h3 { position: relative; margin: 0 0 8px; font-family: var(--disp); font-size: 18px; }
.card p { position: relative; margin: 0; color: var(--dim); font-size: 14px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery figure { margin: 0; padding: 10px; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.gallery figure:hover {
  transform: translateY(-3px);
  box-shadow: var(--lg-edge), 0 28px 60px rgba(2, 6, 23, .6), 0 0 36px rgba(34, 211, 238, .18);
}
.gallery img { width: 100%; height: auto; display: block; border-radius: 16px; }
.gallery figcaption { position: relative; padding: 8px 4px 2px; color: var(--dim); font-size: 13px; font-weight: 600; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(4, 7, 18, .88); display: grid; place-items: center; padding: 24px; }
.lightbox.hidden { display: none; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 86vh; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox button { position: fixed; top: 18px; right: 22px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: linear-gradient(155deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06)); color: #fff; font-size: 18px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }

/* install */
.steps { display: grid; gap: 12px; margin-bottom: 26px; }
.step { display: flex; gap: 16px; padding: 18px 20px; align-items: flex-start; }
.step > b {
  position: relative; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--disp);
  background: linear-gradient(135deg, var(--a1), var(--a2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(2, 6, 23, .18), 0 6px 16px rgba(139, 92, 246, .4);
}
.step h3 { position: relative; margin: 0 0 4px; font-size: 16px; }
.step p { position: relative; margin: 0; color: var(--dim); font-size: 14px; }
code, kbd { font-family: ui-monospace, Menlo, Consolas, monospace; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); border-radius: 8px; padding: 1px 7px; font-size: 12.5px; }
.perm-head { margin: 6px 0 8px; font-size: 16px; }
.perm-list { margin: 0; padding-left: 20px; color: var(--dim); font-size: 14px; display: grid; gap: 6px; }
.perm-list b { color: var(--text); }

/* faq */
details { padding: 14px 20px; margin-bottom: 10px; border-radius: 20px; }
summary { position: relative; cursor: pointer; font-weight: 700; font-size: 15px; }
details p { color: var(--dim); font-size: 14px; margin: 8px 0 2px; }

/* privacy */
.policy { padding: 8px 26px 20px; }
.policy h3 { position: relative; font-family: var(--disp); margin: 22px 0 6px; font-size: 17px; }
.policy p, .policy li { color: var(--dim); font-size: 14px; }
.policy ul { padding-left: 20px; display: grid; gap: 6px; }

/* support */
.support-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; align-items: start; }
.support-card { text-decoration: none; color: inherit; display: block; }
.support-card p { word-break: break-all; }
.support-card .btn { margin-top: 12px; }
#supportForm label { display: block; font-size: 13px; font-weight: 600; color: var(--dim); margin-bottom: 10px; }
#supportForm input, #supportForm select, #supportForm textarea {
  display: block; width: 100%; margin-top: 5px; padding: 10px 14px;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .07); color: var(--text);
  font-family: inherit; font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 2px 8px rgba(2, 6, 23, .25);
}
#supportForm textarea { resize: vertical; min-height: 90px; }
#supportForm .hint { font-size: 12px; color: var(--faint); margin: 10px 0 0; }
#supportForm .btn { border: 0; margin-top: 4px; }

/* footer: floating glass strip */
footer {
  position: relative; z-index: 1;
  max-width: min(1120px, calc(100% - 24px)); margin: 60px auto 18px; padding: 26px 24px 30px;
  text-align: center; color: var(--dim); font-size: 13px;
  background: var(--lg-bg);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r);
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  box-shadow: var(--lg-edge), var(--lg-shadow);
}
footer img { border-radius: 8px; vertical-align: -6px; margin-right: 6px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
footer p { margin: 6px 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 10px; padding: 8px 12px; }
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ===== drifting liquid color fields behind the glass ===== */
body::before, body::after {
  content: ""; position: fixed; z-index: 0; border-radius: 999px;
  filter: blur(90px); pointer-events: none;
}
body::before {
  width: 560px; height: 560px; top: -180px; left: -140px;
  background: radial-gradient(circle, rgba(139, 92, 246, .55), transparent 70%);
  animation: aura-drift 18s ease-in-out infinite alternate;
}
body::after {
  width: 640px; height: 640px; bottom: -220px; right: -180px;
  background: radial-gradient(circle, rgba(34, 211, 238, .45), transparent 70%);
  animation: aura-drift 22s ease-in-out infinite alternate-reverse;
}
@keyframes aura-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, -46px) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
  .card:hover, .gallery figure:hover { transform: none; }
}

/* ===== light theme (data-theme="light"; dark is default) ===== */
[data-theme="light"] {
  --bg0: #edf0f8;
  --bg1: #ffffff;
  --card: rgba(255, 255, 255, .5);
  --stroke: rgba(25, 35, 80, .16);
  --text: #151b36;
  --dim: rgba(21, 27, 54, .78);
  --faint: rgba(21, 27, 54, .58);
  --lg-bg: linear-gradient(155deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, .38));
  --lg-edge:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 1px 0 0 rgba(255, 255, 255, .5),
    inset 0 -1px 0 rgba(25, 35, 80, .08),
    inset 0 -14px 24px -18px rgba(255, 255, 255, .8);
  --lg-shadow:
    0 20px 48px rgba(40, 50, 110, .16),
    0 4px 12px rgba(40, 50, 110, .1);
}
[data-theme="light"] body {
  background:
    radial-gradient(55% 42% at 82% 4%, rgba(129, 140, 248, .42), transparent 62%),
    radial-gradient(48% 38% at 6% 88%, rgba(34, 211, 238, .38), transparent 64%),
    radial-gradient(60% 50% at 50% 52%, rgba(168, 85, 247, .34), transparent 68%),
    radial-gradient(38% 30% at 92% 62%, rgba(244, 114, 182, .3), transparent 66%),
    radial-gradient(34% 28% at 12% 30%, rgba(45, 212, 191, .28), transparent 66%),
    var(--bg0);
}
[data-theme="light"] body::before,
[data-theme="light"] body::after { opacity: .5; }
[data-theme="light"] .nav {
  background: linear-gradient(155deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .26) 55%, rgba(255, 255, 255, .4));
  border-color: rgba(255, 255, 255, .8);
}
[data-theme="light"] .nav nav a:hover, [data-theme="light"] .nav nav a.active {
  color: #151b36;
  background: rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95);
}
[data-theme="light"] .btn:not(.primary) {
  border-color: rgba(255, 255, 255, .8);
  background: linear-gradient(155deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .22));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -10px 16px -12px rgba(255, 255, 255, .9),
    0 10px 24px rgba(40, 50, 110, .16);
}
[data-theme="light"] .btn.ghost {
  background: linear-gradient(155deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .16));
}
[data-theme="light"] .card:hover {
  box-shadow:
    var(--lg-edge),
    0 26px 52px rgba(40, 50, 110, .2),
    0 0 0 1px rgba(99, 102, 241, .22);
}
[data-theme="light"] #supportForm input, [data-theme="light"] #supportForm select, [data-theme="light"] #supportForm textarea {
  background: rgba(255, 255, 255, .48);
  border-color: rgba(25, 35, 80, .18);
  color: #151b36;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 2px 8px rgba(40, 50, 110, .08);
}
[data-theme="light"] code, [data-theme="light"] kbd { background: rgba(25, 35, 80, .08); border-color: rgba(25, 35, 80, .16); }
[data-theme="light"] .lightbox button { color: #151b36; }

/* theme toggle button */
.theme-toggle {
  width: 2.4rem; height: 2.4rem; border-radius: 999px; cursor: pointer; flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, .24); color: var(--text);
  background: linear-gradient(155deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
  font-size: 1.05rem; line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 14px rgba(2, 6, 23, .3);
  transition: transform .12s ease;
}
[data-theme="light"] .theme-toggle { border-color: rgba(25, 35, 80, .18); background: rgba(255, 255, 255, .65); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 6px 14px rgba(40, 50, 110, .14); }
.theme-toggle:active { transform: scale(.92); }

/* staged hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .js-on .hero-copy > * { opacity: 0; transform: translateY(18px); }
  body.loaded .hero-copy > * { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
  body.loaded .hero-copy > *:nth-child(2) { transition-delay: .08s; }
  body.loaded .hero-copy > *:nth-child(3) { transition-delay: .16s; }
  body.loaded .hero-copy > *:nth-child(4) { transition-delay: .24s; }
  body.loaded .hero-copy > *:nth-child(5) { transition-delay: .32s; }
}

/* Privacy inventory must fit small screens without page-wide overflow. */
.policy table { position: relative; width: 100%; border-collapse: collapse; table-layout: fixed; margin: 1.2rem 0; font-size: .88rem; }
.policy th, .policy td { text-align: left; vertical-align: top; padding: .65rem .45rem; border-bottom: 1px solid var(--stroke); overflow-wrap: anywhere; }
.policy th:first-child { width: 35%; }
@media (max-width: 560px) { .policy table { font-size: .76rem; } .policy th, .policy td { padding: .5rem .25rem; } }
