/* ============================================================
   IMMORTAL MINECRAFT — design tokens
   Void black base, fire/ember on the west, nether cosmos on the
   east — mirrored from the server's own banner art.
   ============================================================ */
:root {
  --void: #08050c;
  --void-2: #100a1c;
  --panel: #150f24;
  --panel-line: rgba(180, 160, 255, 0.14);

  --ember-red: #ef3c22;
  --ember-orange: #ff9a1f;
  --nether-indigo: #3a1b78;
  --nether-blue: #1c2a63;

  --cyan: #2fd8ff;
  --gold: #ffb020;
  --emerald: #33d67a;
  --violet: #b26bff;

  --bone: #f4eee2;
  --bone-dim: #b8aec2;

  --font-display: "Rubik Mono One", monospace;
  --font-ui: "Chakra Petch", sans-serif;
  --font-body: "Barlow", sans-serif;

  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

::selection { background: var(--cyan); color: #05121a; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ============ background atmosphere ============ */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 45% at 12% 10%, rgba(239,60,34,0.22), transparent 60%),
    radial-gradient(ellipse 55% 50% at 92% 15%, rgba(58,27,120,0.35), transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(20,10,40,0.6), transparent 70%),
    var(--void);
}

/* ============ nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(8, 5, 12, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 154, 31, 0.5));
}

.nav-brand span {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

.nav-brand span b {
  color: var(--ember-orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: var(--bone-dim);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--cyan); }

.nav-cta {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--void);
  background: linear-gradient(135deg, var(--cyan), #7fe8ff);
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(47, 216, 255, 0.35);
}

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--panel-line);
    color: var(--bone);
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 1rem;
  }
}

/* ============ hero ============ */
.hero {
  position: relative;
  padding: 64px 0 40px;
  text-align: center;
}

.hero-banner-frame {
  max-width: 980px;
  margin: 0 auto 36px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--panel-line);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7), 0 0 60px -10px rgba(178,107,255,0.25);
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  color: var(--cyan);
  text-transform: uppercase;
  margin: 0 0 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  line-height: 1.05;
  margin: 0 0 18px;
  background: linear-gradient(120deg, var(--ember-orange) 10%, var(--cyan) 55%, var(--violet) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.tagline {
  font-family: var(--font-ui);
  color: var(--bone-dim);
  letter-spacing: 0.06em;
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1rem;
}

/* IP box */
.ip-box {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  padding: 6px;
  margin-bottom: 18px;
}

.ip-box code {
  font-family: var(--font-ui);
  font-size: 1rem;
  padding: 10px 20px;
  color: var(--bone);
  letter-spacing: 0.02em;
}

.ip-box button {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 22px;
  background: linear-gradient(135deg, var(--ember-red), var(--ember-orange));
  color: var(--bone);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ip-box button:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,120,20,0.35); }
.ip-box button:active { transform: translateY(0); }

/* status pill */
.status-row {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--bone-dim);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #666;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

.dot.online {
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse 1.8s ease-in-out infinite;
}

.dot.offline { background: #666; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ============ diamond divider (signature element) ============ */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 64px auto;
  max-width: 980px;
  padding: 0 24px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--panel-line), transparent);
}
.divider svg {
  width: 22px;
  height: 22px;
  animation: spin-glow 5s linear infinite;
  filter: drop-shadow(0 0 8px rgba(47,216,255,0.6));
}
@keyframes spin-glow {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ============ section shell ============ */
section { padding: 20px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 8px 0 12px;
  color: var(--bone);
}

.section-head p {
  color: var(--bone-dim);
  font-size: 0.98rem;
}

/* ============ feature cards ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 920px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: linear-gradient(180deg, var(--panel), var(--void-2));
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 26px 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: radial-gradient(120px 80px at 20% 0%, var(--accent, var(--cyan)) , transparent 70%);
  pointer-events: none;
}
.feature-card:hover::before { opacity: 0.16; }

.feature-card .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
  color: var(--accent, var(--cyan));
}

.feature-card p {
  color: var(--bone-dim);
  font-size: 0.92rem;
  margin: 0;
}

.feature-card.pvp { --accent: var(--cyan); }
.feature-card.crates { --accent: var(--gold); }
.feature-card.economy { --accent: var(--emerald); }
.feature-card.staff { --accent: var(--violet); }

/* ============ how to join ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
@media (max-width: 780px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  border: 1px dashed var(--panel-line);
  border-radius: var(--radius);
  padding: 20px;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ember-orange);
  display: block;
  margin-bottom: 10px;
}
.step h4 {
  font-family: var(--font-ui);
  margin: 0 0 6px;
  font-size: 0.95rem;
}
.step p {
  margin: 0;
  color: var(--bone-dim);
  font-size: 0.88rem;
}

/* ============ updates / coming soon (advancement toast style) ============ */
.updates-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}

.update-toast {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: linear-gradient(90deg, rgba(21,15,36,0.9), rgba(16,10,28,0.9));
  border: 1px solid var(--panel-line);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 16px 18px;
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.5s ease forwards;
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.update-toast .tag {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 5px;
  background: rgba(255,176,32,0.14);
  color: var(--gold);
  white-space: nowrap;
  margin-top: 3px;
}
.update-toast.testing .tag {
  background: rgba(47,216,255,0.14);
  color: var(--cyan);
}
.update-toast.testing { border-left-color: var(--cyan); }

.update-toast .content h4 {
  margin: 0 0 4px;
  font-family: var(--font-ui);
  font-size: 1rem;
}
.update-toast .content p {
  margin: 0 0 6px;
  color: var(--bone-dim);
  font-size: 0.9rem;
}
.update-toast .content time {
  font-size: 0.76rem;
  color: #7d7590;
  font-family: var(--font-ui);
}

.updates-empty, .updates-error {
  text-align: center;
  color: var(--bone-dim);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  padding: 30px 0;
}

/* ============ final CTA ============ */
.cta-final {
  text-align: center;
  padding: 70px 24px 40px;
}
.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin-bottom: 16px;
}
.cta-final p { color: var(--bone-dim); margin-bottom: 26px; }

/* ============ footer ============ */
footer {
  border-top: 1px solid var(--panel-line);
  padding: 30px 24px 40px;
  margin-top: 20px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  color: var(--bone-dim);
  font-size: 0.85rem;
}
.footer-brand img { width: 26px; height: 26px; }
.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 0.85rem;
}
.footer-links a { text-decoration: none; color: var(--bone-dim); }
.footer-links a:hover { color: var(--cyan); }
