/* -------------------------------------------------------------
 * Morago Technologies - Premium Coming Soon Design System
 * ------------------------------------------------------------- */

/* Custom Reset & Base Variables */
:root {
  --bg-color: #050505;
  --bg-card: rgba(255, 255, 255, 0.02);
  
  --text-primary: #f5f5f7;
  --text-secondary: #8e8e93;
  --text-muted: #48484a;
  
  --accent-primary: #818cf8; /* Indigo */
  --accent-secondary: #c084fc; /* Purple */
  --accent-cyan: #22d3ee; /* Cyan */
  
  --border-color: rgba(255, 255, 255, 0.06);
  
  --glow-1: rgba(99, 102, 241, 0.15);
  --glow-2: rgba(192, 132, 252, 0.12);
  
  --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

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

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -------------------------------------------------------------
 * Dynamic Canvas & Ambient Light Background
 * ------------------------------------------------------------- */
#interactive-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
}

.glow-1 {
  top: -10%;
  right: 15%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--glow-1) 0%, transparent 70%);
  animation: floatGlow1 20s infinite alternate ease-in-out;
}

.glow-2 {
  bottom: -10%;
  left: 10%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, var(--glow-2) 0%, transparent 70%);
  animation: floatGlow2 25s infinite alternate ease-in-out;
}

@keyframes floatGlow1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-80px, 50px) scale(1.1); }
}

@keyframes floatGlow2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, -40px) scale(1.05); }
}

/* -------------------------------------------------------------
 * Layout Wrapper
 * ------------------------------------------------------------- */
.page-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* -------------------------------------------------------------
 * Navigation / Header
 * ------------------------------------------------------------- */
.main-header {
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-symbol {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.4rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
}


/* -------------------------------------------------------------
 * Main Content / Hero Section
 * ------------------------------------------------------------- */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0;
}

.hero-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Intro Badge */
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.08), rgba(192, 132, 252, 0.08));
  border: 1px solid rgba(129, 140, 248, 0.15);
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease forwards;
}

.badge-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, #a5b4fc, #e9d5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Headline */
.headline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  color: var(--text-primary);
}

/* Sequential Animating Dots */
.ellipsis-dot {
  display: inline-block;
  opacity: 0.2;
  animation: dot-loading 1.5s infinite ease-in-out;
  color: var(--accent-secondary);
}

.dot-1 { animation-delay: 0.0s; }
.dot-2 { animation-delay: 0.3s; }
.dot-3 { animation-delay: 0.6s; }

@keyframes dot-loading {
  0%, 100% {
    opacity: 0.15;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-4px);
    color: var(--accent-cyan);
  }
  60% {
    opacity: 0.15;
    transform: translateY(0);
  }
}


/* -------------------------------------------------------------
 * Waitlist Form
 * ------------------------------------------------------------- */
.form-container {
  width: 100%;
  max-width: 480px;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  padding: 0.4rem;
  transition: var(--transition-smooth);
}

.input-group:focus-within {
  border-color: rgba(129, 140, 248, 0.4);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

#email-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  width: 100%;
}

#email-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.submit-button {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  outline: none;
  border-radius: 100px;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  color: #0b0f19;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(129, 140, 248, 0.4);
}

.submit-button:active {
  transform: translateY(1px);
}

.btn-icon {
  transition: var(--transition-fast);
}

.submit-button:hover .btn-icon {
  transform: translateX(3px);
}

/* Success Form Animations */
.input-group.success {
  border-color: #34c759;
  box-shadow: 0 0 20px rgba(52, 199, 89, 0.2);
}

.input-group.success .submit-button {
  background: #34c759;
}

.form-feedback {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  min-height: 20px;
  transition: var(--transition-fast);
  font-weight: 500;
}

.form-feedback.error {
  color: #ff453a;
}

.form-feedback.success-msg {
  color: #30d158;
}

/* -------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------- */
.main-footer {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.social-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.social-link:hover {
  color: var(--text-primary);
}

.dot-separator {
  color: var(--text-muted);
}

/* -------------------------------------------------------------
 * Keyframe Entry Animations
 * ------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* -------------------------------------------------------------
 * Responsive Media Queries
 * ------------------------------------------------------------- */
@media (max-width: 768px) {
  .page-wrapper {
    padding: 0 1.5rem;
  }
  
  .main-header {
    height: 80px;
  }
  
  .nav-links {
    gap: 1rem;
  }

  .nav-links a, .nav-links .dot-separator {
    display: none; /* Hide textual links and separators on mobile */
  }
  
  .main-content {
    padding: 2.5rem 0;
  }
  
  .main-footer {
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 0;
    height: auto;
    text-align: center;
  }
}
