/* ============================================================
   DRONAUTIX — Stealth Landing Page
   Abyssal teaser: bioluminescent pulse in the dark
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:opsz,wght@14..32,300;400;500;600&display=swap');

/* ---- Design Tokens ---- */
:root {
  --primary: #00BCD4;
  --primary-dark: #008BA3;
  --primary-rgb: 0, 188, 212;
  --bg-abyss: #060E1A;
  --bg-deep: #0A1628;
  --bg-surface: #1E293B;
  --text-bright: #F1F5F9;
  --text-primary: #E2E8F0;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border-accent: rgba(0, 188, 212, 0.2);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 0; }

/* ============================================================
   CANVAS & OVERLAY
   ============================================================ */
.landing__canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.landing__overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 42%, transparent 0%, var(--bg-deep) 100%),
    linear-gradient(180deg, rgba(6, 14, 26, 0.2) 0%, rgba(6, 14, 26, 0.85) 100%);
  pointer-events: none;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.landing {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  padding: 0 24px;
  text-align: center;
}

/* ---- Logo ---- */
.landing__logo {
  width: 48px;
  height: 48px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 0.2s forwards, logoPulse 4s ease-in-out 1.2s infinite;
}

/* ---- Title ---- */
.landing__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 0.5s forwards;
}
.landing__title span {
  background: linear-gradient(135deg, var(--primary) 0%, #4DD0E1 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: shimmer 6s ease-in-out infinite;
}

/* ---- Tagline ---- */
.landing__tagline {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 36px;
  letter-spacing: 0.01em;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 0.8s forwards;
}

/* ---- Divider ---- */
.landing__divider {
  width: 40px;
  height: 1px;
  background: var(--border-accent);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1s forwards;
}

/* ---- Tease ---- */
.landing__tease {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.2s forwards;
}

/* ============================================================
   SIGNUP FORM
   ============================================================ */
.landing__form-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  min-height: 60px;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease) 1.5s forwards;
}

.landing__form {
  width: 100%;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.landing__form.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.landing__form-row {
  display: flex;
  gap: 12px;
}

.landing__input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-accent);
  padding: 14px 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s;
  min-width: 0;
}
.landing__input::placeholder {
  color: var(--text-muted);
}
.landing__input:focus {
  border-color: var(--primary);
}

.landing__submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 12px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: var(--bg-deep);
  box-shadow: 0 4px 24px rgba(var(--primary-rgb), 0.25);
  transition: all 0.35s var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}
.landing__submit:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 40px rgba(var(--primary-rgb), 0.4);
  transform: translateY(-2px);
}
.landing__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---- Form Message ---- */
.landing__form-msg {
  margin-top: 12px;
  font-size: 0.8rem;
  min-height: 1.2em;
  transition: opacity 0.3s;
}
.landing__form-msg.error {
  color: #ef4444;
}

/* ---- Success State ---- */
.landing__success {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s 0.3s var(--ease), transform 0.6s 0.3s var(--ease);
  display: none;
}
.landing__success.visible {
  display: block;
  opacity: 1;
  transform: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.landing__footer {
  position: fixed;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  z-index: 2;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 2s forwards;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(0, 188, 212, 0)); }
  50% { filter: drop-shadow(0 0 14px rgba(0, 188, 212, 0.35)); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 520px) {
  .landing__form-row {
    flex-direction: column;
  }
  .landing__submit {
    width: 100%;
    justify-content: center;
    padding: 14px 28px;
  }
  .landing__input {
    padding: 14px 4px;
  }
}

@media (max-width: 360px) {
  .landing__title {
    font-size: 2.5rem;
  }
  .landing__tease {
    margin-bottom: 36px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .landing__logo,
  .landing__title,
  .landing__tagline,
  .landing__divider,
  .landing__tease,
  .landing__form,
  .landing__footer {
    opacity: 1;
  }
}
