/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg-start: #0f172a;
  --color-bg-mid: #1e293b;
  --color-bg-end: #0f172a;
  --color-accent: #38bdf8;
  --color-accent-glow: rgba(56, 189, 248, 0.5);
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-text-subtle: #64748b;
  --color-input-bg: rgba(30, 41, 59, 0.7);
  --color-input-border: rgba(148, 163, 184, 0.2);
  --color-btn-bg: #0ea5e9;
  --color-btn-hover: #0284c7;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-start);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.08), transparent 25%);
  color: var(--color-text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== Animated Background Glows ===== */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.bg-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: float1 20s ease-in-out infinite;
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation: float2 25s ease-in-out infinite;
}

.bg-glow-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  animation: float3 18s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-40px, 30px); }
  66% { transform: translate(20px, -20px); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -40px); }
  66% { transform: translate(-20px, 20px); }
}

@keyframes float3 {
  0%, 100% { transform: translateX(-50%) translate(0, 0); }
  50% { transform: translateX(-50%) translate(0, -30px); }
}

/* ===== Particles Canvas ===== */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===== Container ===== */
.container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

/* ===== Header / Logo ===== */
.header {
  position: absolute;
  top: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  animation: fadeInDown 0.8s ease-out both;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  max-width: 640px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  background: linear-gradient(to right, #ffffff 0%, #bae6fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
}

.title-line {
  display: block;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  max-width: 540px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ===== Signup Form ===== */
.signup-form {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: 480px;
  animation: fadeInUp 0.8s ease-out 0.6s both;
  position: relative;
  z-index: 10;
}

.input-wrapper {
  flex: 1;
  position: relative;
}

.email-input {
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-input-bg);
  border: 1px solid var(--color-input-border);
  border-right: none;
  border-radius: 12px 0 0 12px;
  outline: none;
  transition: var(--transition-smooth);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.email-input::placeholder {
  color: var(--color-text-subtle);
}

.email-input:focus {
  border-color: var(--color-accent);
  background: rgba(30, 41, 59, 0.9);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.notify-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--color-btn-bg);
  border: 1px solid transparent;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.notify-btn:hover {
  background: var(--color-btn-hover);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
  transform: translateY(-1px);
}

.notify-btn:active {
  transform: translateY(1px);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-smooth);
}

.notify-btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ===== Success Message ===== */
.success-message {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  color: #38bdf8;
  font-size: 0.95rem;
  font-weight: 500;
  backdrop-filter: blur(12px);
  animation: fadeInUp 0.5s ease-out both;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.success-message.visible {
  display: flex;
}

.success-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ===== Disclaimer ===== */
.disclaimer {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-subtle);
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* ===== Footer ===== */
.footer {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  animation: fadeInUpCentered 0.8s ease-out 1s both;
  width: 100%;
}

.copyright {
  font-size: 0.85rem;
  color: var(--color-text-subtle);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUpCentered {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .header {
    top: 1.5rem;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .signup-form {
    flex-direction: column;
    gap: 0.75rem;
    max-width: 100%;
  }

  .email-input {
    border-radius: 10px;
    border-right: 1px solid var(--color-input-border);
  }

  .email-input:focus {
    border-right-color: var(--color-accent);
  }

  .notify-btn {
    border-radius: 10px;
    justify-content: center;
    padding: 0.95rem 1.5rem;
  }

  .footer {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 4rem;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 1.5rem 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }
}
