/* ═══════════════════════════════════════════════════
   NorgeSMP — Norse Craft Theme
   A premium Viking × Minecraft hybrid design
   ═══════════════════════════════════════════════════ */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=VT323&display=swap');

/* ── Tokens ── */
:root {
  --bg-deep:     #06060c;
  --bg:          #0a0a14;
  --bg-surface:  #111120;
  --bg-card:     #16162a;
  --bg-card-h:   #1e1e38;
  --gold:        #d4a942;
  --gold-light:  #ecc76a;
  --gold-dark:   #8b6d1f;
  --gold-glow:   rgba(212,169,66,.15);
  --green:       #4ade80;
  --green-dark:  #166534;
  --red:         #ef4444;
  --text:        #e6dfd0;
  --text-dim:    #9a9080;
  --text-muted:  #5a5448;
  --border:      rgba(212,169,66,.10);
  --border-h:    rgba(212,169,66,.28);
  --discord:     #5865F2;
  --radius:      8px;
  --navh:        64px;
}

/* ── Reset ── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0 }
html { scroll-behavior:smooth }
img { max-width:100%; display:block }

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: 'VT323', monospace;
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Container ── */
.container { max-width:960px; margin:0 auto; padding:0 2rem }

/* ── Scroll reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navh);
  z-index: 100;
  background: rgba(6,6,12,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav-logo {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: .06em;
  text-shadow: 0 0 20px var(--gold-glow);
  transition: color .2s;
}
.nav-logo:hover { color: var(--gold-light) }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,.04);
}

.nav-right { display:flex; align-items:center; gap:10px }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.3rem;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--bg-card);
  transition: all .15s;
  white-space: nowrap;
}
.btn:hover {
  background: var(--bg-card-h);
  border-color: var(--border-h);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), #a07820);
  border-color: var(--gold-dark);
  color: #fff;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #a07820, var(--gold));
  box-shadow: 0 4px 24px rgba(212,169,66,.25);
}

.btn-green {
  background: linear-gradient(135deg, var(--green-dark), #1a8a2a);
  border-color: var(--green-dark);
  color: #fff;
}
.btn-green:hover {
  background: linear-gradient(135deg, #1a8a2a, #22a03a);
  box-shadow: 0 4px 24px rgba(74,222,128,.2);
}

.btn-discord {
  background: linear-gradient(135deg, #4752c4, var(--discord));
  border-color: #4752c4;
  color: #fff;
}
.btn-discord:hover {
  background: linear-gradient(135deg, var(--discord), #7289da);
  box-shadow: 0 4px 24px rgba(88,101,242,.25);
}

.btn-sm { font-size:1rem; padding:7px 16px }

.btn-wip {
  background: var(--bg-surface);
  color: var(--text-muted);
  pointer-events: none;
  cursor: not-allowed;
  border-color: transparent;
}
.wip-label {
  font-size: .7rem;
  background: rgba(212,169,66,.12);
  color: var(--gold);
  padding: 1px 6px;
  border-radius: 3px;
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--navh);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('hero-bg.png') center center / cover no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,6,12,.3) 0%, rgba(6,6,12,.5) 40%, rgba(6,6,12,.92) 75%, var(--bg-deep) 100%),
    radial-gradient(ellipse at 50% 30%, rgba(212,169,66,.04) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 60px 2rem;
}

.hero-badge {
  font-size: .9rem;
  color: var(--gold);
  border: 1px solid var(--border-h);
  background: rgba(212,169,66,.06);
  padding: 4px 18px;
  border-radius: 20px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1.hero-title {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(3.5rem, 10vw, 7rem);
  color: var(--gold);
  text-shadow: 0 0 80px rgba(212,169,66,.3), 0 4px 0 rgba(0,0,0,.5);
  line-height: 1;
  letter-spacing: .04em;
}

.hero-subtitle {
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-dim);
  max-width: 460px;
  font-weight: 400;
}

/* Status widget */
.status-widget {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 28px;
  border-radius: var(--radius);
  background: rgba(17,17,32,.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  min-width: 300px;
  text-align: left;
  margin-top: .5rem;
}
.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
}
.s-label { color:var(--text-muted); min-width:85px }
.s-value { color:var(--text) }

.dot { width:10px;height:10px;border-radius:50%;display:inline-block;flex-shrink:0 }
.dot.online  { background:var(--green); box-shadow:0 0 8px rgba(74,222,128,.5); animation:pulse 2s infinite }
.dot.offline { background:var(--red); box-shadow:0 0 8px rgba(239,68,68,.4) }
.dot.loading { background:#555; animation:pulse-l 1.2s infinite }

@keyframes pulse {
  0%,100% { box-shadow:0 0 4px rgba(74,222,128,.4) }
  50%     { box-shadow:0 0 12px rgba(74,222,128,.7) }
}
@keyframes pulse-l {
  0%,100% { opacity:1 }
  50%     { opacity:.3 }
}

.ip-inline {
  font-family:'VT323',monospace;
  font-size:1.2rem;
  color:var(--green);
  background:transparent;
  border:none;
  cursor:pointer;
  padding:0;
  display:inline-flex;
  align-items:center;
  gap:6px;
  transition:color .15s;
}
.ip-inline:hover { color:#6aff9a }
.ip-inline .copy-icon { font-size:.85rem; opacity:.6 }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--text-muted);
  font-size: 1.5rem;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%,100% { transform: translateX(-50%) translateY(0) }
  50%     { transform: translateX(-50%) translateY(8px) }
}

/* ═══════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════ */
section { padding: 100px 0 }

.sec-header {
  margin-bottom: 3rem;
}
.sec-overline {
  font-size: .85rem;
  color: var(--gold);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sec-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text);
  line-height: 1.2;
}
.sec-title span { color: var(--gold) }

.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-top: 16px;
}

/* ═══════════════════════════════════════════
   FEATURE CARDS
   ═══════════════════════════════════════════ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.feature-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feature-card:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
}
.feature-card .f-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}
.feature-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   RULES
   ═══════════════════════════════════════════ */
.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 700px;
}
.rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 1.05rem;
  color: var(--text-dim);
  transition: border-color .2s;
}
.rules-list li:hover { border-color: var(--border-h) }

.rule-num {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gold);
  min-width: 20px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   CONNECT STEPS
   ═══════════════════════════════════════════ */
.steps-panel {
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  max-width: 640px;
}
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.03);
}
.step:last-child { border-bottom:none }

.step-num {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gold);
  min-width: 32px;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 2px;
}
.step-body strong {
  display: block;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 2px;
}
.step-body span {
  font-size: .95rem;
  color: var(--text-dim);
}

.ip-box {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 1.5rem;
  padding: 16px 28px;
  cursor: pointer;
  border: 1px solid var(--border-h);
  border-radius: var(--radius);
  background: var(--bg-surface);
  transition: all .15s;
}
.ip-box:hover {
  background: var(--bg-card);
  box-shadow: 0 0 24px var(--gold-glow);
  border-color: var(--gold-dark);
}
.ip-box-text {
  font-family: 'VT323', monospace;
  font-size: 2.2rem;
  color: var(--green);
  line-height: 1;
}
.ip-box-icon { font-size:1.3rem; color:var(--text-muted) }
.ip-hint {
  font-size:.9rem;
  color:var(--text-muted);
  margin-top:8px;
}
.version-tag {
  display:inline-block;
  margin-top:12px;
  font-size:1rem;
  color:var(--gold);
  background: rgba(212,169,66,.08);
  border: 1px solid var(--border);
  padding:4px 14px;
  border-radius:4px;
}

/* ═══════════════════════════════════════════
   DISCORD SECTION
   ═══════════════════════════════════════════ */
.discord-card {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 36px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(88,101,242,.08), rgba(88,101,242,.03));
  border: 1px solid rgba(88,101,242,.2);
  max-width: 640px;
  transition: border-color .2s;
}
.discord-card:hover { border-color: rgba(88,101,242,.4) }
.discord-card .d-icon { font-size:3.5rem; flex-shrink:0 }
.discord-card h3 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 6px;
}
.discord-card p {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: var(--bg-deep);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gold);
}
.footer-copy {
  font-size: .9rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.footer-links { display:flex; gap:10px; flex-wrap:wrap; align-items:center }

/* ═══════════════════════════════════════════
   DONATION TOAST
   ═══════════════════════════════════════════ */
#donation-toast {
  position: fixed;
  bottom: -240px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: min(480px, calc(100vw - 2rem));
  background: var(--bg-surface);
  border: 1px solid var(--border-h);
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: bottom .5s cubic-bezier(.22,1,.36,1);
}
#donation-toast.visible { bottom:20px }
.toast-icon { font-size:1.8rem; flex-shrink:0 }
.toast-body { flex:1 }
.toast-body p {
  font-size:1rem;
  color:var(--text-dim);
  margin-bottom:12px;
  line-height:1.5;
}
.toast-body p strong { color:var(--text) }
.toast-close {
  background:transparent;
  border:1px solid var(--border);
  border-radius:4px;
  color:var(--text-muted);
  font-size:1.1rem;
  cursor:pointer;
  padding:2px 8px;
  flex-shrink:0;
  transition:all .15s;
  line-height:1;
}
.toast-close:hover { border-color:var(--border-h); color:var(--text) }

/* ═══════════════════════════════════════════
   COPY FEEDBACK
   ═══════════════════════════════════════════ */
.copy-feedback {
  position:fixed;
  top:80px;
  left:50%;
  transform:translateX(-50%) translateY(-12px);
  background: var(--green-dark);
  color: var(--green);
  font-size:1.15rem;
  padding:8px 20px;
  border-radius:var(--radius);
  border:1px solid rgba(74,222,128,.2);
  box-shadow:0 4px 20px rgba(0,0,0,.4);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s,transform .2s;
  z-index:300;
}
.copy-feedback.show {
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media(max-width:768px) {
  .nav-links { display:none; flex-direction:column; gap:2px }
  .nav-links.open {
    display:flex;
    position:absolute;
    top:var(--navh);
    left:0; right:0;
    background:rgba(6,6,12,.97);
    backdrop-filter:blur(16px);
    border-bottom:1px solid var(--border);
    padding:12px 1.5rem;
  }
  .nav-toggle { display:block }
  .nav-right .btn-sm { display:none }
  .footer-inner { flex-direction:column; align-items:flex-start }
  .status-widget { min-width:0; width:100% }
  .discord-card { flex-direction:column; text-align:center; align-items:center }
  .feature-grid { grid-template-columns:1fr }
  .steps-panel { padding:20px }
}
