:root {
  --bg:         #0d0d0f;
  --surface:    #18181c;
  --surface2:   #222228;
  --border:     rgba(255,255,255,0.1);
  --accent:     #7c6af7;
  --accent-dim: #4e42a8;
  --text:       #e8e8f0;
  --text-muted: rgba(232,232,240,0.65);
  --text-dim:   rgba(232,232,240,0.35);
}

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

html { color-scheme: dark; font-size: 16px; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

/* ── HERO STAGE ── */

.hero-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.hero-slide.active { opacity: 1; }

.hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0) 15%,
    rgba(0,0,0,0) 100%);
  pointer-events: none;
}

/* ── TOPBAR ── */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 9px;
}

.logo-crescent {
  width: 22px;
  height: 22px;
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(124,106,247,0.6));
  flex-shrink: 0;
}

.logo-wordmark {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, serif;
}

.notify-trigger {
  padding: 9px 20px;
  border-radius: 24px;
  background: rgba(124,106,247,0.9);
  border: 1px solid rgba(124,106,247,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  letter-spacing: 0.2px;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.notify-trigger:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.notify-trigger:active { transform: none; }

/* ── SLIDE DOTS ── */

.slide-dots {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 8px;
  align-items: center;
}

.slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.slide-dot.active {
  background: #fff;
  transform: scale(1.4);
}

/* ── MODAL ── */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in 0.2s ease;
}

.modal-backdrop[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 201;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] { display: none; }

.modal-card {
  position: relative;
  width: min(440px, 100%);
  background: rgba(18,18,24,0.98);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px 36px 32px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(124,106,247,0.12);
  animation: slide-up 0.28s cubic-bezier(0.34,1.56,0.64,1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.modal-close:hover { background: rgba(255,255,255,0.14); color: var(--text); }
.modal-close svg { width: 15px; height: 15px; }

.modal-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(124,106,247,0.15);
  border: 1px solid rgba(124,106,247,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.modal-logo svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
  fill: var(--accent);
}

.modal h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.2;
}

.modal-sub {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 26px;
  max-width: 320px;
}

/* ── NOTIFY FORM ── */

.notify-form { width: 100%; }

.form-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.notify-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.notify-form input[type="email"]::placeholder { color: var(--text-dim); }
.notify-form input[type="email"]:focus { border-color: var(--accent); }

.form-submit {
  flex-shrink: 0;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.form-submit:hover { background: var(--accent-dim); }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.form-error {
  font-size: 13px;
  color: #f87171;
  margin-top: 8px;
  text-align: center;
}
.form-error[hidden] { display: none; }

/* ── SUCCESS STATE ── */

.modal-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
}
.modal-success[hidden] { display: none; }

.success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #4ade80;
  margin-bottom: 8px;
}

.success-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.success-sub {
  font-size: 14px;
  color: var(--text-muted);
}

.modal-fine-print {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 16px;
  text-align: center;
}

/* ── TOAST ── */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 300;
  background: rgba(30,30,38,0.95);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  backdrop-filter: blur(12px);
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── ANIMATIONS ── */

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── REDUCED MOTION ── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-slide { transition: none; }
}

/* ── MOBILE ── */

@media (max-width: 480px) {
  .topbar { padding: 14px 16px; }
  .logo-wordmark { font-size: 16px; }
  .notify-trigger { padding: 8px 14px; font-size: 12px; }

  .form-row { flex-direction: column; }
  .form-submit { width: 100%; padding: 13px; }

  .modal h2 { font-size: 22px; }
}
