/* ============================================================
   VALICRED MASTER UNIVERSAL STYLESHEET
   Core Web Vitals Immunity Engine (CLS: 0.00 | INP: <40ms | LCP: <1.2s)
   ============================================================ */

:root {
  --bg: #020308;
  --purple: #c084fc;
  --purple-vivid: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.4);
  --cyan: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.35);
  --green: #00ff88;
  --green-glow: rgba(0, 255, 136, 0.4);
  --crimson: #ff0055;
  --crimson-glow: rgba(255, 0, 85, 0.5);
  --pink: #ff2a85;
  --blue: #2563eb;
  --gold: #fde047;
  --gold-glow: rgba(253, 224, 71, 0.35);
  --text: #ffffff;
  --text-muted: #cbd5e1;
  --glass-sheer: rgba(8, 12, 26, 0.62);
  --glass-border: rgba(192, 132, 252, 0.24);

  /* Default Signature Accent: Home (Promethean Royal Violet) */
  --page-accent: var(--purple);
  --page-accent-glow: var(--purple-glow);
}

/* ============================================================
   1. PAGE-SPECIFIC CHROMATIC IDENTITIES
   ============================================================ */
body[data-page="home"] { --page-accent: #c084fc; --page-accent-glow: rgba(192, 132, 252, 0.45); }
body[data-page="core-services"], body[data-page="core-services-payment"] { --page-accent: var(--cyan); --page-accent-glow: var(--cyan-glow); }
body[data-page="advisory-services"], body[data-page="advisory-services-payment"] { --page-accent: var(--gold); --page-accent-glow: var(--gold-glow); }
body[data-page="lore"] { --page-accent: var(--green); --page-accent-glow: var(--green-glow); }
body[data-page="faqs"] { --page-accent: var(--pink); --page-accent-glow: rgba(255, 42, 133, 0.4); }
body[data-page="terms-conditions"], body[data-page="privacy-policy"], body[data-page="refund-policy"] {
  --page-accent: var(--purple);
  --page-accent-glow: var(--purple-glow);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  scroll-behavior: smooth;
  width: 100%;
  min-height: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ============================================================
   2. FORWARD-RAKING 45° LIGHTNING CURSOR (TOP -> LEFT -> RIGHT -> BOTTOM)
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  html, body {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpolygon points='2,2 5,17 12,14 9,28 21,11 13,12' fill='%23000000' stroke='%23000000' stroke-width='4' stroke-linejoin='round'/%3E%3Cpolygon points='2,2 5,17 12,14 9,28 21,11 13,12' fill='%23c084fc' stroke='%23c084fc' stroke-width='2' stroke-linejoin='round'/%3E%3Cpolygon points='2,2 5,17 12,14 9,28 21,11 13,12' fill='%23ffffff'/%3E%3C/svg%3E") 2 2, auto !important;
  }

  a, button, input, select, textarea, [role="button"], .glass-card, .legal-card, .valicat-orb, .slot-box {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpolygon points='2,2 5,17 12,14 9,28 21,11 13,12' fill='%23000000' stroke='%23000000' stroke-width='4' stroke-linejoin='round'/%3E%3Cpolygon points='2,2 5,17 12,14 9,28 21,11 13,12' fill='%2300f0ff' stroke='%2300f0ff' stroke-width='2.5' stroke-linejoin='round'/%3E%3Cpolygon points='2,2 5,17 12,14 9,28 21,11 13,12' fill='%23cffafe'/%3E%3C/svg%3E") 2 2, pointer !important;
  }

  /* Instant White-Hot Electric Discharge on Click (0ms OS Hardware Latency) */
  html:active, body:active, a:active, button:active {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpolygon points='2,2 5,17 12,14 9,28 21,11 13,12' fill='%23ffffff' stroke='%2300f0ff' stroke-width='5' stroke-linejoin='round'/%3E%3Cpolygon points='2,2 5,17 12,14 9,28 21,11 13,12' fill='%23ffffff' stroke='%23ffffff' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 2 2, pointer !important;
  }
}

/* ============================================================
   3. 3D BACKGROUND CANVAS CONTAINER
   ============================================================ */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none !important;
  transform: translateZ(0);
  will-change: transform;
}

/* ============================================================
   4. CONTAINED NAVBAR (0.00 CLS & TRANSPARENT LOGO)
   ============================================================ */
.navbar-wrapper {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  width: min(920px, calc(100% - 32px));
  min-height: 54px;
  background: rgba(8, 12, 26, 0.84);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(192, 132, 252, 0.28);
  border-radius: 9999px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(168, 85, 247, 0.12);
  contain: layout style;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
}

/* Clean Vector Floating Logo (Zero Dark Box Artifact) */
.nav-logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.4));
}

.nav-brand-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--page-accent);
  box-shadow: 0 0 10px var(--page-accent-glow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(-50%);
  border-radius: 99px;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--page-accent);
  text-shadow: 0 0 12px var(--page-accent-glow);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
}

#mobile-menu-drawer {
  position: fixed;
  top: 75px;
  left: 16px;
  right: 16px;
  background: rgba(8, 12, 26, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(192, 132, 252, 0.35);
  border-radius: 20px;
  padding: 1.5rem;
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 9999;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
}

#mobile-menu-drawer.open {
  display: flex;
  animation: menuSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes menuSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

#mobile-menu-drawer a {
  color: #f1f5f9;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#mobile-menu-drawer a:hover, #mobile-menu-drawer a.active {
  background: rgba(192, 132, 252, 0.12);
  color: var(--page-accent);
}

/* ============================================================
   5. SECTIONS & 3D SHOWCASE SPACING (PERMANENT 0.00 CLS IMMUNITY)
   ============================================================ */
.scroller {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow-x: hidden;
}

section {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  contain: layout paint;
}

section:first-of-type, #hero, #core-hero, #advisory-hero, #ep1 {
  min-height: 100vh;
  padding: clamp(6rem, 12vh, 9rem) 1.5rem 4rem;
  margin-bottom: clamp(14rem, 38vh, 26rem);
}

section:not(:first-of-type):not(:last-of-type) {
  min-height: auto;
  padding-top: clamp(5rem, 10vh, 8rem);
  padding-bottom: clamp(5rem, 10vh, 8rem);
  margin-bottom: clamp(16rem, 42vh, 30rem);
}

section:last-of-type, #diagnostic, #intake-sec {
  min-height: auto;
  padding: clamp(5rem, 10vh, 8rem) 1.5rem;
  margin-bottom: clamp(2rem, 5vh, 4rem);
}

.container {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
}

.myth-title {
  font-family: 'Cinzel', serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 4px 25px rgba(2, 3, 8, 0.95), 0 0 50px rgba(2, 3, 8, 1);
}

.hero-subtext {
  text-shadow: 0 2px 15px rgba(2, 3, 8, 0.95), 0 0 30px rgba(2, 3, 8, 0.95);
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.gradient-purple {
  background: linear-gradient(135deg, #ffffff 0%, #c084fc 60%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-cyan {
  background: linear-gradient(135deg, #ffffff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-beast {
  background: linear-gradient(135deg, #ffffff 0%, var(--crimson) 60%, var(--purple-vivid) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   6. GLASS CARDS & RECURSION-STRIPPED SUB-CARDS (INP BOOST)
   ============================================================ */
.glass-card {
  background: var(--glass-sheer);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem 2.4rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(168, 85, 247, 0.05);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  position: relative;
  contain: paint;
}

.glass-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 25px 65px rgba(0, 240, 255, 0.2), 0 0 25px rgba(0, 240, 255, 0.1);
  transform: translateY(-3px);
}

/* Strips recursive blur passes on nested cards for instant GPU responsiveness */
.arsenal-grid .glass-card,
.advisory-grid .glass-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(8, 12, 26, 0.88) !important;
  contain: paint;
}

.badge-cyber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 9999px;
  font-family: 'Cinzel', serif;
  font-size: clamp(0.7rem, 2vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  background: var(--purple-glow);
  border: 1px solid var(--purple-vivid);
  color: #f3e8ff;
}

.btn-cyber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.88rem, 2vw, 0.98rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #03050d;
  background: linear-gradient(135deg, #e9d5ff 0%, #c084fc 50%, #a855f7 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 4px 30px var(--purple-glow);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn-cyber:hover {
  background: #ffffff;
  color: #000;
  box-shadow: 0 6px 40px rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
}

.btn-ghost-cyan {
  background: rgba(11, 15, 30, 0.6);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.btn-ghost-cyan:hover {
  background: var(--cyan);
  color: #03050d;
  box-shadow: 0 0 35px var(--cyan);
}

.btn-sm-ghost {
  padding: 11px 20px;
  font-size: 0.84rem;
  border-radius: 8px;
}

/* ============================================================
   7. MATRIX CONSOLE, ARSENAL & TIMELINE
   ============================================================ */
.matrix-box {
  background: rgba(8, 12, 26, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 20px;
  padding: 2.2rem 1.8rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  width: 100%;
}

.slot-row {
  display: grid;
  grid-template-columns: 1.1fr auto 1.2fr auto 1.4fr;
  align-items: center;
  gap: 1rem;
  margin: 1.8rem 0;
}

.slot-box {
  background: rgba(3, 6, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1.2rem 1rem;
  text-align: center;
  min-height: 95px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.slot-box.highlight {
  border-color: var(--green);
  background: rgba(0, 255, 136, 0.09);
  box-shadow: 0 0 25px var(--green-glow);
}

.arsenal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
  width: 100%;
}

.advisory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.4rem;
  margin-top: 1.8rem;
  width: 100%;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
  width: 100%;
}

.trust-card {
  background: rgba(11, 15, 30, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: left;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.2rem;
  margin: 1.8rem 0 2.2rem;
  text-align: left;
  width: 100%;
}

.timeline-step {
  background: rgba(11, 15, 30, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 14px;
  padding: 1.4rem;
}

.stat-card {
  background: rgba(11, 15, 30, 0.85);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 14px;
  padding: 1.6rem;
  text-align: center;
}

/* ============================================================
   8. LEGAL & POLICY PAGES STYLING (TERMS, PRIVACY, REFUND)
   ============================================================ */
.legal-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 8.5rem 1.5rem 4rem;
  position: relative;
  z-index: 2;
}

.legal-card {
  background: var(--glass-sheer);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3.5rem 3rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(168, 85, 247, 0.04);
  contain: paint;
}

.legal-meta {
  display: inline-block;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.3);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #e9d5ff;
  margin-bottom: 2rem;
}

.legal-section { margin-bottom: 2.4rem; }
.legal-section:last-of-type { margin-bottom: 0; }
.section-heading {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.9rem;
  letter-spacing: 1px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.section-num { color: var(--cyan); font-family: 'JetBrains Mono', monospace; font-size: 1rem; }
.legal-body { color: var(--text-muted); font-size: 0.96rem; line-height: 1.85; }
.legal-body p { margin-bottom: 1rem; }
.legal-body p:last-child { margin-bottom: 0; }
.legal-body strong { color: #ffffff; font-weight: 700; }
.legal-body a { color: var(--cyan); text-decoration: underline; transition: color 0.2s; }
.legal-body a:hover { color: #ffffff; }
.legal-body ul { margin: 0.8rem 0 1rem 1.4rem; }
.legal-body li { margin-bottom: 0.5rem; }
.callout-box {
  background: rgba(11, 15, 30, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-left: 3px solid var(--cyan);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  margin: 1.2rem 0;
  font-size: 0.92rem;
  line-height: 1.75;
}
.callout-guarantee {
  border-color: rgba(0, 255, 136, 0.35);
  border-left-color: var(--green);
  background: rgba(0, 255, 136, 0.04);
}

/* ============================================================
   9. ADAPTIVE SOUNDTRACK BADGE & HUD PROGRESS RAIL
   ============================================================ */
#audio-toggle-btn {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 24px;
  z-index: 9999;
  background: rgba(8, 12, 26, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(192, 132, 252, 0.35);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  padding: 10px 18px;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 6px 25px rgba(0,0,0,0.7);
}

#audio-toggle-btn:hover {
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 18px var(--cyan-glow);
  transform: translateY(-2px);
}

#audio-toggle-btn.active {
  border-color: var(--crimson);
  color: #ff80a0;
  box-shadow: 0 0 25px var(--crimson-glow);
  background: rgba(255, 0, 85, 0.15);
  animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 15px var(--crimson-glow); }
  100% { box-shadow: 0 0 30px var(--crimson); }
}

#act-progress-hud {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 16px;
  pointer-events: auto;
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

.hud-item span {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 12, 26, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.hud-item label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.hud-item:hover, .hud-item.active { opacity: 1; }
.hud-item:hover label, .hud-item.active label { opacity: 1; transform: translateX(0); }
.hud-item.active span {
  border-color: var(--page-accent);
  background: var(--page-accent);
  color: #000;
  box-shadow: 0 0 15px var(--page-accent-glow);
}

/* ============================================================
   10. VALI-CAT MASCOT, CHAT MODAL & 3-DOT GREEN TYPING
   ============================================================ */
#valicat-anchor {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: calc(24px + env(safe-area-inset-right, 0px));
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.valicat-orb {
  width: clamp(84px, 5.5vw, 94px);
  height: clamp(84px, 5.5vw, 94px);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  padding: 2.5px;
  box-shadow: 0 0 25px rgba(255, 42, 133, 0.4), 0 0 35px rgba(37, 99, 235, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  will-change: transform;
}

@keyframes spinColorWheel {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.valicat-orb::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: conic-gradient(from 220deg, #ff2a85 0%, #a855f7 35%, #2563eb 65%, #ff2a85 100%);
  animation: spinColorWheel 11.25s linear infinite;
  z-index: 1;
}

.valicat-inner-core {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #04050a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.valicat-orb:hover {
  transform: scale(1.08);
  box-shadow: 0 0 45px var(--cyan), 0 0 35px var(--pink);
}

.valicat-orb.active-highlight {
  transform: scale(1.18) !important;
  box-shadow: 0 0 45px rgba(0, 255, 136, 0.95), 0 0 85px rgba(0, 255, 136, 0.6) !important;
}

@keyframes catOverclockTwitch {
  0%, 100% { transform: scale(1.18) translate(0, 0) rotate(0deg); }
  20% { transform: scale(1.22) translate(-3px, 2px) rotate(-4deg); }
  40% { transform: scale(1.16) translate(3px, -2px) rotate(4deg); }
  60% { transform: scale(1.24) translate(-2px, -3px) rotate(-3deg); }
  80% { transform: scale(1.18) translate(2px, 3px) rotate(3deg); }
}

.valicat-orb.overclock-twitch {
  animation: catOverclockTwitch 0.1s infinite linear !important;
  box-shadow: 0 0 50px #00ff88, 0 0 100px #00f0ff !important;
}

@keyframes zeusThunderShock {
  0%, 100% { transform: scale(1.25) translate(0, 0) rotate(0deg); }
  15% { transform: scale(1.30) translate(-4px, 3px) rotate(-6deg); }
  35% { transform: scale(1.20) translate(4px, -3px) rotate(6deg); }
  55% { transform: scale(1.32) translate(-3px, -4px) rotate(-5deg); }
  75% { transform: scale(1.22) translate(3px, 4px) rotate(5deg); }
  90% { transform: scale(1.28) translate(-1px, 2px) rotate(-2deg); }
}

.valicat-orb.zeus-thunder-mode {
  animation: zeusThunderShock 0.06s infinite linear !important;
  box-shadow: 0 0 60px #0055ff, 0 0 110px #00d4ff, 0 0 160px #ff0055 !important;
}

.valicat-orb.zeus-thunder-mode svg path[fill="#00ff88"],
.valicat-orb.zeus-thunder-mode svg ellipse[fill="#00ff88"] {
  fill: #00d4ff !important;
  filter: drop-shadow(0 0 8px #0055ff) !important;
}

.valicat-orb.zeus-thunder-mode svg .third-eye-gem path {
  fill: #ff0055 !important;
  filter: drop-shadow(0 0 14px #ff0055) !important;
}

.valicat-orb svg {
  width: clamp(54px, 3.8vw, 62px);
  height: clamp(54px, 3.8vw, 62px);
  overflow: visible;
}

.cat-breathing { transform-origin: 100px 160px; animation: catBreathe 4s ease-in-out infinite alternate; }
@keyframes catBreathe { 0% { transform: scale(1, 1); } 100% { transform: scale(1.02, 0.98) translateY(1px); } }
.cat-tail { transform-origin: 78px 144px; animation: tailWave 3.5s ease-in-out infinite alternate; }
@keyframes tailWave { 0% { transform: rotate(-3deg); } 100% { transform: rotate(10deg); } }
.ear-left { transform-origin: 72px 58px; animation: earTwitch 5s ease-in-out infinite; }
@keyframes earTwitch { 0%, 92%, 100% { transform: rotate(0deg); } 94% { transform: rotate(-8deg); } 97% { transform: rotate(5deg); } }
.cat-eyes { transform-origin: 100px 71px; animation: oracleBlink 4.5s ease-in-out infinite; }
@keyframes oracleBlink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.08); } }
.third-eye-gem { animation: gemGlow 2.5s ease-in-out infinite alternate; cursor: pointer; }
@keyframes gemGlow { 0% { fill: var(--cyan); filter: drop-shadow(0 0 2px var(--cyan)); } 100% { fill: var(--green); filter: drop-shadow(0 0 8px var(--green)); } }

/* Chat Modal Frame */
#valicat-chat-modal {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: calc(24px + env(safe-area-inset-right, 0px));
  width: clamp(320px, 92vw, 380px);
  height: 560px;
  max-height: calc(75dvh - env(safe-area-inset-bottom, 0px));
  border-radius: 28px;
  overflow: hidden;
  padding: 2.5px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 42, 133, 0.35);
  z-index: 100000;
  display: none;
}

#valicat-chat-modal::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 350%;
  height: 350%;
  background: conic-gradient(from 220deg, #ff2a85 0%, #a855f7 35%, #2563eb 65%, #ff2a85 100%);
  animation: spinColorWheel 11.25s linear infinite;
  z-index: 1;
}

#valicat-chat-modal.open {
  display: block;
  animation: chatSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes chatSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-inner-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: #0b0c10;
  border-radius: 25.5px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-history {
  flex: 1;
  padding: 20px 16px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #e5e5e5;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.chat-history::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.message {
  padding: 12px 16px;
  border-radius: 12px;
  max-width: 88%;
  font-size: 0.92rem;
  line-height: 1.45;
  word-wrap: break-word;
}

.user-msg {
  background: #252830 !important;
  color: #ffffff !important;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.ai-msg {
  background: #1c1d22 !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(192, 132, 252, 0.2);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.ai-msg a {
  color: var(--green) !important;
  text-decoration: underline;
  font-weight: bold;
}

/* 3-Dot Glowing Green Typing Animation */
.typing-indicator {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 14px 18px;
  width: fit-content;
}

.dot {
  width: 6px;
  height: 6px;
  background-color: var(--green);
  border-radius: 50%;
  animation: valicatBounce 1.4s infinite ease-in-out both;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes valicatBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

.input-area {
  display: flex;
  padding: 12px 14px;
  background: rgba(3, 6, 15, 0.95);
  border-top: 1px solid rgba(192, 132, 252, 0.2);
  gap: 8px;
  align-items: center;
}

#user-input {
  flex: 1;
  background: #14151a;
  border: 1px solid #23252e;
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-size: 16px !important; /* Prevents mobile iOS viewport auto-zoom */
  outline: none;
  font-family: inherit;
  -webkit-text-size-adjust: 100%;
}

#user-input::placeholder { color: #64748b; }
#user-input:focus { border-color: #3f4252; }

#send-btn {
  background: #14151a;
  border: 1px solid #23252e;
  color: var(--green);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0 18px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#send-btn:hover {
  background: #1c1e26;
  border-color: var(--green);
}

/* ============================================================
   11. EOI SANCTUM MODAL & FULL-VIEWPORT STARDUST
   ============================================================ */
#valicred-eoi-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.14) 0%, rgba(2, 3, 8, 0.94) 70%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

#valicred-eoi-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Full-Viewport Stardust Layer (Renders Over Background & Modal Backdrop) */
#valicred-cursor-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none !important;
  z-index: 1000001;
}

#valicred-eoi-modal-wrap {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.95);
  width: min(860px, calc(100% - 24px));
  height: min(90dvh, 840px);
  border-radius: 24px;
  z-index: 999999;
  background: rgba(6, 9, 22, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(192, 132, 252, 0.35);
  box-shadow: 
    0 30px 100px rgba(0, 0, 0, 0.98),
    0 0 60px rgba(168, 85, 247, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 0 25px rgba(0, 240, 255, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, visibility 0.35s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#valicred-eoi-modal-wrap.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.valicred-sanctum-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(11, 15, 30, 0.92);
  border: 1px solid rgba(0, 240, 255, 0.45);
  backdrop-filter: blur(14px);
  color: #e2e8f0;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.valicred-sanctum-close:hover {
  border-color: #00ff88;
  color: #00ff88;
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.6);
  transform: rotate(90deg) scale(1.12);
}

.valicred-sanctum-stage {
  flex: 1;
  width: 100%;
  height: 100%;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  padding: 30px 24px 70px 24px;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.valicred-sanctum-stage::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.valicred-sanctum-stage iframe {
  display: block;
  width: 100% !important;
  border: none !important;
}

/* ============================================================
   12. FOOTER
   ============================================================ */
footer {
  position: relative;
  z-index: 10;
  background: rgba(3, 4, 10, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(168, 85, 247, 0.2);
  padding: 5rem 1.5rem 3rem;
  margin-top: 4rem;
  width: 100%;
}

.footer-container {
  max-width: 1080px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
  text-align: left;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.2rem;
}

.footer-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.footer-col h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: #f3e8ff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: var(--cyan);
  padding-left: 4px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 1.2rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(11, 15, 30, 0.8);
  border: 1px solid rgba(192, 132, 252, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.social-btn:hover {
  border-color: var(--cyan);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.footer-closing {
  text-align: center;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2.5rem;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: #94a3b8;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--cyan);
}

/* ============================================================
   13. RESPONSIVE MOBILE SPACING (NO OVERLAPS / DE-CRAMMED)
   ============================================================ */
@media (max-width: 1024px) {
  #act-progress-hud { display: none; }
  .nav-menu { display: none; }
  .mobile-menu-btn { display: block; }
}

@media (max-width: 768px) {
  section:first-of-type, #hero, #core-hero, #advisory-hero, #ep1 {
    min-height: 100dvh;
    padding: 6rem 1rem 3rem;
    margin-bottom: clamp(10rem, 28vh, 18rem);
  }

  section:not(:first-of-type):not(:last-of-type) {
    padding-top: clamp(3.5rem, 8vh, 5.5rem);
    padding-bottom: clamp(3.5rem, 8vh, 5.5rem);
    margin-bottom: clamp(12rem, 32vh, 20rem);
  }

  .glass-card {
    padding: 2rem 1.25rem;
    background: rgba(8, 12, 26, 0.50);
    border-radius: 20px;
  }

  .legal-wrapper { padding: 6.5rem 1rem 3rem; }
  .legal-card { padding: 2.2rem 1.4rem; }

  .arsenal-grid, .advisory-grid, .timeline-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .arsenal-grid .glass-card, .advisory-grid .glass-card {
    padding: 1.8rem 1.2rem;
  }

  .slot-row { grid-template-columns: 1fr; gap: 0.6rem; }
  .slot-op { transform: rotate(90deg); margin: 0 auto; }
  
  #valicat-anchor {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
  }

  .valicat-orb { width: 64px; height: 64px; }
  .valicat-orb svg { width: 44px; height: 44px; }
  
  #valicat-chat-modal {
    right: 12px;
    left: 12px;
    width: calc(100% - 24px);
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    height: 490px;
    max-height: calc(70dvh - env(safe-area-inset-bottom, 0px));
  }
  
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-bar { flex-direction: column; text-align: center; }
  #audio-toggle-btn { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: 16px; font-size: 0.72rem; }
}