/* ============================================================
   GAMING @ ADGSTUDIOS — dark neon theme
   ============================================================ */
:root {
  --bg: #05060a;
  --bg2: #0a0d16;
  --panel: #0d1120;
  --panel2: #111630;
  --line: rgba(120, 140, 255, 0.12);
  --text: #e8ecf8;
  --muted: #8a93b2;
  --cyan: #00e5ff;
  --magenta: #ff2d95;
  --violet: #7c4dff;
  --gold: #ffc83c;
  --lime: #b6ff3c;
  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
  line-height: 1.6;
}
::selection { background: var(--magenta); color: #fff; }

h1, h2, h3, h4 { line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; } .d4 { transition-delay: 0.4s; }

/* ============================================================ NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(5, 6, 10, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0.8rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; letter-spacing: 0.04em; }
.brand-text { font-size: 0.95rem; }
.brand-at { color: var(--cyan); }
.brand-spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--cyan);
  border-top-color: var(--magenta);
  border-bottom-color: var(--violet);
  animation: spin 1.1s linear infinite;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.55);
}
@keyframes spin { to { transform: rotate(360deg); } }

.nav-links { display: flex; align-items: center; gap: 1.4rem; font-size: 0.85rem; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--cyan); }
.nav-cta {
  color: #04121a !important; background: var(--cyan);
  padding: 0.45rem 1rem; border-radius: 99px; font-weight: 600;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 0 28px rgba(0, 229, 255, 0.65); }

.nav-burger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); display: block; border-radius: 2px; }

/* ============================================================ HERO */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 7rem 1.5rem 4rem;
  overflow: hidden;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 77, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 77, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
}
.hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  color: var(--cyan); border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.06);
  padding: 0.45rem 0.95rem; border-radius: 99px; margin-bottom: 1.6rem;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 0 rgba(182, 255, 60, 0.7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(182, 255, 60, 0.7); }
  70% { box-shadow: 0 0 0 9px rgba(182, 255, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(182, 255, 60, 0); }
}
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); margin-bottom: 1.4rem; }
.glitch {
  position: relative; display: inline-block;
  background: linear-gradient(92deg, var(--cyan), var(--violet) 55%, var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(0, 229, 255, 0.35));
}
.hero-sub { max-width: 560px; color: var(--muted); font-size: 1.05rem; margin-bottom: 2.2rem; }
.hero-sub strong { color: var(--text); }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.2rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.7rem; border-radius: 12px; font-weight: 600; font-size: 0.95rem;
  border: 0; cursor: pointer; font-family: var(--font);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: linear-gradient(92deg, var(--cyan), var(--violet));
  color: #060814;
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.35);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(124, 77, 255, 0.55); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.hero-stats { display: flex; gap: 2.8rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 2rem; font-weight: 700; font-family: var(--mono); color: var(--cyan); display: inline; }
.stat-unit { font-family: var(--mono); color: var(--magenta); font-size: 0.95rem; margin-top: -0.4rem; }
.stat-label { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.scroll-hint {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  width: 24px; height: 38px; border: 2px solid rgba(138, 147, 178, 0.4); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; top: 6px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 4px; background: var(--cyan);
  animation: scrollhint 1.8s infinite;
}
@keyframes scrollhint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ============================================================ SECTIONS */
.section { max-width: 1200px; margin: 0 auto; padding: 6.5rem 1.5rem 3rem; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.kicker {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.2em;
  color: var(--magenta); display: block; margin-bottom: 0.8rem;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 0.9rem; }
.section-head p { color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.card {
  background: linear-gradient(160deg, var(--panel), var(--bg2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 18px 50px rgba(0, 229, 255, 0.1);
}
.card-icon { font-size: 1.7rem; margin-bottom: 0.9rem; filter: drop-shadow(0 0 10px rgba(0,229,255,0.5)); }
.card h3 { font-size: 1.12rem; margin-bottom: 0.55rem; }
.card p { font-size: 0.9rem; color: var(--muted); }
.card-tag {
  display: inline-block; margin-top: 1rem;
  font-family: var(--mono); font-size: 0.68rem; color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.25); border-radius: 6px; padding: 0.25rem 0.55rem;
}

/* ============================================================ SPIN.IO SHOWCASE */
.spinio-logo {
  background: linear-gradient(92deg, var(--gold), var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 45, 149, 0.4));
}
.spinio-sub { font-size: 0.5em; color: var(--muted); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }

.arena-frame {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(124, 77, 255, 0.08);
}
.arena-topbar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1rem; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
}
.arena-dot { width: 10px; height: 10px; border-radius: 50%; }
.arena-dot.red { background: #ff5f57; } .arena-dot.amber { background: #febc2e; } .arena-dot.green { background: #28c840; }
.arena-title { margin-left: 0.6rem; }
.arena-live { margin-left: auto; display: inline-flex; align-items: center; gap: 0.45rem; color: var(--lime); letter-spacing: 0.12em; }
.arena-body { position: relative; }
#arenaCanvas { display: block; width: 100%; height: 520px; cursor: crosshair; background: #07080f; }
.arena-leaderboard {
  position: absolute; top: 14px; right: 14px;
  background: rgba(5, 6, 10, 0.78); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 0.7rem 0.95rem; font-family: var(--mono); font-size: 0.7rem;
  min-width: 175px; pointer-events: none;
}
.arena-leaderboard .lb-title { color: var(--gold); letter-spacing: 0.15em; margin-bottom: 0.4rem; }
.arena-leaderboard .lb-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.12rem 0; }
.arena-leaderboard .lb-row .nm { display: flex; align-items: center; gap: 0.45rem; }
.arena-leaderboard .lb-row i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.arena-hint {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 0.66rem; color: rgba(138, 147, 178, 0.75);
  background: rgba(5, 6, 10, 0.6); padding: 0.3rem 0.8rem; border-radius: 99px;
  pointer-events: none; white-space: nowrap;
}

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 2.5rem; }
.feature { border-left: 2px solid var(--violet); padding: 0.4rem 0 0.4rem 1.2rem; }
.feature h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.f-num { font-family: var(--mono); color: var(--magenta); margin-right: 0.4rem; font-size: 0.8rem; }
.feature p { font-size: 0.88rem; color: var(--muted); }

/* ============================================================ NETWORK */
.network-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.2rem; align-items: stretch; }
.net-frame {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); overflow: hidden; min-height: 480px;
}
#netCanvas { display: block; width: 100%; height: 480px; }
.net-legend {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; gap: 1.3rem; flex-wrap: wrap;
  padding: 0.7rem 1.1rem;
  font-family: var(--mono); font-size: 0.66rem; color: var(--muted);
  background: linear-gradient(transparent, rgba(5, 6, 10, 0.85));
}
.net-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.lg { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lg-origin { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.lg-edge { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.lg-up { background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.lg-down { background: var(--magenta); box-shadow: 0 0 8px var(--magenta); }

.net-console {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #060810; overflow: hidden;
}
.net-console-bar {
  padding: 0.65rem 1rem; font-family: var(--mono); font-size: 0.68rem;
  color: var(--cyan); border-bottom: 1px solid var(--line);
  background: rgba(0, 229, 255, 0.04);
}
.net-log {
  flex: 1; padding: 0.8rem 1rem; overflow: hidden;
  font-family: var(--mono); font-size: 0.66rem; line-height: 1.75;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.net-log div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net-log .up { color: var(--lime); }
.net-log .down { color: var(--magenta); }
.net-log .sys { color: var(--muted); }
.net-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.net-metrics div { padding: 0.85rem 0.5rem; text-align: center; border-right: 1px solid var(--line); }
.net-metrics div:last-child { border-right: 0; }
.net-metrics span { font-family: var(--mono); font-size: 1.25rem; color: var(--cyan); display: block; }
.net-metrics small { font-size: 0.6em; color: var(--muted); }
.net-metrics label { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ============================================================ TEAM */
.team-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.avatar {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: #060814;
  margin-bottom: 1rem;
}
.av-cyan { background: linear-gradient(135deg, var(--cyan), #4dd7ff); box-shadow: 0 0 24px rgba(0,229,255,0.35); }
.av-magenta { background: linear-gradient(135deg, var(--magenta), #ff7ab8); box-shadow: 0 0 24px rgba(255,45,149,0.35); }
.av-violet { background: linear-gradient(135deg, var(--violet), #a98bff); box-shadow: 0 0 24px rgba(124,77,255,0.4); }

/* ============================================================ CONTACT */
.contact-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.8rem; color: var(--muted); }
.contact-form input, .contact-form textarea {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.8rem 1rem; color: var(--text); font-family: var(--font); font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
}
.contact-form .btn { align-self: flex-start; }
.form-note { font-family: var(--mono); font-size: 0.72rem; color: var(--lime); min-height: 1.2em; }
.contact-side {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel), var(--bg2));
  padding: 1.8rem; font-size: 0.9rem; color: var(--muted);
  display: flex; flex-direction: column; gap: 1rem;
}
.contact-side h4 { color: var(--text); }

/* ============================================================ FOOTER */
.footer { border-top: 1px solid var(--line); background: #04050a; margin-top: 5rem; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 3.5rem 1.5rem 2rem;
  display: grid; grid-template-columns: 1.3fr 2fr; gap: 3rem;
}
.footer-co { margin-top: 1.2rem; font-size: 0.82rem; color: var(--muted); line-height: 1.75; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col h5 {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 0.5rem;
}
.footer-col a { font-size: 0.84rem; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 1.2rem 1.5rem 2rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.74rem; color: var(--muted);
  border-top: 1px solid rgba(120, 140, 255, 0.07);
}

/* ============================================================ RESPONSIVE */
@media (max-width: 920px) {
  .network-wrap, .contact-wrap, .footer-inner { grid-template-columns: 1fr; }
  .net-console { min-height: 320px; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 56px; right: 0; left: 0;
    flex-direction: column; align-items: flex-start;
    background: rgba(5, 6, 10, 0.97); border-bottom: 1px solid var(--line);
    padding: 1.2rem 1.5rem; gap: 1rem;
    transform: translateY(-130%); transition: transform 0.3s ease;
  }
  .nav-links.open { transform: none; }
  .nav-burger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  #arenaCanvas { height: 400px; }
  .arena-leaderboard { font-size: 0.62rem; min-width: 140px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 1.6rem; }
}
