/* ═══════════════════════════════════════════
   STELLAR — Stealth Landing Page
   ═══════════════════════════════════════════ */

:root {
  --black: #000000;
  --bg-deep: #030508;
  --bg-panel: #060a10;
  --bg-card: #0a0f18;
  --bg-elevated: #0d1420;
  --cyan: #00e5ff;
  --cyan-dim: #00a5b8;
  --cyan-glow: rgba(0, 229, 255, 0.15);
  --cyan-glow-strong: rgba(0, 229, 255, 0.35);
  --white: #f0f4f8;
  --white-mid: #8a9bb0;
  --white-dim: #4a5568;
  --red: #ff3d3d;
  --grid-line: rgba(0, 229, 255, 0.04);
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-deep);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Grid Background ── */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 100%);
  pointer-events: none;
}

/* ── Scanlines ── */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.015) 2px,
    rgba(0, 0, 0, 0.015) 4px
  );
  mix-blend-mode: multiply;
}

/* ── Noise Texture ── */
.noise {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.025;
}

/* ── Particle Canvas ── */
#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ── Radial Glow ── */
.radial-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.06) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  animation: pulse-glow 6s ease-in-out infinite;
}

/* ── Main Content ── */
.content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  padding: 2rem clamp(1.5rem, 6vw, 4rem);
  text-align: center;
}

/* ── Logo ── */
.logo-container {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 2rem;
  animation: fade-up 1s ease forwards;
  opacity: 0;
}

.logo-container svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.4));
  animation: logo-pulse 4s ease-in-out infinite;
}

/* ── Brand Title ── */
.brand-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.35em;
  line-height: 1;
  margin-bottom: 0.75rem;
  background: linear-gradient(
    90deg,
    var(--white) 0%,
    var(--cyan) 25%,
    var(--white) 50%,
    var(--cyan) 75%,
    var(--white) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fade-up 1s ease 0.2s forwards, shimmer 6s linear infinite;
  opacity: 0;
}

/* ── Tagline ── */
.tagline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  font-weight: 300;
  color: var(--white-mid);
  letter-spacing: 0.05em;
  line-height: 1.6;
  margin-bottom: 2rem;
  animation: fade-up 1s ease 0.4s forwards;
  opacity: 0;
}

/* ── Divider ── */
.divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-dim), transparent);
  margin-bottom: 2rem;
  animation: fade-up 1s ease 0.6s forwards;
  opacity: 0;
}

/* ── Teaser ── */
.teaser {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.6rem, 1.2vw, 0.75rem);
  font-weight: 400;
  color: var(--white-dim);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  animation: fade-up 1s ease 0.8s forwards;
  opacity: 0;
}

/* ── Signup Form ── */
.signup-form {
  display: flex;
  gap: 0;
  max-width: 440px;
  width: 100%;
  animation: fade-up 1s ease 1s forwards;
  opacity: 0;
}

.signup-input {
  flex: 1;
  padding: 14px 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--white);
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-right: none;
  border-radius: 2px 0 0 2px;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.signup-input::placeholder {
  color: var(--white-dim);
}

.signup-input:focus {
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.06);
}

.signup-btn {
  padding: 14px 28px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bg-deep);
  background: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 0 2px 2px 0;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.signup-btn:hover {
  background: #00ccee;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.signup-btn:active {
  transform: scale(0.98);
}

.signup-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Form States ── */
.form-message {
  margin-top: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  min-height: 1.2rem;
  animation: fade-up 1s ease 1s forwards;
  opacity: 0;
}

.form-message.success {
  color: var(--cyan);
}

.form-message.error {
  color: var(--red);
}

.form-message.visible {
  animation: msg-in 0.4s ease forwards;
}

/* ── Copyright Footer ── */
.copyright {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--white-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 10;
  animation: fade-up 1s ease 1.2s forwards;
  opacity: 0;
}

/* ═══════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════ */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { background-position: 200% 50%; }
  100% { background-position: -200% 50%; }
}

@keyframes logo-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 24px rgba(0, 229, 255, 0.7))
           drop-shadow(0 0 48px rgba(0, 229, 255, 0.2));
  }
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════
   Reduced Motion
   ═══════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .logo-container svg {
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.4));
  }

  .brand-title {
    background-position: 0% 50%;
  }

  .radial-glow {
    opacity: 0.7;
  }
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */

@media (max-width: 600px) {
  .signup-form {
    flex-direction: column;
    gap: 0;
  }

  .signup-input {
    border-right: 1px solid rgba(0, 229, 255, 0.12);
    border-radius: 2px 2px 0 0;
    border-bottom: none;
  }

  .signup-input:focus {
    border-right-color: rgba(0, 229, 255, 0.35);
  }

  .signup-btn {
    border-radius: 0 0 2px 2px;
    padding: 16px 28px;
  }

  .logo-container {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
  }

  .tagline {
    margin-bottom: 1.5rem;
  }

  .divider {
    margin-bottom: 1.5rem;
  }

  .teaser {
    margin-bottom: 2rem;
    letter-spacing: 0.2em;
  }
}

@media (max-width: 380px) {
  .brand-title {
    letter-spacing: 0.2em;
  }

  .copyright {
    font-size: 0.5rem;
    letter-spacing: 0.15em;
  }
}
