:root {
  --bg: #0c1219;
  --bg-2: #101826;
  --card: #151e2c;
  --line: rgba(148, 163, 184, 0.14);
  --text: #eef3f8;
  --muted: #8b9cb3;
  --sky: #38bdf8;
  --sky-2: #7dd3fc;
  --mint: #3dcc8e;
  --ink: #071018;
  --max: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 64px;
  --ticker-h: 36px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: Outfit, sans-serif; letter-spacing: -0.04em; line-height: 1.08; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 600;
  margin-bottom: 12px;
}
.lead { color: var(--muted); max-width: 54ch; }
h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 12px; }
section { position: relative; padding: 96px 0; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(56, 189, 248, 0.08), transparent 55%),
    radial-gradient(700px 420px at 100% 8%, rgba(61, 204, 142, 0.05), transparent 50%);
  z-index: 0;
}

.grid-bg {
  background-image:
    linear-gradient(115deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(205deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 0 0, #000 30%, transparent 72%);
}

.ticker {
  position: relative;
  z-index: 40;
  height: var(--ticker-h);
  background: #0a161f;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  font-size: 12px;
  color: var(--muted);
}
.ticker-track { display: flex; gap: 36px; width: max-content; animation: marquee 32s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { white-space: nowrap; }
.ticker-track b { color: var(--text); font-weight: 500; }
.ticker-track .up { color: var(--mint); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  background: rgba(12, 18, 25, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: transform 0.45s var(--ease);
}
nav.is-hidden { transform: translateY(calc(-1 * var(--nav-h))); }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Outfit, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.nav-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #151e2c;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  place-items: center;
  gap: 2px;
  padding: 6px;
}
.nav-logo-mark i { width: 4px; height: 12px; border-radius: 99px; background: var(--sky); }
.nav-logo-mark i:nth-child(2) { height: 8px; background: var(--sky-2); }
.nav-logo-mark i:nth-child(3) { height: 14px; background: var(--mint); }
.nav-links { display: flex; gap: 22px; margin-left: 18px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; }
.hamburger { display: none; width: 40px; height: 40px; margin-left: auto; }
.hamburger span { display: block; height: 1.5px; background: var(--text); margin: 6px 8px; }

.btn-primary, .btn-hero {
  background: var(--sky);
  color: var(--ink);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 12px;
}
.btn-hero svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.btn-ghost, .btn-outline {
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
}
.btn-outline.sm { padding: 8px 12px; font-size: 13px; }
.btn-primary:hover, .btn-hero:hover { background: var(--sky-2); }
.btn-ghost:hover, .btn-outline:hover { border-color: rgba(56, 189, 248, 0.45); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: calc(var(--ticker-h) + var(--nav-h)) 0 0;
  background: rgba(12, 18, 25, 0.96);
  z-index: 45;
  padding: 28px 24px calc(24px + env(safe-area-inset-bottom));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { display: flex; flex-direction: column; gap: 18px; font-size: 22px; font-family: Outfit, sans-serif; }
.mobile-menu .m-btns { display: flex; gap: 10px; margin-top: 18px; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding-top: 72px;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 55%;
  height: 100%;
  background-image:
    linear-gradient(115deg, rgba(148, 163, 184, 0.09) 1px, transparent 1px),
    linear-gradient(205deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 40px 42px;
  mask-image: radial-gradient(ellipse at 0 0, #000 20%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}
.badge-dot, .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(61, 204, 142, 0.16);
}
h1 { font-size: clamp(44px, 6vw, 72px); margin-bottom: 18px; }
h1 span { color: var(--sky); }
.hero-sub { color: var(--muted); max-width: 46ch; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.hero-avatars { display: flex; }
.hero-avatars span {
  width: 32px; height: 32px; border-radius: 50%;
  background: #1c2838; border: 2px solid var(--bg);
  display: grid; place-items: center; font-size: 10px; margin-left: -8px;
}
.hero-avatars span:first-child { margin-left: 0; }

.hero-visual { position: relative; min-height: 520px; }
.dash-card {
  background: linear-gradient(180deg, #182233, #121b27);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.dash-head { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.dash-balance { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.lbl { font-size: 12px; color: var(--muted); }
.big { font-family: Outfit, sans-serif; font-size: 32px; font-weight: 700; }
.mid { font-family: Outfit, sans-serif; font-size: 18px; }
.chip { font-size: 12px; padding: 4px 8px; border-radius: 99px; }
.chip.up { background: rgba(61, 204, 142, 0.12); color: var(--mint); }
.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.bar-label { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 86px; }
.bars span {
  flex: 1; height: var(--h); background: rgba(56, 189, 248, 0.22); border-radius: 6px 6px 2px 2px;
}
.bars span.today, .bars span:last-child { background: var(--sky); }
.bar-days { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }
.feed { list-style: none; margin-top: 16px; border-top: 1px solid var(--line); }
.feed li { display: flex; justify-content: space-between; padding: 10px 0; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.feed b { color: var(--text); font-weight: 500; }

.float-badge {
  position: absolute;
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(21, 30, 44, 0.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  backdrop-filter: blur(10px);
  z-index: 2;
  animation: float 5s var(--ease) infinite;
}
.fb-left { top: 36px; left: -18px; }
.fb-right { bottom: 88px; right: -12px; animation-delay: -1.6s; }
.float-badge-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.float-badge-icon.mint { background: rgba(61, 204, 142, 0.12); }
.float-badge-icon.sky { background: rgba(56, 189, 248, 0.12); }
.float-badge .val { font-family: Outfit, sans-serif; font-weight: 700; }
.float-badge .lbl { font-size: 11px; }
@keyframes float { 50% { transform: translateY(-8px); } }

.logos { padding: 28px 0 8px; }
.logos-kicker { text-align: center; color: var(--muted); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.logo-mask { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; gap: 48px; width: max-content; animation: marquee 28s linear infinite; }
.logo-track span { font-family: Outfit, sans-serif; font-size: 18px; color: #6d7d93; white-space: nowrap; }

.stats { padding: 48px 0 24px; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.icon-ring {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 14px;
}
.stat:hover .icon-ring { animation: pulse 1.2s var(--ease); }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(56, 189, 248, 0.12); } }
.num { font-family: Outfit, sans-serif; font-size: 36px; font-weight: 700; }

.features .feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; align-items: start; }
.feature-list { display: grid; gap: 14px; }
.feature-card {
  position: sticky;
  top: 92px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.feature-card.is-active { border-color: rgba(56, 189, 248, 0.45); }
.feature-card h3 { font-size: 22px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 12px; border: 1px solid var(--line); border-radius: 99px; padding: 4px 8px; color: var(--sky-2); }
.feature-stage { position: sticky; top: 92px; min-height: 420px; }
.stage-card {
  height: 420px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1a2738, #101826);
  padding: 22px;
  overflow: hidden;
}
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; height: 220px; margin: 18px 0; }
.reels i { border-radius: 12px; background: #0e1722; display: grid; place-items: center; font-size: 42px; }
.crash-line { height: 180px; margin: 24px 0; background: linear-gradient(#38bdf8, transparent); clip-path: polygon(0 80%, 20% 70%, 40% 48%, 62% 30%, 80% 18%, 100% 0, 100% 100%, 0 100%); opacity: 0.55; }
.plinko { display: grid; justify-items: center; gap: 8px; margin: 20px 0; }
.plinko i { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); margin: 0 8px; display: inline-block; }
.dice-pair { display: flex; gap: 16px; justify-content: center; margin: 40px 0; }
.dice-pair b { width: 72px; height: 72px; border-radius: 14px; background: #fff; color: #111; display: grid; place-items: center; font-size: 28px; }

.lobby-board {
  margin-top: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}
.lobby-top, .lobby-metrics { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.live-line { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.period { display: flex; gap: 6px; background: #0e1620; padding: 4px; border-radius: 10px; }
.period button { padding: 6px 10px; border-radius: 8px; color: var(--muted); }
.period button.is-on { background: #1c2a3c; color: var(--text); }
.lobby-hero-num { margin: 22px 0 10px; }
.lobby-hero-num .big { font-size: 44px; }
.delta { color: var(--mint); margin-left: 10px; }
.bars.tall { height: 120px; margin: 18px 0 24px; }
.lobby-metrics div { min-width: 140px; }
.lobby-metrics b { display: block; font-family: Outfit, sans-serif; font-size: 22px; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 22px; }
.tabs button { border: 1px solid var(--line); padding: 8px 14px; border-radius: 99px; color: var(--muted); }
.tabs button.is-on { background: var(--sky); color: var(--ink); border-color: var(--sky); }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.game-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.art {
  height: 140px;
  display: grid;
  place-items: center;
  font-family: Outfit, sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
}
.game-card h3 { font-size: 18px; }
.game-card .body { padding: 16px; display: grid; gap: 8px; flex: 1; }
.game-card .meta { font-size: 12px; color: var(--muted); }
.play {
  margin-top: auto;
  display: inline-flex;
  align-self: start;
  background: rgba(56, 189, 248, 0.12);
  color: var(--sky-2);
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
}

.fair-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 32px; }
.fair-grid article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}
.fair-grid h3 { font-size: 18px; margin-bottom: 8px; }
.fair-grid p { color: var(--muted); font-size: 14px; }
.stamp { display: inline-block; margin-top: 14px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); }

.quotes { background: var(--bg-2); }
.quotes-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; }
.pause-btn { border: 1px solid var(--line); padding: 8px 12px; border-radius: 9px; }
.quote-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  min-height: 180px;
}
.quote p { color: var(--muted); margin-bottom: 16px; }
.quote b { display: block; font-family: Outfit, sans-serif; }
.quote span { color: var(--muted); font-size: 13px; }

.mobile .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.mobile::before {
  content: "";
  position: absolute;
  right: 0; top: 0; width: 50%; height: 100%;
  background-image:
    linear-gradient(115deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(205deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 40px 42px;
  mask-image: radial-gradient(ellipse at 100% 0, #000 18%, transparent 70%);
  pointer-events: none;
}
.checks { margin-top: 22px; list-style: none; display: grid; gap: 10px; color: var(--muted); }
.checks li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); margin-right: 10px; }
.phone-wrap { display: grid; place-items: center; perspective: 900px; }
.phone {
  width: 280px;
  height: 560px;
  border-radius: 36px;
  background: #0a1016;
  border: 8px solid #1b2533;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
  transform-style: preserve-3d;
  transition: transform 0.2s var(--ease);
}
.phone-notch { width: 90px; height: 18px; background: #111; border-radius: 0 0 12px 12px; margin: 0 auto; }
.phone-screen { padding: 18px 16px; }
.ph-bar { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.ph-hero { font-family: Outfit, sans-serif; font-size: 22px; }
.ph-meta { color: var(--muted); font-size: 12px; margin: 6px 0 14px; }
.ph-cta { display: block; text-align: center; background: var(--sky); color: var(--ink); font-weight: 700; padding: 10px; border-radius: 10px; margin-bottom: 16px; }
.ph-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ph-row i { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #38bdf8, #155e75); }
.ph-row i.g2 { background: linear-gradient(135deg, #3dcc8e, #134e4a); }
.ph-row i.g3 { background: linear-gradient(135deg, #f59e0b, #7c2d12); }
.ph-row em { margin-left: auto; color: var(--muted); font-style: normal; font-size: 12px; }

.faq { background: var(--bg-2); }
.faq::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0; width: 46%; height: 100%;
  background-image:
    linear-gradient(115deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(205deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 40px 42px;
  mask-image: radial-gradient(ellipse at 0 100%, #000 20%, transparent 70%);
  pointer-events: none;
}
.faq-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; }
.faq-item {
  border-bottom: 1px solid var(--line);
  background: rgba(21, 30, 44, 0.45);
}
.faq-item button { width: 100%; text-align: left; padding: 18px 8px; display: flex; justify-content: space-between; gap: 16px; font-family: Outfit, sans-serif; font-size: 18px; }
.faq-item .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.faq-item.open .a { grid-template-rows: 1fr; }
.faq-item .a > div { overflow: hidden; }
.faq-item .a p { padding: 0 8px 18px; color: var(--muted); max-width: 70ch; }

footer { border-top: 1px solid var(--line); padding: 22px 0; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 16px; }

.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transform: translateY(18px);
  animation: none;
}
.reveal.in, .reveal-left.in, .reveal-right.in {
  animation: rise 0.8s var(--ease) forwards;
}
.reveal-left { transform: translateX(-18px); }
.reveal-right { transform: translateX(18px); }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero, .features .feature-grid, .mobile .wrap, .quote-track, .fair-grid { grid-template-columns: 1fr; }
  .stats .wrap, .game-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }
  .feature-card, .feature-stage { position: static; }
  .hero-visual { min-height: 0; }
  .fb-left, .fb-right { display: none; }
}
@media (max-width: 600px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .stats .wrap, .game-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  section { padding: 64px 0; }
  .phone { transform: scale(0.86); }
}

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