/* Lumin link page. Colours and fonts follow the brand kit (brand-kit.md §4–5): ink + gold,
   Unbounded for the brand name and headings, Plus Jakarta Sans for text, Space Grotesk for numbers. */

@font-face { font-family: "Unbounded"; src: url("assets/fonts/unbounded-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("assets/fonts/unbounded-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("assets/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("assets/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("assets/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0b0d14;
  --ink-2: #131722;
  --card: rgba(22, 26, 38, 0.82);
  --line: rgba(242, 193, 78, 0.16);
  --gold: #d4af37;
  --gold-bright: #f2c14e;
  --gold-soft: #ffe29a;
  --text: #e6e8ee;
  --muted: rgba(230, 232, 238, 0.66);
  --good: #8be3a6;
  --bad: #f26b6b;
  --tg: #2aabee;
  --radius: 20px;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --num: "Space Grotesk", ui-monospace, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-weight: 600;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
body.modal-open { overflow: hidden; }

/* background: gold light from the top, a faint chart grid, candles behind the hero */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(640px 420px at 50% -80px, rgba(242, 193, 78, 0.26), transparent 70%),
    radial-gradient(560px 560px at 100% 110%, rgba(212, 175, 55, 0.09), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px) 0 0 / 56px 100%,
    var(--ink);
}
.backdrop svg {
  position: absolute;
  top: 120px;
  left: 50%;
  width: min(1200px, 200vw);
  transform: translateX(-50%);
  opacity: 0.14;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
}

.page {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: max(48px, env(safe-area-inset-top)) 18px 28px;
}

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { text-align: center; }
.avatar {
  position: relative;
  width: 148px;
  height: 148px;
  margin: 0 auto 24px;
  padding: 4px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--gold-soft), var(--gold), #8a6d1d, var(--gold-bright), var(--gold-soft));
  box-shadow: 0 0 0 6px rgba(242, 193, 78, 0.08), 0 18px 60px rgba(242, 193, 78, 0.28);
  animation: float 6s ease-in-out infinite;
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--ink-2); }
.avatar::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(242, 193, 78, 0.4);
  animation: pulse 3.2s ease-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 0% { transform: scale(0.92); opacity: 0.9; } 100% { transform: scale(1.2); opacity: 0; } }

.brand {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(42px, 13vw, 56px);
  line-height: 1;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
  background: linear-gradient(180deg, #fff6d6 0%, var(--gold-bright) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand span {
  display: block;
  margin-top: 12px;
  font-family: var(--body);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  text-transform: uppercase;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}
.handle { margin: 16px 0 0; font-family: var(--num); font-weight: 500; font-size: 15px; color: var(--muted); }
.tagline { margin: 4px 0 0; font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 0.04em; color: var(--gold-bright); }
.desc { margin: 14px auto 0; max-width: 420px; font-size: 15.5px; line-height: 1.6; color: rgba(230, 232, 238, 0.82); }
.desc b { font-weight: 800; color: #fff; }

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 16px 30px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-bright) 45%, var(--gold));
  color: #14110a;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 10px 34px rgba(242, 193, 78, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: skewX(-20deg);
  animation: shine 3.6s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 42px rgba(242, 193, 78, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.cta:hover svg { transform: translateX(3px); }
.cta-sub { margin: 12px 0 0; font-size: 13px; letter-spacing: 0.06em; color: var(--muted); }
.risk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 16px 0 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(242, 107, 107, 0.3);
  background: rgba(242, 107, 107, 0.1);
  color: #ff9a9a;
  font-size: 12.5px;
  font-weight: 700;
}
.risk svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ── sections ─────────────────────────────────────────────────────────── */
.block { margin-top: 42px; }
.block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.block-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(242, 193, 78, 0.35), transparent); }

.grid { display: grid; gap: 12px; }
@media (min-width: 620px) { .grid { grid-template-columns: 1fr 1fr; } }
.socials { display: grid; gap: 12px; }

.card,
.social {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover,
.social:hover { transform: translateY(-3px); border-color: rgba(242, 193, 78, 0.45); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35); }
.card--warn { border-color: rgba(242, 107, 107, 0.32); background: linear-gradient(135deg, rgba(242, 107, 107, 0.13), var(--card) 62%); }
.card--warn:hover { border-color: rgba(242, 107, 107, 0.6); }

.card-logo { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.card-icon,
.social-icon { flex-shrink: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; }
.card-icon svg,
.social-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-icon .fill,
.social-icon .fill { fill: #fff; stroke: none; }
.card-icon--warn { background: rgba(242, 107, 107, 0.16); }
.card-icon--warn svg { stroke: #ff8f8f; }
.card-icon--tg,
.social-icon--tg { background: var(--tg); }
.social-icon--ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-icon--tt { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.social-icon--tt svg { filter: drop-shadow(-1.3px -1.1px 0 #25f4ee) drop-shadow(1.3px 1.1px 0 #fe2c55); }

.card-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.card-title { font-size: 16px; font-weight: 800; line-height: 1.3; color: #fff; }
.card-sub { margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.card-go { flex-shrink: 0; width: 20px; height: 20px; fill: none; stroke: rgba(242, 193, 78, 0.85); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.card:hover .card-go,
.social:hover .card-go { transform: translateX(3px); }

/* Valetax: the sign-up link and a button that copies the referral code */
.card--split { flex-direction: column; align-items: stretch; gap: 12px; cursor: default; }
.card-main { display: flex; align-items: center; gap: 14px; }
.code {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border: 1px dashed rgba(242, 193, 78, 0.45);
  border-radius: 12px;
  background: rgba(242, 193, 78, 0.06);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.code b { font-family: var(--num); font-size: 15px; font-weight: 700; letter-spacing: 0.12em; color: var(--gold-bright); }
.code-hint { margin-left: auto; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-bright); }
.code.is-copied .code-hint { color: var(--good); }

/* what the channel makes, with the 2D Lumin stickers */
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.topic { margin: 0; padding: 14px 8px 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); text-align: center; }
.topic img { width: auto; height: 84px; margin: 0 auto; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45)); }
.topic figcaption { margin-top: 10px; font-size: 12.5px; font-weight: 800; line-height: 1.3; color: #fff; }

/* ── footer ───────────────────────────────────────────────────────────── */
.footer { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.07); text-align: center; font-size: 13px; color: var(--muted); }
.footer-social { display: flex; justify-content: center; gap: 12px; margin-bottom: 14px; }
.footer-social .social-icon { width: 42px; height: 42px; border-radius: 50%; transition: transform 0.2s; }
.footer-social .social-icon svg { width: 22px; height: 22px; }
.footer-social .social-icon:hover { transform: translateY(-3px) scale(1.06); }
.footer p { margin: 6px 0 0; }
.footer .fine { font-size: 12px; opacity: 0.85; }
.footer .fine a { font-weight: 800; color: var(--gold-bright); }

/* ── disclaimer dialog ────────────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(5, 6, 10, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s;
}
.overlay[hidden] { display: none; }
.overlay.is-open { opacity: 1; }
.modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  max-height: min(84vh, 760px);
  border: 1px solid rgba(242, 193, 78, 0.25);
  border-radius: 24px;
  background: linear-gradient(180deg, #171b27, #10131c);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s;
}
.overlay.is-open .modal { transform: none; }
.modal-title { margin: 0; padding: 26px 60px 14px 24px; font-family: var(--display); font-size: 18px; font-weight: 800; line-height: 1.35; color: var(--gold-bright); }
.modal-body { overflow-y: auto; padding: 0 24px; font-size: 14.5px; line-height: 1.7; color: rgba(230, 232, 238, 0.86); }
.modal-body p,
.doc-body p { margin: 0 0 14px; }
.modal-actions { display: flex; gap: 10px; padding: 16px 24px 22px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.modal-x {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}
.modal-x svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.btn--gold { background: linear-gradient(180deg, var(--gold-soft), var(--gold-bright) 50%, var(--gold)); color: #14110a; }
.btn--ghost { border-color: rgba(242, 193, 78, 0.42); background: transparent; color: var(--gold-bright); }

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 60;
  padding: 10px 16px;
  border: 1px solid rgba(242, 193, 78, 0.35);
  border-radius: 999px;
  background: #171b27;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ── disclaimer page ──────────────────────────────────────────────────── */
.doc { max-width: 680px; margin: 0 auto; padding: max(40px, env(safe-area-inset-top)) 18px 48px; }
.doc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.doc-head img { width: 56px; height: 56px; border: 2px solid var(--gold-bright); border-radius: 50%; }
.doc-head b { display: block; font-family: var(--display); font-size: 20px; font-weight: 900; letter-spacing: 0.08em; color: var(--gold-bright); }
.doc-head span { font-family: var(--num); font-size: 14px; font-weight: 500; color: var(--muted); }
.doc h1 { margin: 0 0 18px; font-family: var(--display); font-size: clamp(22px, 6vw, 28px); font-weight: 800; line-height: 1.3; color: #fff; }
.doc-body { font-size: 15.5px; line-height: 1.75; color: rgba(230, 232, 238, 0.86); }
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.doc-actions .btn { flex: 1 1 200px; }

/* ── focus, entrance, reduced motion ──────────────────────────────────── */
:is(a, button):focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.is-done { transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.js .card.reveal.is-in:hover,
.js .social.reveal.is-in:hover { transform: translateY(-3px); }
.js .card--split.reveal.is-in:hover { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
