/* ===== PvP Labs — theme ===== */
:root {
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --panel: rgba(14, 20, 34, 0.72);
  --line: rgba(120, 160, 255, 0.14);
  --text: #e7ecff;
  --muted: #8b95b5;
  --accent: #ff3b3b;
  --accent-2: #ff8a3b;
  --cyan: #29e0ff;
  --green: #35ff9e;
  --glow: 0 0 24px rgba(255, 59, 59, 0.45);
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Rajdhani", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(255, 59, 59, 0.12), transparent 60%),
    radial-gradient(900px 600px at 0% 20%, rgba(41, 224, 255, 0.10), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Background layers */
#embers {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}
.scanline {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

.accent { color: var(--accent); }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(16px, 5vw, 64px);
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(5,7,13,0.85), rgba(5,7,13,0.2));
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 2px;
}
.brand-mark {
  color: var(--accent);
  filter: drop-shadow(var(--glow));
  font-size: 22px;
}
.brand-text { font-size: 20px; }
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
  transition: color .2s, text-shadow .2s;
}
.nav-links a:hover { color: var(--text); text-shadow: 0 0 12px rgba(41,224,255,.6); }
.nav-cta { padding: 8px 18px; }

/* ===== BUTTONS ===== */
.btn {
  --b: var(--accent);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 14px;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  user-select: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 30px rgba(255, 59, 59, .35), inset 0 0 0 1px rgba(255,255,255,.15);
}
.btn-primary:hover { box-shadow: 0 10px 40px rgba(255, 59, 59, .6); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--cyan); color: #fff; box-shadow: 0 0 20px rgba(41,224,255,.25); }
.btn-block { width: 100%; margin-top: 8px; }
.btn-copy {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: rgba(255,255,255,.03);
  border: 1px dashed var(--line);
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  padding: 10px 18px;
}
.btn-copy .ip-label { font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.btn-copy .copy-hint { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.btn-copy.copied { border-color: var(--green); color: var(--green); }
.btn-copy.copied .copy-hint::after { content: " ✔ copied"; }

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 40px;
  align-items: center;
  padding: clamp(40px, 8vw, 110px) clamp(16px, 5vw, 64px) 60px;
  max-width: 1300px;
  margin: 0 auto;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.02);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(53,255,158,.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(53,255,158,.7); }
  70% { box-shadow: 0 0 0 10px rgba(53,255,158,0); }
  100% { box-shadow: 0 0 0 0 rgba(53,255,158,0); }
}
.hero-title {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(30px, 6vw, 64px);
  line-height: 1.15;
  margin: 18px 0 14px;
  letter-spacing: 2px;
  text-shadow: 0 0 30px rgba(255,59,59,.25);
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 560px;
}
.hero-sub strong { color: var(--text); }
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 30px 0 26px;
}
.hero-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.badge {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 18px;
  background: rgba(255,255,255,.02);
  min-width: 120px;
}
.badge b { display: block; font-size: 22px; color: var(--cyan); }
.badge span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* Hero art */
.hero-art {
  position: relative;
  height: 340px;
  display: grid;
  place-items: center;
}
.orb {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255,138,59,.65), rgba(255,59,59,.35) 45%, transparent 70%);
  filter: blur(6px);
  animation: float 6s ease-in-out infinite;
}
.sword {
  position: relative;
  font-size: 160px;
  filter: drop-shadow(0 0 30px rgba(255,59,59,.7));
  animation: swing 5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(-10px); } 50% { transform: translateY(14px); } }
@keyframes swing { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(10deg); } }

/* Glitch text */
.glitch { position: relative; color: var(--accent); }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0;
  width: 100%; overflow: hidden;
}
.glitch::before { color: var(--cyan); transform: translate(-2px,0); clip-path: inset(0 0 55% 0); animation: g1 2.5s infinite linear alternate; }
.glitch::after { color: var(--accent-2); transform: translate(2px,0); clip-path: inset(55% 0 0 0); animation: g2 3s infinite linear alternate; }
@keyframes g1 { 0%{clip-path:inset(0 0 55% 0)} 50%{clip-path:inset(20% 0 40% 0)} 100%{clip-path:inset(10% 0 60% 0)} }
@keyframes g2 { 0%{clip-path:inset(55% 0 0 0)} 50%{clip-path:inset(40% 0 20% 0)} 100%{clip-path:inset(60% 0 5% 0)} }

/* ===== STATS ===== */
.stats {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px clamp(16px, 5vw, 64px) 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 12px;
  background: var(--panel);
  backdrop-filter: blur(6px);
}
.stat-num {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(18px, 3vw, 30px);
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(41,224,255,.4);
}
.stat-label { color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-size: 13px; margin-top: 8px; }

/* ===== FEATURES ===== */
.section-title {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(18px, 3.4vw, 34px);
  text-align: center;
  letter-spacing: 2px;
}
.features {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px clamp(16px, 5vw, 64px) 60px;
}
.feature-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  background: var(--panel);
  backdrop-filter: blur(6px);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(255,59,59,.18);
}
.card-icon { font-size: 34px; }
.card h3 { margin: 14px 0 8px; font-size: 20px; letter-spacing: 1px; }
.card p { color: var(--muted); margin: 0; }

/* ===== VERIFY ===== */
.verify {
  position: relative;
  z-index: 2;
  padding: 40px clamp(16px, 5vw, 64px) 80px;
  display: grid;
  place-items: center;
}
.verify-shell {
  position: relative;
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 44px);
  background: linear-gradient(180deg, rgba(16,22,38,.9), rgba(10,14,26,.9));
  backdrop-filter: blur(14px);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.verify-glow {
  position: absolute;
  top: -60%; left: 50%;
  width: 480px; height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,59,59,.25), transparent 70%);
  pointer-events: none;
}
.verify-head { text-align: center; position: relative; }
.verify-head .section-title { font-size: clamp(16px, 3vw, 24px); }
.verify-desc { color: var(--muted); margin-top: 12px; }

/* steps indicator */
.steps {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 26px 0 10px;
  counter-reset: s;
}
.step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: .25s;
}
.step span {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  font-weight: 700;
}
.step.is-active { color: #fff; border-color: var(--accent); box-shadow: 0 0 20px rgba(255,59,59,.25); }
.step.is-active span { background: var(--accent); }
.step.is-done { color: var(--green); border-color: rgba(53,255,158,.5); }
.step.is-done span { background: var(--green); color: #05130c; }

/* panels */
.panel { display: none; margin-top: 22px; animation: fadeUp .4s ease; }
.panel.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.35);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(41,224,255,.15); }
.field input.invalid { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,59,59,.15); }
.err { display: block; color: var(--accent); font-size: 13px; min-height: 16px; margin-top: 6px; font-weight: 600; }
.warn-note {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: .3px;
  text-shadow: 0 0 12px rgba(255, 59, 59, .35);
}
.err-center { text-align: center; }
.fineprint { color: var(--muted); font-size: 12px; text-align: center; margin-top: 14px; }

/* loader inside button */
[hidden] { display: none !important; }
.btn-loader { display: inline-flex; align-items: center; gap: 10px; }
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading { pointer-events: none; opacity: .9; }

/* OTP */
.code-msg { text-align: center; margin-bottom: 20px; }
.mail-icon { font-size: 40px; animation: float 4s ease-in-out infinite; }
.code-msg h3 { margin: 10px 0 6px; font-size: 22px; }
.code-msg p { color: var(--muted); margin: 0; }
.otp {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 4px;
}
.otp-box {
  width: 48px; height: 58px;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.35);
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.otp-box:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(41,224,255,.18); transform: translateY(-2px); }
.otp-box.filled { border-color: var(--accent-2); }

/* success */
.success { text-align: center; }
.success-burst {
  width: 84px; height: 84px;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  font-size: 40px;
  color: #05130c;
  background: radial-gradient(circle at 40% 35%, var(--green), #12b06a);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(53,255,158,.6);
  animation: pop .5s ease;
}
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.success h3 { font-size: 26px; margin: 6px 0 8px; }
.success p { color: var(--muted); }

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 30px 16px 50px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 1px;
}

/* Full-page retry screen */
.retry-page {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 600px at 50% 30%, rgba(255, 59, 59, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.retry-page[hidden] { display: none !important; }
body.retry-active { overflow: hidden; }
.retry-page-inner {
  text-align: center;
  max-width: 480px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(40px, 8vw, 64px) clamp(28px, 6vw, 48px);
  background: linear-gradient(180deg, rgba(16, 22, 38, 0.95), rgba(10, 14, 26, 0.98));
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: fadeUp 0.5s ease;
}
.retry-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: float 4s ease-in-out infinite;
}
.retry-page h1 {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(18px, 4vw, 28px);
  margin: 0 0 24px;
  letter-spacing: 2px;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(255, 59, 59, 0.4);
}
.retry-msg {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: 1px;
}
.retry-sub {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
  line-height: 1.6;
}

/* toast */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 50;
  background: rgba(14,20,34,.95);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  font-weight: 600;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { border-color: var(--accent); }
.toast.ok { border-color: var(--green); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { height: 220px; order: -1; }
  .sword { font-size: 110px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .otp-box { width: 42px; height: 52px; font-size: 22px; }
  .steps { flex-direction: column; }
  .step { justify-content: flex-start; }
}
