/* ReactorCore Systems — stay-tuned teaser */

:root {
  --bg: #030303;
  --bg-elevated: #0a0a0a;
  --green: #7cfc00;
  --green-deep: #3d8c12;
  --green-soft: rgba(124, 252, 0, 0.14);
  --green-ring: rgba(124, 252, 0, 0.45);
  --text: #c6c6c6;
  --text-dim: #6e6e6e;
  --logo-max: min(52vw, 320px);
  --ring-size: min(42vw, 240px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Oxanium", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

/* Full-viewport stage */
.stage {
  position: relative;
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  padding: 2rem 1.25rem;
  isolation: isolate;
}

/* Ambient reactor wash */
.glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 55% 42% at 50% 46%,
      rgba(124, 252, 0, 0.13) 0%,
      rgba(61, 140, 18, 0.05) 35%,
      transparent 68%
    ),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(20, 40, 10, 0.35), transparent 55%),
    var(--bg);
}

/* Subtle film grain */
.noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Logo + ripple stack */
.mark {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: var(--logo-max);
  height: var(--logo-max);
}

.logo {
  position: relative;
  z-index: 3;
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 0 28px rgba(124, 252, 0, 0.12));
}

.core-glow {
  position: absolute;
  z-index: 2;
  width: 38%;
  height: 38%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 252, 0, 0.35) 0%,
    rgba(124, 252, 0, 0.08) 45%,
    transparent 70%
  );
  animation: core-breathe 3.2s ease-in-out infinite;
  pointer-events: none;
}

.ring {
  position: absolute;
  z-index: 1;
  width: var(--ring-size);
  height: var(--ring-size);
  border-radius: 50%;
  border: 1px solid var(--green-ring);
  box-shadow:
    0 0 12px rgba(124, 252, 0, 0.12),
    inset 0 0 12px rgba(124, 252, 0, 0.04);
  pointer-events: none;
  animation: ripple 3s cubic-bezier(0.15, 0.6, 0.25, 1) infinite;
}

.ring--1 {
  animation-delay: 0s;
}

.ring--2 {
  animation-delay: 1s;
}

.ring--3 {
  animation-delay: 2s;
}

@keyframes ripple {
  0% {
    transform: scale(0.45);
    opacity: 0.75;
    border-color: rgba(124, 252, 0, 0.55);
  }
  70% {
    opacity: 0.2;
  }
  100% {
    transform: scale(2.15);
    opacity: 0;
    border-color: rgba(124, 252, 0, 0);
  }
}

@keyframes core-breathe {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.65;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

/* Status line */
.status {
  position: relative;
  z-index: 2;
  margin: 0;
  font-weight: 300;
  font-size: clamp(0.8rem, 2.4vw, 0.95rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
}

.status__text {
  color: var(--text);
}

.status__dots::after {
  content: "...";
  letter-spacing: 0.08em;
  color: var(--green);
  text-shadow: 0 0 12px rgba(124, 252, 0, 0.55);
  animation: dots-pulse 1.6s ease-in-out infinite;
}

@keyframes dots-pulse {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

/* Small screens */
@media (max-width: 480px) {
  :root {
    --logo-max: min(78vw, 280px);
    --ring-size: min(68vw, 220px);
  }

  .status {
    letter-spacing: 0.18em;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ring {
    animation: none;
    opacity: 0.2;
    transform: scale(1.15);
  }

  .ring--2,
  .ring--3 {
    display: none;
  }

  .core-glow {
    animation: none;
    opacity: 0.75;
  }

  .status__dots::after {
    animation: none;
    opacity: 0.85;
  }
}
