/* ==========================================================
   EPIC AI Landing — Federated Cybersecurity Intelligence
   Design tokens matched from NILAssist DesktopLandingScreen
   ========================================================== */
:root {
  --gold: #C9A961;
  --gold-light: #e8d48b;
  --gold-dim: rgba(201, 169, 97, 0.5);
  --blur-glow-subtle: 8px;
  --blur-glow-prominent: 16px;
  --glow-cycle: 2500ms;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --surface-primary: #0a0a1a;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%; width: 100%;
  font-family: var(--font-heading);
  background: var(--surface-primary);
  color: #e0e0e0;
  overflow: hidden;
}

/* Atmospheric Void */
.atmospheric-void {
  position: fixed; inset: 0; overflow: hidden;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 169, 97, 0.04), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.03), transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(201, 169, 97, 0.03), transparent 50%);
}
.aurora {
  position: absolute; width: 50%; height: 50%;
  border-radius: 50%; filter: blur(var(--blur-glow-prominent));
  opacity: 0.12;
  animation: aurora-drift 20s ease-in-out infinite alternate;
}
.aurora.gold {
  top: -10%; left: 30%;
  background: radial-gradient(circle, var(--gold), transparent 70%);
}
.aurora.violet {
  bottom: -10%; right: 20%;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  animation-delay: -10s;
}
@keyframes aurora-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.1); }
}

/* Layout — locked to viewport, no scroll */
.landing-layout {
  position: relative; z-index: 1;
  height: 100vh; width: 100vw;
  display: flex; flex-direction: column;
  align-items: center;
  padding: 24px 24px 12px;
}

/* Tagline */
.hero-header {
  text-align: center;
  flex-shrink: 0;
  padding-bottom: 8px;
}
.tagline {
  font-size: clamp(16px, 2.5vw, 28px);
  font-weight: 500;
  color: #FFF8E7;
  letter-spacing: 0.02em;
}

/* ==========================================================
   DOMAIN RING — viewport-fitted
   ========================================================== */
.domain-ring-section {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  width: 100%;
  min-height: 0;
}
.domain-ring {
  position: relative;
  /* Square, sized to the smaller viewport dimension */
  width: min(70vw, 65vh);
  height: min(70vw, 65vh);
}
.ring-lines {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.ring-line {
  stroke: rgba(201, 169, 97, 0.1);
  stroke-width: 0.25;
  transition: stroke 0.3s, stroke-width 0.3s;
}
.ring-line--spoke {
  stroke: rgba(201, 169, 97, 0.15);
  stroke-width: 0.25;
  transition: stroke 0.3s, stroke-width 0.3s;
}
.ring-line--active {
  stroke: rgba(201, 169, 97, 0.5);
  stroke-width: 0.6;
}

/* Domain Nodes — circles with text inside */
.domain-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: clamp(60px, 9vw, 90px);
  height: clamp(60px, 9vw, 90px);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface-primary) 80%, transparent);
  border: 1px solid rgba(201, 169, 97, 0.25);
  backdrop-filter: blur(12px);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  z-index: 2;
  box-shadow: 0 0 var(--blur-glow-subtle) rgba(201, 169, 97, 0.1);
  animation: node-pulse var(--glow-cycle) ease-in-out infinite;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, background 0.25s;
}
.domain-node:hover {
  transform: translate(-50%, -50%) scale(1.15);
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 10%, var(--surface-primary));
  box-shadow:
    0 0 var(--blur-glow-prominent) rgba(201, 169, 97, 0.5),
    0 0 calc(var(--blur-glow-prominent) * 2) rgba(201, 169, 97, 0.2),
    inset 0 0 var(--blur-glow-subtle) rgba(201, 169, 97, 0.1);
}
.domain-label {
  font-family: var(--font-mono);
  font-size: clamp(6px, 0.9vw, 9px);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.3;
  padding: 6px;
  letter-spacing: 0.02em;
  pointer-events: none;
  transition: color 0.25s;
}
.domain-node:hover .domain-label {
  color: var(--gold-light);
}
@keyframes node-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(201, 169, 97, 0.08); }
  50% { box-shadow: 0 0 var(--blur-glow-subtle) rgba(201, 169, 97, 0.2); }
}

/* Center Circle — Threat Briefing (matched to signature pill throb) */
.ring-center-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: clamp(90px, 13vw, 130px);
  height: clamp(90px, 13vw, 130px);
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 97, 0.5);
  background: color-mix(in srgb, var(--surface-primary) 85%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 0 var(--blur-glow-prominent) rgba(201, 169, 97, 0.4),
    inset 0 0 var(--blur-glow-subtle) rgba(201, 169, 97, 0.15);
  animation: center-glow var(--glow-cycle) ease-in-out infinite;
  transition: transform 0.25s;
}
.ring-center-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
}
.btn-label {
  font-family: var(--font-heading);
  font-size: clamp(9px, 1.3vw, 13px);
  font-weight: 700; color: var(--gold);
  letter-spacing: 0.08em; text-transform: uppercase;
  text-shadow: 0 0 var(--blur-glow-prominent) rgba(201, 169, 97, 0.6);
  text-align: center; line-height: 1.2;
  animation: text-throb var(--glow-cycle) ease-in-out infinite;
}
@keyframes center-glow {
  0%, 100% {
    box-shadow:
      0 0 var(--blur-glow-subtle) rgba(201, 169, 97, 0.3),
      inset 0 0 var(--blur-glow-subtle) rgba(201, 169, 97, 0.1);
    border-color: rgba(201, 169, 97, 0.4);
  }
  50% {
    box-shadow:
      0 0 var(--blur-glow-prominent) rgba(201, 169, 97, 0.6),
      inset 0 0 var(--blur-glow-subtle) rgba(201, 169, 97, 0.2);
    border-color: rgba(201, 169, 97, 0.7);
  }
}
@keyframes text-throb {
  0%, 100% {
    text-shadow: 0 0 var(--blur-glow-subtle) rgba(201, 169, 97, 0.3);
    color: var(--gold);
  }
  50% {
    text-shadow: 0 0 var(--blur-glow-prominent) rgba(201, 169, 97, 0.8);
    color: var(--gold-light);
  }
}

/* ==========================================================
   EPIC AI SIGNATURE PILL (pixel-matched from NILAssist)
   ========================================================== */
.epic-signature {
  text-align: center;
  padding: 8px 0 4px;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.signature-text {
  font-size: clamp(9px, 1.4vw, 13px);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-shadow: 0 0 var(--blur-glow-prominent) rgba(201, 169, 97, 0.6);
  padding: 6px 20px;
  border: 1px solid rgba(201, 169, 97, 0.5);
  border-radius: 9999px;
  display: inline-block;
  box-shadow:
    0 0 var(--blur-glow-prominent) rgba(201, 169, 97, 0.4),
    inset 0 0 var(--blur-glow-subtle) rgba(201, 169, 97, 0.15);
  animation: signature-glow var(--glow-cycle) ease-in-out infinite;
  transition: color 0.2s, text-shadow 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.signature-text:hover {
  color: #fff;
  text-shadow: 0 0 var(--blur-glow-prominent) rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 0 var(--blur-glow-prominent) rgba(255, 255, 255, 0.4),
    inset 0 0 var(--blur-glow-subtle) rgba(255, 255, 255, 0.15);
}
@keyframes signature-glow {
  0%, 100% {
    box-shadow: 0 0 var(--blur-glow-subtle) rgba(201, 169, 97, 0.3),
                inset 0 0 var(--blur-glow-subtle) rgba(201, 169, 97, 0.1);
    border-color: rgba(201, 169, 97, 0.4);
  }
  50% {
    box-shadow: 0 0 var(--blur-glow-prominent) rgba(201, 169, 97, 0.6),
                inset 0 0 var(--blur-glow-subtle) rgba(201, 169, 97, 0.2);
    border-color: rgba(201, 169, 97, 0.7);
  }
}
.nowrap { white-space: nowrap; }

/* ==========================================================
   FOOTER — compact single line
   ========================================================== */
.landing-footer {
  text-align: center;
  font-size: 9px;
  color: #FFF8E7;
  padding: 4px 16px 8px;
  flex-shrink: 0;
}
.landing-footer a {
  color: #FFF8E7;
  text-decoration: none;
}
.landing-footer a:hover { color: var(--gold-light); }
.sep { margin: 0 3px; }

/* ==========================================================
   MODAL
   ========================================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.modal--open {
  opacity: 1; pointer-events: auto;
}
.modal-panel {
  background: color-mix(in srgb, #1a1a2e 90%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: 16px;
  padding: 32px;
  max-width: 520px; width: 90%;
  position: relative;
  box-shadow:
    0 0 var(--blur-glow-prominent) rgba(201, 169, 97, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 24px; cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover { color: #fff; }
.modal-title {
  font-family: var(--font-heading);
  font-size: 20px; font-weight: 700;
  color: var(--gold); margin-bottom: 16px;
}
.modal-body {
  font-size: 14px; line-height: 1.7;
  color: #FFF8E7;
}
.modal-footer-text {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid rgba(201, 169, 97, 0.15);
  font-size: 12px;
  color: rgba(201, 169, 97, 0.6);
  font-style: italic;
}
/* Trust Grid (platform modal) */
.trust-grid {
  display: grid; gap: 16px;
  margin-top: 8px;
}
.trust-item {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 169, 97, 0.1);
}
.trust-heading {
  font-family: var(--font-heading);
  font-size: 15px; font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}
.trust-item p {
  font-size: 13px; line-height: 1.6;
  color: #FFF8E7;
}
