/* Xeno-style: dark theme, glassy boxes, white/light grey text, animations */
:root {
  --bg: #000000;
  --grid-line: rgba(42, 42, 48, 0.6);
  --bg-panel: rgba(18, 18, 22, 0.6);
  --bg-card: rgba(20, 20, 26, 0.5);
  --bg-card-hover: rgba(28, 28, 36, 0.7);
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(255, 255, 255, 0.2);
  --glass-blur: 12px;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --text-dim: #6b6b6b;
  --accent: #9D4EDD;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: 0.25s ease;
  --transition-slow: 0.35s ease;
  --glow-subtle: 0 0 0 1px rgba(255, 255, 255, 0.04);
  --glow-hover: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 255, 255, 0.03);
  --icon-color: rgba(255, 255, 255, 0.85);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 0 0;
  transition: padding var(--transition);
}
.nav-header .wrap { margin-bottom: 0; }
.nav-header nav {
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}
.nav-header.nav-scrolled nav {
  background: rgba(18, 18, 22, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.06);
  padding: 14px 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition);
}
.nav-header nav { border-bottom: none; }
nav:hover { border-color: var(--border-light); }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
}
.logo:hover { opacity: 0.95; transform: scale(1.02); }
.logo-v { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.logo-text { height: 22px; width: auto; object-fit: contain; flex-shrink: 0; }
.vanta-text-inline { display: inline-block; height: 1em; width: auto; vertical-align: -0.2em; object-fit: contain; }
.vanta-text-inline.vanta-text-hero { height: 36px; vertical-align: -0.25em; }
.vanta-text-inline.vanta-text-h1 { height: 0.85em; vertical-align: -0.22em; }
.vanta-text-inline.vanta-text-sm { height: 0.9em; vertical-align: -0.18em; }
.logo-fallback { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; color: var(--text); }
.logo-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-light); border-radius: 50%; font-weight: 800; font-size: 1rem; color: var(--text); flex-shrink: 0; }
.logo-v-fallback { border: none; }
.logo-v-fallback svg { color: var(--text); }
.icon-svg { flex-shrink: 0; color: var(--icon-color); stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-minimal { display: flex; align-items: center; justify-content: center; color: var(--icon-color); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color var(--transition), transform var(--transition); }
.nav-links a:hover { color: var(--text); transform: translateY(-1px); }
.nav-links a.active { color: var(--text); }
.btn-discord { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(8px); color: var(--text); border: 1px solid var(--border-light); border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.95rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: all var(--transition); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03); }
.btn-discord:hover { background: rgba(184, 157, 235, 0.12); border-color: rgba(184, 157, 235, 0.35); transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(184, 157, 235, 0.15), 0 8px 28px rgba(0, 0, 0, 0.35); }
.btn-discord svg { width: 20px; height: 20px; flex-shrink: 0; color: #b89deb; }

.page-hero { text-align: center; padding: 48px 0 40px; animation: fadeUp 0.6s ease; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 10px; color: var(--text); }
.page-hero .subtitle { font-size: 1rem; color: var(--text-muted); }

.card { background: var(--bg-card); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--glow-subtle); transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition), background var(--transition); }
.card:hover { background: rgba(38, 38, 46, 0.88); border-color: rgba(255, 255, 255, 0.12); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05); transform: translateY(-3px) scale(1.008); }
.panel { transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition), background var(--transition); }
.panel:hover { background: rgba(38, 38, 46, 0.88); border-color: rgba(255, 255, 255, 0.12); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05); transform: translateY(-3px) scale(1.008); }
.card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.card-desc { font-size: 0.9rem; color: var(--text-muted); }

.metric-pill { display: inline-block; padding: 6px 14px; background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(6px); border: 1px solid var(--border-light); border-radius: 20px; font-size: 0.85rem; font-weight: 600; color: var(--text); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.metric-pill:hover { transform: scale(1.06); box-shadow: 0 0 24px rgba(255, 255, 255, 0.08); border-color: var(--border-glow); }

.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(8px); color: var(--text); border: 1px solid var(--border-light); border-radius: var(--radius-sm); font-family: var(--font); font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: all var(--transition); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03); }
.btn-primary:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--border-glow); transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 8px 28px rgba(0, 0, 0, 0.35); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.page-transition { animation: pageIn 0.35s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes globeRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes globeGlow { 0%, 100% { box-shadow: 0 -15px 50px rgba(255,255,255,0.25), 0 0 70px rgba(255,255,255,0.12), inset 0 0 40px rgba(255,255,255,0.03); } 50% { box-shadow: 0 -20px 60px rgba(255,255,255,0.35), 0 0 90px rgba(255,255,255,0.18), inset 0 0 50px rgba(255,255,255,0.05); } }
.globe-container { position: relative; }
.globe-container::before { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 340px; height: 340px; border-radius: 50%; pointer-events: none; animation: globeGlow 3s ease-in-out infinite; box-shadow: 0 -20px 55px rgba(255,255,255,0.3), 0 0 80px rgba(255,255,255,0.15); }
.globe-wrap { position: relative; }
.globe-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; filter: drop-shadow(0 0 25px rgba(255,255,255,0.25)); }
.globe-canvas-wrap { border-radius: 50%; overflow: hidden; }
.globe-canvas-wrap canvas { border-radius: 50%; }

.copy-btn { padding: 8px 16px; background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(6px); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); font-size: 0.85rem; cursor: pointer; transition: all var(--transition); }
.copy-btn:hover { color: var(--text); border-color: var(--border-light); background: rgba(255, 255, 255, 0.08); }
.copy-btn.copied { border-color: #22c55e; color: #22c55e; }

.key-page-card { max-width: 440px; text-align: center; padding: 40px 32px !important; }
.key-page-card .key-title { font-size: 1.5rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; margin-bottom: 12px; }
.key-page-card .key-sub { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.5; }
.key-page-card .key-warn { margin-top: 20px; font-size: 0.85rem; color: #e07a7a; }
.key-box-copy { background: var(--bg-panel); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 20px; cursor: pointer; font-family: var(--font-mono); transition: all var(--transition); }
.key-box-copy:hover { border-color: var(--border-glow); }
.key-box-copy code { font-size: 0.9rem; color: var(--accent); word-break: break-all; display: block; }
.key-box-copy .copy-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 8px; }

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr !important; }
  .nav-links { gap: 16px; }
}
