/* ============================================================
   AGI NEUTRON — Coming Soon
   Premium futuristic styling
   ============================================================ */

:root {
  --bg-0: #02040a;      /* deepest black-navy */
  --bg-1: #04070f;      /* primary dark */
  --bg-2: #081022;      /* deep navy */
  --cyan: #31e7ff;
  --blue: #3b6cff;
  --violet: #8a5cff;
  --pink: #ff5cd6;
  --ink: #eaf4ff;
  --ink-dim: #9fb2cc;
  --font-display: "Orbitron", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: radial-gradient(120% 120% 90% at 50% 0%, var(--bg-2) 0%, var(--bg-1) 42%, var(--bg-0) 100%);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

/* ---------- Background layers ---------- */
#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
#neural-canvas,
.fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.fallback.hidden { display: none; }

.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 50% 46%, rgba(2,4,10,0) 30%, rgba(2,4,10,0.65) 100%),
    linear-gradient(180deg, rgba(2,4,10,0.35) 0%, rgba(2,4,10,0) 30%, rgba(2,4,10,0.55) 100%);
  pointer-events: none;
  z-index: 2;
}
.bg-grain {
  position: absolute;
  inset: -50%;
  z-index: 3;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-4%,3%); }
  40% { transform: translate(3%,-4%); }
  60% { transform: translate(-3%,2%); }
  80% { transform: translate(4%,-3%); }
}

/* Ambient cursor glow (desktop only) */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 620px; height: 620px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(circle, rgba(58,138,255,0.16) 0%, rgba(138,92,255,0.08) 40%, rgba(0,0,0,0) 70%);
  filter: blur(6px);
  transition: opacity 0.6s var(--ease);
  mix-blend-mode: screen;
}
body.has-pointer .cursor-glow { opacity: 1; }

/* ---------- Content stage ---------- */
.stage {
  position: relative;
  z-index: 4;
  height: 100%;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.25rem, 4vw, 3rem);
}
.stage-inner {
  max-width: 760px;
  will-change: transform;
}

.brand-mark {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(1rem, 3vw, 1.75rem);
}
.brand-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--cyan), var(--blue) 55%, var(--violet) 100%);
  box-shadow: 0 0 22px 4px rgba(49,231,255,0.55), 0 0 60px 8px rgba(138,92,255,0.35);
  animation: pulse-dot 3.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.35); opacity: 1; }
}

.brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 10vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, #ffffff 0%, var(--cyan) 32%, #bcd0ff 55%, var(--violet) 82%, var(--pink) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 40px rgba(59,108,255,0.35));
  animation: shimmer 9s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  margin-top: clamp(1rem, 3vw, 1.9rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.82rem, 2.4vw, 1.1rem);
  letter-spacing: 0.42em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.status-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px 2px var(--cyan);
  animation: live 2s ease-in-out infinite;
}
@keyframes live {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

.tagline {
  margin-top: clamp(1.1rem, 3vw, 1.6rem);
  font-size: clamp(1.05rem, 3.4vw, 1.7rem);
  font-weight: 400;
  font-style: italic;
  color: #dbe7ff;
  text-shadow: 0 0 30px rgba(49,231,255,0.25);
}
.sub {
  margin-top: 0.7rem;
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  font-weight: 300;
  color: var(--ink-dim);
  letter-spacing: 0.01em;
}

/* ---------- Entrance animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); animation: rise 1.2s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ---------- Fallback (2D canvas) styling ---------- */
.fallback { background: transparent; }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .status { letter-spacing: 0.28em; }
  .cursor-glow { display: none; }
  body.has-pointer .cursor-glow { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .brand { animation: none; }
  .brand-dot { animation: none; }
  .status-pulse { animation: none; }
  .bg-grain { animation: none; }
  .reveal { animation: none; opacity: 1; transform: none; }
}

/* ---------- Accessibility: focus ---------- */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
