/*
   SHADOWNEX — premium cyber interface
   No framework, no external font, no tracking.
*/

:root {
  color-scheme: dark;
  --bg: #0e0f13;
  --bg-soft: #13151a;
  --surface: rgba(26, 28, 34, 0.72);
  --surface-strong: #1b1d23;
  --surface-hover: #20232a;
  --text: #f5f6f8;
  --text-soft: #d8dbe2;
  --muted: #989da9;
  --muted-2: #6f7480;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #ff2d3a;
  --accent-bright: #ff5963;
  --accent-dark: #8d080e;
  --accent-rgb: 255, 45, 58;
  --silver: #d7dbe1;
  --success: #4dd982;
  --warning: #ffbb55;
  --danger: #ff4d58;
  --discord: #7b86ff;
  --minecraft: #65c858;
  --atm: #a882ff;
  --arcanum: #b98cff;
  --ark: #ff533d;
  --shadow-sm: 0 10px 32px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 34px 90px rgba(0, 0, 0, 0.38);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --radius-xl: 42px;
  --container: 1180px;
  --header-height: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 8%, rgba(var(--accent-rgb), .17), transparent 29rem),
    radial-gradient(circle at 8% 22%, rgba(255, 255, 255, .055), transparent 25rem),
    linear-gradient(180deg, #15161b 0%, #0e0f13 34%, #111217 72%, #0e0f13 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-page="minecraft"] { --page-accent: var(--minecraft); --page-rgb: 101, 200, 88; }
body[data-page="atm"] { --page-accent: var(--atm); --page-rgb: 168, 130, 255; }
body[data-page="arcanum"] { --page-accent: var(--arcanum); --page-rgb: 185, 140, 255; }
body[data-page="ark"] { --page-accent: var(--ark); --page-rgb: 255, 83, 61; }
body[data-page="discord"] { --page-accent: var(--discord); --page-rgb: 123, 134, 255; }
body[data-page="tickets"] { --page-accent: var(--accent-bright); --page-rgb: 255, 89, 99; }
body[data-page="faq"] { --page-accent: var(--silver); --page-rgb: 215, 219, 225; }

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
}

body::before {
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 72%);
}

body::after {
  z-index: 30;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

::selection {
  color: #fff;
  background: rgba(var(--accent-rgb), .45);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  background: #111218;
  transform: translateY(-150%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 2px;
  pointer-events: none;
}

.site-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), #fff);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), .7);
}

#network-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: .38;
  pointer-events: none;
}

.ambient-light {
  position: fixed;
  z-index: -1;
  width: 44rem;
  height: 44rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .1;
  pointer-events: none;
  background: var(--accent);
  transform: translate3d(var(--mx, 60vw), var(--my, 12vh), 0);
  transition: transform .2s linear;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 40px), 860px);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  margin: 0 0 18px;
  padding: 6px 11px;
  border: 1px solid rgba(var(--accent-rgb), .24);
  border-radius: 999px;
  color: #f7b9bd;
  background: rgba(var(--accent-rgb), .07);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 15px rgba(var(--accent-rgb), .9);
  content: "";
}

.mono-label {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(125deg, #fff 8%, #cfd2d9 44%, var(--accent-bright) 72%, #fff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: text-shimmer 7s linear infinite;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -.045em;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 8.4vw, 7.8rem);
  line-height: .92;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: .98;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.1;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.lead {
  max-width: 680px;
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  line-height: 1.68;
}

.section {
  position: relative;
  padding: 112px 0;
}

.section-tight {
  padding: 72px 0;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 440px);
  align-items: end;
  gap: 40px;
  margin-bottom: 42px;
}

.section-header p {
  margin: 0;
}

.section-kicker {
  margin-bottom: 13px;
  color: var(--accent-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.glass-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.018) 38%),
    var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
}

.glass-card::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(500px circle at var(--card-x, 50%) var(--card-y, 0%), rgba(255,255,255,.12), transparent 42%);
  opacity: .7;
  content: "";
}

.glass-card > * {
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 100;
  width: min(calc(100% - 28px), 1240px);
  transform: translateX(-50%);
}

.nav-shell {
  display: flex;
  align-items: center;
  min-height: var(--header-height);
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  background: rgba(17, 18, 23, .68);
  box-shadow: 0 18px 60px rgba(0,0,0,.24);
  backdrop-filter: blur(26px) saturate(130%);
  -webkit-backdrop-filter: blur(26px) saturate(130%);
  transition: min-height .35s var(--ease), background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.site-header.is-scrolled .nav-shell {
  min-height: 62px;
  border-color: rgba(255,255,255,.14);
  background: rgba(13,14,18,.88);
  box-shadow: 0 18px 70px rgba(0,0,0,.42);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  min-width: 186px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 7px 16px rgba(var(--accent-rgb), .24));
}

.brand-wordmark {
  width: 142px;
  height: auto;
}

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

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 12px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 650;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.055);
}

.nav-link[aria-current="page"] {
  color: #fff;
  background: rgba(var(--accent-rgb), .11);
}

.nav-link[aria-current="page"]::after {
  position: absolute;
  right: 14px;
  bottom: 6px;
  left: 14px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), .9);
  content: "";
}

.nav-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.command-trigger,
.icon-button,
.mobile-toggle {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.command-trigger:hover,
.icon-button:hover,
.mobile-toggle:hover {
  border-color: var(--line-strong);
  background: rgba(255,255,255,.08);
}

.command-trigger {
  grid-auto-flow: column;
  gap: 9px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: .78rem;
}

.command-trigger kbd {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text-soft);
  background: rgba(255,255,255,.055);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .66rem;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.mobile-toggle span,
.mobile-toggle::before,
.mobile-toggle::after {
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform .25s ease, opacity .25s ease;
  content: "";
}

.mobile-toggle {
  gap: 4px;
}

.mobile-toggle[aria-expanded="true"] span { opacity: 0; }
.mobile-toggle[aria-expanded="true"]::before { transform: translateY(5.5px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"]::after { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-panel {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: .92rem;
  font-weight: 750;
  cursor: pointer;
  transition: transform .24s var(--ease), border-color .24s ease, background .24s ease, box-shadow .24s ease, color .24s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent) 45%, #a40c14);
  box-shadow: 0 12px 30px rgba(var(--accent-rgb), .22), inset 0 1px rgba(255,255,255,.28);
}

.btn-primary:hover {
  box-shadow: 0 18px 38px rgba(var(--accent-rgb), .34), inset 0 1px rgba(255,255,255,.32);
}

.btn-secondary {
  color: var(--text-soft);
  border-color: var(--line-strong);
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px rgba(255,255,255,.06);
}

.btn-secondary:hover {
  color: #fff;
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.085);
}

.btn-quiet {
  min-height: 40px;
  padding: 0 12px;
  color: var(--muted);
  border-color: var(--line);
  background: transparent;
}

.btn-quiet:hover {
  color: #fff;
  border-color: var(--line-strong);
  background: rgba(255,255,255,.04);
}

.btn svg,
.icon-button svg,
.command-trigger svg,
.nav-cta svg {
  width: 18px;
  height: 18px;
}

.btn[disabled] {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.nav-cta {
  min-height: 42px;
  padding-inline: 14px;
  border-radius: 12px;
  font-size: .84rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Home hero */
.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: center;
  padding: 138px 0 86px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  align-items: center;
  gap: 56px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 880px;
}

.hero h1 .line {
  display: block;
}

.hero-subtitle {
  max-width: 660px;
  margin-bottom: 32px;
  color: #b8bdc7;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.68;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: .82rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(77, 217, 130, .7);
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 600px;
  place-items: center;
  isolation: isolate;
}

.hero-orbit {
  position: absolute;
  width: min(100%, 550px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(var(--accent-rgb), .14), transparent 52%),
    conic-gradient(from 35deg, transparent, rgba(var(--accent-rgb),.24), transparent 28%, rgba(255,255,255,.06), transparent 60%);
  box-shadow: inset 0 0 100px rgba(255,255,255,.03), 0 0 110px rgba(var(--accent-rgb),.08);
  animation: slow-spin 28s linear infinite;
}

.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  inset: 9%;
  border: 1px dashed rgba(255,255,255,.1);
  border-radius: 50%;
  content: "";
}

.hero-orbit::after {
  inset: 24%;
  border-style: solid;
  border-color: rgba(var(--accent-rgb),.16);
}

.hero-logo-wrap {
  position: relative;
  z-index: 2;
  width: min(84%, 480px);
  filter: drop-shadow(0 36px 50px rgba(0,0,0,.55)) drop-shadow(0 0 45px rgba(var(--accent-rgb),.16));
  animation: float-logo 6s var(--ease) infinite;
}

.hero-logo-wrap::after {
  position: absolute;
  right: 18%;
  bottom: -10%;
  left: 18%;
  height: 12%;
  border-radius: 50%;
  background: rgba(0,0,0,.58);
  filter: blur(20px);
  content: "";
}

.floating-status {
  position: absolute;
  z-index: 3;
  display: grid;
  min-width: 166px;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(19,20,25,.78);
  box-shadow: 0 18px 42px rgba(0,0,0,.3);
  backdrop-filter: blur(18px);
}

.floating-status strong {
  font-size: 1rem;
}

.floating-status small {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.floating-status.a { top: 14%; left: 1%; animation: float-card 5s ease-in-out infinite; }
.floating-status.b { right: -2%; bottom: 20%; animation: float-card 6s ease-in-out 1s infinite; }
.floating-status.c { bottom: 4%; left: 12%; animation: float-card 5.5s ease-in-out .5s infinite; }

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

.status-dot {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 14px rgba(77,217,130,.76);
}

.status-dot::after {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(77,217,130,.45);
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
  content: "";
}

.status-dot.offline,
.status-dot.error {
  background: var(--danger);
  box-shadow: 0 0 14px rgba(255,77,88,.55);
}

.status-dot.loading {
  background: var(--warning);
  box-shadow: 0 0 14px rgba(255,187,85,.5);
}

.status-dot.planned {
  background: var(--arcanum);
  box-shadow: 0 0 14px rgba(185,140,255,.65);
}

.status-dot.planned::after {
  border-color: rgba(185,140,255,.48);
}

.system-strip {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,.022);
}

.system-strip-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  animation: ticker 32s linear infinite;
}

.system-strip-item {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.system-strip-item strong { color: var(--text-soft); }
.system-strip-item::after { margin-left: 20px; color: rgba(255,255,255,.2); content: "//"; }

/* Server overview */
.server-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.server-card {
  grid-column: span 6;
  min-height: 355px;
  padding: 28px;
  transition: transform .35s var(--ease), border-color .35s ease, box-shadow .35s ease;
  transform-style: preserve-3d;
}

.server-card:hover {
  border-color: rgba(var(--accent-rgb), .24);
  box-shadow: 0 30px 70px rgba(0,0,0,.36), 0 0 0 1px rgba(var(--accent-rgb),.06);
}

.server-card-wide {
  grid-column: span 12;
  min-height: 300px;
}

.server-card-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  height: 100%;
  align-items: end;
  gap: 24px;
}

.server-card-wide .server-card-inner {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
}

.server-type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.server-type .status-dot { width: 6px; height: 6px; }

.server-card h3 {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.server-card p {
  max-width: 520px;
  margin-bottom: 22px;
}

.server-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.metric-pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255,255,255,.035);
  font-size: .74rem;
  font-weight: 650;
}

.metric-pill span { color: var(--muted); font-weight: 500; }

.server-art {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 45%, rgba(var(--art-rgb, 255,45,58), .23), transparent 54%),
    linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  overflow: hidden;
}

.server-art::after {
  position: absolute;
  inset: 0;
  opacity: .4;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle, black, transparent 75%);
  content: "";
}

.server-art img {
  position: relative;
  z-index: 1;
  width: 68%;
  max-height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(0,0,0,.45));
}

.server-art.discord-art::before {
  position: relative;
  z-index: 1;
  color: #aab1ff;
  font-size: 5.5rem;
  font-weight: 900;
  letter-spacing: -.12em;
  text-shadow: 0 18px 36px rgba(0,0,0,.4), 0 0 40px rgba(123,134,255,.3);
  content: "DC";
}

.atm-glyph {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100px;
  height: 100px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, #a882ff, #5d3bac 65%, #242738);
  box-shadow: 18px 18px 0 rgba(168,130,255,.12), -18px -18px 0 rgba(255,255,255,.05), 0 28px 45px rgba(0,0,0,.4);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.08em;
  transform: rotate(-7deg);
}

.atm-glyph small {
  position: absolute;
  right: 9px;
  bottom: 8px;
  color: rgba(255,255,255,.7);
  font-size: .55rem;
  letter-spacing: .04em;
}

/* Bento */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(180px, auto);
  gap: 18px;
}

.bento-card {
  grid-column: span 4;
  padding: 26px;
}

.bento-card.large { grid-column: span 8; }
.bento-card.tall { grid-row: span 2; }
.bento-card.full { grid-column: span 12; }

.bento-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 42px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), .25);
  border-radius: 14px;
  color: var(--accent-bright);
  background: rgba(var(--accent-rgb), .09);
}

.bento-icon svg { width: 22px; height: 22px; }
.bento-card p { margin-bottom: 0; }

.live-console {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.live-console pre {
  margin: 20px 0 0;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  color: #c8ccd5;
  background: rgba(4,5,7,.58);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

.live-console .cmd { color: var(--accent-bright); }
.live-console .ok { color: var(--success); }
.live-console .dim { color: var(--muted-2); }


/* Clear, player-friendly status overview */
.network-overview {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.network-overview-head,
.network-overview-title,
.network-service,
.network-overview-foot {
  display: flex;
  align-items: center;
}

.network-overview-head {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.network-overview-title {
  align-items: flex-start;
  gap: 16px;
}

.network-overview-title .bento-icon {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.network-overview-title h3 {
  margin-bottom: 4px;
}

.network-overview-title p {
  max-width: 520px;
  margin: 0;
}

.network-refresh {
  flex: 0 0 auto;
}

.network-status-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.network-status-row {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 16px;
  background: rgba(4,5,8,.38);
  transition: border-color .22s ease, background .22s ease, transform .22s var(--ease);
}

.network-status-row:hover {
  border-color: rgba(255,255,255,.17);
  background: rgba(255,255,255,.055);
  transform: translateY(-2px);
}

.network-service {
  min-width: 0;
  gap: 11px;
}

.network-service > span,
.network-state {
  display: grid;
  gap: 2px;
}

.network-service strong,
.network-state strong {
  color: var(--text-soft);
  font-size: .84rem;
}

.network-service small,
.network-state small,
.network-overview-foot {
  color: var(--muted);
  font-size: .7rem;
}

.network-state {
  flex: 0 0 auto;
  justify-items: end;
  text-align: right;
}

.network-overview-foot {
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.network-overview-foot strong {
  color: var(--text-soft);
  font-weight: 650;
}

/* Journey */
.journey {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: journey;
}

.journey-step {
  position: relative;
  min-height: 270px;
  padding: 28px;
  counter-increment: journey;
}

.journey-step::after {
  position: absolute;
  right: 18px;
  bottom: 2px;
  color: rgba(255,255,255,.035);
  font-size: 7.4rem;
  font-weight: 900;
  letter-spacing: -.08em;
  line-height: 1;
  content: "0" counter(journey);
}

.journey-number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 64px;
  color: var(--accent-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.journey-number::before {
  width: 22px;
  height: 1px;
  background: var(--accent);
  content: "";
}

/* CTA */
.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  min-height: 320px;
  padding: clamp(34px, 6vw, 70px);
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), .24);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 78% 20%, rgba(var(--accent-rgb), .23), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.015) 48%),
    rgba(23,24,30,.82);
  box-shadow: var(--shadow-lg);
}

.cta-panel::before {
  position: absolute;
  pointer-events: none;
  top: -45%;
  right: -8%;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255,255,255,.02), 0 0 0 120px rgba(255,255,255,.012);
  content: "";
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel h2 { max-width: 780px; }
.cta-panel p { max-width: 680px; margin-bottom: 0; }

/* Subpage hero */
.page-hero {
  position: relative;
  min-height: 78svh;
  padding: 150px 0 78px;
  overflow: hidden;
}

.page-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
  content: "";
}

.page-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  min-height: 610px;
  align-items: center;
  gap: 60px;
}

.page-hero h1 {
  font-size: clamp(3.3rem, 8vw, 7.1rem);
}

/* ArcanumLand is a long wordmark; keep it inside the copy column instead of
   letting the illustration cover the final letters. */
body[data-page="arcanum"] .page-hero h1 {
  font-size: clamp(3.1rem, 5.6vw, 5.2rem);
}

.page-hero .lead {
  margin-bottom: 30px;
}

.page-visual {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
}

.page-visual::before {
  position: absolute;
  width: min(92%, 490px);
  aspect-ratio: 1;
  border: 1px solid rgba(var(--page-rgb, 255,45,58), .25);
  border-radius: 36%;
  background:
    radial-gradient(circle, rgba(var(--page-rgb,255,45,58), .22), transparent 58%),
    linear-gradient(145deg, rgba(255,255,255,.06), transparent 58%);
  box-shadow: inset 0 0 120px rgba(255,255,255,.025), 0 40px 90px rgba(0,0,0,.36);
  transform: rotate(12deg);
  content: "";
}

.page-visual::after {
  position: absolute;
  width: 56%;
  height: 12%;
  bottom: 10%;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  filter: blur(24px);
  content: "";
}

.page-visual > img,
.page-visual > .atm-glyph,
.page-visual > .discord-glyph,
.page-visual > .support-glyph {
  position: relative;
  z-index: 2;
  width: min(74%, 390px);
  max-height: 390px;
  object-fit: contain;
  filter: drop-shadow(0 34px 44px rgba(0,0,0,.5));
  animation: float-logo 6s var(--ease) infinite;
}

.page-visual .atm-glyph {
  width: 210px;
  height: 210px;
  border-radius: 42px;
  font-size: 4.5rem;
  box-shadow: 34px 34px 0 rgba(168,130,255,.12), -26px -26px 0 rgba(255,255,255,.045), 0 40px 80px rgba(0,0,0,.46);
}

.page-visual .atm-glyph small {
  right: 22px;
  bottom: 18px;
  font-size: .85rem;
}

.discord-glyph,
.support-glyph {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 38%;
  color: #fff;
  background: linear-gradient(145deg, rgba(var(--page-rgb), .95), rgba(31,33,46,.94));
  box-shadow: inset 0 1px rgba(255,255,255,.3), 0 35px 70px rgba(0,0,0,.4);
  font-size: 6rem;
  font-weight: 900;
  letter-spacing: -.12em;
}

.support-glyph {
  border-radius: 32%;
  color: var(--accent-bright);
  background: linear-gradient(145deg, #2b2d35, #17181d);
}

.support-glyph svg { width: 46%; height: 46%; }

.hero-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
}

.hero-stat {
  min-width: 132px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.035);
}

.hero-stat strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 1rem;
}

.hero-stat span {
  color: var(--muted);
  font-size: .72rem;
}

.ip-console {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 12px;
  margin: 8px 0 0;
  padding: 8px 8px 8px 15px;
  border: 1px solid rgba(var(--page-rgb,255,45,58), .28);
  border-radius: 15px;
  background: rgba(5,6,8,.48);
}

.ip-console code {
  overflow: hidden;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ip-console .btn {
  min-height: 38px;
  padding-inline: 12px;
  border-radius: 10px;
  font-size: .77rem;
}


.inline-link {
  color: var(--page-accent, var(--accent-bright));
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(var(--page-rgb, 255,89,99), .45);
  text-underline-offset: 3px;
}

.inline-link:hover {
  color: #fff;
}

.planned-console {
  border-color: rgba(185,140,255,.24);
  background: linear-gradient(135deg, rgba(185,140,255,.10), rgba(255,255,255,.025));
}

.planned-console code {
  color: #ded0ff;
}

/* Detail sections */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  min-height: 155px;
  padding: 22px;
}

.stat-card strong {
  display: block;
  margin: 22px 0 6px;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  letter-spacing: -.04em;
}

.stat-card span {
  color: var(--muted);
  font-size: .82rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 250px;
  padding: 26px;
}

.feature-card .feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 52px;
  place-items: center;
  border: 1px solid rgba(var(--page-rgb,255,45,58), .24);
  border-radius: 14px;
  color: var(--page-accent, var(--accent-bright));
  background: rgba(var(--page-rgb,255,45,58), .08);
}

.feature-icon svg { width: 21px; height: 21px; }
.feature-card p { margin-bottom: 0; }

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: start;
  gap: 54px;
}

.sticky-copy {
  position: sticky;
  top: 130px;
}

.steps {
  display: grid;
  gap: 12px;
  counter-reset: steps;
}

.step-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  min-height: 150px;
  padding: 22px;
  counter-increment: steps;
}

.step-index {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(var(--page-rgb,255,45,58), .25);
  border-radius: 14px;
  color: var(--page-accent, var(--accent-bright));
  background: rgba(var(--page-rgb,255,45,58), .08);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .76rem;
  font-weight: 800;
}

.step-index::before { content: "0" counter(steps); }
.step-card p { margin-bottom: 0; }
.step-card code { color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text-soft);
  background: rgba(255,255,255,.035);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .75rem;
}

.chip::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--page-accent, var(--accent));
  box-shadow: 0 0 9px rgba(var(--page-rgb,255,45,58),.7);
  content: "";
}

.rule-list {
  display: grid;
  gap: 10px;
}

.rule-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.rule-item:hover {
  border-color: rgba(var(--page-rgb,255,45,58), .24);
  background: rgba(255,255,255,.045);
  transform: translateX(4px);
}

.rule-num {
  color: var(--page-accent, var(--accent-bright));
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.rule-item p { margin: 0; }
.rule-item strong { color: #fff; }

.map-grid,
.category-grid,
.channel-grid,
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.map-card,
.category-card,
.channel-card,
.role-card {
  padding: 22px;
}

.map-card {
  min-height: 255px;
}

.map-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 38px;
  place-items: center;
  border: 1px solid rgba(var(--page-rgb,255,45,58),.24);
  border-radius: 14px;
  color: var(--page-accent, var(--accent-bright));
  background: rgba(var(--page-rgb,255,45,58),.08);
  font-size: 1.25rem;
}

.map-card .tag { margin-bottom: 14px; }
.map-card p { margin-bottom: 0; }

/* Discord */
.channel-card {
  min-height: 155px;
}

.channel-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 750;
}

.channel-name::before {
  color: var(--discord);
  content: "#";
}

.channel-card p { margin-bottom: 0; font-size: .9rem; }

.role-card {
  display: flex;
  min-height: 86px;
  align-items: center;
  gap: 14px;
}

.role-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--role-color, #fff);
  box-shadow: 0 0 16px color-mix(in srgb, var(--role-color, #fff) 60%, transparent);
}

.role-card strong { display: block; }
.role-card span { color: var(--muted); font-size: .8rem; }

/* FAQ */
.faq-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  margin-bottom: 28px;
}

.search-box {
  position: relative;
}

.search-box svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-box input,
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #fff;
  background: rgba(255,255,255,.035);
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.search-box input {
  min-height: 52px;
  padding: 0 16px 0 48px;
}

.search-box input:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(var(--accent-rgb), .5);
  background: rgba(255,255,255,.055);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.08);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.filter-btn:hover,
.filter-btn.is-active {
  color: #fff;
  border-color: rgba(var(--accent-rgb),.3);
  background: rgba(var(--accent-rgb), .09);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.025);
  transition: border-color .2s ease, background .2s ease;
}

.faq-item[open] {
  border-color: rgba(var(--accent-rgb), .28);
  background: rgba(255,255,255,.045);
}

.faq-item summary {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.faq-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(var(--accent-rgb), .2);
  border-radius: 999px;
  color: #f1a8ad;
  background: rgba(var(--accent-rgb), .07);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.faq-chevron {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--muted);
  transition: transform .25s ease;
}

.faq-item[open] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  padding: 0 20px 22px;
}

.faq-answer p {
  max-width: 880px;
  margin: 0;
}

.faq-empty {
  display: none;
  padding: 46px 20px;
  text-align: center;
}

/* Discord support */
.support-layout {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 18px;
}

.support-aside {
  position: sticky;
  top: 120px;
  overflow: hidden;
  padding: 30px;
  isolation: isolate;
}

.support-aside::before {
  position: absolute;
  top: -130px;
  right: -130px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--page-rgb,255,45,58),.18), transparent 68%);
  content: "";
  pointer-events: none;
}

.support-aside > * {
  position: relative;
  z-index: 1;
}

.support-aside h2 {
  max-width: 100%;
  font-size: clamp(2rem, 3.1vw, 2.8rem);
  line-height: 1;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-wrap: balance;
}

.support-access-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid rgba(var(--page-rgb,255,45,58), .28);
  border-radius: 17px;
  color: var(--page-accent, var(--accent-bright));
  background: rgba(var(--page-rgb,255,45,58), .09);
  box-shadow: 0 0 34px rgba(var(--page-rgb,255,45,58), .09);
}

.support-access-icon svg {
  width: 24px;
  height: 24px;
}

.support-verification {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 14px;
  border: 1px solid rgba(77,217,130,.22);
  border-radius: 16px;
  background: rgba(77,217,130,.055);
}

.reaction-chip {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid rgba(77,217,130,.3);
  border-radius: 14px;
  color: #9dffc0;
  background: rgba(77,217,130,.1);
  box-shadow: 0 0 22px rgba(77,217,130,.12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Symbol", "Segoe UI", sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.reaction-chip svg {
  width: 22px;
  height: 22px;
}

.support-verification strong,
.support-verification div > span {
  display: block;
}

.support-verification strong {
  margin-bottom: 4px;
  color: #fff;
  font-size: .86rem;
}

.support-verification div > span {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
}

.support-facts {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.support-fact {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
}

.support-fact span {
  color: var(--muted);
  font-size: .82rem;
}

.support-fact strong {
  color: var(--text-soft);
  font-size: .82rem;
  text-align: right;
}

.support-discord-button {
  width: 100%;
  margin-top: 18px;
}

.support-steps .step-card {
  min-height: 142px;
}

.support-steps .step-card h3 {
  margin-bottom: 8px;
}

.support-steps .step-card strong,
.support-steps .step-card code {
  color: #fff;
}

.support-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 28px;
  border-color: rgba(77,217,130,.18);
  background: linear-gradient(135deg, rgba(77,217,130,.055), rgba(255,255,255,.025));
}

.support-alert-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(77,217,130,.28);
  border-radius: 18px;
  color: #9dffc0;
  background: rgba(77,217,130,.09);
}

.support-alert-icon svg {
  width: 26px;
  height: 26px;
}

.support-alert h2 {
  margin-bottom: 7px;
  font-size: clamp(1.55rem, 2.5vw, 2.3rem);
}

.support-alert p:last-child {
  max-width: 760px;
  margin-bottom: 0;
}

.support-alert code,
.discord-access-cta code {
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.support-category-card {
  min-height: 230px;
  transition: border-color .24s ease, transform .24s var(--ease), background .24s ease;
}

.support-category-card:hover {
  border-color: rgba(var(--page-rgb,255,45,58), .25);
  background: rgba(255,255,255,.045);
  transform: translateY(-5px);
}

.support-category-card .feature-icon {
  margin-bottom: 30px;
}

.support-category-card p {
  margin-bottom: 0;
}

.support-ready {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 42px;
  padding: 34px;
}

.support-ready p:last-child {
  margin-bottom: 0;
}

.support-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.support-check-item {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text-soft);
  background: rgba(255,255,255,.026);
  font-size: .82rem;
  line-height: 1.45;
}

.support-check-item svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--success);
}

.discord-access-cta strong {
  color: #fff;
}

/* Footer */
.site-footer {
  position: relative;
  padding: 72px 0 34px;
  border-top: 1px solid var(--line);
  background: rgba(7,8,10,.34);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(140px, .6fr));
  gap: 42px;
  padding-bottom: 48px;
}

.footer-brand img {
  width: 190px;
  margin-bottom: 20px;
}

.footer-brand p {
  max-width: 410px;
  margin-bottom: 18px;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-column h3 {
  margin-bottom: 18px;
  color: var(--text-soft);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  font-size: .86rem;
  transition: color .2s ease, transform .2s ease;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: .78rem;
}

.footer-bottom span:last-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Command palette */
.command-dialog {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 11vh 18px 30px;
  background: rgba(3,4,6,.64);
  backdrop-filter: blur(18px);
}

.command-dialog.is-open { display: flex; animation: fade-in .18s ease both; }

.command-panel {
  width: min(100%, 620px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: rgba(20,21,27,.95);
  box-shadow: 0 36px 100px rgba(0,0,0,.55);
  animation: palette-in .25s var(--ease) both;
}

.command-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.command-search svg { width: 20px; height: 20px; color: var(--muted); }

.command-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  color: #fff;
  background: transparent;
  outline: none;
  font-size: 1rem;
}

.command-search kbd {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,.03);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .68rem;
}

.command-list {
  max-height: 470px;
  overflow: auto;
  padding: 10px;
}

.command-group-label {
  padding: 10px 10px 7px;
  color: var(--muted-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .66rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.command-item {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 54px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  color: var(--text-soft);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.command-item:hover,
.command-item.is-selected {
  color: #fff;
  background: rgba(var(--accent-rgb),.1);
}

.command-item-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
}

.command-item-icon svg { width: 17px; height: 17px; }
.command-item strong { display: block; font-size: .86rem; }
.command-item small { display: block; margin-top: 2px; color: var(--muted); font-size: .7rem; }
.command-item > kbd { color: var(--muted-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .66rem; }

.command-empty {
  display: none;
  padding: 32px 18px;
  color: var(--muted);
  text-align: center;
}

/* Toast */
.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 400;
  display: grid;
  width: min(calc(100% - 36px), 390px);
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 32px minmax(0,1fr);
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(19,20,25,.94);
  box-shadow: 0 20px 50px rgba(0,0,0,.38);
  backdrop-filter: blur(18px);
  animation: toast-in .35s var(--ease) both;
}

.toast.is-leaving { animation: toast-out .25s ease both; }

.toast-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: var(--success);
  background: rgba(77,217,130,.1);
}

.toast.error .toast-icon { color: var(--danger); background: rgba(255,77,88,.1); }
.toast strong { display: block; font-size: .82rem; }
.toast span { color: var(--muted); font-size: .72rem; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* Utilities */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.text-accent { color: var(--accent-bright); }
.text-success { color: var(--success); }
.text-muted { color: var(--muted); }
.no-margin { margin: 0; }
.mt-24 { margin-top: 24px; }
.mt-36 { margin-top: 36px; }
.mt-48 { margin-top: 48px; }

/* Animations */
@keyframes text-shimmer { to { background-position: -220% center; } }
@keyframes slow-spin { to { transform: rotate(360deg); } }
@keyframes float-logo { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes float-card { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes pulse-ring { 0% { opacity: .65; transform: scale(.75); } 70%,100% { opacity: 0; transform: scale(1.55); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes palette-in { from { opacity: 0; transform: translateY(-14px) scale(.98); } }
@keyframes toast-in { from { opacity: 0; transform: translateX(20px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px) scale(.98); } }

/* Responsive */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .brand { margin-right: auto; }
  .mobile-toggle { display: inline-grid; }

  .mobile-panel {
    position: fixed;
    top: 98px;
    left: 50%;
    z-index: 99;
    display: grid;
    width: min(calc(100% - 28px), 760px);
    max-height: calc(100svh - 118px);
    overflow: auto;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    background: rgba(15,16,21,.96);
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
    backdrop-filter: blur(24px);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -12px) scale(.98);
    transition: opacity .25s ease, transform .25s var(--ease);
  }

  .mobile-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
  }

  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
  }

  .mobile-nav a {
    min-height: 58px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--muted);
    background: rgba(255,255,255,.025);
    font-weight: 700;
  }

  .mobile-nav a[aria-current="page"] {
    color: #fff;
    border-color: rgba(var(--accent-rgb),.28);
    background: rgba(var(--accent-rgb),.08);
  }

  .mobile-nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
  }

  .hero-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy { text-align: center; }
  .hero-subtitle { margin-inline: auto; }
  .hero .button-row,
  .hero-meta { justify-content: center; }
  .hero-visual { min-height: 520px; }
  .page-hero-grid { min-height: auto; }
  .page-hero-copy { text-align: center; }
  .page-hero .lead { margin-inline: auto; }
  .page-hero .button-row,
  .hero-stat-row { justify-content: center; }
  .ip-console { margin-inline: auto; }
  .page-visual { min-height: 470px; }

  .server-card { grid-column: span 12; }
  .bento-card { grid-column: span 6; }
  .bento-card.large { grid-column: span 12; }

  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .map-grid,
  .category-grid,
  .channel-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .role-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }

  .split-layout { grid-template-columns: 1fr; }
  .sticky-copy { position: static; }

  .support-layout { grid-template-columns: 1fr; }
  .support-aside { position: static; }

  .footer-grid { grid-template-columns: 1.2fr repeat(2, .7fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --radius-xl: 30px; }
  .container,
  .narrow { width: min(calc(100% - 28px), var(--container)); }

  .site-header { top: 10px; width: calc(100% - 20px); }
  .nav-shell { min-height: 62px; border-radius: 18px; padding: 8px 9px 8px 12px; }
  .brand { min-width: 0; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-wordmark { width: 124px; }
  .command-trigger { display: none; }
  .nav-cta { display: none; }
  .mobile-panel { top: 82px; width: calc(100% - 20px); max-height: calc(100svh - 94px); }

  .section { padding: 82px 0; }
  .section-tight { padding: 54px 0; }
  .section-header { grid-template-columns: 1fr; gap: 16px; margin-bottom: 30px; }

  .hero { min-height: auto; padding: 130px 0 56px; }
  .hero-grid { gap: 26px; }
  .hero h1 { font-size: clamp(3.2rem, 17vw, 5.5rem); }
  .hero-visual { min-height: 410px; }
  .hero-orbit { width: 370px; max-width: 95vw; }
  .hero-logo-wrap { width: min(82%, 355px); }
  .floating-status { min-width: 135px; padding: 11px 12px; }
  .floating-status.a { top: 6%; left: 0; }
  .floating-status.b { right: 0; bottom: 22%; }
  .floating-status.c { bottom: 0; left: 4%; }
  .floating-status strong { font-size: .86rem; }

  .button-row { width: 100%; }
  .button-row .btn { flex: 1 1 180px; }

  .server-card { min-height: auto; padding: 22px; }
  .server-card-inner,
  .server-card-wide .server-card-inner { grid-template-columns: 1fr; }
  .server-art,
  .server-card-wide .server-art {
    width: min(100%, 230px);
    max-width: 230px;
    margin-inline: auto;
    justify-self: center;
  }

  .bento-grid { grid-auto-rows: auto; }
  .bento-card,
  .bento-card.large,
  .bento-card.full { grid-column: span 12; }
  .bento-card.tall { grid-row: auto; }
  .bento-icon { margin-bottom: 34px; }

  .journey { grid-template-columns: 1fr; }
  .journey-step { min-height: 230px; }

  .cta-panel { grid-template-columns: 1fr; min-height: auto; }

  .page-hero { min-height: auto; padding: 126px 0 50px; }
  .page-hero-grid { gap: 20px; }
  .page-hero h1 { font-size: clamp(3.2rem, 16vw, 5.4rem); }
  body[data-page="arcanum"] .page-hero h1 {
    font-size: clamp(2.25rem, 11.5vw, 3rem);
  }
  .page-visual { min-height: 390px; }
  .page-visual::before { width: min(88%, 360px); }
  .page-visual > img { width: min(72%, 310px); }
  .page-visual .atm-glyph { width: 160px; height: 160px; font-size: 3.2rem; }
  .discord-glyph,
  .support-glyph { max-width: 240px; font-size: 4.5rem; }

  .stats-grid,
  .feature-grid,
  .map-grid,
  .category-grid,
  .channel-grid,
  .role-grid { grid-template-columns: 1fr; }

  .stat-card { min-height: 130px; }
  .feature-card { min-height: 220px; }

  .faq-tools { grid-template-columns: 1fr; }
  .filter-row { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .filter-btn { flex: 0 0 auto; }
  .faq-question { align-items: flex-start; flex-direction: column; gap: 7px; }

  .support-aside {
    padding: clamp(24px, 7vw, 30px);
  }

  .support-aside h2 {
    font-size: clamp(2rem, 9.3vw, 2.65rem);
  }

  .support-verification {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .support-verification > div,
  .support-fact > * {
    min-width: 0;
  }

  .support-fact strong {
    overflow-wrap: anywhere;
  }

  .support-alert { grid-template-columns: 1fr; align-items: start; }
  .support-alert .btn { width: 100%; }
  .support-ready { grid-template-columns: 1fr; gap: 28px; }
  .support-checklist { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 470px) {
  .brand-wordmark { width: 112px; }
  .mobile-nav { grid-template-columns: 1fr; }
  .mobile-nav-actions { grid-template-columns: 1fr; }
  .hero-meta { align-items: center; flex-direction: column; }
  .hero-visual { min-height: 360px; }
  .floating-status.c { display: none; }
  .hero-stat { min-width: calc(50% - 6px); }

  .support-aside {
    padding: 24px;
  }

  .support-verification {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .reaction-chip {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .support-fact {
    align-items: flex-start;
  }

  .support-fact strong {
    max-width: 64%;
  }

  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  #network-canvas { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* Live capacity meter */
.meter {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
}

.meter > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-bright));
  box-shadow: 0 0 16px rgba(var(--accent-rgb), .5);
  transition: width .8s var(--ease);
}

.form-note code {
  color: var(--text-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (max-width: 760px) {
  .hero-orbit { width: min(100%, 370px); }
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

code {
  color: var(--text-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Custom illustrated artwork for ATM 10 and Discord */
.server-art.server-art-image {
  isolation: isolate;
}

.server-art img.server-illustration {
  z-index: 2;
  width: 104%;
  max-width: none;
  max-height: 98%;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 28px 34px rgba(0,0,0,.5));
  transform: scale(1.035);
}

.page-visual > img.page-illustration {
  width: min(112%, 590px);
  max-width: none;
  max-height: 550px;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 38px 48px rgba(0,0,0,.58));
}

.page-visual > img.discord-illustration {
  width: min(118%, 630px);
}

.page-visual > img.atm-illustration {
  width: min(112%, 600px);
}

@media (max-width: 760px) {
  .page-visual > img.page-illustration,
  .page-visual > img.discord-illustration,
  .page-visual > img.atm-illustration {
    width: min(112%, 470px);
    max-height: 420px;
  }

  .server-art img.server-illustration {
    width: 108%;
  }
}


/* ArcanumLand artwork */
.server-art img.arcanum-card-illustration {
  width: 110%;
  max-height: 104%;
  transform: scale(1.06);
}

.page-visual > img.arcanum-illustration {
  width: min(122%, 650px);
  max-height: 590px;
}

@media (max-width: 760px) {
  .network-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .network-refresh {
    width: 100%;
  }

  .network-status-list {
    grid-template-columns: 1fr;
  }

  .network-overview-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-visual > img.arcanum-illustration {
    width: min(116%, 490px);
    max-height: 440px;
  }
}

@media (max-width: 480px) {
  .network-status-row {
    align-items: flex-start;
  }

  .network-state {
    max-width: 46%;
  }
}
