/* ============================================================
   dk999 game — main.css
   Reset, base, layout primitives, header/footer, shared UI.
   Mobile-first: base -> 768px -> 1200px
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4, h5 { line-height: var(--lh-tight); font-weight: 600; }

/* ---------- Body-emerald ambient backdrop ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 82% -8%, rgba(20, 122, 124, 0.22), transparent 60%),
    radial-gradient(900px 600px at -6% 12%, rgba(14, 158, 99, 0.15), transparent 58%),
    radial-gradient(1000px 800px at 50% 108%, rgba(11, 59, 61, 0.35), transparent 62%),
    var(--color-bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cpath d='M0 0h140v140H0z' fill='none'/%3E%3Cpath d='M70 4l4 62 62 4-62 4-4 62-4-62-62-4 62-4z' fill='%23ffffff' opacity='0.012'/%3E%3C/svg%3E");
  opacity: 0.6;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  z-index: var(--z-modal);
  background: var(--color-gold);
  color: #1a1405;
  padding: 0.7rem 1.4rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--color-gold-bright);
  outline-offset: 3px;
  border-radius: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: 860px; }

.section { padding-block: clamp(3.2rem, 8vw, 6rem); position: relative; }
.section--tight { padding-block: clamp(2.4rem, 5vw, 4rem); }
.section--alt { background: linear-gradient(180deg, transparent, rgba(8, 29, 22, 0.65) 20%, rgba(8, 29, 22, 0.65) 80%, transparent); }

.stack > * + * { margin-top: var(--sp-4); }
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.8rem); }

/* ---------- Typography helpers ---------- */
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold));
}
.lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--text-secondary); line-height: 1.7; }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--color-gold-bright); }
.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
p { color: var(--text-secondary); }
.prose p { margin-bottom: 1.05rem; }
.prose h2 { margin: 2.4rem 0 1rem; font-size: var(--fs-h2); font-family: var(--font-display); }
.prose h3 { margin: 1.8rem 0 0.7rem; font-size: var(--fs-h3); color: var(--text-primary); }
.prose ul { margin: 0 0 1.2rem; }
.prose ul li { position: relative; padding-left: 1.5rem; margin-bottom: 0.55rem; color: var(--text-secondary); }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 0.66em;
  width: 7px; height: 7px; transform: rotate(45deg);
  background: var(--color-gold); box-shadow: 0 0 8px rgba(201,166,70,0.5);
}
.prose strong { color: var(--text-primary); font-weight: 700; }
.prose a { color: var(--color-emerald-bright); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Section heading block ---------- */
.section-head { max-width: 720px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head__title { font-family: var(--font-display); font-size: var(--fs-h2); margin: 0.7rem 0 0.9rem; }
.section-head__sub { color: var(--text-secondary); font-size: 1.05rem; }

/* ---------- Gold hairline divider (draw-in) ---------- */
.gold-rule { display: block; width: 100%; height: 22px; overflow: visible; }
.gold-rule line, .gold-rule path {
  stroke: url(#goldgrad);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.gold-rule.is-visible line, .gold-rule.is-visible path {
  transition: stroke-dashoffset 1.1s var(--ease-out);
  stroke-dashoffset: 0;
}
.gold-divider {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--color-gold-line) 22%, var(--color-gold) 50%, var(--color-gold-line) 78%, transparent);
  opacity: 0.55;
}

/* Corner-bracket frame utility */
.bracket-frame { position: relative; }
.bracket-frame::before, .bracket-frame::after {
  content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none;
  border: 1.5px solid var(--color-gold); opacity: 0.7;
}
.bracket-frame::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.bracket-frame::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --btn-pad-y: 0.92rem;
  --btn-pad-x: 1.6rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background var(--dur), color var(--dur);
  white-space: nowrap;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
  background: var(--grad-gold);
  color: #1a1405;
  box-shadow: 0 8px 26px rgba(201, 166, 70, 0.28), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn--primary:hover { box-shadow: 0 12px 34px rgba(240, 217, 140, 0.4), inset 0 1px 0 rgba(255,255,255,0.5); }

.btn--emerald {
  background: var(--grad-emerald);
  color: #04160e;
  box-shadow: var(--glow-emerald), inset 0 1px 0 rgba(255,255,255,0.28);
}
.btn--emerald:hover { filter: brightness(1.08); }

.btn--ghost {
  background: rgba(13, 42, 32, 0.6);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--color-gold); color: var(--color-gold-bright); }

.btn--outline-gold {
  background: transparent;
  color: var(--color-gold-bright);
  border: 1.5px solid var(--color-gold-line);
  box-shadow: inset 0 0 18px rgba(201,166,70,0.06);
}
.btn--outline-gold:hover {
  border-color: var(--color-gold-bright);
  box-shadow: var(--glow-gold), inset 0 0 22px rgba(201,166,70,0.12);
}

.btn--lg { --btn-pad-y: 1.1rem; --btn-pad-x: 2.2rem; font-size: 1.05rem; }
.btn--sm { --btn-pad-y: 0.6rem; --btn-pad-x: 1.15rem; font-size: 0.86rem; }
.btn--block { display: flex; width: 100%; }
.btn svg { width: 1.15em; height: 1.15em; }

/* Telegram button (real icon) */
.btn--telegram {
  background: linear-gradient(135deg, #29a9eb 0%, #1f97d6 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(41, 169, 235, 0.32);
}
.btn--telegram:hover { filter: brightness(1.06); box-shadow: 0 12px 30px rgba(41,169,235,0.45); }
.btn--telegram svg { width: 1.3em; height: 1.3em; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  transition: background var(--dur), box-shadow var(--dur), border-color var(--dur);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(6, 20, 15, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: var(--header-h);
}

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand__logo {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 3px 10px rgba(240, 217, 140, 0.28));
  transition: transform var(--dur) var(--ease-out), filter var(--dur);
}
.brand:hover .brand__logo { transform: scale(1.04); filter: drop-shadow(0 4px 14px rgba(240, 217, 140, 0.5)); }
.brand__tag {
  display: none;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: clamp(0.4rem, 1.6vw, 1.4rem); }
.nav__link {
  position: relative;
  padding: 0.5rem 0.35rem;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text-secondary);
  transition: color var(--dur);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--grad-gold); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text-primary); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header-cta { display: none; align-items: center; gap: 0.7rem; }

/* Hamburger */
.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(13, 42, 32, 0.5);
  padding: 0 11px;
}
.hamburger span {
  display: block; height: 2px; width: 100%;
  background: var(--color-gold-bright); border-radius: 2px;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur);
}
body.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile slide-in panel */
.mobile-panel {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(86vw, 380px);
  height: 100dvh;
  z-index: var(--z-panel);
  background: linear-gradient(165deg, #0c2419, #06140f 70%);
  border-left: 1px solid var(--border-strong);
  box-shadow: -30px 0 60px rgba(0,0,0,0.6);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
body.nav-open .mobile-panel { transform: translateX(0); }
.mobile-panel__close {
  position: absolute; top: 1.1rem; right: 1.1rem;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-strong); color: var(--color-gold-bright);
  font-size: 1.4rem; display: grid; place-items: center;
}
.mobile-nav { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 1.6rem; }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0.4rem; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600;
  color: var(--text-primary); border-bottom: 1px solid var(--border);
  transition: color var(--dur), padding-left var(--dur);
}
.mobile-nav a::after { content: "\2192"; color: var(--color-gold); opacity: 0; transition: opacity var(--dur); }
.mobile-nav a:hover { color: var(--color-gold-bright); padding-left: 1rem; }
.mobile-nav a:hover::after, .mobile-nav a[aria-current="page"]::after { opacity: 1; }
.mobile-panel__cta { margin-top: auto; display: grid; gap: 0.7rem; }
.mobile-panel__meta { margin-top: 1.4rem; font-size: var(--fs-xs); color: var(--text-muted); text-align: center; }

.scrim {
  position: fixed; inset: 0; z-index: calc(var(--z-panel) - 1);
  background: rgba(3, 10, 7, 0.72); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity var(--dur), visibility var(--dur);
}
body.nav-open .scrim { opacity: 1; visibility: visible; }

/* ============================================================
   PHONE MOCKUP (hero + download)
   ============================================================ */
.device {
  position: relative;
  width: clamp(230px, 74vw, 310px);
  aspect-ratio: 312 / 640;
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(155deg, #23372c 0%, #0a1a13 42%, #05100b 100%);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.55),
    0 0 0 2px rgba(201,166,70,0.45),
    0 0 0 8px rgba(11, 26, 19, 0.9),
    inset 0 2px 4px rgba(255,255,255,0.12);
}
.device::before {
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 42%; height: 22px; background: #05100b; border-radius: 0 0 16px 16px; z-index: 3;
  box-shadow: inset 0 -1px 0 rgba(201,166,70,0.18);
}
.device__screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 32px; overflow: hidden; background: #071912;
  box-shadow: inset 0 0 0 1px rgba(201,166,70,0.2);
}
.device__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.device__glare {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0.16) 0%, transparent 32%, transparent 68%, rgba(27,217,138,0.1) 100%);
}
.device__badge {
  position: absolute; z-index: 5;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.85rem; border-radius: var(--radius-pill);
  background: rgba(6, 20, 15, 0.86); backdrop-filter: blur(8px);
  border: 1px solid var(--color-gold-line);
  font-size: 0.76rem; font-weight: 700; color: var(--color-gold-bright);
  box-shadow: var(--shadow-1);
}
.device__badge--tl { top: 8%; left: -14%; }
.device__badge--br { bottom: 12%; right: -16%; }
.device__badge svg { width: 15px; height: 15px; }

/* floating orbit ring behind device */
.device-stage {
  position: relative;
  display: grid; place-items: center;
  padding: clamp(1.4rem, 4vw, 2.6rem);
}
.device-stage::before {
  content: ""; position: absolute; width: 84%; aspect-ratio: 1; border-radius: 50%;
  background: var(--grad-vault); filter: blur(6px); z-index: 0;
}
.device-stage::after {
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgba(201,166,70,0.28); z-index: 0;
  animation: spin 42s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.device-stage .device { z-index: 2; animation: floaty 6s var(--ease-inout) infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* coins/chips floating accents */
.orbit-chip {
  position: absolute; z-index: 1;
  width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--color-gold-bright), var(--color-gold) 55%, var(--color-gold-line));
  box-shadow: 0 8px 20px rgba(0,0,0,0.4), inset 0 0 0 3px rgba(255,255,255,0.22), inset 0 0 0 6px rgba(156,126,47,0.5);
  display: grid; place-items: center; color: #6b5314; font-weight: 800; font-size: 0.8rem;
  animation: floaty 5s var(--ease-inout) infinite;
}
.orbit-chip--1 { top: 6%; right: 4%; animation-delay: -1s; }
.orbit-chip--2 { bottom: 10%; left: 2%; width: 38px; height: 38px; animation-delay: -2.4s; }
.orbit-chip--3 { top: 40%; left: -2%; width: 30px; height: 30px; animation-delay: -3.6s; }

@media (prefers-reduced-motion: reduce) {
  .device-stage .device, .orbit-chip, .device-stage::after { animation: none; }
}

/* ============================================================
   GAME CARD (shared: showcase + grid)
   ============================================================ */
.game-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur), box-shadow var(--dur);
}
.game-card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.game-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.game-card:hover { transform: translateY(-6px); border-color: var(--color-gold-line); box-shadow: var(--shadow-2), var(--glow-gold); }
.game-card:hover .game-card__media img { transform: scale(1.09); }

/* animated gold corner brackets */
.game-card__bracket { position: absolute; width: 26px; height: 26px; z-index: 3; pointer-events: none; opacity: 0; transition: opacity var(--dur), transform var(--dur) var(--ease-out); }
.game-card__bracket::before, .game-card__bracket::after { content: ""; position: absolute; background: var(--color-gold-bright); box-shadow: 0 0 8px rgba(240,217,140,0.7); }
.game-card__bracket::before { width: 100%; height: 2px; }
.game-card__bracket::after { width: 2px; height: 100%; }
.game-card__bracket--tl { top: 8px; left: 8px; transform: translate(-6px,-6px); }
.game-card__bracket--tl::before { top: 0; left: 0; } .game-card__bracket--tl::after { top: 0; left: 0; }
.game-card__bracket--tr { top: 8px; right: 8px; transform: translate(6px,-6px); }
.game-card__bracket--tr::before { top: 0; right: 0; } .game-card__bracket--tr::after { top: 0; right: 0; }
.game-card__bracket--bl { bottom: 8px; left: 8px; transform: translate(-6px,6px); }
.game-card__bracket--bl::before { bottom: 0; left: 0; } .game-card__bracket--bl::after { bottom: 0; left: 0; }
.game-card__bracket--br { bottom: 8px; right: 8px; transform: translate(6px,6px); }
.game-card__bracket--br::before { bottom: 0; right: 0; } .game-card__bracket--br::after { bottom: 0; right: 0; }
.game-card:hover .game-card__bracket { opacity: 1; transform: translate(0,0); }

.game-card__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, transparent 40%, rgba(4,14,9,0.55) 68%, rgba(4,14,9,0.95));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0.85rem;
  opacity: 0.96;
}
.game-card__tag {
  align-self: flex-start;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #1a1405; background: var(--grad-gold);
  padding: 0.2rem 0.5rem; border-radius: 4px; margin-bottom: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.game-card__name { font-size: 0.92rem; font-weight: 700; color: var(--text-primary); line-height: 1.25; }
.game-card__play {
  margin-top: 0.5rem;
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-emerald-bright);
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--dur), transform var(--dur) var(--ease-out);
}
.game-card:hover .game-card__play { opacity: 1; transform: translateY(0); }

/* ============================================================
   STAT TICKER (odometer)
   ============================================================ */
.ticker-panel {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--grad-surface);
  box-shadow: var(--shadow-2), var(--shadow-inset-gold);
  padding: clamp(1.2rem, 2vw, 1.8rem);
  position: relative;
  overflow: hidden;
}
.ticker-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(201,166,70,0.06), transparent 30%);
}
.ticker-item { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.ticker-item:last-child { border-bottom: 0; }
.ticker-item__label { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); font-weight: 600; }
.odometer {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1;
  display: inline-flex;
  color: var(--color-gold-bright);
  text-shadow: 0 0 18px rgba(240,217,140,0.28);
}
.odometer__prefix, .odometer__suffix { font-size: 0.66em; align-self: center; color: var(--color-gold); margin: 0 0.06em; }
.odo-digit {
  display: inline-block; width: 0.62em; height: 1em; overflow: hidden; position: relative; text-align: center;
}
.odo-digit__reel { position: absolute; top: 0; left: 0; right: 0; display: flex; flex-direction: column; transition: transform 1.6s var(--ease-out); }
.odo-digit__reel span { height: 1em; display: block; }
.odo-sep { color: var(--color-gold); }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 0.2rem; text-align: left;
  font-family: var(--font-display); font-size: clamp(1.05rem, 1.8vw, 1.28rem); font-weight: 600;
  color: var(--text-primary); position: relative;
}
.faq__q::after {
  content: ""; position: absolute; left: 0.2rem; bottom: -1px; height: 2px; width: 100%;
  background: var(--grad-gold); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.faq__item.is-open .faq__q::after { transform: scaleX(1); }
.faq__icon { position: relative; flex-shrink: 0; width: 24px; height: 24px; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--color-gold-bright);
  transform: translate(-50%,-50%); transition: transform var(--dur) var(--ease-out), opacity var(--dur);
}
.faq__icon::before { width: 15px; height: 2px; }
.faq__icon::after { width: 2px; height: 15px; }
.faq__item.is-open .faq__icon::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq__item.is-open .faq__icon::before { transform: translate(-50%,-50%) rotate(180deg); }
.faq__a { overflow: hidden; height: 0; transition: height var(--dur) var(--ease-out); }
.faq__a-inner { padding: 0 0.2rem 1.4rem; color: var(--text-secondary); line-height: 1.7; }
.faq__a-inner p + p { margin-top: 0.8rem; }

/* ============================================================
   FEATURE / BENEFIT / VALUE CARDS
   ============================================================ */
.feature-card {
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border-radius: var(--radius);
  background: var(--grad-surface);
  border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur), box-shadow var(--dur);
  position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.feature-card__icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(20,122,124,0.16); border: 1px solid var(--border-strong);
  color: var(--color-emerald-bright); margin-bottom: 1rem;
}
.feature-card__icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: var(--fs-h4); margin-bottom: 0.5rem; color: var(--text-primary); }
.feature-card p { font-size: 0.96rem; }
.feature-card__num {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 600;
  color: transparent; -webkit-text-stroke: 1px var(--color-gold-line); line-height: 1; margin-bottom: 0.8rem;
}

/* pill / chip */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.42rem 0.9rem; border-radius: var(--radius-pill);
  background: rgba(13,42,32,0.7); border: 1px solid var(--border-strong);
  font-size: 0.82rem; font-weight: 600; color: var(--text-secondary);
}
.chip svg { width: 15px; height: 15px; color: var(--color-emerald-bright); }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ============================================================
   FLOATING TELEGRAM FAB
   ============================================================ */
.fab {
  position: fixed; right: clamp(1rem, 3vw, 1.8rem); bottom: calc(env(safe-area-inset-bottom, 0px) + 84px);
  z-index: var(--z-fab);
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #29a9eb, #1f8fce);
  color: #fff; box-shadow: 0 12px 30px rgba(41,169,235,0.42);
  transition: transform var(--dur) var(--ease-out);
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 30px; height: 30px; position: relative; z-index: 2; }
.fab::before, .fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--color-gold-bright);
}
.fab::before { animation: pulse-ring 2.4s var(--ease-out) infinite; }
.fab::after { animation: pulse-ring 2.4s var(--ease-out) 1.2s infinite; }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.7); opacity: 0; } }
.fab__label {
  position: absolute; right: 72px; white-space: nowrap;
  background: rgba(6,20,15,0.92); color: var(--text-primary);
  padding: 0.5rem 0.85rem; border-radius: var(--radius-pill); font-size: 0.8rem; font-weight: 600;
  border: 1px solid var(--border-strong); opacity: 0; transform: translateX(8px); pointer-events: none;
  transition: opacity var(--dur), transform var(--dur);
}
.fab:hover .fab__label { opacity: 1; transform: translateX(0); }
@media (prefers-reduced-motion: reduce) { .fab::before, .fab::after { animation: none; opacity: 0; } }

@media (min-width: 900px) { .fab { bottom: clamp(1.4rem, 3vw, 2.2rem); } }

/* ============================================================
   MOBILE BOTTOM BAR
   ============================================================ */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-fab);
  display: flex; justify-content: space-around; align-items: stretch;
  padding: 0.4rem 0.3rem calc(env(safe-area-inset-bottom, 0px) + 0.4rem);
  background: rgba(7,22,16,0.82); backdrop-filter: blur(16px) saturate(1.3);
  border-top: 1px solid var(--border-strong);
}
.bottom-bar__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 0.45rem 0.2rem; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.03em;
  color: var(--text-secondary); position: relative; text-transform: uppercase;
}
.bottom-bar__item svg { width: 21px; height: 21px; transition: color var(--dur), transform var(--dur); }
.bottom-bar__item::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%) scaleX(0);
  width: 30px; height: 2px; background: var(--grad-gold); transition: transform var(--dur) var(--ease-out);
}
.bottom-bar__item[aria-current="page"] { color: var(--color-gold-bright); }
.bottom-bar__item[aria-current="page"]::after { transform: translateX(-50%) scaleX(1); }
.bottom-bar__item[aria-current="page"] svg { color: var(--color-gold-bright); transform: translateY(-1px); }

/* ============================================================
   FOOTER (5-column ledger)
   ============================================================ */
.site-footer { margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(4,14,9,0.6)); position: relative; }
.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold-line) 30%, var(--color-gold) 50%, var(--color-gold-line) 70%, transparent);
  opacity: 0.6;
}
.footer-top { display: grid; gap: 2.4rem; padding-block: clamp(2.6rem, 5vw, 4rem); }
.footer-brand__logo { height: 46px; width: auto; margin-bottom: 1rem; filter: drop-shadow(0 3px 10px rgba(240,217,140,0.25)); }
.footer-brand p { font-size: 0.92rem; max-width: 34ch; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--border-strong); color: var(--text-secondary); transition: all var(--dur);
}
.footer-social a:hover { color: var(--color-gold-bright); border-color: var(--color-gold-line); transform: translateY(-3px); }
.footer-social a svg { width: 20px; height: 20px; }

.footer-col h4 {
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-gold-bright);
  margin-bottom: 1.1rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--border); font-weight: 700;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.68rem; }
.footer-col a { font-size: 0.92rem; color: var(--text-secondary); transition: color var(--dur), padding-left var(--dur); }
.footer-col a:hover { color: var(--color-gold-bright); padding-left: 4px; }

.footer-disclaimer {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 1.4rem 0; margin-top: 1rem;
}
.footer-disclaimer p { font-size: 0.82rem; line-height: 1.7; color: var(--text-muted); }
.footer-disclaimer strong { color: var(--text-secondary); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.footer-badge {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 700;
  color: var(--color-gold-bright); border: 1px solid var(--color-gold-line); border-radius: var(--radius-pill);
  padding: 0.35rem 0.8rem;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  padding: 1.4rem 0 calc(env(safe-area-inset-bottom, 0px) + 5.5rem); font-size: 0.82rem; color: var(--text-muted);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.footer-bottom nav a:hover { color: var(--color-gold-bright); }

/* ============================================================
   PAGE-LOAD GRADIENT WIPE
   ============================================================ */
.page-wipe {
  position: fixed; inset: 0; z-index: var(--z-wipe); pointer-events: none;
  background: linear-gradient(120deg, var(--color-emerald) 0%, var(--color-gold) 100%);
  transform-origin: left;
  animation: wipe 480ms var(--ease-inout) forwards;
}
@keyframes wipe {
  0% { transform: scaleX(1); opacity: 1; }
  60% { opacity: 1; }
  100% { transform: scaleX(0); opacity: 0; transform-origin: right; }
}
@media (prefers-reduced-motion: reduce) { .page-wipe { display: none; } }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: 0.08s; }
.reveal--d2 { transition-delay: 0.16s; }
.reveal--d3 { transition-delay: 0.24s; }
.reveal--d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.84rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--color-gold-bright); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.5rem; color: var(--color-gold-line); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero { padding-block: clamp(2.6rem, 6vw, 4.6rem) clamp(1.6rem, 4vw, 2.6rem); position: relative; }
.page-hero__inner { max-width: 780px; }
.page-hero h1 { font-family: var(--font-display); font-size: var(--fs-h1); margin: 0.9rem 0 1rem; }
.page-hero .lede { max-width: 62ch; }

/* generic responsive helpers */
.flex { display: flex; }
.wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; } .gap-4 { gap: 1rem; }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 2rem; }
.text-center { text-align: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* ============================================================
   RESPONSIVE — 768px+
   ============================================================ */
@media (min-width: 768px) {
  .brand__tag { display: block; }
  .footer-top { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-disclaimer, .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 992px) {
  .nav { display: block; }
  .header-cta { display: flex; }
  .hamburger { display: none; }
  .bottom-bar { display: none; }
  .footer-bottom { padding-bottom: 1.4rem; }
  .fab { bottom: clamp(1.4rem, 3vw, 2.2rem); }
}

@media (min-width: 1200px) {
  .footer-top { grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-disclaimer { grid-column: 1 / -1; }
  /* ledger hairline dividers between footer columns */
  .footer-col { position: relative; padding-left: 2rem; }
  .footer-col::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
    background: linear-gradient(180deg, transparent, var(--color-gold-line) 20%, var(--color-gold-line) 80%, transparent);
    opacity: 0.5;
  }
}
