/* Style Design System & Tokens */
:root {
  --bg-primary: #000000;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);
  
  /* Brand Gradient (Fresh Turquoise & Clean Blue) */
  --accent-start: #00f2fe;
  --accent-end: #4facfe;
  --accent-gradient: linear-gradient(135deg, var(--accent-start) 0%, var(--accent-end) 100%);
  --accent-glow: rgba(79, 172, 254, 0.3);
  
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* CSS Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem 1.5rem;
  position: relative;
}

/* Ambient glow orb behind the content for premium depth */
.ambient-glow {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.08) 0%, rgba(0, 242, 254, 0.02) 40%, rgba(0, 0, 0, 0) 70%);
  z-index: 1;
  pointer-events: none;
  filter: blur(40px);
  max-width: 100vw;
}

/* Main Container Layout */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-width: 600px;
  width: 100%;
  z-index: 2;
  text-align: center;
  animation: pageReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Animations */
@keyframes pageReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo Styling */
.logo-wrapper {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.logo {
  max-width: 240px;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8));
}

.logo-wrapper:hover .logo {
  transform: scale(1.03);
}

/* Content & Typography */
.coming-soon {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  /* Gradient text effect for high-end look */
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.tagline {
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

/* Responsive Form Styling */
.form-wrapper {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.notify-form {
  width: 100%;
}

.input-group {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 6px;
  gap: 8px;
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.input-group:focus-within {
  border-color: rgba(79, 172, 254, 0.5);
  box-shadow: 0 0 24px rgba(79, 172, 254, 0.15), 
              inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.email-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  padding: 12px 18px;
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  border-radius: 50px;
  width: 100%;
}

.email-input::placeholder {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.email-input:focus::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.submit-btn {
  background: var(--accent-gradient);
  color: #000000;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

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

.arrow-icon {
  transition: transform 0.2s ease;
}

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

/* Accessibility */
.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;
}

/* Success Page Styling */
.success-container {
  max-width: 500px;
}

.success-icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-start);
}

.success-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.3;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

.success-checkmark {
  z-index: 2;
  filter: drop-shadow(0 2px 8px rgba(0, 242, 254, 0.3));
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawCheckmark 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drawCheckmark {
  to {
    stroke-dashoffset: 0;
  }
}

.success-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.action-wrapper {
  margin-top: 1rem;
}

.back-btn {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 50px;
  display: inline-block;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.back-btn:active {
  transform: translateY(1px);
}

/* Footer Styling */
.footer {
  width: 100%;
  text-align: center;
  padding-top: 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  z-index: 2;
}

/* Media Queries for Responsive Optimization */
@media (max-width: 480px) {
  body {
    padding: 1.5rem 1rem;
  }

  .logo {
    max-width: 180px;
  }

  .tagline {
    margin-bottom: 2rem;
  }

  .input-group {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    gap: 12px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .email-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
    width: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .email-input:focus {
    border-color: rgba(79, 172, 254, 0.5);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.15);
  }

  .submit-btn {
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
  }

  .submit-btn:hover .arrow-icon {
    transform: none; /* Disable translation since animation can be awkward on full width touch */
  }

  .success-icon-wrapper {
    margin-bottom: 2rem;
  }
}
