/* ═══════════════════════════════════════════════════════
   WAKANDA.IS / AEVOV — GLOBAL DESIGN SYSTEM
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Syne:wght@400;600;700;800&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ── GLOBAL TOKENS ─────────────────────────────────────── */
:root {
  /* Base */
  --void:     #060608;
  --deep:     #0c0d12;
  --surface:  #13141a;
  --border:   #1e2028;
  --muted:    #3a3d4a;
  --dim:      #6b6f80;
  --text:     #e8e6e0;
  --cream:    #f0ece2;

  /* Brand gold (global accent) */
  --gold:     #c9a84c;
  --gold-dim: #7a6230;
  --gold-glow:rgba(201,168,76,0.15);

  /* Product colours */
  --qpu:      #2a6ab5;  /* Wave 4 QPU  — blue    */
  --rpu:      #2a9a5f;  /* Wave 4 RPU  — green   */
  --spu:      #7040b0;  /* Wave 5 SPU  — violet  */
  --qip:      #e8a030;  /* QIP/mesh    — amber   */
  --cros:     #c9a84c;  /* cr8OS       — gold    */
  --aplo:     #20a090;  /* APLO/space  — teal    */
  --phys:     #c04040;  /* Physics     — crimson */

  /* Page accent — overridden per page */
  --accent:   var(--gold);
  --accent-glow: var(--gold-glow);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Syne', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', monospace;

  /* Spacing */
  --nav-h: 70px;
  --page-x: 7rem;
  --page-x-sm: 1.5rem;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img, video { max-width:100%; display:block; }
a { color: inherit; text-decoration: none; }

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.7;
  cursor: none;
  overflow-x: hidden;
}

/* ── CURSOR ─────────────────────────────────────────────── */
.cursor {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: background 0.3s, width 0.2s, height 0.2s;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: all 0.12s ease-out, border-color 0.3s;
}
body:hover .cursor { opacity:1; }

/* ── NAVIGATION ─────────────────────────────────────────── */
.site-nav {
  position: fixed; top:0; left:0; right:0; z-index:200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--page-x);
  background: rgba(6,6,8,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,168,76,0.1);
  transition: border-color 0.4s;
}
.nav-logo {
  font-family: var(--font-sans);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 0.7rem;
}
.nav-logo-mark {
  font-family: var(--font-serif);
  font-style: italic; font-size: 1.2rem;
  color: var(--gold);
}
.nav-links {
  display: flex; align-items: center; gap: 0.2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dim);
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content:''; position:absolute; bottom:0; left:50%; right:50%;
  height:1px; background:var(--accent);
  transition: left 0.3s, right 0.3s;
}
.nav-links a:hover::after { left:0.8rem; right:0.8rem; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: var(--deep);
  border: 1px solid var(--border);
  min-width: 200px;
  opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 300;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 1rem !important;
  border-bottom: 1px solid var(--border);
  font-size: 0.68rem !important;
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dot-colour {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink:0;
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
  padding: 0.4rem 1rem;
  transition: background 0.2s, border-color 0.2s;
}
.nav-cta:hover { background: rgba(201,168,76,0.08); border-color: var(--gold); }

@media(max-width:900px) {
  .site-nav { padding: 0 var(--page-x-sm); }
  .nav-links { display: none; }
}

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: calc(var(--nav-h) + 4rem) var(--page-x) 6rem;
  position: relative; overflow: hidden;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 0.9s 0.2s forwards;
}
.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.8rem, 7vw, 7rem);
  font-weight: 800; line-height: 0.95; letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 0.9s 0.4s forwards;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-style: italic; color: var(--dim);
  max-width: 580px; margin-bottom: 3rem;
  opacity: 0; animation: fadeUp 0.9s 0.6s forwards;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.9s 0.8s forwards;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.7rem 1.6rem;
  border: 1px solid;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent); border-color: var(--accent);
  color: var(--void);
}
.btn-primary:hover { opacity: 0.85; }
.btn-ghost {
  background: transparent; border-color: rgba(201,168,76,0.3);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── SECTIONS ────────────────────────────────────────────── */
.section {
  padding: 7rem var(--page-x);
  position: relative;
}
.section-sm { padding: 4rem var(--page-x); }
.section-dark { background: var(--deep); }
.section-void { background: var(--void); }
@media(max-width:900px) {
  .section, .section-sm { padding-left: var(--page-x-sm); padding-right: var(--page-x-sm); }
}

/* ── SECTION HEADERS ─────────────────────────────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.section-label::after {
  content:''; display:block; height:1px; width:40px;
  background: var(--accent); opacity:0.4;
}
.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem;
}
.section-title .accent { color: var(--accent); }
.section-body {
  font-size: 1.1rem; line-height: 1.8;
  color: rgba(232,230,224,0.78); max-width: 700px;
}

/* ── GRID LAYOUTS ─────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
@media(max-width:1000px) { .grid-3 { grid-template-columns:1fr 1fr; } .grid-4 { grid-template-columns:1fr 1fr; } }
@media(max-width:700px) { .grid-2,.grid-3,.grid-4 { grid-template-columns:1fr; } }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  border: 1px solid var(--border);
  padding: 2rem;
  background: rgba(255,255,255,0.018);
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.card:hover::before { transform: scaleX(1); }
.card-label {
  font-family: var(--font-mono);
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.6rem;
}
.card-title {
  font-family: var(--font-sans);
  font-size: 1.25rem; font-weight: 700; margin-bottom: 0.4rem;
}
.card-sub {
  font-size: 0.85rem; font-style: italic;
  color: var(--dim); margin-bottom: 1rem;
}
.card-body { font-size: 0.9rem; color: var(--dim); line-height: 1.6; }

/* ── STAT ─────────────────────────────────────────────────── */
.stat {
  border: 1px solid var(--border);
  padding: 1.8rem; background: rgba(255,255,255,0.015);
  position: relative; overflow: hidden;
}
.stat::after {
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background: var(--accent); opacity:0.5;
}
.stat-num {
  font-family: var(--font-sans); font-size: 3rem; font-weight: 800;
  color: var(--accent); line-height:1; margin-bottom:0.3rem;
}
.stat-label {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim);
}
.stat-desc { font-size: 0.85rem; color: var(--dim); margin-top: 0.5rem; line-height:1.5; }

/* ── QUOTE ───────────────────────────────────────────────── */
.quote {
  border-left: 3px solid var(--accent);
  padding: 1.5rem 2rem;
  background: rgba(201,168,76,0.04);
  font-style: italic; font-size: 1.2rem; line-height: 1.7;
}
.quote-src {
  font-style: normal; font-family: var(--font-mono);
  font-size: 0.65rem; letter-spacing: 0.15em;
  color: var(--accent); margin-top: 0.8rem; text-transform: uppercase;
}

/* ── EQUATION ─────────────────────────────────────────────── */
.equation {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.5vw, 2.8rem);
  color: var(--accent); letter-spacing: 0.04em;
  margin: 1.5rem 0;
}

/* ── CODE BLOCK ──────────────────────────────────────────── */
.code-block {
  font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.6;
  background: rgba(12,14,20,0.6); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 1.2rem 1.4rem;
  overflow-x: auto; white-space: pre;
  color: var(--text);
}

/* ── TABLE ───────────────────────────────────────────────── */
.data-table { width:100%; border-collapse:collapse; font-size:0.88rem; }
.data-table th {
  font-family: var(--font-mono); font-size:0.62rem;
  letter-spacing:0.15em; text-transform:uppercase;
  text-align:left; padding:0.6rem 0.9rem;
  background: var(--deep); color: var(--dim); font-weight:400;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(30,32,40,0.7);
  vertical-align: top; line-height:1.5;
}
.data-table tr:last-child td { border-bottom:none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ── BADGE / PILL ────────────────────────────────────────── */
.badge {
  font-family: var(--font-mono); font-size:0.62rem;
  letter-spacing:0.08em; padding:0.2rem 0.65rem;
  border: 1px solid var(--border); color: var(--dim);
  display: inline-block;
}
.badge-accent { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.badge-live { border-color: var(--rpu); color: var(--rpu); background: rgba(42,154,95,0.08); }
.badge-beta { border-color: var(--qip); color: var(--qip); background: rgba(232,160,48,0.08); }

/* ── DIVIDER ─────────────────────────────────────────────── */
.sep { width:40px; height:1px; background:var(--accent); opacity:0.4; margin:1.5rem 0; }
.rule { border:none; border-top:1px solid var(--border); margin:3rem 0; }

/* ── FEATURE ROW ─────────────────────────────────────────── */
.feature-row {
  display: flex; gap:1.2rem; align-items:flex-start;
  padding: 1.2rem 0; border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom:none; }
.feature-icon {
  width:36px; height:36px; flex-shrink:0;
  border: 1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  font-size:0.9rem; color: var(--accent);
}
.feature-title { font-family: var(--font-sans); font-size:1rem; font-weight:700; margin-bottom:0.25rem; }
.feature-desc { font-size:0.88rem; color:var(--dim); line-height:1.55; }

/* ── WAVE STACK ──────────────────────────────────────────── */
.wave-stack { display:flex; flex-direction:column; }
.wave-item {
  display:grid; grid-template-columns:4rem 1fr auto;
  border:1px solid var(--border); border-bottom:none; align-items:center;
}
.wave-item:last-child { border-bottom:1px solid var(--border); }
.wave-num {
  font-family:var(--font-sans); font-size:2rem; font-weight:800;
  opacity:0.18; display:flex; align-items:center; justify-content:center;
  padding:1rem; border-right:1px solid var(--border); align-self:stretch;
}
.wave-content { padding:1rem 1.2rem; }
.wave-name { font-family:var(--font-sans); font-size:0.92rem; font-weight:700; margin-bottom:0.15rem; }
.wave-desc { font-family:var(--font-mono); font-size:0.68rem; color:var(--dim); line-height:1.4; }
.wave-tag {
  font-family:var(--font-mono); font-size:0.58rem; letter-spacing:0.1em;
  text-transform:uppercase; padding:0.5rem; border-left:1px solid var(--border);
  min-width:4.5rem; text-align:center; align-self:stretch;
  display:flex; align-items:center; justify-content:center;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  padding: 4rem var(--page-x) 3rem;
  border-top: 1px solid var(--border);
  background: var(--void);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
@media(max-width:900px) { .footer-grid { grid-template-columns:1fr 1fr; gap:2rem; } }
.footer-brand-name {
  font-family: var(--font-sans); font-size:1.1rem; font-weight:800;
  color: var(--gold); margin-bottom:0.5rem;
}
.footer-brand-sub {
  font-family: var(--font-mono); font-size:0.65rem;
  letter-spacing:0.1em; color:var(--dim); margin-bottom:1.2rem;
}
.footer-col-title {
  font-family: var(--font-mono); font-size:0.62rem;
  letter-spacing:0.2em; text-transform:uppercase;
  color:var(--dim); margin-bottom:1rem;
}
.footer-links { list-style:none; display:flex; flex-direction:column; gap:0.5rem; }
.footer-links a {
  font-size:0.85rem; color:rgba(232,230,224,0.55);
  transition:color 0.2s;
}
.footer-links a:hover { color:var(--text); }
.footer-bottom {
  display:flex; justify-content:space-between; align-items:center;
  border-top:1px solid var(--border); padding-top:1.5rem;
  font-family:var(--font-mono); font-size:0.62rem;
  letter-spacing:0.08em; color:var(--muted);
}
.footer-dois { display:flex; gap:1.5rem; flex-wrap:wrap; }
.footer-dois a { color:var(--gold); }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(22px); }
  to   { opacity:1; transform:translateY(0); }
}
.reveal { opacity:0; transform:translateY(18px); transition:opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity:1; transform:none; }
.delay-1 { transition-delay:0.1s; } .delay-2 { transition-delay:0.2s; }
.delay-3 { transition-delay:0.3s; } .delay-4 { transition-delay:0.4s; }
.delay-5 { transition-delay:0.5s; }

/* ── DOCS ─────────────────────────────────────────────────── */
.docs-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 0;
  min-height: calc(100vh - var(--nav-h)); padding-top: var(--nav-h);
}
.docs-sidebar {
  border-right: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h));
  overflow-y: auto; background: var(--deep);
}
.docs-sidebar-section { margin-bottom: 2rem; }
.docs-sidebar-title {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 0.6rem;
}
.docs-sidebar-links { list-style: none; display: flex; flex-direction: column; gap: 0.15rem; }
.docs-sidebar-links a {
  font-size: 0.85rem; color: rgba(232,230,224,0.55);
  padding: 0.3rem 0.6rem; display: block;
  border-left: 2px solid transparent; transition: all 0.2s;
}
.docs-sidebar-links a:hover { color: var(--text); border-left-color: var(--dim); }
.docs-sidebar-links a.active { color: var(--accent); border-left-color: var(--accent); }
.docs-content { padding: 3.5rem var(--page-x) 5rem; max-width: 860px; }
.docs-h1 { font-family: var(--font-sans); font-size: 2.4rem; font-weight: 700; margin-bottom: 0.5rem; }
.docs-h2 { font-family: var(--font-sans); font-size: 1.5rem; font-weight: 700; margin: 3rem 0 1rem; }
.docs-h3 { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 700; margin: 2rem 0 0.7rem; }
.docs-p { margin-bottom: 1.2rem; line-height: 1.8; color: rgba(232,230,224,0.82); }
.docs-note {
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  padding: 1rem 1.2rem; background: var(--accent-glow); margin: 1.5rem 0;
  font-size: 0.9rem; line-height: 1.6;
}

/* ── PRODUCT PAGE HERO ACCENT ────────────────────────────── */
.product-hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: calc(var(--nav-h) + 5rem) var(--page-x) 6rem;
  position: relative; overflow: hidden;
}
.product-hero::before {
  content:''; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(ellipse 60% 60% at 80% 40%, var(--accent-glow) 0%, transparent 70%);
}
.product-wave-badge {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--accent); color: var(--accent);
  background: var(--accent-glow); margin-bottom: 1.2rem;
  display: inline-block;
  opacity: 0; animation: fadeUp 0.8s 0.2s forwards;
}

/* ── MISC UTILITIES ──────────────────────────────────────── */
.mono { font-family: var(--font-mono); font-size: 0.82rem; }
.italic { font-style: italic; }
.dim { color: var(--dim); }
.accent-txt { color: var(--accent); }
.gold-txt { color: var(--gold); }
.mt-1 { margin-top:0.5rem; } .mt-2 { margin-top:1rem; }
.mt-3 { margin-top:1.5rem; } .mt-4 { margin-top:2rem; }
.mb-2 { margin-bottom:1rem; } .mb-3 { margin-bottom:1.5rem; }
.text-center { text-align: center; }
.flex { display:flex; } .flex-col { flex-direction:column; }
.items-center { align-items:center; } .gap-1 { gap:0.5rem; }
.gap-2 { gap:1rem; } .gap-3 { gap:1.5rem; }
/* ══ MODALS ══ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 12, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 90%;
  max-width: 600px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  padding: 3rem;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal-overlay.active .modal-container {
  transform: none;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text);
}

.modal-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.modal-title {
  font-family: var(--font-syne);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.modal-body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--dim);
}

.modal-body strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.5rem;
}

.modal-body p {
  margin-bottom: 1.5rem;
}

/* ══ OBFUSCATION ══ */
.obfuscated {
  background: var(--dim);
  color: transparent;
  padding: 0 2px;
  border-radius: 2px;
  user-select: none;
  filter: blur(3px);
  opacity: 0.7;
  transition: all 0.4s ease;
  display: inline-block;
  line-height: 1;
}

.obfuscated:hover {
  filter: blur(1px);
  opacity: 1;
  background: var(--text);
}

/* ── MESH IDENTITY GATE ────────────────────────────────── */
#identity-gate {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(6, 6, 8, 0.98);
  backdrop-filter: blur(24px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
#identity-gate.active { opacity: 1; pointer-events: all; }

.auth-card {
  width: 90%; max-width: 440px; padding: 3.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center; position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.auth-logo {
  font-size: 2.5rem; color: var(--gold); margin-bottom: 2rem;
  filter: drop-shadow(0 0 15px var(--gold-glow));
}
.auth-title {
  font-family: var(--font-sans); font-size: 1.4rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem;
}
.auth-subtitle {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 2.5rem;
}

.mesh-input-box {
  background: rgba(0,0,0,0.2); border: 1px solid var(--border);
  padding: 1rem 1.4rem; margin-bottom: 1.5rem; text-align: left;
  transition: border-color 0.3s;
}
.mesh-input-box:focus-within { border-color: var(--gold); }
.mesh-input-box.disabled { opacity: 0.25; pointer-events: none; }
.mesh-input-box label {
  display: block; font-family: var(--font-mono); font-size: 0.55rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--dim);
  margin-bottom: 0.4rem;
}
.mesh-input {
  width: 100%; background: transparent; border: none; outline: none;
  color: var(--gold); font-family: var(--font-mono); font-size: 0.85rem;
}
.mesh-select {
  width: 100%; background: var(--deep); border: 1px solid var(--border);
  padding: 0.6rem; color: var(--text); font-family: var(--font-mono);
  font-size: 0.7rem; cursor: pointer;
}

.auth-btn {
  width: 100%; padding: 1rem; background: transparent;
  border: 1px solid var(--gold); color: var(--gold);
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s; margin-top: 1rem;
}
.auth-btn:hover:not(.disabled) { background: var(--gold); color: var(--void); }
.auth-btn.disabled { opacity: 0.3; cursor: not-allowed; }

.preview-mode-btn {
  width: 100%; margin-top: 1rem; padding: 0.8rem;
  background: transparent; border: 1px solid var(--border);
  color: var(--dim); font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s;
}
.preview-mode-btn:hover { border-color: var(--dim); color: var(--text); }

.switch-btn {
  display: block; margin: 1.5rem auto 0; background: none; border: none;
  color: var(--dim); font-family: var(--font-mono); font-size: 0.58rem;
  text-transform: uppercase; letter-spacing: 0.12em; cursor: pointer;
}
.switch-btn:hover { color: var(--gold); }

.auth-toast {
  margin-top: 1.5rem; padding: 0.8rem; background: var(--gold-glow);
  border: 1px solid var(--gold); color: var(--gold);
  font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase;
}
.auth-security-footer {
  margin-top: 2.5rem; font-family: var(--font-mono); font-size: 0.5rem;
  color: var(--muted); letter-spacing: 0.2em; text-transform: uppercase;
}
