/* ============================================================
   Droo — landing page
   Gold (#f0b90b) on dark (#0b0e11), Sora. Mobile-first.
   ============================================================ */

:root {
  --bg:        #0b0e11;
  --bg-2:      #0e1217;
  --panel:     #14191f;
  --panel-2:   #1a2027;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.14);
  --text:      #eaecef;
  --muted:     #9aa3b0;
  --muted-2:   #6b7480;
  --accent:    #f0b90b;
  --accent-2:  #f8d12f;
  --win:       #0ecb81;
  --lose:      #f6465d;
  --r:         18px;
  --r-sm:      12px;
  --maxw:      1140px;
  --header-h:  68px;
  --ease:      cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  background:
    radial-gradient(1200px 700px at 80% -8%, #161c22 0%, rgba(11,14,17,0) 55%),
    radial-gradient(900px 600px at 0% 0%, #15120a 0%, rgba(11,14,17,0) 45%),
    var(--bg);
  color: var(--text);
  font-family: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: .2px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
strong { color: #fff; font-weight: 600; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.grad {
  background: linear-gradient(95deg, var(--accent), var(--accent-2) 60%, #fff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- Skip link (a11y) ---- */
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--accent); color: #1a1300; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { left: 12px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 15px; letter-spacing: .01em;
  padding: 0 20px; height: 46px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s var(--ease), filter .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: linear-gradient(95deg, var(--accent), var(--accent-2));
  color: #1a1300;
  box-shadow: 0 8px 26px rgba(240,185,11,.32), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 12px 34px rgba(240,185,11,.45); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,.04); color: var(--text); border-color: var(--line-2);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: var(--accent); }
.btn-lg { height: 54px; font-size: 16px; padding: 0 28px; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h); display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(11,14,17,.86), rgba(11,14,17,.55));
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(11,14,17,.92); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-logo { height: 30px; width: auto; filter: drop-shadow(0 0 10px rgba(240,185,11,.28)); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a:not(.btn) { color: var(--muted); font-size: 15px; font-weight: 400; transition: color .2s; }
.nav-links > a:not(.btn):hover { color: var(--text); }
.nav-cta { height: 40px; padding: 0 18px; font-size: 14px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Eyebrow ============ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); background: rgba(240,185,11,.08);
  border: 1px solid rgba(240,185,11,.22); padding: 6px 12px; border-radius: 999px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .5; transform: scale(.7);} }

/* ============ Hero ============ */
.hero { position: relative; padding: 56px 0 0; overflow: hidden; min-height: 88vh; display: flex; flex-direction: column; }
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: .9;
}
.hero-glow {
  position: absolute; top: -160px; right: -120px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(240,185,11,.18), rgba(240,185,11,0) 62%);
  filter: blur(8px); pointer-events: none; z-index: 0;
}
.hero-stars { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(1.4px 1.4px at 20% 30%, rgba(255,255,255,.55), transparent),
    radial-gradient(1.2px 1.2px at 70% 20%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.6px 1.6px at 40% 70%, rgba(255,255,255,.35), transparent),
    radial-gradient(1.2px 1.2px at 85% 60%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.3px 1.3px at 55% 45%, rgba(255,255,255,.3), transparent);
}
.hero-grid {
  position: relative; z-index: 1; flex: 1 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; align-content: center;
  padding-top: 18px; padding-bottom: 48px;
}
.hero-copy h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); margin: 18px 0 18px; }
.hero-copy .lede { font-size: clamp(1rem, 2.6vw, 1.18rem); color: var(--muted); max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.hero-trust .ic { width: 18px; height: 18px; fill: none; stroke: var(--win); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Hero game showcase — a picker that cycles through ALL games (variety-first) */
.hero-visual { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; }
.hero-showcase { width: min(420px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

/* Featured (auto-rotating) game */
.showcase-feature {
  position: relative; display: block; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2);
  box-shadow: 0 26px 64px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
}
.showcase-feature::before {
  content: ""; position: absolute; inset: -1px; border-radius: 20px; pointer-events: none; z-index: 3;
  padding: 1px; background: linear-gradient(140deg, rgba(240,185,11,.5), transparent 42%, transparent 72%, rgba(240,185,11,.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7;
}
.feature-art { position: relative; height: 210px; overflow: hidden; }
.feature-art svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .25s var(--ease), transform .5s var(--ease); }
.feature-art.swapping svg { opacity: 0; transform: scale(1.05); }
.feature-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,25,31,0) 38%, rgba(20,25,31,.92) 96%); }
.feature-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: rgba(240,185,11,.12); border: 1px solid rgba(240,185,11,.35);
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px);
}
.feature-info {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.feature-name { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.feature-pay { display: block; margin-top: 3px; font-size: 12px; font-weight: 700; color: var(--muted); }
.feature-pay b { color: var(--accent); font-weight: 700; }
.feature-play {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px;
  background: linear-gradient(95deg, var(--accent), var(--accent-2)); color: #1a1300;
  font-weight: 700; font-size: 14px; box-shadow: 0 8px 22px rgba(240,185,11,.32);
}
.feature-play svg { width: 13px; height: 13px; fill: currentColor; }

/* Strip of all games — shows the variety at a glance */
.showcase-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.thumb {
  position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1;
  border: 1px solid var(--line); background: var(--panel); cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.thumb::after { content: ""; position: absolute; inset: 0; background: rgba(11,14,17,.4); transition: background .2s; }
.thumb:hover { transform: translateY(-2px); }
.thumb.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 20px rgba(240,185,11,.28); }
.thumb.active::after { background: rgba(11,14,17,0); }

@media (max-width: 460px) {
  .feature-art { height: 180px; }
  .feature-name { font-size: 1.2rem; }
}

/* Marquee */
.marquee { position: relative; z-index: 1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); overflow: hidden; padding: 14px 0; }
.marquee-track { display: flex; align-items: center; gap: 26px; white-space: nowrap; width: max-content; animation: scroll-x 28s linear infinite; }
.marquee-track span { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.marquee-track .sep { color: var(--accent); opacity: .6; }
@keyframes scroll-x { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ============ Sections ============ */
.section { padding: 84px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,.015), transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin: 16px 0 14px; }
.section-head p { color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.1rem); }

/* ============ Games grid ============ */
.games-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.game-card {
  position: relative; display: block; border-radius: var(--r); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  text-align: left; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
  isolation: isolate;
}
.game-card:hover { transform: translateY(-6px); border-color: rgba(240,185,11,.4); box-shadow: 0 22px 50px rgba(0,0,0,.5); }
.game-art { position: relative; height: 150px; overflow: hidden; }
.game-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.game-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,25,31,0) 40%, var(--panel) 98%); }
.game-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; backdrop-filter: blur(6px);
}
.gt-hot      { color: #ff7a1a; background: rgba(255,122,26,.14); border: 1px solid rgba(255,122,26,.4); }
.gt-popular  { color: var(--accent); background: rgba(240,185,11,.14); border: 1px solid rgba(240,185,11,.4); }
.gt-trending { color: #4dd2ff; background: rgba(77,210,255,.12); border: 1px solid rgba(77,210,255,.4); }
.game-body { position: relative; z-index: 2; padding: 0 18px 18px; margin-top: -28px; }
.game-name { font-size: 1.25rem; font-weight: 800; }
.game-sub { color: var(--muted); font-size: .94rem; margin: 6px 0 14px; min-height: 2.6em; }
.game-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.game-payout { display: flex; flex-direction: column; }
.gp-label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.gp-value { font-weight: 700; color: var(--accent); font-size: .98rem; }
.game-play {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px;
  background: rgba(240,185,11,.1); border: 1px solid rgba(240,185,11,.34); color: var(--accent);
  font-weight: 700; font-size: 14px; transition: background .2s, color .2s;
}
.game-card:hover .game-play { background: linear-gradient(95deg, var(--accent), var(--accent-2)); color: #1a1300; border-color: transparent; }
.game-play svg { width: 14px; height: 14px; fill: currentColor; }

.games-cta { text-align: center; margin-top: 40px; }

/* ============ Stats band ============ */
.stats-band { padding: 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.stat { background: var(--bg-2); padding: 30px 18px; text-align: center; }
.stat-num { display: block; font-size: clamp(1.9rem, 6vw, 2.8rem); font-weight: 800; color: var(--accent); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: 6px; color: var(--muted); font-size: .9rem; }

/* ============ Steps ============ */
.steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 18px; counter-reset: step; }
.step { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px; transition: transform .25s var(--ease), border-color .25s; }
.step:hover { transform: translateY(-4px); border-color: rgba(240,185,11,.3); }
.step-num { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; color: #1a1300; background: linear-gradient(135deg, var(--accent), var(--accent-2)); margin-bottom: 16px; box-shadow: 0 6px 18px rgba(240,185,11,.3); }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .96rem; }

/* ============ Features ============ */
.features { display: grid; grid-template-columns: 1fr; gap: 16px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(240,185,11,.3); box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.feature-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: rgba(240,185,11,.08); border: 1px solid rgba(240,185,11,.2); margin-bottom: 16px; }
.feature h3 { font-size: 1.18rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .96rem; }

/* ============ FAQ ============ */
.faq-wrap { max-width: 800px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; transition: border-color .25s; }
.faq-item[open] { border-color: rgba(240,185,11,.34); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 600; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mark { position: relative; flex: 0 0 auto; width: 16px; height: 16px; }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--accent); border-radius: 2px; transition: transform .25s var(--ease); }
.faq-mark::before { width: 14px; height: 2px; }
.faq-mark::after { width: 2px; height: 14px; }
.faq-item[open] .faq-mark::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-body { padding: 0 22px 20px; color: var(--muted); font-size: .98rem; }
.faq-body p { max-width: 64ch; }

/* ============ Final CTA ============ */
.final-cta { padding: 40px 0 90px; }
.final-cta-inner {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(240,185,11,.28); border-radius: 26px; padding: 56px 28px;
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
}
.final-glow { position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 600px; height: 400px; background: radial-gradient(circle, rgba(240,185,11,.2), transparent 65%); pointer-events: none; }
.final-cta-inner h2 { position: relative; font-size: clamp(1.7rem, 5vw, 2.6rem); margin-bottom: 14px; }
.final-cta-inner p { position: relative; color: var(--muted); max-width: 46ch; margin: 0 auto 26px; font-size: 1.05rem; }
.final-cta-inner .btn { position: relative; }
.final-note { display: block; margin-top: 16px; font-size: 12px; color: var(--muted-2); letter-spacing: .04em; }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 34px; margin-bottom: 36px; }
.footer-brand .brand-logo { height: 30px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: .94rem; max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.footer-col h4 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; font-weight: 700; }
.footer-col a { display: block; color: var(--muted); font-size: .95rem; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.risk-disclaimer { color: var(--muted-2); font-size: 12px; line-height: 1.7; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 100%; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding-top: 22px; color: var(--muted-2); font-size: 12.5px; }

/* ============ Scroll reveal ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (min-width: 600px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1.4fr 1fr; }
}
@media (min-width: 880px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; padding-top: 40px; padding-bottom: 64px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Mobile nav ---- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(11,14,17,.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); padding: 14px 20px 22px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; visibility: visible; }
  .nav-links > a:not(.btn) { padding: 14px 6px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-cta { height: 50px; margin-top: 12px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
