/* ============================================================
   DEVINE 3X — Design System v2.0
   Aesthetic: War Bunker / Blood Red / Brutalist
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&display=swap');

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --blood:      #990000;
  --red:        #cc1111;
  --crimson:    #c8102e;
  --crimson-dim: rgba(200,16,46,0.15);
  --void:       #040204;
  --dark:       #080608;
  --surface:    #0d0b0d;
  --panel:      #110f11;
  --panel2:     #161416;
  --border:     #1e1a1e;
  --border-red: rgba(200,16,46,0.22);
  --text:       #8a828a;
  --muted:      #3a343a;
  --bright:     #e0d8e0;
  --white:      #f2eef2;

  --head:  'Black Ops One', cursive;
  --body:  'Rajdhani', sans-serif;
  --mono:  'Share Tech Mono', monospace;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--void);
  color: var(--text);
  font-family: var(--body);
  overflow-x: hidden;
  cursor: none;
}

/* ── CURSOR ──────────────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--crimson);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .15s, height .15s;
  mix-blend-mode: screen;
}
.cursor-ring {
  position: fixed;
  width: 32px; height: 32px;
  border: 1px solid rgba(200,16,46,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .2s, height .2s;
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor { width: 18px; height: 18px; }
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring { width: 48px; height: 48px; }

/* ── SCANLINES ───────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 9989;
  animation: scanMove 8s linear infinite;
}
@keyframes scanMove {
  0%   { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

/* ── NOISE ───────────────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 180px;
  pointer-events: none;
  z-index: 9988;
  opacity: 0.5;
}

/* ── SCROLLBAR ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--blood); }

/* ── NAV ─────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(4,2,4,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  gap: 20px;
}
.nav::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--blood), transparent);
  opacity: 0.4;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  width: 36px; height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(200,16,46,0.5));
}
.nav-logo-text {
  font-family: var(--head);
  font-size: 20px;
  font-weight: 700;
  color: var(--crimson);
  letter-spacing: 4px;
}
.nav-logo-text span { color: var(--white); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--crimson);
  border-color: var(--border-red);
  background: var(--crimson-dim);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}
.live-dot {
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: livePulse 2s infinite;
}
.live-dot.red { background: var(--crimson); box-shadow: 0 0 8px var(--crimson); }
@keyframes livePulse { 0%,100%{opacity:1} 50%{opacity:.3} }

.nav-player-count {
  font-family: var(--head);
  font-size: 14px;
  color: var(--bright);
  letter-spacing: 1px;
}

.btn-nav {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--crimson);
  text-decoration: none;
  border: 1px solid var(--border-red);
  padding: 7px 16px;
  background: var(--crimson-dim);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.btn-nav:hover { background: rgba(200,16,46,0.25); color: var(--white); }

/* ── TICKER ──────────────────────────────────────────────────── */
.ticker-wrap {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--blood);
  padding: 7px 0;
  margin-top: 64px;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  gap: 60px;
  animation: tickerScroll 35s linear infinite;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}
.ticker-inner strong { color: #fff; }
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── PAGE WRAPPER ────────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 2;
}

/* ── SECTION ─────────────────────────────────────────────────── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
}
.section-sm { padding: 56px 48px; }

/* ── LABELS / TITLES ─────────────────────────────────────────── */
.label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--crimson);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.label::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--crimson);
  flex-shrink: 0;
}
.title {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 60px);
  color: var(--white);
  letter-spacing: 2px;
  line-height: 1.0;
  text-transform: uppercase;
}
.title .dim { color: var(--muted); }
.title .red { color: var(--crimson); }
.subtitle {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  font-weight: 500;
  max-width: 520px;
  margin-top: 14px;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.08), transparent);
  transform: translateX(-100%);
  transition: transform .4s;
}
.btn:hover::before { transform: translateX(100%); }

.btn-primary {
  background: var(--crimson);
  color: #fff;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.btn-primary:hover { background: #e8173f; transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--bright);
  border: 1px solid var(--border);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.btn-ghost:hover { border-color: var(--crimson); color: var(--crimson); transform: translateY(-2px); }

.btn-red-outline {
  background: transparent;
  color: var(--crimson);
  border: 1px solid var(--border-red);
  background: var(--crimson-dim);
}
.btn-red-outline:hover { background: rgba(200,16,46,0.25); color: #fff; }

/* ── DIVIDER ─────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  position: relative;
}
.divider::after {
  content: '';
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 1px;
  background: var(--blood);
}

/* ── CARDS ───────────────────────────────────────────────────── */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.card:hover { border-color: var(--border-red); transform: translateY(-4px); }
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}
.card:hover::before { transform: scaleX(1); }

/* ── FORM ELEMENTS ───────────────────────────────────────────── */
.input {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  padding: 12px 16px;
  color: var(--bright);
  font-family: var(--mono);
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
}
.input:focus { border-color: var(--crimson); }
.input::placeholder { color: var(--muted); }

/* ── ALERTS ──────────────────────────────────────────────────── */
.alert {
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  border-left: 3px solid;
  margin-bottom: 16px;
}
.alert-success { border-color: #22c55e; background: rgba(34,197,94,0.05); color: #22c55e; }
.alert-error   { border-color: var(--crimson); background: var(--crimson-dim); color: var(--crimson); }
.alert-info    { border-color: var(--blood); background: rgba(139,0,0,0.1); color: #cc6666; }

/* ── REVEAL ANIMATIONS ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-left  { opacity: 0; transform: translateX(-30px); transition: opacity .65s, transform .65s; }
.reveal-left.visible  { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity .65s, transform .65s; }
.reveal-right.visible { opacity: 1; transform: none; }

/* ── BACK TO TOP ─────────────────────────────────────────────── */
.back-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 42px; height: 42px;
  background: var(--blood);
  border: 1px solid var(--border-red);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 400;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s, transform .3s, background .2s;
  pointer-events: none;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.back-top.visible { opacity: 1; transform: none; pointer-events: all; }
.back-top:hover { background: var(--crimson); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 2;
  background: #020002;
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--blood), transparent);
  opacity: 0.5;
}
.footer-logo {
  font-family: var(--head);
  font-size: 16px;
  color: #1a181a;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.footer-logo span { color: #222022; }
.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}
.footer-links a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: #2a282a;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s;
}
.footer-links a:hover { color: var(--blood); }
.footer-copy {
  font-family: var(--mono);
  font-size: 10px;
  color: #1e1c1e;
  letter-spacing: 1px;
}

/* ── MOBILE ──────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  width: 22px; height: 2px;
  background: var(--text);
  transition: all .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(4,2,4,0.98);
  border-bottom: 1px solid var(--border);
  z-index: 499;
  padding: 20px 24px;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  padding: 12px 16px;
  border: 1px solid transparent;
  transition: all .2s;
}
.nav-mobile a:hover,
.nav-mobile a.active { color: var(--crimson); border-color: var(--border-red); background: var(--crimson-dim); }

@media (max-width: 900px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 60px 20px; }
  .section-sm { padding: 40px 20px; }
  .footer { padding: 24px 20px; }
  .ticker-wrap { display: none; }
}
@media (max-width: 600px) {
  .nav-live { display: none; }
  .btn { padding: 10px 20px; font-size: 12px; }
}
