/* ============================================================
   NexusForge — Game API Admin Control Platform
   Custom dark theme, vibrant accents, gradients & glows
   ============================================================ */

:root {
  --bg: #070a14;
  --bg-2: #0a0e1a;
  --surface: rgba(20, 27, 48, 0.72);
  --surface-solid: #121a30;
  --border: rgba(120, 140, 200, 0.16);
  --border-strong: rgba(120, 140, 200, 0.32);
  --text: #eef2ff;
  --muted: #9aa6c8;

  --cyan: #00d9ff;
  --magenta: #ff006e;
  --lime: #00ff41;
  --purple: #9d4edd;

  --grad-main: linear-gradient(120deg, #00d9ff 0%, #9d4edd 55%, #ff006e 100%);
  --grad-cyan-purple: linear-gradient(135deg, #00d9ff 0%, #9d4edd 100%);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 10vw, 120px) 0; position: relative; z-index: 1; }

/* ---------- Animated backdrop ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(120,140,200,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,140,200,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-orb {
  position: fixed; z-index: 0; pointer-events: none;
  width: 46vw; height: 46vw; border-radius: 50%;
  filter: blur(120px); opacity: 0.32;
  animation: drift 22s ease-in-out infinite alternate;
}
.bg-orb--cyan   { background: var(--cyan);    top: -12%; left: -10%; }
.bg-orb--magenta{ background: var(--magenta); top: 40%; right: -14%; animation-delay: -6s; }
.bg-orb--purple { background: var(--purple);  bottom: -18%; left: 22%; animation-delay: -12s; }
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(4%, 6%, 0) scale(1.12); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 10, 20, 0.6);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(7, 10, 20, 0.88);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s var(--ease); }
.nav a:hover { color: var(--text); }
.nav-cta {
  background: var(--grad-cyan-purple);
  color: #04070f !important; font-weight: 600 !important;
  padding: 9px 18px; border-radius: 999px;
  box-shadow: 0 0 0 rgba(0,217,255,0);
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(0,217,255,0.35); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; gap: 4px; padding: 8px 24px 20px;
  background: rgba(7,10,20,0.96); border-bottom: 1px solid var(--border);
}
.mobile-nav a { padding: 12px 4px; color: var(--muted); border-bottom: 1px solid var(--border); font-weight: 500; }
.mobile-nav.open { display: flex; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 1rem; padding: 14px 28px; border-radius: 999px;
  cursor: pointer; border: 1px solid transparent; position: relative;
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  font-family: "Space Grotesk", sans-serif;
}
.btn-primary { background: var(--grad-main); color: #04070f; box-shadow: 0 6px 24px rgba(157,78,221,0.32); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(0,217,255,0.5), 0 0 22px rgba(255,0,110,0.35); }
.btn-ghost { background: rgba(255,255,255,0.03); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: 0 0 24px rgba(0,217,255,0.25); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 90px); padding-bottom: clamp(48px, 8vw, 90px); position: relative; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--cyan); background: rgba(0,217,255,0.08);
  border: 1px solid rgba(0,217,255,0.2); padding: 7px 14px; border-radius: 999px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 rgba(0,255,65,0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(0,255,65,0.55);} 70%{box-shadow:0 0 0 10px rgba(0,255,65,0);} 100%{box-shadow:0 0 0 0 rgba(0,255,65,0);} }

.hero-title { font-size: clamp(2.5rem, 6vw, 4.4rem); margin: 22px 0 20px; }
.grad-text { background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin: 32px 0 40px; flex-wrap: wrap; }
.hero-stats { list-style: none; display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: "Space Grotesk"; font-size: 1.7rem; background: var(--grad-cyan-purple); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { color: var(--muted); font-size: 0.85rem; }

.hero-visual { position: relative; }
.hero-frame {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,217,255,0.06);
  position: relative;
}
.hero-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: var(--radius);
  box-shadow: inset 0 0 60px rgba(0,217,255,0.08);
}
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: rgba(10,14,26,0.9); border-bottom: 1px solid var(--border); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #ffbd2e; } .dot-g { background: #28c940; }
.frame-label { margin-left: 10px; color: var(--muted); font-size: 0.78rem; font-family: "Space Grotesk"; }
.hero-frame img { width: 100%; height: auto; }
.frame-alt { box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(157,78,221,0.1); }

.floating-chip {
  position: absolute; z-index: 3; font-size: 0.82rem; font-weight: 600;
  padding: 9px 15px; border-radius: 12px; backdrop-filter: blur(8px);
  background: rgba(10,14,26,0.82); border: 1px solid var(--border-strong);
  animation: float 5s ease-in-out infinite;
}
.chip-1 { top: 14%; left: -18px; color: var(--lime); border-color: rgba(0,255,65,0.35); box-shadow: 0 0 22px rgba(0,255,65,0.2); }
.chip-2 { bottom: 12%; right: -14px; color: var(--cyan); border-color: rgba(0,217,255,0.35); box-shadow: 0 0 22px rgba(0,217,255,0.2); animation-delay: -2.5s; }
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-12px);} }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head.section-head { }
.tag {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--purple);
  background: rgba(157,78,221,0.1); border: 1px solid rgba(157,78,221,0.25);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 24px; position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,217,255,0.12), transparent 70%);
  transition: opacity 0.3s var(--ease);
}
.feature-card:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center;
  margin-bottom: 20px; position: relative;
  border: 1px solid var(--border-strong);
}
.feature-icon img { width: 30px; height: 30px; }
/* Icons are white silhouettes — recolor via filter/drop-shadow glow */
.icon-cyan    { background: linear-gradient(135deg, rgba(0,217,255,0.22), rgba(0,217,255,0.04)); box-shadow: 0 0 26px rgba(0,217,255,0.28); }
.icon-cyan img    { filter: drop-shadow(0 0 6px rgba(0,217,255,0.8)); }
.icon-lime    { background: linear-gradient(135deg, rgba(0,255,65,0.2), rgba(0,255,65,0.03)); box-shadow: 0 0 26px rgba(0,255,65,0.24); }
.icon-lime img    { filter: drop-shadow(0 0 6px rgba(0,255,65,0.8)); }
.icon-magenta { background: linear-gradient(135deg, rgba(255,0,110,0.22), rgba(255,0,110,0.04)); box-shadow: 0 0 26px rgba(255,0,110,0.26); }
.icon-magenta img { filter: drop-shadow(0 0 6px rgba(255,0,110,0.85)); }
.icon-purple  { background: linear-gradient(135deg, rgba(157,78,221,0.24), rgba(157,78,221,0.05)); box-shadow: 0 0 26px rgba(157,78,221,0.28); }
.icon-purple img  { filter: drop-shadow(0 0 6px rgba(157,78,221,0.85)); }
.feature-card h3 { font-size: 1.22rem; margin-bottom: 10px; position: relative; }
.feature-card p { color: var(--muted); font-size: 0.95rem; position: relative; }

/* ---------- How It Works ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative; padding: 32px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.step:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.step-num {
  font-family: "Space Grotesk"; font-size: 2.4rem; font-weight: 700;
  background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 14px;
}
.step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.96rem; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 52px; right: -14px; width: 28px; height: 2px;
  background: var(--grad-cyan-purple); opacity: 0.5;
}

/* ---------- Benefits ---------- */
.benefits-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: center; }
.benefits-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.benefits-copy > p { color: var(--muted); margin-bottom: 28px; font-size: 1.05rem; }
.benefit-list { list-style: none; display: grid; gap: 16px; }
.benefit-list li { display: flex; align-items: flex-start; gap: 14px; font-size: 1.05rem; color: #dbe2f7; }
.check { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; background: var(--grad-cyan-purple); position: relative; margin-top: 2px; box-shadow: 0 0 14px rgba(0,217,255,0.3); }
.check::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #04070f; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* ---------- Demo CTA ---------- */
.demo-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,56px); align-items: center;
  background: linear-gradient(135deg, rgba(0,217,255,0.07), rgba(157,78,221,0.09) 55%, rgba(255,0,110,0.07));
  border: 1px solid var(--border-strong); border-radius: 26px;
  padding: clamp(32px, 5vw, 56px);
  box-shadow: 0 30px 90px rgba(0,0,0,0.4);
}
.demo-copy h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 14px; }
.demo-copy > p { color: var(--muted); font-size: 1.06rem; margin-bottom: 22px; }
.demo-points { list-style: none; display: grid; gap: 10px; }
.demo-points li { color: #dbe2f7; padding-left: 26px; position: relative; }
.demo-points li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px rgba(0,255,65,0.6); }

.demo-form { background: rgba(7,10,20,0.55); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 7px; color: #c4cdea; }
.field input, .field textarea {
  width: 100%; background: rgba(10,14,26,0.8); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 13px 15px; color: var(--text);
  font-family: inherit; font-size: 0.98rem; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #5f6b8f; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,217,255,0.15); }
.field input.invalid, .field textarea.invalid { border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(255,0,110,0.15); }
.form-actions { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.form-actions .btn { flex: 1; min-width: 150px; }
.form-status { margin-top: 14px; font-size: 0.92rem; min-height: 1.2em; }
.form-status.ok { color: var(--lime); }
.form-status.err { color: var(--magenta); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 60px 0 30px; position: relative; z-index: 1; background: rgba(7,10,20,0.5); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; margin-bottom: 40px; }
.footer-brand img { height: 36px; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); max-width: 300px; font-size: 0.96rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 14px; }
.footer-col a { display: block; color: #c4cdea; font-size: 0.95rem; padding: 5px 0; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--cyan); }
.socials { display: flex; gap: 12px; }
.social { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--muted); transition: 0.25s var(--ease); }
.social:hover { color: var(--text); border-color: var(--cyan); box-shadow: 0 0 18px rgba(0,217,255,0.25); transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.88rem; flex-wrap: wrap; }

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  background: var(--grad-main); color: #04070f; font-weight: 700; font-family: "Space Grotesk";
  padding: 13px 22px; border-radius: 999px; font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(157,78,221,0.45);
  opacity: 0; transform: translateY(20px) scale(0.9); pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.3s var(--ease);
}
.sticky-cta.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.sticky-cta:hover { box-shadow: 0 14px 40px rgba(0,217,255,0.55); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-inner { grid-template-columns: 1fr; }
  .demo-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .steps { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 22px; }
  .floating-chip { display: none; }
}
@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
  .form-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
