/* ARAM Helper landing page – "Vice sunset" palette (deep violet → magenta → coral → warm yellow).
   Layout and type rhythm follow a calm editorial style; motion lives in the effects layer at the end.
   No external fonts or CSS. */

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Display";        /* Inter 4.1 display cut, for large headings */
  src: url("fonts/InterDisplay-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette */
  --violet: #3b146b;
  --purple: #7b208f;
  --magenta: #c9349b;
  --coral-pink: #f36a78;
  --coral: #f87572;
  --orange: #ff9b55;
  --yellow: #ffb458;

  --bg: #120a1c;
  --bg-2: #1a0e29;
  --text: #f4eef6;
  --body: #ffffffb3;           /* ~11:1 on --bg */
  --muted: #ffffff99;          /* ~7:1 on --bg */
  --surface: #ffffff08;
  --surface-2: #ffffff0f;
  --line: #ffffff17;

  --sunset: linear-gradient(90deg, var(--yellow), var(--orange) 30%, var(--coral-pink) 60%, var(--magenta) 85%, var(--purple));
  --sunset-diag: linear-gradient(135deg, var(--yellow), var(--orange) 35%, var(--coral-pink) 70%, var(--magenta));
  --radius: 14px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.75 "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); text-underline-offset: 3px; text-decoration-color: #ffb45866; }
a:hover { color: #ffd29a; text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
b, strong { font-weight: 600; }
p { margin: 0 0 .9em; color: var(--body); }
.muted { color: var(--muted); font-size: .925rem; }

/* ---------- Headings: sentence case, tight tracking ---------- */
h1, h2 {
  margin: 0 0 .5em;
  font-family: "Inter Display", "Inter", system-ui, "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 {
  width: fit-content;
  max-width: 14ch;
  padding-top: .12em;                 /* room for stacked Vietnamese marks inside the gradient clip */
  font-size: clamp(2.3rem, 1.4rem + 3.8vw, 3.75rem);
  line-height: 1.08;
  background: var(--sunset);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 {
  width: fit-content;
  max-width: 100%;
  padding-top: .1em;
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.25rem);
  line-height: 1.2;
  background: linear-gradient(90deg, var(--yellow), var(--coral-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 .emoji { color: var(--text); -webkit-text-fill-color: currentColor; }

/* ---------- Layout ---------- */
main { overflow-x: clip; }             /* the tilted ticker is wider than the viewport */
main > section {
  position: relative;
  overflow-x: clip;
  padding: clamp(64px, 9vw, 112px) max(var(--gutter), calc((100% - var(--wrap)) / 2));
}
main > section + section { border-top: 1px solid #ffffff0d; }
.narrow > * { max-width: 720px; }

.glow {
  background:
    radial-gradient(ellipse at 12% 18%, #c9349b4d, transparent 50%),
    radial-gradient(ellipse at 88% 30%, #ff9b5533, transparent 50%),
    radial-gradient(ellipse at 50% 110%, #7b208f66, transparent 60%),
    var(--bg);
}

.box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.box > b { display: block; margin-bottom: 6px; color: var(--text); font-size: 1.075rem; line-height: 1.4; }
.box p { color: var(--body); }
.box p:last-child { margin-bottom: 0; }

.row { display: grid; gap: 16px; }
@media (min-width: 760px) {
  .download .row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.075rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--sunset-diag);
  color: #1d0b1f;
  box-shadow: 0 8px 28px #f36a7859, inset 0 1px 0 #ffffff66;
}
.btn-primary:hover { color: #1d0b1f; transform: translateY(-2px); box-shadow: 0 12px 36px #f36a7880, inset 0 1px 0 #ffffff66; }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { border: 1px solid #ffffff40; background: #ffffff0a; }
.btn-ghost:hover { color: var(--text); border-color: #ffffffa0; background: #ffffff14; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .925rem; border-radius: 8px; }

/* ---------- Screenshots ---------- */
.shot {
  border: 1px solid #ffffff2e;
  border-radius: 12px;
  rotate: -1.5deg;
  box-shadow: 0 20px 60px #00000099;
  transition: rotate .4s cubic-bezier(.2,.7,.2,1), scale .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
}
.shot:hover { rotate: 0deg; scale: 1.02; box-shadow: 0 24px 70px #000000b3, 0 0 50px #f36a7833; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  padding: 10px max(var(--gutter), calc((100% - var(--wrap)) / 2));
  background: #120a1ccc;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #ffffff12;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--text); font-weight: 600; letter-spacing: .02em; text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { border-radius: 6px; }
.site-links { display: flex; align-items: center; gap: 26px; font-size: .925rem; }
.site-links a { color: #ffffffcc; text-decoration: none; }
.site-links a:hover { color: var(--text); }
.lang-switch { color: var(--muted); }
.lang-switch a { padding: 4px 2px; }
[data-lang="vi"] .lang-switch [data-set-lang="vi"],
[data-lang="en"] .lang-switch [data-set-lang="en"] { color: var(--yellow); font-weight: 600; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff40;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { display: grid; gap: 0 56px; align-items: center; }
.hero .lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.175rem); max-width: 34rem; line-height: 1.75; }
.cta { display: flex; flex-wrap: wrap; gap: 14px 16px; margin: 30px 0 14px; }
.hero-note { margin: 0; }
.hero-shot { margin-top: 44px; width: 100%; }
@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .hero > :not(.hero-shot):not(.hero-fx) { grid-column: 1; }
  .hero-shot { grid-column: 2; grid-row: 1 / span 6; margin-top: 0; }
}

/* ---------- Hero points ---------- */
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 0; padding: 0; list-style: none; }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; color: #ffffffd9; font-size: .95rem; font-weight: 600; }
.tick { flex: none; width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: #ffb45826; fill: none; stroke: var(--yellow); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Section intro ---------- */
.section-sub { max-width: 40rem; margin: -.2em 0 36px; font-size: 1.075rem; }

/* ---------- Lightbox (click a screenshot to zoom) ---------- */
.zoomable { cursor: zoom-in; }
.lightbox {
  width: auto; max-width: min(1500px, calc(100vw - 24px)); max-height: calc(100vh - 24px);
  padding: 0; border: 0; background: transparent; overflow: visible;
}
.lightbox::backdrop { background: #07030bf0; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; animation: zoomIn .25s cubic-bezier(.2,.7,.2,1); }
.lightbox img {
  max-width: min(1500px, calc(100vw - 24px)); max-height: calc(100vh - 40px); width: auto; height: auto;
  border-radius: 12px; border: 1px solid #ffffff2e; box-shadow: 0 30px 90px #000; cursor: zoom-out;
}
.lightbox form { position: fixed; top: 14px; right: 14px; margin: 0; z-index: 2; }
.lightbox-close {
  width: 44px; height: 44px; border: 1px solid #ffffff40; border-radius: 50%;
  background: #120a1ccc; color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { border-color: var(--yellow); color: var(--yellow); }
@keyframes zoomIn { from { opacity: 0; transform: scale(.94); } }

/* ---------- How ---------- */
.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step i {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--sunset-diag);
  color: #1d0b1f;
  font-style: normal;
  font-weight: 600;
  font-size: 1.15rem;
  box-shadow: 0 6px 20px #f36a784d;
}
.step b { display: block; color: var(--text); font-size: 1.075rem; margin-bottom: 4px; }
.step div { color: var(--body); }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Highlights ---------- */
.hl-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .hl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .hl-grid { grid-template-columns: repeat(4, 1fr); } }
.hl { padding: 26px 22px; }
.hl .ico { margin-bottom: 18px; }
.hl-k {
  display: block; margin-bottom: 6px;
  font: 800 1.9rem/1.1 "Inter Display", "Inter", sans-serif; letter-spacing: -.02em;
  background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hl > b { font-size: 1.05rem; }
.hl p { font-size: .95rem; }

/* ---------- Feature rows (alternating text / screenshot) ---------- */
.frow { display: grid; gap: 28px; align-items: center; padding: 36px 0; }
.frow + .frow { border-top: 1px solid #ffffff0d; }
.frow h3 { margin: 12px 0 10px; font: 800 clamp(1.4rem, 1.1rem + 1vw, 1.85rem)/1.2 "Inter Display", "Inter", sans-serif; letter-spacing: -.015em; color: var(--text); }
.frow-text p { max-width: 34rem; }
.frow-media { margin: 0; display: flex; justify-content: center; }
.frow-media .shot { width: 100%; }
.frow-tall .frow-media .shot { width: auto; max-height: 460px; }
.frow:nth-of-type(even) .shot { rotate: 1.5deg; }
@media (min-width: 900px) {
  .frow { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; padding: 48px 0; }
  .frow:nth-of-type(even) .frow-text { order: 2; }
}
.chip {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  border: 1px solid #f36a7859; background: #f36a7814;
  color: var(--coral-pink); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.checks { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: #ffffffd9; }
.checks .tick { margin-top: 3px; }

.more-title { margin: 40px 0 18px; font: 800 1.35rem/1.2 "Inter Display", "Inter", sans-serif; color: var(--text); }
.mini-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .mini-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mini-grid { grid-template-columns: repeat(3, 1fr); } }
.mini { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.mini .ico { flex: none; margin: 0; width: 38px; height: 38px; padding: 8px; }
.mini b { display: block; margin-bottom: 2px; }
.mini p { margin: 0; font-size: .925rem; }

/* ---------- Safety: list rows with an icon, like a rules table ---------- */
.safety .row { gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.safety .box {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  align-items: start;
  padding: 22px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.safety .box + .box { border-top: 1px solid var(--line); }
.safety .box .ico { grid-row: 1 / span 2; margin: 2px 0 0; }
.safety .box > b, .safety .box > p { grid-column: 2; }

/* ---------- Download ---------- */
.download .box { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.download .box > b { margin: 0; }
.download .box p { margin: 0; }
.note {
  position: relative;
  margin-top: 24px;
  padding: 18px 20px 18px 54px;
  border: 1px solid #ffb45840;
  border-radius: var(--radius);
  background: #ffb4580f;
}
.note::before {                        /* info icon */
  content: "i";
  position: absolute; left: 18px; top: 19px;
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border: 1.5px solid var(--yellow); border-radius: 50%;
  color: var(--yellow); font: 600 .8rem/1 "Inter", sans-serif;
}
.note b { color: var(--yellow); }
.note ol { margin: 8px 0 10px; padding-left: 1.3em; color: var(--body); }
.note p { margin: 0; color: var(--muted); }
.mobile-note { display: none; }
.is-mobile .mobile-note { display: block; }
.mobile-note .btn { margin-top: 12px; }
.share-status { margin-top: 8px; color: var(--yellow); overflow-wrap: anywhere; }
.share-status:empty { display: none; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--coral-pink); font-size: 1.35rem; line-height: 1.1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 10px; }

/* ---------- Donate + feedback ---------- */
.donate-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .donate-grid { grid-template-columns: 1fr 1.15fr; } }
.donate-card, .feedback-card { padding: 30px 28px; }
.donate-card h2, .feedback-card h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); }
.donate-card .btn { margin-top: 6px; }
.qr-panel { margin-top: 20px; }
.qr-panel:not([hidden]) { animation: fadeDown .35s ease-out; }
.donate-figure { margin: 0 0 12px; width: fit-content; text-align: center; }
.donate-qr { width: 240px; padding: 12px; border-radius: var(--radius); background: #fff; }
.donate-figure figcaption { margin-top: 12px; color: var(--muted); font-size: .925rem; }
#donate.qr-ok #donate-fallback { display: none; }

.fb-form { display: grid; gap: 14px; margin-top: 8px; }
.field-row { display: grid; gap: 14px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field span { font-size: .875rem; font-weight: 600; color: #ffffffcc; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #ffffff26; border-radius: 10px;
  background: #0d0714; color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px #ffb45833; }
.field select option { background: #1a0e29; }
.fb-form .btn { justify-self: start; }
.btn-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fb-status { margin: 0; font-size: .925rem; color: var(--yellow); }
.fb-status:empty { display: none; }
.fb-status.err { color: var(--coral-pink); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 64px max(var(--gutter), calc((100% - var(--wrap)) / 2)) 32px;
  border-top: 1px solid #ffffff12;
  background: linear-gradient(180deg, #0f0818, #0a0510);
  font-size: .925rem;
}
.footer-grid { display: grid; gap: 36px 28px; padding-bottom: 40px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand .brand { margin-bottom: 14px; font-size: 1.1rem; }
.footer-brand p { max-width: 22rem; color: var(--muted); }
.footer-brand .btn { margin-top: 6px; width: auto; }
.footer-col h3 { margin: 4px 0 14px; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; color: var(--muted); }
.footer-col li { padding: 0; line-height: 1.5; }
.footer-col li:not(:has(a)) { padding: 10px 0; }
.footer-col a { display: block; padding: 10px 0; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  padding: 22px 0; border-top: 1px solid #ffffff12; color: var(--muted);
}
.footer-bottom p { margin: 0; color: var(--muted); }
.footer-meta { display: flex; gap: 20px; align-items: center; }
.footer-meta > a { color: var(--muted); text-decoration: none; }
.footer-meta > a:hover { color: var(--yellow); }
.disclaimer { margin: 6px 0 0; max-width: 900px; font-size: .8rem; line-height: 1.6; color: #ffffff73; }

/* ---------- Changelog page ---------- */
.changelog > * { max-width: 820px; }
.changelog .lead { color: var(--muted); }
.changelog h1 { max-width: none; }
.release { margin-top: 24px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.release h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin-bottom: .3em; }
.release h2 small { font-size: .55em; letter-spacing: 0; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.release h3 { margin: 18px 0 6px; color: var(--yellow); font-size: 1.05rem; font-weight: 600; }
.release ul { margin: 0; padding-left: 1.2em; color: var(--body); }
.release li { margin-bottom: 6px; }
.release code { padding: 1px 5px; border-radius: 4px; background: #ffffff14; font-size: .9em; }

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-cta { display: none; }
  .site-nav { flex-wrap: wrap; }
  .site-nav .site-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0 8px;
  }
  .site-nav .site-links > * { padding: 12px 0; border-top: 1px solid #ffffff14; }
  .nav-open .site-nav .site-links { display: flex; }
  .changelog-page .site-nav { flex-wrap: nowrap; }
  .changelog-page .site-nav .site-links { display: flex; flex-basis: auto; padding: 0; }
  .changelog-page .site-nav .site-links > * { border: 0; }

  .btn { width: 100%; }
  .cta { flex-direction: column; }
  .box, .release { padding: 18px 16px; }
  .safety .box { padding: 18px 16px; }
}

/* =================================================================
   Effects layer. Decorative only: content stays readable without it,
   and prefers-reduced-motion switches it off.
   ================================================================= */

@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* Scroll progress bar (scroll-driven animation; hidden where unsupported) */
.scroll-progress {
  position: fixed; inset: 0 0 auto; z-index: 30; height: 3px;
  background: var(--sunset);
  box-shadow: 0 0 12px #f36a78aa;
  transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: progress linear both; animation-timeline: scroll(root); }
}
@keyframes progress { to { transform: scaleX(1); } }

/* Nav darkens once the page scrolls */
.site-nav { transition: background-color .3s ease, box-shadow .3s ease; }
.scrolled .site-nav { background: #0f0817eb; box-shadow: 0 1px 0 #f36a7840, 0 10px 30px #00000059; }
.site-links > a { position: relative; }
.site-links > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--yellow), var(--coral-pink));
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease-out;
}
.site-links > a:hover::after { transform: scaleX(1); }

/* ---------- Hero backdrop: sunset blobs, Vice-style grid floor, embers ---------- */
.hero { isolation: isolate; overflow: clip; }
.hero > * { position: relative; z-index: 1; }
.hero > .hero-fx {
  position: absolute; inset: 0; z-index: 0;
  grid-column: auto; grid-row: auto;            /* abs-pos grid child: cover the whole padding box */
  pointer-events: none; overflow: hidden;
}
.blob {
  position: absolute; width: 48vmax; height: 48vmax; border-radius: 50%;
  filter: blur(80px); opacity: .42; will-change: transform;
}
.b1 { background: var(--magenta); left: -16vmax; top: -20vmax; animation: drift1 20s ease-in-out infinite alternate; }
.b2 { background: var(--orange); right: -18vmax; top: -10vmax; opacity: .28; animation: drift2 24s ease-in-out infinite alternate; }
.b3 { background: var(--purple); left: 28%; bottom: -30vmax; opacity: .5; animation: drift3 28s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(12vmax, 8vmax) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-10vmax, 10vmax) scale(.92); } }
@keyframes drift3 { to { transform: translate(-8vmax, -8vmax) scale(1.08); } }
.floor {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 50%;
  background:
    linear-gradient(#f36a7852 1px, transparent 1px) 0 0 / 100% 52px,
    linear-gradient(90deg, #c9349b40 1px, transparent 1px) 0 0 / 52px 100%;
  transform: perspective(420px) rotateX(62deg);
  transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: floor 3.5s linear infinite;
  opacity: .5;
}
@keyframes floor { to { background-position: 0 52px, 0 0; } }
#sparks { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Chip above the headline */
.badge {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  margin: 0 0 22px; padding: 5px 12px 5px 10px;
  border: 1px solid #ffb45859; border-radius: 6px;
  background: #ffb45814;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow);
}
.badge .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 #ffb458aa; animation: ping 1.8s ease-out infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 9px #ffb45800; } }

/* Headline: slow sunset shimmer + warm glow */
h1 { animation: shimmer 10s linear infinite; filter: drop-shadow(0 4px 24px #f36a7840); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Hero screenshot floats; JS adds a 3D tilt */
.hero-shot {
  box-shadow: 0 30px 90px #000000a6, 0 0 60px #c9349b40, 0 0 120px #ff9b5526;
  animation: float 6s ease-in-out infinite;
  transition: rotate .4s ease, scale .4s ease, transform .2s ease-out;
}
@keyframes float { 50% { translate: 0 -12px; } }

/* ---------- Buttons: shine sweep + breathing glow ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; cursor: pointer; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, #ffffff80 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.btn-primary:hover::after { transform: translateX(120%); }
#primary-dl { animation: breathe 2.8s ease-in-out infinite; }
#primary-dl:hover { animation: none; }
@keyframes breathe {
  0%, 100% { box-shadow: 0 8px 28px #f36a7859, inset 0 1px 0 #ffffff66; }
  50% { box-shadow: 0 10px 44px #f36a78a6, inset 0 1px 0 #ffffff66; }
}

/* ---------- Ticker ---------- */
.ticker {
  position: relative; z-index: 2;
  overflow: hidden; margin: -10px 0; padding: 14px 0;
  background: linear-gradient(90deg, var(--violet), var(--purple) 25%, var(--magenta) 50%, var(--coral-pink) 75%, var(--orange));
  transform: rotate(-1.2deg) scale(1.02);
  box-shadow: 0 10px 40px #c9349b40;
}
.ticker-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.ticker span { flex: none; padding-right: 3rem; color: #fff; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .925rem; white-space: nowrap; text-shadow: 0 1px 2px #0006; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards: cursor spotlight + gradient rim + lift ---------- */
.box {
  position: relative; isolation: isolate;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.box::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), #f36a781f, transparent 60%);
  opacity: 0; transition: opacity .3s ease;
}
.box::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--sunset-diag);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease;
}
@media (hover: hover) {
  .box:hover { transform: translateY(-4px); box-shadow: 0 18px 50px #00000066, 0 0 30px #f36a7820; }
  .box:hover::before, .box:hover::after { opacity: 1; }
  .safety .box:hover { transform: none; box-shadow: none; }
  .safety .box:hover::after { opacity: 0; }
}

.ico {
  display: block; width: 42px; height: 42px; margin-bottom: 14px; padding: 9px;
  border-radius: 10px; background: #ffb45814; border: 1px solid #ffb45840;
  fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.safety .box:nth-child(2) .ico, .features .box:nth-child(4) .ico { stroke: var(--coral-pink); background: #f36a7814; border-color: #f36a7840; }
.safety .box:nth-child(3) .ico { stroke: #e46be0; background: #c9349b1a; border-color: #c9349b4d; }

/* Featured download card: rotating sunset rim */
.box.featured {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    conic-gradient(from var(--ang), var(--yellow), var(--orange), var(--coral-pink), var(--magenta), var(--purple), var(--yellow)) border-box;
  animation: spin 6s linear infinite;
}
.box.featured::after { display: none; }
@keyframes spin { to { --ang: 360deg; } }

/* FAQ: highlight + soft reveal of the answer */
.faq summary { transition: color .2s ease; }
.faq summary:hover, .faq details[open] summary { color: var(--yellow); }
.faq summary::after { transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details[open] p { animation: fadeDown .35s ease-out; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }

/* Donate QR sunset frame */
.donate-qr { box-shadow: 0 0 0 3px var(--coral-pink), 0 0 0 6px var(--purple), 0 0 40px #f36a7859; }

/* ---------- Scroll reveal (class "fx" is set by JS only when motion is OK) ---------- */
.fx .reveal {
  opacity: 0; translate: 0 28px;
  transition: opacity .7s ease-out, translate .7s cubic-bezier(.2,.7,.2,1), transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
  transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s;
}
.fx .reveal.in { opacity: 1; translate: 0 0; }

@media (max-width: 640px) {
  .blob { filter: blur(56px); }
  .floor { opacity: .32; }
  .ticker { padding: 10px 0; }
  .ticker span { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .shot, .btn, .box { transition: none; }
  .shot:hover { rotate: -1.5deg; scale: none; }
  .demo-dialog .shot:hover { rotate: none; }
  .btn-primary:hover, .btn-primary:active, .box:hover { transform: none; }
  .blob, .floor, .badge .dot, h1, .hero-shot, #primary-dl, .ticker-track, .box.featured, .scroll-progress { animation: none !important; }
  .scroll-progress { display: none; }
  .faq details[open] p { animation: none; }
  .btn-primary::after { display: none; }
  .ticker-track { width: auto; }
  .ticker span + span { display: none; }
  .ticker span { white-space: normal; padding: 0 var(--gutter); }
}

/* ---------- Scrollbar + scroll button ---------- */
html { scrollbar-color: #c9349b #0d0714; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0d0714; }
::-webkit-scrollbar-thumb { border: 2px solid #0d0714; border-radius: 10px; background: linear-gradient(180deg, var(--yellow), var(--coral-pink), var(--magenta)); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ffd29a, var(--coral)); }

.scroll-fab {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 25;
  display: grid; place-items: center; width: 54px; height: 54px; padding: 0;
  border: 0; border-radius: 50%; background: #1a0e29e6; color: var(--yellow); cursor: pointer;
  box-shadow: 0 10px 30px #00000080, 0 0 0 1px #ffffff1a;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .2s ease, box-shadow .2s ease;
}
.scroll-fab[hidden] { display: none; }
.scroll-fab:hover { transform: translateY(-3px); box-shadow: 0 14px 36px #00000099, 0 0 24px #f36a7859; }
.fab-ring { position: absolute; inset: 3px; width: 48px; height: 48px; transform: rotate(-90deg); }
.fab-ring circle { fill: none; stroke-width: 3; }
.fab-ring circle:first-child { stroke: #ffffff1a; }
.fab-progress { stroke: var(--coral-pink); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0)); transition: stroke-dashoffset .1s linear; }
.fab-arrow { position: relative; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s ease; }
.scroll-fab.at-end .fab-arrow { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .scroll-fab, .fab-arrow, .fab-progress, .faq summary::after, .site-links > a::after, .field input, .field select, .field textarea { transition: none; } .lightbox[open], .qr-panel:not([hidden]) { animation: none; } }

/* Touch devices: drop the costliest paint work (big blurred blob + filtered shimmering headline). */
@media (pointer: coarse) {
  .b3 { display: none; }
  h1 { filter: none; animation: none; }
  .blob { will-change: auto; }
}
