/* ===========================
   monkaSXP — Shared Stylesheet
   Deep purple-navy + electric blue
   =========================== */

:root{
  /* Background scale (deep purple-navy) */
  --bg:          #1a1532;
  --bg-2:        #221c40;
  --bg-deep:     #0e0a20;
  --bg-darker:   #14102a;
  --surface:     #2a234a;
  --surface-2:   #322a58;
  --surface-3:   #3a3268;

  /* Borders */
  --border:      rgba(255, 255, 255, 0.08);
  --border-2:    rgba(122, 162, 255, 0.22);
  --border-3:    rgba(122, 162, 255, 0.45);

  /* Primary — electric blue */
  --primary:      #3d7dff;
  --primary-2:    #5a96ff;
  --primary-3:    #2a64e6;
  --primary-glow: rgba(61, 125, 255, 0.45);

  /* Accent — neon-green for sigils/highlights */
  --accent:      #b8ff3d;
  --accent-glow: rgba(184, 255, 61, 0.45);

  /* Text */
  --text:    #ffffff;
  --text-2:  #d8d4f0;
  --muted:   #9c98be;
  --muted-2: #6c6890;

  /* Tier colors for guide cards */
  --tier-classic:  #f0a830;
  --tier-tbc:      #c25cff;
  --tier-wotlk:    #4ec8ff;
}

*,*::before,*::after{ box-sizing: border-box }
html{ scroll-behavior: smooth; scroll-padding-top: 88px }
html,body{ margin: 0; padding: 0 }
body{
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(80, 50, 160, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(70, 110, 200, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 30%, #2a2456 65%, #3a3168 100%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection{ background: var(--primary); color: #fff }

h1,h2,h3,h4{
  font-family: 'Russo One', 'Bowlby One', system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
}
p{ margin: 0; color: var(--muted) }
a{ color: inherit; text-decoration: none }
img{ display: block; max-width: 100% }

/* ============== Buttons ============== */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 14px;
  letter-spacing: .02em;
  border-radius: 8px; cursor: pointer; border: 0;
  transition: all .18s ease;
  white-space: nowrap;
  text-decoration: none;
  color: #fff;
}
.btn-primary{
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 22px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-primary:hover{
  background: var(--primary-2);
  box-shadow: 0 8px 28px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,.2), 0 0 24px var(--primary-glow);
  transform: translateY(-1px);
}
.btn-ghost{
  background: rgba(255,255,255,.04);
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover{
  background: rgba(61, 125, 255, .12);
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}
.btn-sm{ height: 40px; padding: 0 18px; font-size: 12px; border-radius: 6px }
.btn-lg{ height: 60px; padding: 0 36px; font-size: 15px }
.btn[disabled]{
  background: rgba(255,255,255,.05); color: rgba(255,255,255,.3);
  cursor: not-allowed; box-shadow: none;
}
.btn[disabled]:hover{ transform: none; background: rgba(255,255,255,.05) }
.btn.secondary{
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-2);
}
.btn.secondary:hover{ background: var(--surface-3); border-color: var(--primary) }

/* ============== Two-tier Nav ============== */
.utility-bar{
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  height: 44px;
  font-size: 12px;
  position: relative; z-index: 51;
}
.utility-inner{
  height: 100%;
  max-width: 1400px; margin: 0 auto;
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.utility-left{
  display: flex; align-items: center; gap: 18px;
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: 11px; letter-spacing: .12em;
  color: var(--text-2);
}
.utility-domain{
  display:flex; align-items:center; gap:10px;
  text-transform: uppercase;
}
.utility-domain .micro-mark{
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  border-radius: 4px;
  display: grid; place-items: center;
  color: #fff;
}
.utility-domain .micro-mark svg{ width: 12px; height: 12px }
.utility-social{
  display: flex; gap: 14px; align-items: center;
}
.utility-social a{
  width: 26px; height: 26px;
  display: grid; place-items: center;
  color: var(--muted); border-radius: 4px;
  transition: all .18s;
}
.utility-social a:hover{ color: var(--primary-2); background: rgba(61,125,255,.08) }
.utility-social svg{ width: 14px; height: 14px }
.utility-links{
  display: flex; gap: 26px;
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 12px; color: var(--text-2);
}
.utility-links a{ transition: color .18s }
.utility-links a:hover{ color: var(--primary-2) }

.nav{
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 16, 42, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  height: 80px;
}
.nav-inner{
  height: 100%;
  max-width: 1400px; margin: 0 auto;
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
}
.logo{
  display: flex; align-items: center; gap: 14px;
  color: var(--text);
}
.logo-mark{
  width: 50px; height: 50px;
  background:
    radial-gradient(circle at 30% 30%, #1a1532, var(--bg-deep) 80%);
  border: 2px solid rgba(122, 162, 255, .35);
  border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
  box-shadow: 0 0 24px var(--primary-glow), inset 0 0 14px rgba(61,125,255,.25);
}
.logo-mark svg{
  width: 26px; height: 26px;
  color: var(--primary-2);
  filter: drop-shadow(0 0 6px var(--primary-glow));
}
.logo-text{
  font-family: 'Russo One', sans-serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: .03em;
  color: var(--text);
  line-height: 1;
}
.logo-text small{
  display: block;
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: 10px; letter-spacing: .26em;
  color: var(--primary-2);
  margin-top: 4px;
}

.nav-links{
  display: flex; align-items: center; gap: 36px;
  margin-left: auto;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
}
.nav-links a{
  color: var(--text);
  transition: color .18s;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-links a:hover{ color: var(--primary-2) }
.nav-links a.is-active{ color: var(--primary-2) }
.nav-links a .caret{
  width: 10px; height: 10px; color: currentColor; opacity: .7;
}
.nav-cta{ margin-left: 12px }

/* ============== Section base ============== */
section.block{
  padding: 110px 0;
  position: relative;
}
.container{
  max-width: 1400px; margin: 0 auto;
  padding: 0 40px;
}
.sec-head{ text-align: center; margin-bottom: 56px }
.sec-eyebrow{
  display: inline-block;
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--primary-2);
  margin-bottom: 14px;
}
.sec-head h2{
  font-size: clamp(36px, 5vw, 60px);
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: .02em;
}
.sec-head p{
  max-width: 640px; margin: 0 auto;
  font-size: 16px;
  color: var(--text-2);
}

/* ============== Page Hero (smaller, for sub-pages) ============== */
.page-hero{
  position: relative;
  border-bottom: 1px solid var(--border);
  padding: 70px 0 60px;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(61,125,255,.18), transparent 60%);
}
.page-hero-inner{
  max-width: 1280px; margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}
.page-hero h1{
  font-size: clamp(40px, 5vw, 68px);
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: .02em;
}
.page-hero p.lede{
  font-family:'Inter', sans-serif; font-weight: 400;
  font-size: 16px; color: var(--text-2);
  max-width: 660px; margin: 0 auto;
  line-height: 1.65;
}

/* ============== Input ============== */
.input-wrap{
  position: relative;
  background: rgba(14, 10, 32, .6);
  border: 2px solid var(--border-2);
  border-radius: 8px;
  transition: all .18s ease;
}
.input-wrap.focused{
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(61,125,255,.15), 0 0 30px var(--primary-glow);
}
.input-wrap.invalid{
  border-color: #ff5a5a;
  box-shadow: 0 0 0 4px rgba(255,90,90,.15);
}
.input-wrap.valid{
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(184,255,61,.15);
}
.input-inner{
  display: flex; align-items: center; gap: 14px;
  height: 60px;
  padding: 0 20px;
}
.input-inner .glyph{
  width: 22px; height: 22px; color: var(--primary-2); flex: 0 0 22px;
  filter: drop-shadow(0 0 6px var(--primary-glow));
}
.input-inner input{
  flex: 1; background: transparent; border: 0; outline: 0;
  font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 500;
  color: var(--text);
  letter-spacing: .01em;
}
.input-inner input::placeholder{ color: var(--muted-2); font-weight: 400 }

.status{
  min-height: 22px; margin-top: 16px;
  font-size: 14px; color: var(--muted);
  font-family: 'Inter', sans-serif;
}
.status em{ color: var(--primary-2); font-style: normal; font-weight: 600 }
.status.err{ color: #ff7a7a }
.status.ok{ color: var(--accent) }
.status strong{ color: var(--accent) }

/* ============== Toast ============== */
.toast-wrap{
  position: fixed; top: 110px; left: 50%; transform: translateX(-50%);
  z-index: 100;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast{
  background: var(--surface);
  border: 1px solid var(--border-3);
  border-left: 3px solid var(--primary);
  padding: 14px 22px 14px 18px;
  border-radius: 8px;
  color: var(--text);
  box-shadow: 0 14px 40px rgba(0,0,0,.6), 0 0 30px var(--primary-glow);
  display: flex; align-items: center; gap: 14px;
  min-width: 340px;
  animation: toastIn .35s ease;
}
.toast .t-icon{
  width: 30px; height: 30px; flex: 0 0 30px;
  border-radius: 50%; background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 0 14px var(--primary-glow);
}
.toast .t-text strong{
  display: block; font-family:'Inter', sans-serif; font-size: 11px;
  letter-spacing: .18em; color: var(--primary-2);
  text-transform: uppercase; margin-bottom: 2px;
}
.toast .t-text span{ font-size: 14px; color: var(--text) }
@keyframes toastIn{
  from{ opacity: 0; transform: translateY(-10px) }
  to{ opacity: 1; transform: translateY(0) }
}

/* ============== Modal ============== */
.modal-bg{
  position: fixed; inset: 0; z-index: 200;
  background: rgba(14, 10, 32, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
}
.modal-bg.show{ display: flex; animation: fade .25s ease }
@keyframes fade{ from{ opacity: 0 } to{ opacity: 1 } }
.modal{
  width: 560px; max-width: 92vw;
  background: var(--surface);
  border: 1px solid var(--border-3);
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 60px var(--primary-glow);
}
.modal-inner{ padding: 36px 36px 30px; position: relative }
.modal h3{
  font-family: 'Russo One', sans-serif; font-size: 26px;
  color: var(--text); text-align: center;
  margin: 0 0 8px;
  text-transform: uppercase; letter-spacing: .02em;
}
.modal .qline{
  text-align: center; color: var(--text-2); font-size: 14.5px;
  margin: 0 0 26px; line-height: 1.6;
}
.modal .qline strong{ color: var(--primary-2); font-weight: 600 }

.progress{
  height: 14px; background: var(--bg-deep); border: 1px solid var(--border-2); border-radius: 8px;
  position: relative; overflow: hidden;
}
.progress .bar{
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 14px var(--primary-glow);
  transition: width .2s ease;
  position: relative;
}
.progress .bar::after{
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.2) 0 8px, transparent 8px 16px);
  animation: stripes 1s linear infinite;
}
@keyframes stripes{ to{ background-position: 32px 0 } }
.progress-label{
  display: flex; justify-content: space-between;
  font-family:'Inter', sans-serif; font-size: 11px; letter-spacing: .14em;
  color: var(--muted);
  margin-top: 12px; text-transform: uppercase; font-weight: 600;
}
.modal .actions{ display: flex; gap: 12px; justify-content: center; margin-top: 26px }

.file-tag{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-deep);
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 13px;
  max-width: 100%;
}
.file-tag svg{
  color: var(--primary-2); flex: 0 0 14px;
  filter: drop-shadow(0 0 4px var(--primary-glow));
}
.file-tag code{
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 12.5px; color: var(--primary-2);
  word-break: break-all;
}
.file-tag .filesize{
  margin-left: auto;
  font-size: 10px; letter-spacing: .16em;
  color: var(--muted-2); text-transform: uppercase;
  padding-left: 10px; font-weight: 600;
  border-left: 1px solid var(--border-2);
}

/* ============== Footer ============== */
footer{
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
  margin-top: 40px;
}
.footer-inner{
  max-width: 1400px; margin: 0 auto;
  padding: 0 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px;
}
.footer-brand p{
  font-size: 14px; color: var(--text-2); margin-top: 16px;
  max-width: 340px; line-height: 1.65;
}
.footer-col h4{
  font-family:'Russo One', sans-serif;
  font-size: 14px; letter-spacing: .04em;
  color: var(--text);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.footer-col a{
  display: block;
  font-family:'Inter', sans-serif; font-weight: 500;
  font-size: 14px; color: var(--text-2);
  margin-bottom: 12px;
  transition: color .18s;
}
.footer-col a:hover{ color: var(--primary-2) }
.footer-bottom{
  max-width: 1400px; margin: 50px auto 0;
  padding: 24px 40px 0;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  font-family:'Inter', sans-serif; font-size: 12px;
  color: var(--muted);
}

/* Page transitions */
body.leaving{ animation: leave .55s ease forwards }
@keyframes leave{
  0%{ opacity: 1; filter: blur(0) }
  100%{ opacity: 0; filter: blur(6px); transform: scale(1.01) }
}
body.entering{ animation: enter .55s ease both }
@keyframes enter{
  0%{ opacity: 0; filter: blur(6px) }
  100%{ opacity: 1; filter: blur(0) }
}

/* Responsive */
@media (max-width: 980px){
  .utility-bar{ display: none }
  .nav-inner{ padding: 0 24px }
  .nav-links{ display: none }
  .container{ padding: 0 24px }
  section.block{ padding: 70px 0 }
  .footer-inner{ grid-template-columns: 1fr 1fr; gap: 30px }
}
