/* Ethereal TaboriX.Ai landing — 30s continuous atmosphere loop */
:root {
  --loop-duration: 30s;
  --loop-iteration: infinite;
  --ink: #e8eefc;
  --ink-soft: rgba(220, 230, 255, 0.72);
  --accent: #9ec5ff;
  --glass: rgba(18, 28, 48, 0.42);
  --glass-border: rgba(180, 210, 255, 0.22);
  --glow: rgba(140, 190, 255, 0.45);
}

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

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

body {
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--ink);
  background: #060a14;
  overflow: hidden;
}

/* Full-viewport scene */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #060a14;
}

.sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 18%, #1a2a4a 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 70% 30%, rgba(90, 120, 200, 0.25) 0%, transparent 60%),
    linear-gradient(180deg, #0a1020 0%, #101c34 42%, #1a2740 68%, #0c1424 100%);
  animation: ethereal-cycle var(--loop-duration) ease-in-out var(--loop-iteration);
}

/* Soft AI neural haze — no hard white dots */
.neural-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 40% at 22% 28%, rgba(90, 160, 255, 0.14), transparent 70%),
    radial-gradient(ellipse 45% 35% at 78% 22%, rgba(140, 110, 255, 0.12), transparent 72%),
    radial-gradient(ellipse 60% 45% at 50% 55%, rgba(70, 200, 220, 0.08), transparent 68%);
  filter: blur(28px);
  mix-blend-mode: screen;
  opacity: 0.85;
  animation: ethereal-cycle var(--loop-duration) ease-in-out var(--loop-iteration);
  animation-delay: -4s;
}

.neural-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
  mix-blend-mode: screen;
}

.aurora {
  position: absolute;
  inset: -10% 0 30% 0;
  background:
    radial-gradient(ellipse 40% 30% at 30% 40%, rgba(100, 180, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 35% 28% at 70% 35%, rgba(160, 120, 255, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 20% at 50% 50%, rgba(80, 200, 220, 0.1), transparent 70%);
  filter: blur(22px);
  mix-blend-mode: screen;
  animation: ethereal-cycle var(--loop-duration) ease-in-out var(--loop-iteration);
  animation-delay: -10s;
}

.plain {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 0;
  height: 34%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(20, 32, 52, 0.55) 18%, #0e1728 55%, #080e18 100%);
  animation: ethereal-cycle var(--loop-duration) ease-in-out var(--loop-iteration);
  animation-delay: -2s;
}

.mountain-wrap {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: min(72vw, 820px);
  transform: translateX(-50%) scale(0.78);
  transform-origin: center bottom;
  opacity: 0.88;
  filter: blur(0.4px);
  animation: ethereal-cycle var(--loop-duration) ease-in-out var(--loop-iteration);
}

.mountain {
  display: block;
  width: 100%;
  height: auto;
}

.mist {
  position: absolute;
  left: -20%;
  right: -20%;
  height: 40%;
  pointer-events: none;
  background: radial-gradient(
    ellipse 50% 40% at 50% 50%,
    rgba(180, 210, 255, 0.14),
    transparent 70%
  );
  filter: blur(24px);
  animation: ethereal-cycle var(--loop-duration) ease-in-out var(--loop-iteration);
}

.mist-back {
  bottom: 22%;
  opacity: 0.7;
  animation-delay: -8s;
}

.mist-front {
  bottom: 4%;
  height: 28%;
  opacity: 0.55;
  animation-delay: -16s;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 65% at 50% 42%, transparent 38%, rgba(4, 8, 16, 0.78) 100%);
  pointer-events: none;
}

/* Primary 30s ethereal atmosphere cycle (seamless-ish ease-in-out loop) */
@keyframes ethereal-cycle {
  0% {
    filter: brightness(0.92) saturate(0.95);
    opacity: 0.92;
    transform: translate3d(0, 0, 0) scale(1);
  }
  20% {
    filter: brightness(1.05) saturate(1.08);
    opacity: 1;
    transform: translate3d(0.4%, -0.6%, 0) scale(1.01);
  }
  45% {
    filter: brightness(1.12) saturate(1.15);
    opacity: 1;
    transform: translate3d(-0.3%, -1.1%, 0) scale(1.02);
  }
  70% {
    filter: brightness(1.02) saturate(1.05);
    opacity: 0.97;
    transform: translate3d(0.5%, -0.4%, 0) scale(1.01);
  }
  100% {
    filter: brightness(0.92) saturate(0.95);
    opacity: 0.92;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.mountain-wrap.ethereal-cycle {
  animation-name: ethereal-cycle, mountain-breathe;
  animation-duration: var(--loop-duration), var(--loop-duration);
  animation-timing-function: ease-in-out, ease-in-out;
  animation-iteration-count: var(--loop-iteration), var(--loop-iteration);
}

@keyframes mountain-breathe {
  0%,
  100% {
    transform: translateX(-50%) scale(0.78) translateY(0);
  }
  50% {
    transform: translateX(-50%) scale(0.795) translateY(-1.2%);
  }
}

/* Foreground content */
.content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(2rem, 6vh, 4rem) 1.25rem 2rem;
  text-align: center;
}

.brand {
  margin-top: clamp(1.5rem, 8vh, 5rem);
  max-width: 36rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}

.title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-shadow:
    0 0 40px rgba(140, 190, 255, 0.35),
    0 2px 24px rgba(0, 0, 0, 0.45);
}

.slogan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.7rem auto 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: #e4eefe;
  text-shadow: 0 0 28px rgba(158, 197, 255, 0.32);
}

.slogan::before,
.slogan::after {
  content: "";
  width: 1.75rem;
  height: 1px;
  flex: 0 0 1.75rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(215, 232, 255, 0.55),
    transparent
  );
}

.tagline {
  margin: 0.85rem auto 0;
  max-width: 22rem;
  font-weight: 300;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  line-height: 1.55;
}

/* Lower-mid email capture */
.waitlist {
  margin-top: auto;
  margin-bottom: clamp(4rem, 14vh, 8rem);
  width: min(100%, 28rem);
  padding: 1.1rem 1.15rem 1rem;
  border-radius: 1.15rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.waitlist-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.waitlist input[type="email"] {
  flex: 1 1 12rem;
  min-width: 0;
  border: 1px solid rgba(170, 200, 255, 0.22);
  border-radius: 0.7rem;
  background: rgba(8, 14, 26, 0.55);
  color: var(--ink);
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist input[type="email"]::placeholder {
  color: rgba(200, 215, 240, 0.45);
}

.waitlist input[type="email"]:focus {
  border-color: rgba(158, 197, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(120, 170, 255, 0.18);
}

.waitlist button {
  flex: 0 0 auto;
  border: none;
  border-radius: 0.7rem;
  padding: 0.85rem 1.25rem;
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #0a1220;
  background: linear-gradient(135deg, #d7e8ff 0%, #9ec5ff 55%, #7aa8ef 100%);
  cursor: pointer;
  box-shadow: 0 0 24px var(--glow);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.waitlist button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.waitlist button:active {
  transform: translateY(0);
}

.waitlist button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-status {
  min-height: 1.25rem;
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.form-status.is-error {
  color: #ffb4b4;
}

.form-status.is-success {
  color: #b8f0d0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 520px) {
  .waitlist button {
    width: 100%;
  }

  .mountain-wrap {
    width: min(92vw, 820px);
    bottom: 20%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ethereal-cycle {
    animation: none !important;
  }

  .neural-net {
    opacity: 0.45;
  }
}
