/* ============================================================
   ArcadeWin — Free Online Games Portal
   Dark gaming theme: purple/neon-green/gold, mobile-first
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --bg:          #0a0a1a;
  --bg-alt:      #0f0f2e;
  --bg-card:     #141430;
  --bg-card-hover: #1a1a44;
  --surface:     #0e0e28;
  --text:        #e8e8f5;
  --text-muted:  #8888aa;
  --neon:        #00ff88;
  --neon-dark:   #00cc6e;
  --purple:      #8b5cf6;
  --purple-glow: rgba(139, 92, 246, .25);
  --gold:        #facc15;
  --blue:        #3b82f6;
  --blue-glow:   rgba(59, 130, 246, .25);
  --red:         #ef4444;
  --red-glow:    rgba(239, 68, 68, .2);
  --orange:      #f97316;
  --orange-glow: rgba(249, 115, 22, .2);
  --border:      #1e1e44;
  --radius:      12px;
  --radius-sm:   8px;
  --radius-pill: 999px;
  --shadow:      0 4px 24px rgba(0,0,0,.4);
  --shadow-lg:   0 8px 48px rgba(0,0,0,.5);
  --font:        'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container:   1140px;
  --gap:         1.5rem;
  --transition:  .2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* --- Utility --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 800px; }
.text-neon { color: var(--neon); }
.text-red { color: var(--red); }
.text-orange { color: var(--orange); }
.text-gold { color: var(--gold); }

/* --- Section --- */
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }
.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: .75rem;
}
.section__subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* ============================================================
   1. TRUST / COMPLIANCE BAR
   ============================================================ */
.compliance-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: .4rem 0;
  font-size: .8rem;
  color: var(--text-muted);
  position: relative;
  z-index: 100;
}
.compliance-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
}
.compliance-bar__age {
  background: var(--neon-dark);
  color: #0a0a1a;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .75rem;
  flex-shrink: 0;
}
.compliance-bar__text {
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compliance-bar__link {
  color: var(--neon);
  text-decoration: underline;
  text-decoration-color: rgba(0,255,136,.4);
  flex-shrink: 0;
}
.compliance-bar__link:hover { text-decoration-color: var(--neon); }
/* Mobile: hide middle text, keep badge + link only */
@media (max-width: 600px) {
  .compliance-bar__text { display: none; }
  .compliance-bar__inner { justify-content: space-between; padding: 0 .5rem; gap: .5rem; }
}

/* ============================================================
   2. HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 10, 26, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.5); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: 1.35rem;
  font-weight: 800;
}
.logo__mark { font-size: 1.5rem; }
.logo__accent { color: var(--neon); }
.logo--footer { font-size: 1.1rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav__link:hover { color: var(--text); }

.nav-toggle { display: none; width: 32px; height: 32px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .nav.open { display: flex; }
}
@media (max-width: 600px) {
  .header__inner { height: 52px; }
  .nav { top: 52px; }
  .logo { font-size: 1.1rem; }
  .logo__mark { font-size: 1.25rem; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: .7rem 1.5rem;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  max-width: 100%;
}
.btn--cta {
  background: var(--neon);
  color: #0a0a1a;
  box-shadow: 0 0 20px rgba(0, 255, 136, .25);
}
.btn--cta:hover {
  background: var(--neon-dark);
  box-shadow: 0 0 30px rgba(0, 255, 136, .4);
  transform: translateY(-2px);
}
.btn--lg { padding: 1rem 2rem; font-size: 1.1rem; border-radius: var(--radius); }
.btn--block, .btn--lg { white-space: normal; word-break: break-word; }
.btn--block { width: 100%; }
.btn--pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 136, .3); }
  50% { box-shadow: 0 0 40px rgba(0, 255, 136, .6), 0 0 80px rgba(0, 255, 136, .2); }
}

/* ============================================================
   3. HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(139,92,246,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(0,255,136,.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; text-align: center; }
.hero__content { max-width: 720px; margin: 0 auto; }

.hero__badge {
  display: inline-block;
  background: rgba(250,204,21,.12);
  color: var(--gold);
  font-size: .85rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(250,204,21,.25);
  margin-bottom: 1.5rem;
}
.hero__title {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.hero__microcopy {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .75rem;
  opacity: .7;
}

/* Loading bar animation */
.scan-bar {
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.scan-bar__track {
  position: relative;
  height: 8px;
  background: var(--bg-card);
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--border);
}
.scan-bar__fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--neon) 0%, var(--purple) 100%);
  border-radius: var(--radius-pill);
  transition: width 0.8s ease-out;
}
.scan-bar__glow {
  position: absolute;
  top: 0;
  height: 100%;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  animation: scanGlow 2s ease-in-out infinite;
}
@keyframes scanGlow {
  0% { left: -40px; }
  100% { left: 100%; }
}
.scan-bar__label {
  display: block;
  margin-top: .5rem;
  font-size: .85rem;
  color: var(--neon);
  font-weight: 600;
}

.hero__trust {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  font-size: .85rem;
  color: var(--text-muted);
}

/* ============================================================
   4. PROBLEM / THREAT CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}
.cards-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.offer-card--danger {
  border-color: var(--red);
  box-shadow: 0 0 30px var(--red-glow);
}
.offer-card__icon { font-size: 2.5rem; margin-bottom: .75rem; }
.offer-card__title { font-size: 1.15rem; font-weight: 700; margin-bottom: .75rem; }
.offer-card__desc { color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; }

/* Threat bar */
.threat-bar {
  height: 24px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
  margin-top: .75rem;
}
.threat-bar__fill {
  height: 100%;
  background: var(--orange);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: .75rem;
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.threat-bar__fill--red { background: var(--red); }

/* ============================================================
   5. FEATURES / GAME GENRES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.feature:hover {
  border-color: var(--neon);
  transform: translateY(-2px);
}
.feature__icon { font-size: 2rem; margin-bottom: .5rem; }
.feature h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.feature p { font-size: .85rem; color: var(--text-muted); }

/* ============================================================
   6. SOCIAL PROOF / STATS
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--gap);
  margin-bottom: 3rem;
}
.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat__num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--neon);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat__label {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.trust-row__label {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.trust-row__item {
  font-size: .9rem;
  color: var(--text);
  font-weight: 500;
  background: var(--surface);
  padding: .35rem .75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
@media (max-width: 600px) {
  .trust-row {
    flex-direction: column;
    gap: .75rem;
    padding: 1.25rem 0;
  }
  .trust-row__label { font-size: .7rem; }
  .trust-row__items { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
  .trust-row__item {
    font-size: .75rem;
    padding: .25rem .6rem;
  }
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
}
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.testimonial blockquote {
  font-size: .9rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: .75rem;
  line-height: 1.5;
}
.testimonial cite {
  font-size: .8rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ============================================================
   7. HOW IT WORKS
   ============================================================ */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  padding: 1rem;
}
.step__num {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--purple) 0%, var(--neon) 100%);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: 50%;
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.step p { font-size: .85rem; color: var(--text-muted); }
.step__arrow { font-size: 1.5rem; color: var(--text-muted); align-self: center; padding-top: 1.5rem; }
.steps__cta { text-align: center; }

@media (max-width: 600px) {
  .step__arrow { display: none; }
}

/* ============================================================
   8. FINAL CTA
   ============================================================ */
.final-cta {
  background: linear-gradient(135deg, #0a0a1a 0%, #0f0f2e 50%, #0a1a14 100%);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,255,136,.1) 0%, transparent 60%);
  pointer-events: none;
}
.final-cta__inner { position: relative; z-index: 1; }
.final-cta__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  margin-bottom: .75rem;
}
.final-cta__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.final-cta__micro {
  font-size: .75rem;
  color: var(--text-muted);
  opacity: .6;
  margin-top: 1rem;
}

/* ============================================================
   9. FAQ
   ============================================================ */
.faq { display: flex; flex-direction: column; gap: .5rem; }
.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq__item[open] { border-color: var(--neon); }
.faq__q {
  padding: 1.1rem 1.25rem;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background var(--transition);
}
.faq__q:hover { background: var(--bg-card-hover); }
.faq__q::marker { display: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: '+'; font-size: 1.2rem; color: var(--neon); transition: transform var(--transition); }
.faq__item[open] .faq__q::after { content: '−'; }
.faq__a { padding: 0 1.25rem 1.25rem; }
.faq__a p { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   10. PRIVACY / RESPONSIBLE
   ============================================================ */
.responsible { text-align: center; }
.responsible__text {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}
.responsible__tools {
  display: inline-block;
  text-align: left;
  margin-bottom: 1.5rem;
  font-size: .9rem;
  color: var(--text);
}
.responsible__tools li { margin-bottom: .5rem; }
.responsible__help {
  font-size: .85rem;
  color: var(--text-muted);
}
.responsible__help a {
  color: var(--neon);
  text-decoration: underline;
  text-decoration-color: rgba(0,255,136,.4);
}
.responsible__help a:hover { text-decoration-color: var(--neon); }

/* ============================================================
   11. FOOTER
   ============================================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  font-size: .85rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer__license { color: var(--text-muted); margin: .75rem 0; max-width: 480px; }
.footer__badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: .25rem .6rem;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-muted);
}
.footer__links { display: flex; flex-direction: column; gap: .5rem; }
.footer__links a { color: var(--text-muted); transition: color var(--transition); }
.footer__links a:hover { color: var(--neon); }
.footer__divider { border: 0; border-top: 1px solid var(--border); margin-bottom: 1.5rem; }
.footer__disclosure { color: var(--text-muted); font-size: .8rem; margin-bottom: .5rem; line-height: 1.5; }
.footer__copy { color: var(--text-muted); font-size: .75rem; opacity: .6; }

@media (max-width: 600px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ============================================================
   STICKY MOBILE CTA
   ============================================================ */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--neon);
  color: #0a0a1a;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
  padding: .9rem 1rem;
  animation: pulse 2s ease-in-out infinite;
  border-top: 2px solid var(--neon-dark);
}
@media (max-width: 768px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 56px; }
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 600px) {
  .hero { padding: 2rem 0 1.5rem; }
  .section { padding: 3rem 0; }
  .hero__badge { margin-bottom: 1rem; padding: .3rem .75rem; font-size: .75rem; }
  .hero__title { margin-bottom: .75rem; }
  .hero__subtitle { margin-bottom: 1.25rem; font-size: 1rem; }
  .scan-bar { margin-bottom: 1.25rem; }
  .hero__trust { margin-top: 1.5rem; gap: 1rem; font-size: .75rem; }
  .btn--lg { padding: .85rem 1.5rem; font-size: 1rem; }
}
