/* ═══════════════════════════════════════════
   GAMYX — main.css
   Variables · Reset · Typography · Utilities
══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&family=Exo+2:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

:root {
  --bg:          #03040a;
  --bg2:         #080b14;
  --bg3:         #0d1120;
  --panel:       #0f1422;
  --panel2:      #141929;
  --border:      rgba(108,70,255,0.15);
  --border2:     rgba(40,200,255,0.15);

  --purple:      #6c46ff;
  --purple2:     #8b5cf6;
  --purple-glow: rgba(108,70,255,0.5);
  --cyan:        #28c8ff;
  --cyan2:       #67e8f9;
  --cyan-glow:   rgba(40,200,255,0.5);
  --pink:        #f059c3;
  --pink-glow:   rgba(240,89,195,0.4);
  --gold:        #fbbf24;

  --text:        #e8edf8;
  --text-muted:  #7a8aaa;
  --text-dim:    #3d4a65;

  --font-display: 'Orbitron', sans-serif;
  --font-ui:      'Rajdhani', sans-serif;
  --font-body:    'Exo 2', sans-serif;

  --glow-sm-purple: 0 0 12px rgba(108,70,255,0.4);
  --glow-md-purple: 0 0 28px rgba(108,70,255,0.5), 0 0 60px rgba(108,70,255,0.2);
  --glow-sm-cyan:   0 0 12px rgba(40,200,255,0.4);
  --glow-md-cyan:   0 0 28px rgba(40,200,255,0.5), 0 0 60px rgba(40,200,255,0.2);
}

/* ─── RESET ─── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
img { display: block; max-width: 100%; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--purple), var(--cyan));
  border-radius: 4px;
}
html { scrollbar-width: thin; scrollbar-color: var(--purple) var(--bg2); }

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

/* ─── SCAN LINE ─── */
.scanline {
  position: fixed; left: 0; right: 0; height: 2px; z-index: 8999; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(108,70,255,0.35), rgba(40,200,255,0.35), transparent);
  animation: scanAnim 9s linear infinite;
}
@keyframes scanAnim { from { top: -2px; } to { top: 100vh; } }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.02em; line-height: 1.1; }

/* ─── GRADIENT TEXT ─── */
.grad-purple {
  background: linear-gradient(135deg, var(--purple2), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.grad-fire {
  background: linear-gradient(135deg, var(--purple2), var(--pink), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 6px;
  font-family: var(--font-ui); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.07), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, #4a1fb8 100%);
  border-color: rgba(108,70,255,0.5);
  box-shadow: 0 0 18px rgba(108,70,255,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  color: #fff;
}
.btn-primary:hover {
  box-shadow: 0 0 36px rgba(108,70,255,0.65), 0 0 80px rgba(108,70,255,0.2);
  transform: translateY(-2px);
}
.btn-cyan {
  background: linear-gradient(135deg, #0891b2, #0369a1);
  border-color: rgba(40,200,255,0.4);
  box-shadow: 0 0 18px rgba(40,200,255,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
  color: #fff;
}
.btn-cyan:hover {
  box-shadow: 0 0 36px rgba(40,200,255,0.55), 0 0 80px rgba(40,200,255,0.15);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent; border-color: rgba(108,70,255,0.35); color: var(--purple2);
}
.btn-ghost:hover {
  border-color: var(--purple2); background: rgba(108,70,255,0.09);
  box-shadow: 0 0 20px rgba(108,70,255,0.2);
}
.btn-outline-cyan {
  background: transparent; border-color: rgba(40,200,255,0.3); color: var(--cyan);
}
.btn-outline-cyan:hover {
  border-color: var(--cyan); background: rgba(40,200,255,0.07);
  box-shadow: var(--glow-sm-cyan);
}
.btn-sm  { padding: 7px 16px; font-size: 0.78rem; }
.btn-xs  { padding: 5px 12px; font-size: 0.72rem; }

/* ─── TAGS ─── */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 4px;
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.tag-purple { background: rgba(108,70,255,0.12); color: var(--purple2); border: 1px solid rgba(108,70,255,0.25); }
.tag-cyan   { background: rgba(40,200,255,0.1);  color: var(--cyan);    border: 1px solid rgba(40,200,255,0.2); }
.tag-green  { background: rgba(52,211,153,0.1);  color: #34d399;        border: 1px solid rgba(52,211,153,0.2); }
.tag-pink   { background: rgba(240,89,195,0.1);  color: var(--pink);    border: 1px solid rgba(240,89,195,0.2); }
.tag-gold   { background: rgba(251,191,36,0.1);  color: var(--gold);    border: 1px solid rgba(251,191,36,0.2); }

/* ─── EYEBROW LABEL ─── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 12px;
}
.eyebrow::before, .eyebrow::after {
  content: ''; flex: 0 0 20px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}
.eyebrow::after { background: linear-gradient(90deg, var(--cyan), transparent); }

/* ─── HR GLOW ─── */
.hr-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--purple) 25%, var(--cyan) 75%, transparent 100%);
  opacity: 0.3;
}

/* ─── LAYOUT ─── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.section   { padding: 100px 0; }

/* ─── SCROLL REVEAL ─── */
.scroll-reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }
.sr-d1 { transition-delay: 0.08s; }
.sr-d2 { transition-delay: 0.16s; }
.sr-d3 { transition-delay: 0.24s; }
.sr-d4 { transition-delay: 0.32s; }
.sr-d5 { transition-delay: 0.40s; }
.sr-d6 { transition-delay: 0.48s; }

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 10000;
  background: var(--panel2); border: 1px solid rgba(52,211,153,0.3);
  border-radius: 10px; padding: 14px 20px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-size: 0.88rem; font-weight: 500;
  transform: translateY(80px); opacity: 0;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 24px rgba(52,211,153,0.15);
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-dot  { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,0.6); flex-shrink: 0; }

/* ─── SCROLL TOP ─── */
#scrolltop {
  position: fixed; bottom: 88px; right: 28px; z-index: 500;
  width: 42px; height: 42px; border-radius: 8px;
  background: var(--panel2); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: all 0.3s;
  opacity: 0; pointer-events: none;
}
#scrolltop.visible { opacity: 1; pointer-events: all; }
#scrolltop:hover { border-color: var(--purple2); color: var(--purple2); box-shadow: var(--glow-sm-purple); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .section   { padding: 72px 0; }
}
@media (max-width: 600px) {
  .section { padding: 56px 0; }
}
