/* Divit — landing page. Palette and type follow the v6 film / banner. */
:root {
  --bg: #000;
  --bg-2: #0a0b0d;
  --surface: #121318;          /* card */
  --surface-2: #181a1e;        /* tablet surface */
  --line: rgba(255, 255, 255, .09);
  --text: #f5f5f7;
  --grey: #86868b;
  --grey-2: #6e6e73;
  --navy: #1f2a44;
  --pill: #0f1626;
  --pill-line: #2b3a5e;
  --blue: #3d6fd8;
  --g1: #6e9bff;
  --g2: #a98bff;
  --green: #2ea043;
  --radius: 22px;
  --font: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }

.grad {
  background: linear-gradient(90deg, var(--g1), var(--g2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.warm {
  background: linear-gradient(90deg, #ffe082, #ffb703);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dim { color: var(--grey); }

h1, h2, h3 { font-weight: 600; letter-spacing: -.025em; line-height: 1.07; }
h2 { font-size: clamp(36px, 5.4vw, 64px); }
h3 { font-size: 21px; letter-spacing: -.01em; line-height: 1.25; }
.eyebrow { color: var(--grey); font-weight: 600; font-size: clamp(17px, 1.8vw, 22px); letter-spacing: -.01em; margin-bottom: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 17px; letter-spacing: -.01em;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(90deg, #5b86f0, #8f7cf0);
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(110, 155, 255, .55);
}
.btn-primary:hover { box-shadow: 0 10px 40px -6px rgba(140, 140, 255, .75); transform: translateY(-1px); }
.btn-secondary { background: var(--pill); border: 1px solid var(--pill-line); color: var(--text); }
.btn-secondary:hover { border-color: var(--g1); }
.btn-ghost { color: var(--g1); padding: 0 14px; }
.btn-ghost::after { content: "›"; font-size: 24px; line-height: 1; margin-top: -3px; transition: transform .2s; }
.btn-ghost:hover::after { transform: translateX(3px); }
.btn-sm { height: 34px; padding: 0 16px; font-size: 14px; background: var(--text); color: #000; }
.btn-sm:hover { background: #fff; }
.btn-donate {
  gap: 6px; padding: 0 14px;
  background: rgba(255, 209, 102, .1);
  border: 1px solid rgba(255, 209, 102, .28);
  color: #ffd166;
}
.btn-donate svg { width: 15px; height: 15px; stroke-width: 2; }
.btn-donate:hover {
  background: rgba(255, 209, 102, .18);
  border-color: rgba(255, 209, 102, .55);
  color: #ffe399;
  box-shadow: 0 6px 24px -8px rgba(255, 195, 70, .45);
}
.btn-coffee {
  height: 54px; padding: 0 30px;
  background: linear-gradient(135deg, #ffdd00, #ffb703);
  color: #111;
  box-shadow: 0 10px 34px -10px rgba(255, 196, 36, .55);
}
.btn-coffee svg { width: 20px; height: 20px; stroke-width: 2.1; }
.btn-coffee:hover { box-shadow: 0 14px 44px -8px rgba(255, 196, 36, .75); transform: translateY(-1px); }
.btn-coffee:hover .steam { animation: steam 1.2s ease-in-out infinite; }
@keyframes steam {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-1.8px); opacity: .55; }
}
.btn-block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: #c7c7cc; }
.nav-links a:hover { color: #fff; }
.nav-end { display: flex; align-items: center; gap: 12px; }
.lang {
  font: 600 12px var(--font); letter-spacing: .04em; color: var(--grey);
  background: none; border: 1px solid var(--line); border-radius: 999px;
  height: 30px; padding: 0 11px; cursor: pointer;
}
.lang:hover { color: var(--text); border-color: var(--grey-2); }

/* ---------- hero ---------- */
.hero { padding: clamp(72px, 12vw, 140px) 0 48px; text-align: center; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -10% 0 auto; height: 620px; z-index: -1;
  background: radial-gradient(60% 55% at 50% 30%, rgba(61, 111, 216, .22), transparent 70%),
              radial-gradient(35% 40% at 62% 40%, rgba(169, 139, 255, .12), transparent 70%);
  pointer-events: none;
}
.hero h1 { font-size: clamp(46px, 8.6vw, 104px); letter-spacing: -.035em; line-height: 1.02; }
.lead { color: var(--grey); font-size: clamp(18px, 2.2vw, 24px); font-weight: 500; max-width: 720px; margin: 26px auto 0; letter-spacing: -.012em; line-height: 1.4; }
.cta { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 36px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 40px; }
.pills li {
  font-size: 15px; font-weight: 500; color: #dfe3ec;
  padding: 7px 16px; border-radius: 999px;
  background: var(--pill); border: 1px solid var(--pill-line);
}
.meta { margin-top: 22px; color: var(--grey-2); font-size: 14px; }

/* ---------- film ---------- */
.film { padding: 32px 0 40px; }
.player {
  position: relative; border-radius: 28px; overflow: hidden;
  background: #000; aspect-ratio: 16 / 9;
  box-shadow: 0 0 0 1px var(--line), 0 40px 120px -40px rgba(61, 111, 216, .45);
}
.player video { width: 100%; height: 100%; object-fit: cover; }
.vol {
  position: absolute; right: 18px; bottom: 18px;
  display: flex; align-items: center;
  height: 38px; border-radius: 999px;
  background: rgba(20, 22, 28, .62); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
/* Slim slider that slides out to the left of the button, inside the same pill. */
.vol-range {
  --v: 50%;
  -webkit-appearance: none; appearance: none;
  width: 0; height: 3px; margin: 0; padding: 0; opacity: 0;
  border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, var(--g1), var(--g2)) left / var(--v) 100% no-repeat, rgba(255, 255, 255, .22);
  transition: width .25s cubic-bezier(.2, .7, .2, 1), margin .25s cubic-bezier(.2, .7, .2, 1), opacity .18s;
}
.vol-range::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.vol-range::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 0; }
.vol-range::-moz-range-track { background: transparent; }
.vol-range:focus { outline: none; }
.vol-range:focus-visible { outline: 2px solid var(--g1); outline-offset: 6px; }
/* Opens on hover (mouse), keyboard focus, or - on touch screens - while the sound is on. Mouse clicks never pin it open. */
@media (hover: hover) { .vol:hover .vol-range { width: 84px; margin-left: 14px; opacity: 1; } }
.vol:has(:focus-visible) .vol-range, .vol.touch-open .vol-range { width: 84px; margin-left: 14px; opacity: 1; }
.sound {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px 0 12px; border-radius: 999px;
  font: 600 13px var(--font); color: #fff; cursor: pointer;
  background: none; border: 0;
}
.sound:focus { outline: none; }
.sound:focus-visible { outline: 2px solid var(--g1); outline-offset: 3px; }
.sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sound .spk { fill: currentColor; }
.sound .on { display: none; }
.sound[aria-pressed="true"] .on { display: block; }
.sound[aria-pressed="true"] .off { display: none; }

/* ---------- stats ---------- */
.stats { padding: 64px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.stat { background: var(--bg); padding: 34px 26px; display: flex; flex-direction: column; gap: 6px; }
.stat b { font-size: clamp(40px, 5vw, 58px); font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.stat b small { font-size: .42em; color: var(--grey); margin-left: 4px; letter-spacing: 0; font-weight: 500; }
.stat:first-child b { background: linear-gradient(90deg, var(--g1), var(--g2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat:first-child b small { -webkit-text-fill-color: var(--grey); }
.stat span { color: var(--grey); font-size: 15px; }

/* ---------- showcase ---------- */
.showcase { padding: 80px 0; }
.show-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.show-text h2 { font-size: clamp(34px, 4.4vw, 54px); }
.show-text p:last-child { color: var(--grey); margin-top: 22px; font-size: 19px; line-height: 1.5; }
.show-img { position: relative; border-radius: var(--radius); overflow: hidden; }
.show-img img { width: 100%; height: auto; }
.show-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, transparent 18%), linear-gradient(0deg, #000 0%, transparent 22%); pointer-events: none; }
.pulse { position: absolute; left: 0; bottom: 8%; width: 46%; height: 30%; overflow: visible; z-index: 2; }
.pulse path { fill: none; stroke: url(#pg); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 90 400; animation: travel 2.4s cubic-bezier(.45, 0, .2, 1) infinite; filter: drop-shadow(0 0 6px rgba(130, 140, 255, .9)); }
@keyframes travel { from { stroke-dashoffset: 490; } to { stroke-dashoffset: 0; } }

/* ---------- features ---------- */
.features { padding: 100px 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.card {
  background: linear-gradient(180deg, var(--surface), #0c0d10);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 32px;
  transition: border-color .3s, transform .3s;
}
.card:hover { border-color: rgba(110, 155, 255, .35); transform: translateY(-3px); }
.ico {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 22px;
  display: grid; place-items: center;
  background: var(--navy); border: 1px solid var(--pill-line);
}
.ico svg { width: 22px; height: 22px; fill: none; stroke: var(--g1); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--grey); margin-top: 10px; font-size: 16px; }

/* ---------- how ---------- */
.how { padding: 100px 0; background: linear-gradient(180deg, #000, var(--bg-2) 40%, #000); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--pill-line), transparent); z-index: 0; }
.step { text-align: center; position: relative; z-index: 1; }
.num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #000; border: 1px solid var(--pill-line); color: var(--g1); font-weight: 600; margin-bottom: 20px;
}
.step p { color: var(--grey); margin-top: 10px; font-size: 16px; max-width: 320px; margin-inline: auto; }

/* ---------- download ---------- */
.download { padding: 110px 0 100px; position: relative; }
.download::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 40% at 50% 20%, rgba(61, 111, 216, .2), transparent 70%);
}
.dl-logo { width: 88px; height: 88px; border-radius: 21px; margin: 0 auto 26px; box-shadow: 0 20px 60px -15px rgba(61, 111, 216, .6); }
.sub { color: var(--grey); font-size: clamp(18px, 2vw, 22px); margin-top: 14px; font-weight: 500; }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 860px; margin: 52px auto 0; }
.dl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.dl-head { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.dl-head svg { width: 44px; height: 44px; flex: none; fill: none; stroke: var(--text); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; padding: 9px; border-radius: 12px; background: var(--navy); border: 1px solid var(--pill-line); }
.dl-head p { color: var(--grey); font-size: 14px; margin-top: 2px; }
.file { color: var(--grey-2); font-size: 13px; margin-top: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.dl-foot { text-align: center; color: var(--grey-2); font-size: 14px; margin-top: 28px; }
.dl-foot a { color: var(--g1); }
.dl-foot a:hover { text-decoration: underline; }
.req { max-width: 860px; margin: 56px auto 0; border-top: 1px solid var(--line); padding-top: 34px; }
.req h3 { font-size: 17px; color: var(--grey); margin-bottom: 18px; }
.req dl { display: grid; grid-template-columns: 110px 1fr; gap: 12px 24px; font-size: 15px; }
.req dt { font-weight: 600; }
.req dd { color: var(--grey); }

/* ---------- faq ---------- */
.faq { padding: 80px 0 72px; }
.faq h2 { margin-bottom: 40px; font-size: clamp(32px, 4vw, 48px); }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative;
  font-size: 19px; font-weight: 600; letter-spacing: -.01em;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--grey); font-weight: 400; font-size: 26px; transition: transform .25s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--grey); padding: 0 36px 24px 0; }

/* ---------- support ---------- */
.support { padding: 16px 0 110px; position: relative; }
.support::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(48% 58% at 50% 48%, rgba(255, 196, 60, .09), transparent 72%);
}
.support-card {
  max-width: 860px; margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center;
  padding: 44px 42px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 209, 102, .055), var(--surface) 44%, #0c0d10);
  border: 1px solid rgba(255, 209, 102, .16);
  transition: border-color .3s;
}
.support-card:hover { border-color: rgba(255, 209, 102, .3); }
.support-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; letter-spacing: .01em; color: #ffd166;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
  background: rgba(255, 209, 102, .09); border: 1px solid rgba(255, 209, 102, .22);
}
.support-tag svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.support-copy h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.08; }
.support-body { color: var(--grey); margin-top: 14px; font-size: 16px; max-width: 470px; }
.support-act { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.support-meta { color: var(--grey-2); font-size: 13px; text-align: center; }
.support-meta a { color: var(--grey); transition: color .2s; }
.support-meta a:hover { color: #ffd166; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--grey-2); font-size: 13px; }
.foot-in { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.foot .brand { color: var(--text); font-size: 16px; }
.foot .brand img { border-radius: 5px; }
.foot nav { display: flex; gap: 20px; }
.foot nav a:hover { color: var(--text); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse path { animation: none; stroke-dasharray: none; }
  .btn-coffee:hover .steam { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-end { margin-left: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .show-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .foot-in { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 760px) {
  .support-card { grid-template-columns: 1fr; gap: 28px; text-align: center; padding: 34px 24px; }
  .support-body { margin-inline: auto; }
  .support-act .btn-coffee { width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-end { gap: 8px; }
  .btn-sm { padding: 0 12px; font-size: 13px; }
  .btn-donate { padding: 0 11px; }
  .cards, .steps, .dl-grid { grid-template-columns: 1fr; }
  .steps { gap: 36px; }
  .steps::before { display: none; }
  .player { border-radius: 16px; }
  .vol { right: 10px; bottom: 10px; height: 34px; }
  .sound { height: 32px; }
  .sound span { display: none; }
  .stat { padding: 24px 18px; }
  .req dl { grid-template-columns: 1fr; gap: 4px; }
  .req dd { margin-bottom: 12px; }
  .foot nav { flex-wrap: wrap; }
  .btn { height: 48px; }
  .btn-sm { height: 34px; }
  .cta .btn-primary { width: 100%; }
}
