/* =========================================================
   MoonWell — Night Elf themed landing
   Two moods controllable via Tweaks: "forest" (cozy/warm) & "temple" (arcane/modern)
   ========================================================= */

:root {
  /* base night palette */
  --bg-0: #070a18;
  --bg-1: #0a0d1f;
  --bg-2: #10142a;
  --bg-3: #1a1f3a;
  --panel: rgba(20, 25, 48, 0.55);
  --panel-border: rgba(127, 184, 212, 0.14);
  --panel-border-strong: rgba(127, 184, 212, 0.28);

  /* accents */
  --arcane: #5b3a8a;
  --arcane-2: #8a5cc8;
  --moon: #7fb8d4;
  --moon-2: #c8e6ff;
  --ivory: #e8dcc0;
  --ivory-dim: #b9ad92;

  /* text */
  --text: #e8dcc0;
  --text-soft: #c6bfae;
  --text-mute: #8a8672;
  --text-dim: #5d5a4d;

  /* type */
  --f-display: "Cinzel", "Cormorant Garamond", "Times New Roman", serif;
  --f-serif: "Cormorant Garamond", "Times New Roman", serif;
  --f-sans: "Inter", -apple-system, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  /* geometry */
  --radius: 2px;
  --radius-lg: 6px;
  --maxw: 1240px;
  --pad: clamp(20px, 4vw, 48px);

  /* transitions */
  --t-fast: 180ms cubic-bezier(.2,.7,.3,1);
  --t-med: 420ms cubic-bezier(.2,.7,.3,1);
}

/* Temple variant — cooler, more monumental, slightly more arcane/purple */
body[data-variant="temple"] {
  --bg-0: #0a0718;
  --bg-1: #120a28;
  --bg-2: #1a0f38;
  --bg-3: #241a4a;
  --arcane: #7a4cbb;
  --arcane-2: #b088ee;
  --moon: #a8c8e0;
  --moon-2: #e0ecff;
  --ivory: #ede4c8;
  --panel-border: rgba(176, 136, 238, 0.18);
  --panel-border-strong: rgba(176, 136, 238, 0.32);
}

/* ------------------------- reset / base ------------------------- */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

::selection { background: color-mix(in oklab, var(--arcane-2) 40%, transparent); color: var(--ivory); }

/* ------------------------- layout helpers ------------------------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  position: relative;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moon);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.h-display {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ivory);
  line-height: 1.05;
  margin: 0;
}

.h-serif {
  font-family: var(--f-serif);
  font-weight: 400;
  color: var(--ivory);
  line-height: 1.15;
  margin: 0;
}

.lead {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--text-soft);
  font-style: italic;
}

/* ------------------------- background atmosphere ------------------------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, color-mix(in oklab, var(--arcane) 30%, transparent), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%, color-mix(in oklab, var(--moon) 10%, transparent), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, color-mix(in oklab, var(--arcane-2) 14%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 40%, var(--bg-0) 100%);
}

.bg-stars, .bg-stars-bright {
  position: absolute;
  inset: 0;
}

/* moon */
.bg-moon {
  position: absolute;
  top: 8vh;
  right: 6vw;
  width: clamp(180px, 22vw, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #f4eccf 0%, #d9cfae 35%, #9d8f68 60%, #3a3422 85%, transparent 100%);
  box-shadow:
    0 0 60px rgba(244, 236, 207, 0.15),
    0 0 140px rgba(127, 184, 212, 0.12),
    0 0 260px rgba(90, 140, 180, 0.08);
  opacity: 0.55;
  filter: blur(0.3px);
}
.bg-moon::after {
  content: "";
  position: absolute;
  inset: -15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 220, 192, 0.12), transparent 55%);
}

body[data-moon="false"] .bg-moon { display: none; }

/* fog layers */
.bg-fog {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 40% at 50% 100%, color-mix(in oklab, var(--arcane) 22%, transparent), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.7;
}

/* ------------------------- nav ------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(7,10,24,0.85), rgba(7,10,24,0.55) 70%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med), background var(--t-med);
}
.nav.scrolled {
  border-color: var(--panel-border);
  background: rgba(7,10,24,0.9);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
}
.nav-logo-mark {
  width: 32px; height: 32px;
  position: relative;
  flex-shrink: 0;
}
.nav-logo-mark svg { width: 100%; height: 100%; }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  align-items: center;
}
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--panel-border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color var(--t-fast);
}
.nav-burger:hover { border-color: var(--moon); }
.nav-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ivory);
  transition: transform var(--t-fast), opacity var(--t-fast);
  transform-origin: center;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7,10,24,0.65);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
  z-index: 38;
}
.nav-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(360px, 92vw);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(91,58,138,0.22), transparent 55%),
    linear-gradient(180deg, rgba(10,13,31,0.98), rgba(7,10,24,0.98));
  border-left: 1px solid var(--panel-border-strong);
  padding: 96px 32px 32px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 380ms cubic-bezier(.2,.7,.3,1);
  z-index: 39;
  overflow-y: auto;
}
.nav-drawer.is-open { transform: translateX(0); }

.nav-drawer-head { margin-bottom: 28px; }

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--panel-border);
  margin-bottom: 28px;
}
.nav-drawer-links a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--panel-border);
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--ivory);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 360ms ease, transform 360ms ease, color var(--t-fast);
}
.nav-drawer.is-open .nav-drawer-links a {
  opacity: 1;
  transform: none;
}
.nav-drawer-links a:hover { color: var(--moon); }
.nav-drawer-links a .num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--moon);
  font-weight: 400;
}
.nav-drawer-links a .arr { color: var(--text-mute); }

.nav-drawer-cta {
  width: 100%;
  margin-top: auto;
}
.nav-drawer-foot {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--panel-border);
  text-align: center;
}

@media (max-width: 880px) {
  .nav { position: fixed; left: 0; right: 0; }
  .nav-inner { height: 64px; gap: 16px; }
  .nav-logo { font-size: 16px; letter-spacing: 0.16em; }
  .nav-links-desktop { display: none; }
  .nav-burger { display: flex; }
  .hero { padding-top: 96px; }
}

html, body { overflow-x: hidden; max-width: 100vw; }
.nav { width: 100%; }
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color var(--t-fast);
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--moon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--panel-border-strong);
  border-radius: var(--radius);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
  background: linear-gradient(180deg, rgba(127,184,212,0.08), rgba(127,184,212,0.02));
  transition: all var(--t-fast);
}
.nav-cta:hover {
  border-color: var(--moon);
  background: linear-gradient(180deg, rgba(127,184,212,0.18), rgba(127,184,212,0.06));
  box-shadow: 0 0 20px rgba(127,184,212,0.15);
}

/* ------------------------- buttons ------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--f-sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--t-fast);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(180deg, var(--ivory) 0%, #d4c8a8 100%);
  color: #1a0f28;
  border: 1px solid var(--ivory);
  box-shadow: 0 0 0 1px rgba(232,220,192,0.2), 0 8px 32px -8px rgba(232,220,192,0.4);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(232,220,192,0.3), 0 16px 48px -8px rgba(232,220,192,0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--panel-border-strong);
}
.btn-ghost:hover {
  border-color: var(--moon);
  background: rgba(127,184,212,0.06);
}

.btn-ghost.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-ghost.is-disabled:hover { border-color: var(--panel-border-strong); background: transparent; }

/* ornamental arrow */
.btn-arrow { width: 14px; height: 10px; transition: transform var(--t-fast); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ------------------------- panels / cards ------------------------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  position: relative;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--panel-border-strong), transparent 50%);
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* corners deco */
.corners::after {
  content: "";
  position: absolute;
  top: 8px; left: 8px;
  width: 12px; height: 12px;
  border-top: 1px solid var(--moon);
  border-left: 1px solid var(--moon);
  opacity: 0.7;
}
.corners::before {
  content: "";
  position: absolute;
  bottom: 8px; right: 8px;
  width: 12px; height: 12px;
  border-bottom: 1px solid var(--moon);
  border-right: 1px solid var(--moon);
  opacity: 0.7;
  border-radius: 0;
  padding: 0;
  background: none;
  -webkit-mask: none;
  mask: none;
}

/* ------------------------- section ------------------------- */
section {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
}
.section-head {
  max-width: 780px;
  margin: 0 auto clamp(40px, 6vw, 72px);
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .eyebrow::before, .section-head .eyebrow::after {
  content: "";
  width: 32px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.section-head .eyebrow::after { display: inline-block; }

.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 24px 0;
  color: var(--moon);
  opacity: 0.7;
}
.divider-ornament::before, .divider-ornament::after {
  content: "";
  width: clamp(60px, 12vw, 140px);
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
}

/* ------------------------- scroll reveal ------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(.2,.7,.3,1), transform 700ms cubic-bezier(.2,.7,.3,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------- hero ------------------------- */
.hero {
  min-height: 100vh;
  padding-top: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.hero-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 80px;
}
.hero-pretitle {
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(10,13,31,0.5);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moon);
}
.hero-pretitle .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #6edc8e;
  box-shadow: 0 0 10px #6edc8e;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(52px, 10vw, 140px);
  line-height: 0.92;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #f4eccf 0%, #e8dcc0 40%, #9d8f68 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 80px rgba(232,220,192,0.12);
}
.hero-title .ornament {
  display: block;
  font-size: 0.32em;
  letter-spacing: 0.6em;
  color: var(--moon);
  font-family: var(--f-display);
  font-weight: 400;
  margin-top: 18px;
  -webkit-text-fill-color: var(--moon);
  text-shadow: none;
}

.hero-tagline {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 26px);
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.45;
}

.hero-meta {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--moon);
  transform: rotate(45deg);
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-launcher-note {
  margin-top: 28px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.hero-launcher-note .os { color: var(--moon); }
.hero-launcher-note .sep { color: var(--text-dim); }

.launcher-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0 0;
  text-align: left;
}
.launcher-step {
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(16,20,42,0.5), rgba(10,13,31,0.3));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--t-fast);
}
.launcher-step:hover { border-color: var(--panel-border-strong); }
.launcher-step .n {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--moon);
}
.launcher-step .t {
  font-family: var(--f-serif);
  font-size: 17px;
  line-height: 1.35;
  color: var(--ivory);
}
@media (max-width: 700px) {
  .launcher-steps { grid-template-columns: 1fr; }
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.7;
}
.hero-scroll::after {
  content: "";
  width: 1px; height: 32px;
  background: linear-gradient(180deg, var(--moon), transparent);
  animation: scrollHint 2.4s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ------------------------- realm status ------------------------- */
.realm {
  padding: 0;
  margin-top: -60px;
  position: relative;
  z-index: 2;
}
.realm-panel {
  padding: 28px 36px;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto auto;
  align-items: center;
  gap: 32px;
  background: linear-gradient(180deg, rgba(16,20,42,0.85), rgba(10,13,31,0.92));
  border: 1px solid var(--panel-border-strong);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}
.realm-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 24px;
  border-right: 1px solid var(--panel-border);
}
.realm-status .orb {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #6edc8e;
  box-shadow: 0 0 12px #6edc8e, 0 0 28px rgba(110,220,142,0.4);
  animation: pulse 2.2s ease-in-out infinite;
}
.realm-status .label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6edc8e;
}
.realm-name {
  font-family: var(--f-display);
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory);
}
.realm-name small {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 400;
}
.realm-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px;
  border-left: 1px solid var(--panel-border);
  min-width: 0;
}
.realm-stat .k {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.realm-stat .v {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--ivory);
  letter-spacing: 0.03em;
}
.realm-stat .v.small { font-size: 14px; letter-spacing: 0.12em; }

@media (max-width: 980px) {
  .realm-panel { grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px; }
  .realm-status, .realm-stat { border: 0; padding: 0; }
}

/* ------------------------- about ------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about-copy h2 {
  font-size: clamp(36px, 5vw, 60px);
  margin-bottom: 28px;
}
.about-copy p {
  font-family: var(--f-serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 18px;
}
.about-copy p:first-of-type::first-letter {
  font-family: var(--f-display);
  font-size: 4em;
  float: left;
  line-height: 0.8;
  padding: 6px 14px 0 0;
  color: var(--moon);
}
.about-quote {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--text);
  padding: 24px 28px;
  border-left: 2px solid var(--moon);
  margin: 32px 0 0;
  background: linear-gradient(90deg, rgba(127,184,212,0.04), transparent);
}
.about-quote cite {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  font-style: normal;
  font-family: var(--f-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.about-visual {
  aspect-ratio: 3/4;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(127,184,212,0.25), transparent 60%),
    linear-gradient(180deg, rgba(90,60,140,0.2), rgba(10,13,31,0.5));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-visual .placeholder-note {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  text-transform: uppercase;
  text-align: center;
  padding: 10px;
  background: rgba(7,10,24,0.7);
  border: 1px dashed var(--panel-border-strong);
  border-radius: var(--radius);
}
.about-stats {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moon);
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ------------------------- features ------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.feature {
  grid-column: span 4;
  padding: 32px 28px;
  background: linear-gradient(180deg, rgba(16,20,42,0.6), rgba(10,13,31,0.4));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--t-med);
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(127,184,212,0.1), transparent 50%);
  opacity: 0;
  transition: opacity var(--t-med);
  pointer-events: none;
}
.feature:hover {
  border-color: var(--panel-border-strong);
  transform: translateY(-2px);
}
.feature:hover::before { opacity: 1; }

.feature.span-6 { grid-column: span 6; }
.feature.span-8 { grid-column: span 8; }
.feature.span-12 { grid-column: span 12; }

.feature-num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-mute);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
}
.feature-num .tag {
  color: var(--moon);
}
.feature-title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ivory);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}
.feature-title sup {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--arcane-2);
  padding: 3px 8px;
  border: 1px solid var(--arcane-2);
  border-radius: 2px;
  margin-left: 10px;
  vertical-align: middle;
  font-weight: 400;
  text-transform: uppercase;
}
.feature-desc {
  font-family: var(--f-serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0;
}
.feature-icon {
  width: 48px; height: 48px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--moon);
  position: relative;
}
.feature-icon svg { width: 100%; height: 100%; }

.feature-visual {
  margin-top: 24px;
  aspect-ratio: 16/7;
  border: 1px dashed var(--panel-border-strong);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  text-transform: uppercase;
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(127,184,212,0.03) 10px 11px);
}

@media (max-width: 900px) {
  .feature, .feature.span-6, .feature.span-8, .feature.span-12 { grid-column: span 12; }
}

/* progression strip */
.progression {
  margin-top: 60px;
  padding: 36px 40px;
  background: linear-gradient(180deg, rgba(26,15,56,0.4), rgba(10,13,31,0.6));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.progression-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 10px;
}
.progression-title h3 {
  font-family: var(--f-display);
  font-size: 22px;
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
  font-weight: 500;
}
.progression-title .meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.progression-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.progression-step {
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(10,13,31,0.9), rgba(7,10,24,0.9));
  position: relative;
  transition: all var(--t-fast);
}
.progression-step.current {
  background: linear-gradient(180deg, rgba(91,58,138,0.3), rgba(127,184,212,0.1));
}
.progression-step.locked {
  opacity: 0.45;
}
.progression-step .name {
  font-family: var(--f-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--ivory);
  margin-bottom: 4px;
}
.progression-step .name small {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-left: 8px;
  font-weight: 400;
}
.progression-step .status {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.progression-step.current .status { color: var(--moon); }
.progression-step.live .status { color: #6edc8e; }

@media (max-width: 700px) {
  .progression-track { grid-template-columns: 1fr; }
}

/* ------------------------- news ------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}
.news-card {
  padding: 28px;
  background: linear-gradient(180deg, rgba(16,20,42,0.5), rgba(10,13,31,0.3));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--t-fast);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.news-card:hover {
  border-color: var(--panel-border-strong);
  transform: translateY(-2px);
}
.news-card.featured {
  grid-row: span 2;
  padding: 40px;
  background:
    radial-gradient(ellipse at 80% -10%, rgba(91,58,138,0.28), transparent 55%),
    linear-gradient(180deg, rgba(16,20,42,0.7), rgba(10,13,31,0.5));
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.news-tag {
  color: var(--moon);
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.news-tag.hotfix { color: #e8a76b; }
.news-tag.event { color: #d4a8ff; }
.news-title {
  font-family: var(--f-display);
  font-weight: 500;
  color: var(--ivory);
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.2;
}
.news-card.featured .news-title { font-size: 32px; }
.news-card:not(.featured) .news-title { font-size: 19px; }
.news-excerpt {
  font-family: var(--f-serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0;
}
.news-card.featured .news-placeholder {
  aspect-ratio: 16/8;
  border: 1px dashed var(--panel-border-strong);
  border-radius: var(--radius);
  margin-top: 4px;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(127,184,212,0.03) 12px 13px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.news-read {
  margin-top: auto;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moon);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-card.featured { grid-row: auto; padding: 28px; }
  .news-card.featured .news-title { font-size: 24px; }
}

/* ------------------------- footer ------------------------- */
.footer {
  padding: clamp(80px, 10vw, 140px) 0 48px;
  border-top: 1px solid var(--panel-border);
  position: relative;
  margin-top: 80px;
}
.footer-cta {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 100px;
}
.footer-cta h2 {
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 24px;
}
.footer-cta p {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--text-soft);
  margin: 0 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-top: 56px;
  border-top: 1px solid var(--panel-border);
}
.footer-col h4 {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moon);
  margin: 0 0 20px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-soft);
  padding: 5px 0;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--ivory); }

.footer-brand {
  max-width: 360px;
}
.footer-brand p {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--text-mute);
  margin: 16px 0 0;
  line-height: 1.55;
}
.footer-bottom {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }
}

/* ------------------------- tweaks panel ------------------------- */
.tweaks {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  background: rgba(7,10,24,0.95);
  border: 1px solid var(--panel-border-strong);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  min-width: 240px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  font-family: var(--f-sans);
  display: none;
}
.tweaks.open { display: block; }
.tweaks-title {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moon);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tweaks-title button { color: var(--text-mute); font-size: 14px; }
.tweak-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--panel-border);
  font-size: 13px;
  color: var(--text-soft);
}
.tweak-row:first-of-type { border-top: 0; }
.tweak-row label { letter-spacing: 0.04em; }
.tweak-seg {
  display: inline-flex;
  border: 1px solid var(--panel-border-strong);
  border-radius: 2px;
  overflow: hidden;
}
.tweak-seg button {
  padding: 5px 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--f-mono);
  color: var(--text-mute);
  transition: all var(--t-fast);
}
.tweak-seg button.active {
  background: var(--moon);
  color: var(--bg-0);
}
.tweak-switch {
  width: 34px; height: 18px;
  border-radius: 999px;
  background: var(--panel-border-strong);
  position: relative;
  cursor: pointer;
  transition: background var(--t-fast);
}
.tweak-switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: var(--text-soft);
  border-radius: 50%;
  transition: transform var(--t-fast);
}
.tweak-switch.on { background: var(--moon); }
.tweak-switch.on::after { transform: translateX(16px); background: var(--bg-0); }

/* ------------------------- particles canvas ------------------------- */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
body[data-particles="false"] #particles { display: none; }

/* ------------------------- join / registration ------------------------- */
.join-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.join-intro {
  position: sticky;
  top: 96px;
}
.join-note {
  margin-top: 32px;
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(91,58,138,0.14), rgba(91,58,138,0.04));
  border: 1px solid var(--panel-border);
  border-left: 2px solid var(--arcane-2);
  border-radius: var(--radius-lg);
}
.join-note-k {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--arcane-2);
  margin-bottom: 8px;
}
.join-note-v {
  font-family: var(--f-serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-soft);
}

.join-card {
  position: relative;
  padding: 40px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(127,184,212,0.08), transparent 60%),
    linear-gradient(180deg, rgba(16,20,42,0.9), rgba(10,13,31,0.9));
  border: 1px solid var(--panel-border-strong);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  box-shadow: 0 40px 120px -40px rgba(91,58,138,0.35);
}
.join-card-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--moon);
  opacity: 0.7;
}
.join-card-corner.tl { top: 10px; left: 10px; border-top: 1px solid; border-left: 1px solid; }
.join-card-corner.tr { top: 10px; right: 10px; border-top: 1px solid; border-right: 1px solid; }
.join-card-corner.bl { bottom: 10px; left: 10px; border-bottom: 1px solid; border-left: 1px solid; }
.join-card-corner.br { bottom: 10px; right: 10px; border-bottom: 1px solid; border-right: 1px solid; }

.join-field { margin-bottom: 20px; }
.join-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.join-row .join-field { margin-bottom: 20px; }

.join-label {
  display: block;
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 8px;
}
.join-input {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(7,10,24,0.7);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  transition: all var(--t-fast);
}
.join-input:focus-within {
  border-color: var(--moon);
  box-shadow: 0 0 0 3px rgba(127,184,212,0.1);
  background: rgba(7,10,24,0.9);
}
.join-input input {
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--ivory);
  font-family: var(--f-sans);
  font-size: 15px;
}
.join-input input::placeholder { color: var(--text-dim); }
.join-input-icon {
  width: 18px; height: 18px;
  margin-left: 14px;
  color: var(--text-mute);
  flex-shrink: 0;
}
.join-input-icon svg { width: 100%; height: 100%; }
.join-input-icon + input { padding-left: 10px; }

.join-hint {
  font-family: var(--f-sans);
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-mute);
  margin-top: 8px;
}
.join-error {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #e8a76b;
  margin-top: 8px;
}
.join-field.has-error .join-input {
  border-color: rgba(232,167,107,0.5);
}

.join-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0 20px;
  font-family: var(--f-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-soft);
  cursor: pointer;
  user-select: none;
}
.join-check input { position: absolute; opacity: 0; pointer-events: none; }
.join-check .box {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1px solid var(--panel-border-strong);
  border-radius: 2px;
  background: rgba(7,10,24,0.7);
  position: relative;
  margin-top: 2px;
  transition: all var(--t-fast);
}
.join-check input:checked + .box {
  background: var(--moon);
  border-color: var(--moon);
}
.join-check input:checked + .box::after {
  content: "";
  position: absolute;
  top: 2px; left: 5px;
  width: 5px; height: 9px;
  border-right: 2px solid var(--bg-0);
  border-bottom: 2px solid var(--bg-0);
  transform: rotate(45deg);
}
.join-check a { color: var(--moon); text-decoration: underline; text-decoration-color: rgba(127,184,212,0.3); }
.join-check a:hover { text-decoration-color: var(--moon); }

.join-submit {
  width: 100%;
  margin-top: 8px;
  padding: 18px 32px;
}
.join-submit.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.3);
  box-shadow: none;
}
.join-submit.is-disabled:hover { transform: none; }

.join-world {
  margin-top: 36px;
  padding: 20px 22px;
  background: rgba(7,10,24,0.5);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
}
.join-world-head {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moon);
  margin-bottom: 10px;
}
.join-world-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--ivory);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.join-world-name svg { color: var(--moon); }
.join-world-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.join-world-grid > div { display: flex; flex-direction: column; gap: 2px; }
.join-world-grid .k {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.join-world-grid .v {
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--ivory);
  letter-spacing: 0.04em;
}

.join-success {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 40px;
}
.join-success-mark {
  color: var(--moon);
  margin-bottom: 20px;
  display: inline-block;
  filter: drop-shadow(0 0 20px rgba(127,184,212,0.4));
}

@media (max-width: 900px) {
  .join-grid { grid-template-columns: 1fr; }
  .join-intro { position: static; }
  .join-card { padding: 28px; }
  .join-row { grid-template-columns: 1fr; }
}

/* ------------------------- utility ------------------------- */
.ornament-svg { display: inline-block; vertical-align: middle; }
