/* ════════════════════════════════════════════════════════════
   B1GTayDontPlay — shared base styles
   Used by index.html and tools.html. Page-specific rules live in
   each page's inline <style> AFTER this file so they can override.
   ════════════════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  --bg:          #06060f;
  --bg2:         #0d0d1a;
  --bg3:         #111124;
  --pink:        #e8309a;
  --purple:      #9b2dff;
  --orange:      #ff8c2e;
  --blue:        #4a9eff;
  --green:       #2ecc71;
  --text:        #e8e8f0;
  --muted:       #8a8aad;
  --grad:        linear-gradient(135deg, #e8309a, #9b2dff, #ff8c2e);
  --grad-subtle: linear-gradient(135deg, rgba(232,48,154,0.15), rgba(155,45,255,0.15), rgba(255,140,46,0.12));
  --radius:      12px;
  --radius-lg:   20px;
}

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── ACCESSIBILITY ──────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--purple);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.skip-link:focus {
  left: 0;
}
:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

/* ─── STAR CANVAS ────────────────────────────────────── */
#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── NAV ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(6,6,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(155,45,255,0.15);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.nav-logo span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--grad);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 700 !important;
  transition: opacity 0.2s, transform 0.2s !important;
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* ─── HAMBURGER ──────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(6,6,15,0.97);
  backdrop-filter: blur(16px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  letter-spacing: 0.1em;
  color: var(--text);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--pink); }
.mobile-menu .mobile-cta {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mobile-menu-socials {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}
.mobile-menu-socials a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── SECTION SHARED ─────────────────────────────────── */
section { position: relative; z-index: 1; }
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.section-body {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.7;
}

/* ─── REVEAL ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  border: none;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 24px rgba(155,45,255,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(155,45,255,0.6);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(155,45,255,0.4);
}
.btn-secondary:hover {
  border-color: var(--purple);
  background: rgba(155,45,255,0.1);
  transform: translateY(-2px);
}

/* ─── DIVIDER ────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(155,45,255,0.3), rgba(232,48,154,0.3), transparent);
}

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(155,45,255,0.15);
  padding: 48px 24px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  opacity: 0.85;
}
.footer-logo span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 0.8rem;
  color: rgba(138,138,173,0.6);
  text-align: right;
  line-height: 1.5;
}

/* ─── KEYFRAMES ──────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── SHARED MOBILE ──────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-copy { text-align: center; }
}

/* ─── REDUCED MOTION ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
