/* Modern CSS Reset & Core Styling */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-color-1: #07090e;
  --bg-color-2: #0f131a;
  --text-main: #ffffff;
  --text-muted: #8a90a0;
  --accent-glow: rgba(255, 255, 255, 0.08);
  --loader-glow: rgba(255, 255, 255, 0.25);
  
  --font-serif: 'Cinzel', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Dynamic mouse position defaults */
  --mouse-x: 50%;
  --mouse-y: 50%;
}

body {
  background-color: var(--bg-color-1);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  min-height: 100svh; /* mobile: ignore the retractable browser chrome */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* Background Gradients & Grid */
body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--bg-color-2) 0%, var(--bg-color-1) 100%);
  z-index: -3;
}

/* Interactive follow-mouse glow overlay */
.interactive-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.035) 0%, transparent 80%);
  z-index: -2;
  pointer-events: none;
  transition: background 0.15s ease;
}

/* Subtle tech grid overlay for depth */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  z-index: -1;
  pointer-events: none;
}

/* Main Container */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  width: 100%;
  max-width: 480px;
  padding: 24px;
  text-align: center;
}

/* Brand Mark — sits above the loader as the page's lockup */
.brand {
  margin-bottom: 34px;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.15s;
}

.brand-logo {
  display: block;
  width: 200px;
  height: auto;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.45));
}

/* Loader Wrapper & Center Content Alignment */
.loader-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
  user-select: none;
}

/* Canvas positioned behind center text — centered on the wrapper so its
   circle shares the exact center point with the heading at any size. */
#loader-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
}

/* Center Text Box — fills the wrapper so flex centers on the circle */
.center-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Height/width come from the heading alone — dots are absolute, so they
   add no size and cannot pull the heading off center. */
.text-anchor {
  position: relative;
}

.coming-soon-text {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  background: linear-gradient(180deg, #ffffff 30%, #a3abbb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

/* Each word is its own block so text-indent offsets the trailing
   letter-spacing on BOTH lines, keeping them optically centered. */
.coming-soon-text .line {
  display: block;
}

.coming-soon-text .highlight {
  font-size: 1.6rem;
  font-weight: 700;
}

/* Loading Dots Container — pinned under the heading, outside the flow */
.loading-dots {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 14px;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  height: 12px;
}

/* Dots Styling & Wave Animation */
.dot {
  width: 4.5px;
  height: 4.5px;
  background-color: var(--text-muted);
  border-radius: 50%;
  opacity: 0.25;
  transform: scale(0.9);
  animation: dotWave 1.8s ease-in-out infinite;
}

/* Sequential delays for smooth wave effect */
.dot:nth-child(1) { animation-delay: 0.0s; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
.dot:nth-child(4) { animation-delay: 0.6s; }
.dot:nth-child(5) { animation-delay: 0.8s; }

/* Call to Action Section */
.cta-section {
  width: 100%;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.6s;
}

.cta-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

/* Glassmorphic Form styling */
.signup-form {
  width: 100%;
}

.input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 5px 5px 5px 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.input-group:focus-within {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.05);
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  padding: 10px 0;
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Premium Button with arrow slide hover effect */
.input-group button {
  background: #ffffff;
  color: #07090e;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.input-group button:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

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

.btn-arrow {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-group button:hover .btn-arrow {
  transform: translateX(3px);
}

/* Toast Success Notification styling */
.toast {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.96);
  color: #07090e;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 100;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast.show {
  bottom: 40px;
  pointer-events: auto;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-icon {
  color: #10b981;
}

/* KEYFRAMES */

/* Sequential pulsing of dots below coming soon */
@keyframes dotWave {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.22;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.9;
    background-color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  }
}

/* Fade in down entry animation — brand mark settles in first */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade in up entry animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustment */
@media (max-width: 480px) {
  .brand {
    margin-bottom: 26px;
  }
  .brand-logo {
    width: 168px;
  }
  .loader-wrapper {
    width: 240px;
    height: 240px;
    margin-bottom: 32px;
  }
  .coming-soon-text {
    font-size: 1.4rem;
  }
  .coming-soon-text .highlight {
    font-size: 1.4rem;
  }
  .cta-tagline {
    font-size: 0.72rem;
  }
  .input-group {
    padding: 4px 4px 4px 16px;
  }
  .input-group input {
    font-size: 0.8rem;
  }
  .input-group button {
    padding: 9px 18px;
    font-size: 0.75rem;
  }
}
