/* ============================================================
   Frontman funnel — template stylesheet, v2 "salotto" design.
   Cinematic dark + display serif; every color is a CSS variable
   overridden at runtime by config.js (theme block), so restyling
   a frontman normally never touches this file.
   ============================================================ */

:root {
  --bg: #05070b;
  --bg-2: #0a0e15;
  --text: #f0ece3;
  --text-dim: #9a958a;
  --accent: #2dd882;            /* highlights, numerals, seals */
  --accent-glow: rgba(45, 216, 130, 0.35);
  --cta: #35a6f4;               /* button base */
  --cta-2: #57b8ff;             /* button top gradient (auto-derived) */
  --cta-glow: rgba(53, 166, 244, 0.45);
  --cta-text: #ffffff;
  --live: #ff3b3b;
  --up: #2dd882;
  --down: #ff5a5a;
  --chart-up: var(--up);        /* backdrop candle colors */
  --chart-down: var(--down);
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.09);
  --hairline: color-mix(in srgb, var(--accent) 28%, transparent);
  --ticker-bg: rgba(4, 6, 10, 0.92);
  --radius: 18px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --display: 'Fraunces', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* the hidden attribute must always win over display rules */
[hidden] { display: none !important; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 44px; /* room for the fixed ticker */
}

/* ---------- animated backdrop ---------- */
#bgCanvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; }
.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 560px at 18% -5%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 60%),
    radial-gradient(900px 520px at 85% 110%, color-mix(in srgb, var(--cta) 8%, transparent), transparent 65%),
    radial-gradient(ellipse at center, transparent 38%, rgba(0, 0, 0, 0.6) 100%);
}

main { position: relative; z-index: 1; }

/* ---------- shared bits ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }

.accent {
  font-style: italic;
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
}

.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 4px var(--hairline);
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--accent);
  flex: none;
}
.seal--lg { width: 62px; height: 62px; font-size: 21px; box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 5px var(--hairline); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before, .kicker::after {
  content: '';
  width: 28px; height: 1px;
  background: var(--hairline);
}
.kicker__spark { animation: sparkSpin 4s linear infinite; display: inline-block; }
@keyframes sparkSpin { to { transform: rotate(360deg); } }

.h2 {
  font-family: var(--display);
  font-weight: 550;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.18;
  letter-spacing: 0.2px;
}

/* ---------- top nav (slides in after hero) ---------- */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  transform: translateY(-110%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(5, 7, 11, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}
.topnav.is-in { transform: none; }
.topnav__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand .seal { width: 34px; height: 34px; font-size: 12px; }
.brand__name { font-family: var(--display); font-weight: 550; font-size: 16px; letter-spacing: 0.4px; white-space: nowrap; }

/* ---------- hero ---------- */
.hero {
  min-height: 94vh;
  display: flex;
  align-items: center;
  padding: 64px 24px 40px;
}
.hero__inner {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 64px;
  align-items: center;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 59, 59, 0.08);
  border: 1px solid rgba(255, 59, 59, 0.32);
  color: #ff8b8b;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.live-badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--live);
  animation: livePulse 1.6s infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.55); }
  70%  { box-shadow: 0 0 0 11px rgba(255, 59, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); }
}

.eyebrow {
  margin-top: 26px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.12;
  letter-spacing: 0.2px;
}

.hero__sub {
  margin-top: 20px;
  max-width: 520px;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
  color: var(--text-dim);
}

/* stat blocks divided by gold hairlines */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
}
.stat-block {
  padding: 2px 26px 2px 0;
  margin-right: 26px;
  border-right: 1px solid var(--hairline);
}
.stat-block:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.stat-block strong {
  display: block;
  font-family: var(--display);
  font-weight: 550;
  font-size: 26px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat-block em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- CTA button ---------- */
.hero__cta { margin-top: 32px; }
.btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 36px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--cta-2), var(--cta));
  color: var(--cta-text);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  box-shadow: 0 10px 40px var(--cta-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  animation: ctaBreath 2.6s ease-in-out infinite;
  overflow: hidden;
}
@keyframes ctaBreath {
  0%, 100% { box-shadow: 0 10px 38px var(--cta-glow), inset 0 1px 0 rgba(255,255,255,0.35); }
  50%      { box-shadow: 0 12px 58px var(--cta-glow), inset 0 1px 0 rgba(255,255,255,0.35); }
}
.btn-cta::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 55%;
  left: -80%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  animation: sheen 3.4s ease-in-out infinite;
}
@keyframes sheen {
  0%, 55%  { left: -80%; }
  85%, 100% { left: 130%; }
}
.btn-cta:hover { transform: translateY(-3px) scale(1.02); }
.btn-cta:active { transform: translateY(-1px) scale(0.99); }
.btn-cta__icon { width: 20px; height: 20px; flex: none; }
.btn-cta--lg { padding: 21px 44px; font-size: 16.5px; border-radius: 16px; }
.btn-cta--sm { padding: 10px 18px; font-size: 12px; border-radius: 10px; animation: none; }
.btn-cta--sm::after { display: none; }
.btn-cta--sm .btn-cta__icon { width: 15px; height: 15px; }

.hero__cta-note { margin-top: 13px; font-size: 13px; color: var(--text-dim); }
.hero__cta-note:empty { display: none; }

/* ---------- "no telegram" helper ---------- */
.tg-help { margin-top: 34px; }
.tg-help a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
  backdrop-filter: blur(6px);
}
.tg-help a:hover {
  border-color: var(--hairline);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}
.tg-help__icon {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 12px;
  background: color-mix(in srgb, var(--cta) 14%, transparent);
  color: var(--cta-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tg-help__icon svg { width: 21px; height: 21px; }
.tg-help__text { display: flex; flex-direction: column; text-align: left; gap: 2px; }
.tg-help__text strong { font-size: 14px; font-weight: 700; }
.tg-help__text span { font-size: 12.5px; color: var(--text-dim); }
.tg-help__arrow { color: var(--text-dim); font-size: 18px; transition: transform 0.25s; }
.tg-help a:hover .tg-help__arrow { transform: translateX(4px); color: var(--text); }

/* ---------- portrait (hero right) ---------- */
.hero__side { display: flex; justify-content: center; }
.portrait { position: relative; width: min(320px, 80vw); }
.portrait__arch {
  position: relative;
  height: 390px;
  border-radius: 160px 160px 22px 22px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%),
    linear-gradient(165deg, var(--bg-2), #060505);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.portrait__arch::before {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 152px 152px 16px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  pointer-events: none;
  z-index: 2;
}
.portrait__arch img { width: 100%; height: 100%; object-fit: cover; }
.avatar__monogram {
  font-family: var(--display);
  font-size: 84px;
  font-weight: 500;
  letter-spacing: 3px;
  color: color-mix(in srgb, var(--accent) 55%, var(--text-dim));
  text-shadow: 0 0 50px var(--accent-glow);
}
.portrait__plate {
  margin-top: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.portrait__plate strong {
  font-family: var(--display);
  font-weight: 550;
  font-size: 21px;
  letter-spacing: 0.4px;
}
.portrait__plate span {
  font-size: 11.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 13px;
  background: rgba(10, 12, 16, 0.85);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  animation: bob 4.2s ease-in-out infinite;
  z-index: 3;
}
.chip--a { top: 34px; right: -26px; }
.chip--b { bottom: 74px; left: -34px; animation-delay: 1.6s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.chip .up { color: var(--up); }

/* ---------- live feed marquee ---------- */
.feed {
  max-width: 1140px;
  margin: 0 auto;
  padding: 8px 24px 0;
  display: flex;
  align-items: center;
  gap: 18px;
}
.feed__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: var(--text-dim);
  flex: none;
}
.feed__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--live);
  animation: livePulse 1.6s infinite;
}
.feed__viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0; /* never let the marquee track dictate layout width */
  max-width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.feed__track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: feedScroll 38s linear infinite;
}
.feed__viewport:hover .feed__track { animation-play-state: paused; }
@keyframes feedScroll { to { transform: translateX(-50%); } }
.feed-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-border);
  font-size: 12.5px;
  white-space: nowrap;
}
.feed-chip__init {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feed-chip b { font-weight: 700; }
.feed-chip .amt { color: var(--up); font-weight: 800; }
.feed-chip .when { color: var(--text-dim); font-size: 11.5px; }

/* ---------- rules / manifesto ---------- */
.rules { max-width: 1050px; margin: 0 auto; padding: 96px 24px 10px; }
.rules__head { text-align: center; }
.rules__head .h2 { margin-top: 16px; }
.rules__grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}
.rule {
  padding: 36px 30px;
  border-right: 1px solid var(--card-border);
}
.rule:last-child { border-right: 0; }
.rule__n {
  font-family: var(--display);
  font-style: italic;
  font-size: 40px;
  font-weight: 500;
  color: var(--accent);
  opacity: 0.85;
  line-height: 1;
}
.rule h3 {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 550;
  font-size: 20px;
  letter-spacing: 0.3px;
}
.rule p { margin-top: 9px; font-size: 14px; line-height: 1.65; color: var(--text-dim); }

.quote {
  margin: 72px auto 0;
  max-width: 640px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.quote blockquote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 450;
  font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1.5;
}
.quote blockquote::before { content: '“'; color: var(--accent); }
.quote blockquote::after { content: '”'; color: var(--accent); }
.quote figcaption {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- results ---------- */
.results { padding: 96px 24px 40px; max-width: 1240px; margin: 0 auto; }
.results__head { text-align: center; margin-bottom: 40px; }
.results__title {
  margin-top: 18px;
  font-family: var(--display);
  font-weight: 550;
  font-size: clamp(27px, 4.2vw, 42px);
  letter-spacing: 0.2px;
}
.results__sub {
  margin: 13px auto 0;
  max-width: 520px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}
.results__sub:empty { display: none; }

.results__stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 auto 46px;
  max-width: 760px;
}
.rstat {
  padding: 6px 38px;
  text-align: center;
  border-right: 1px solid var(--hairline);
}
.rstat:last-child { border-right: 0; }
.rstat strong {
  display: block;
  font-family: var(--display);
  font-weight: 550;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.rstat em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-dim);
  max-width: 190px;
}

/* photo wall — masonry with member captions */
.shots { columns: 4 250px; column-gap: 18px; }
.shot {
  position: relative;
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--bg-2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  cursor: zoom-in;
  opacity: 0;
  transform: translateY(30px) rotate(var(--tilt, 0deg)) scale(0.97);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s, box-shadow 0.3s;
}
.shot.is-in { opacity: 1; transform: rotate(var(--tilt, 0deg)); }
.shot:hover {
  border-color: var(--hairline);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 30px var(--accent-glow);
  transform: translateY(-4px) rotate(0deg);
  z-index: 2;
}
.shot img { display: block; width: 100%; height: auto; }
.shot__cap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(8, 10, 14, 0.9);
  border-top: 1px solid var(--card-border);
}
.shot__init {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.shot__check { margin-left: auto; color: var(--up); font-size: 12px; }
.shots__empty { text-align: center; color: var(--text-dim); padding: 50px 0; font-size: 14px; }
.shots__empty code {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 12.5px;
}

/* ---------- final cta ---------- */
.final { position: relative; text-align: center; padding: 110px 24px 120px; overflow: hidden; }
.final__glow {
  position: absolute;
  left: 50%;
  bottom: -140px;
  width: 720px;
  height: 380px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, var(--cta-glow), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}
.final__inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.final__title {
  margin-top: 26px;
  font-family: var(--display);
  font-weight: 550;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.15;
}
.final__sub { margin: 18px auto 32px; color: var(--text-dim); font-size: 16px; line-height: 1.65; max-width: 520px; }
.final__note { margin-top: 16px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); }
.final__note:empty { display: none; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--card-border); padding: 34px 24px 46px; text-align: center; }
.footer__brand { font-family: var(--display); font-weight: 550; font-size: 15px; margin-bottom: 14px; }
.footer__disclaimer {
  max-width: 760px;
  margin: 0 auto;
  font-size: 11.5px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--text-dim) 62%, transparent);
}

/* ---------- sticky mobile CTA ---------- */
.floatcta { display: none; }
@media (max-width: 768px) {
  .floatcta:not([hidden]) {
    display: block;
    position: fixed;
    left: 12px; right: 12px;
    bottom: 52px;
    z-index: 55;
    animation: floatIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .floatcta .btn-cta { width: 100%; padding: 14px 18px; font-size: 13px; }
  /* one sticky CTA is enough on mobile — the bottom bar; the topnav keeps
     just the brand, centered */
  .topnav .btn-cta--sm { display: none; }
  .topnav__inner { justify-content: center; padding: 8px 16px; }
}
@keyframes floatIn { from { opacity: 0; transform: translateY(16px); } }

/* ---------- bottom ticker ---------- */
.ticker {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 40px;
  background: var(--ticker-bg);
  border-top: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  overflow: hidden;
  z-index: 50;
  display: flex;
  align-items: center;
}
.ticker__track {
  display: flex;
  gap: 38px;
  white-space: nowrap;
  animation: tickerScroll 45s linear infinite;
  will-change: transform;
}
@keyframes tickerScroll { to { transform: translateX(-50%); } }
.tick { display: inline-flex; align-items: baseline; gap: 8px; font-size: 12.5px; }
.tick b { font-weight: 700; color: color-mix(in srgb, var(--accent) 45%, var(--text)); letter-spacing: 0.4px; }
.tick span { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.tick i { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.tick i.up { color: var(--up); }
.tick i.down { color: var(--down); }

/* ---------- "come scaricare telegram" modal ---------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 5, 8, 0.78);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow-y: auto;
  animation: lbIn 0.25s ease;
}
.modal__card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  background: linear-gradient(180deg, #10141d, #0b0f16);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 34px 30px 30px;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.75), 0 0 60px rgba(46, 166, 255, 0.18);
  animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPop { from { opacity: 0; transform: translateY(24px) scale(0.96); } }
.modal__close {
  position: absolute;
  top: 14px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.modal__close:hover { background: rgba(255, 255, 255, 0.12); }
.modal__logo {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: linear-gradient(180deg, #55b7ff, #2ea6ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 26px rgba(46, 166, 255, 0.4);
  margin-bottom: 18px;
}
.modal__logo svg { width: 28px; height: 28px; }
.modal__title { font-size: 22px; font-weight: 800; letter-spacing: -0.2px; }
.modal__sub { margin-top: 7px; font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }

.modal__steps { list-style: none; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 18px; }
.modal__steps li { display: flex; gap: 14px; }
.step-n {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(46, 166, 255, 0.16);
  border: 1px solid rgba(46, 166, 255, 0.45);
  color: #55b7ff;
  font-size: 12.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.step-t strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.step-t span { font-size: 12.5px; color: var(--text-dim); line-height: 1.55; }

.modal__buttons { display: flex; flex-direction: column; gap: 11px; }
.dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, filter 0.2s, background 0.2s, border-color 0.2s;
}
.dl-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.dl-btn svg { width: 18px; height: 18px; flex: none; }
.dl-btn--ios { background: #fff; color: #0b0f16; }
.dl-btn--android {
  background: linear-gradient(180deg, #55b7ff, #2ea6ff);
  color: #fff;
  box-shadow: 0 6px 22px rgba(46, 166, 255, 0.4);
}
.dl-btn--desktop {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text);
}
.dl-btn--desktop:hover { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); }

/* ---------- lightbox ---------- */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 5, 8, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: lbIn 0.25s ease;
}
@keyframes lbIn { from { opacity: 0; } }
.lightbox img {
  max-width: min(92vw, 480px);
  max-height: 86vh;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
}
.lightbox__close {
  position: absolute;
  top: 18px; right: 26px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
}
.lightbox__close:hover { opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero { padding: 38px 20px 26px; min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero__side { order: -1; }
  .portrait { width: min(190px, 58vw); }
  .portrait__arch { height: 226px; border-radius: 110px 110px 18px 18px; }
  .portrait__arch::before { border-radius: 102px 102px 12px 12px; }
  .avatar__monogram { font-size: 48px; }
  .portrait__plate { margin-top: 10px; }
  .portrait__plate strong { font-size: 17px; }
  .portrait__plate span { font-size: 10px; letter-spacing: 2.2px; }
  .chip { font-size: 11.5px; padding: 8px 12px; }
  .chip--a { top: 16px; right: -24px; }
  .chip--b { display: none; }
  /* identity is already on the portrait plate — skip the eyebrow on mobile */
  .eyebrow { display: none; }
  .hero__title { margin-top: 10px; }
  .hero__sub { margin: 12px auto 0; }
  .hero__stats { justify-content: center; margin-top: 22px; }
  .stat-block { text-align: center; padding: 2px 13px; margin: 0; border-right: 1px solid var(--hairline); }
  .stat-block:last-child { border-right: 0; }
  .stat-block strong { font-size: 21px; }
  .stat-block em { font-size: 10px; }
  .hero__cta { margin-top: 24px; }
  .tg-help { margin-top: 20px; }
  .rules { padding: 58px 20px 4px; }
  .rules__grid { grid-template-columns: 1fr; margin-top: 32px; }
  .rule {
    border-right: 0;
    border-bottom: 1px solid var(--card-border);
    padding: 22px 8px;
    display: grid;
    grid-template-columns: 54px 1fr;
    column-gap: 12px;
    text-align: left;
    align-items: start;
  }
  .rule:last-child { border-bottom: 0; }
  .rule__n { font-size: 30px; grid-row: 1 / span 2; }
  .rule h3 { margin-top: 2px; font-size: 18px; }
  .rule p { margin-top: 5px; font-size: 13.5px; }
  .quote { margin-top: 44px; }
  .results { padding: 58px 20px 26px; }
  .results__head { margin-bottom: 26px; }
  .results__stats { margin-bottom: 32px; }
  .rstat { padding: 0 11px; }
  .rstat strong { font-size: 20px; }
  .rstat em { font-size: 9.5px; max-width: none; white-space: nowrap; }
  .final { padding: 78px 20px 90px; }
  .final__title { margin-top: 20px; }
  .final__sub { margin: 14px auto 26px; }
}
@media (max-width: 640px) {
  .shots { columns: 2 150px; column-gap: 12px; }
  .shot { margin-bottom: 12px; border-radius: 11px; }
  .btn-cta { width: 100%; padding: 17px 20px; font-size: 14px; }
  .btn-cta--sm { width: auto; }
  .tg-help a { width: 100%; }
  .feed { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 2px; }
  .feed__viewport { width: 100%; }
  .ticker__track { animation-duration: 28s; }
  .brand__name { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .shot { transition: none; opacity: 1; transform: none; }
  .btn-cta, .btn-cta::after, .ticker__track, .feed__track,
  .live-badge__dot, .feed__dot, .kicker__spark, .chip { animation: none; }
}
