:root {
  --nova-deep: #1A0A2E;
  --nova-core: #2D1454;
  --nova-mid: #4A1D8A;
  --nova-vivid: #7B2FBE;
  --nova-bright: #9B4DDB;
  --nova-glow: #C084FC;
  --nova-pale: #E9D5FF;
  --nova-whisper: #F5F0FF;
  --gold: #F59E0B;
  --gold-soft: #FCD34D;
  --ember: #EA580C;
  --slate-900: #0F0A1A;
  --slate-800: #1C1429;
  --slate-700: #2A1F3D;
  --slate-600: #3D3356;
  --slate-500: #5A4F72;
  --slate-400: #8078A0;
  --slate-300: #ABA4C2;
  --slate-200: #D4D0E0;
  --slate-100: #ECEAF2;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; }

body {
  min-height: 100vh;
  font-family: 'DM Sans', sans-serif;
  background: var(--slate-900);
  color: var(--slate-100);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

/* ── CANVAS: star field + orbital rings ── */
canvas#stars {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── ATMOSPHERIC LAYERS ── */
.atmosphere {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}

.atmo-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.atmo-orb.primary {
  width: min(700px, 90vw);
  height: min(700px, 90vw);
  background: radial-gradient(circle, rgba(123,47,190,0.12) 0%, rgba(74,29,138,0.06) 50%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  animation: orb-breathe 10s ease-in-out infinite;
}

.atmo-orb.secondary {
  width: min(400px, 60vw);
  height: min(400px, 60vw);
  background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 60%);
  top: 45%; left: 55%;
  transform: translate(-50%, -50%);
  animation: orb-breathe 7s ease-in-out infinite reverse;
}

.atmo-orb.tertiary {
  width: min(300px, 50vw);
  height: min(300px, 50vw);
  background: radial-gradient(circle, rgba(155,77,219,0.08) 0%, transparent 60%);
  top: 60%; left: 40%;
  transform: translate(-50%, -50%);
  animation: orb-breathe 12s ease-in-out infinite 2s;
}

@keyframes orb-breathe {
  0%, 100% { transform: translate(-50%, -55%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -55%) scale(1.2); opacity: 0.6; }
}

/* ── GRAIN OVERLAY ── */
.grain {
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.03;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ── MAIN LAYOUT ── */
.page {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* ── NOVA MARK ── */
.mark-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 3rem;
}

.mark-glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,132,252,0.2) 0%, transparent 60%);
  animation: mark-pulse 4s ease-in-out infinite;
}

@keyframes mark-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
}

.mark-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(192,132,252,0.08);
  animation: ring-rotate 30s linear infinite;
}

.mark-ring::before {
  content: '';
  position: absolute;
  top: -2px; left: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--nova-glow);
  box-shadow: 0 0 8px var(--nova-glow);
  transform: translateX(-50%);
}

.mark-ring-outer {
  position: absolute;
  inset: -44px;
  border-radius: 50%;
  border: 1px solid rgba(192,132,252,0.04);
  animation: ring-rotate 50s linear infinite reverse;
}

.mark-ring-outer::before {
  content: '';
  position: absolute;
  bottom: 4px; right: 10%;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
  opacity: 0.7;
}

@keyframes ring-rotate {
  to { transform: rotate(360deg); }
}

.mark-svg {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  filter: drop-shadow(0 0 20px rgba(192,132,252,0.3));
}

/* ── WORDMARK ── */
.wordmark {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.1;
  background: linear-gradient(
    135deg,
    var(--nova-pale) 0%,
    var(--nova-glow) 30%,
    var(--nova-bright) 60%,
    var(--gold-soft) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-reveal 1.5s ease-out both;
  animation-delay: 0.3s;
  opacity: 0;
}

@keyframes text-reveal {
  from { opacity: 0; transform: translateY(20px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ── TAGLINE ── */
.tagline {
  font-family: 'Sora', sans-serif;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 400;
  color: var(--slate-400);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 1.25rem;
  animation: text-reveal 1.5s ease-out both;
  animation-delay: 0.7s;
  opacity: 0;
}

/* ── DIVIDER LINE ── */
.divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--nova-vivid), transparent);
  margin: 2.5rem 0;
  animation: text-reveal 1s ease-out both;
  animation-delay: 1s;
  opacity: 0;
}

/* ── BODY TEXT ── */
.body-text .h {
  color: rgba(255,255,255,0.92);
}

.body-text {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--slate-400);
  text-align: center;
  max-width: 480px;
  line-height: 1.75;
  animation: text-reveal 1.5s ease-out both;
  animation-delay: 1.1s;
  opacity: 0;
}

/* ── EMAIL FORM ── */
.notify-form {
  display: flex;
  gap: 0;
  margin-top: 2.5rem;
  width: 100%;
  max-width: 440px;
  animation: text-reveal 1.5s ease-out both;
  animation-delay: 1.4s;
  opacity: 0;
}

.notify-input {
  flex: 1;
  background: rgba(42,31,61,0.6);
  border: 1px solid var(--slate-600);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 0.85rem 1.1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--slate-100);
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.notify-input::placeholder { color: var(--slate-500); }

.notify-input:focus {
  border-color: var(--nova-vivid);
  background: rgba(42,31,61,0.8);
}

.notify-btn {
  background: var(--nova-vivid);
  color: white;
  border: 1px solid var(--nova-vivid);
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1.6rem;
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.notify-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.notify-btn:hover {
  background: var(--nova-bright);
}

.notify-btn:hover::before {
  transform: translateX(100%);
}

.notify-btn:active {
  transform: scale(0.97);
}

/* ── SUCCESS STATE ── */
.notify-form.success .notify-input,
.notify-form.success .notify-btn { display: none; }

.success-msg {
  display: none;
  width: 100%;
  text-align: center;
  padding: 0.85rem;
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  color: var(--nova-glow);
  border: 1px solid rgba(192,132,252,0.2);
  border-radius: 8px;
  background: rgba(42,31,61,0.4);
  backdrop-filter: blur(12px);
}

.notify-form.success .success-msg { display: block; }

/* ── FOOTER ── */
.page-footer {
  position: relative;
  z-index: 3;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  animation: text-reveal 1.5s ease-out both;
  animation-delay: 1.8s;
  opacity: 0;
}

.footer-item {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--slate-600);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-item:hover { color: var(--slate-400); }

.footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--slate-700);
}

/* ── RESPONSIVE ── */
@media (max-width: 520px) {
  .notify-form {
    flex-direction: column;
    gap: 10px;
  }
  .notify-input {
    border-right: 1px solid var(--slate-600);
    border-radius: 8px;
  }
  .notify-input:focus { border-color: var(--nova-vivid); }
  .notify-btn { border-radius: 8px; }
  .mark-container { width: 90px; height: 90px; margin-bottom: 2rem; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  canvas#stars { display: none; }
}