@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #0a0506;
  --bg-secondary: rgba(22, 12, 14, 0.45);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.15);
  --accent-red: #c1272d;
  --accent-green: #006233;
  --accent-emerald: #00a86b;
  --accent-gold: #d4af37;
  --text-primary: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Background Gradients & Effects */
body::before, body::after {
  content: '';
  position: absolute;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  z-index: -2;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.4;
  animation: float-glow 20s infinite alternate ease-in-out;
}

body::before {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, var(--accent-red) 0%, transparent 70%);
}

body::after {
  bottom: -10%;
  right: -10%;
  background: radial-gradient(circle, var(--accent-green) 0%, transparent 70%);
  animation-delay: -10s;
}

#canvas-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: all;
}

/* Main Container */
.container {
  width: 90%;
  max-width: 850px;
  text-align: center;
  padding: 3rem 2rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fade-in-up 1s ease-out;
}

/* Header & Logo */
.header {
  margin-bottom: 2.5rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 48px;
  height: 48px;
  stroke: url(#logo-grad);
  stroke-width: 2;
  fill: none;
  filter: drop-shadow(0 0 8px rgba(193, 39, 45, 0.4));
  animation: pulse-glow 3s infinite ease-in-out;
}

.logo-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 30%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text span {
  background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Badges */
.badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 1.5s infinite;
}

/* Typography */
h1 {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #ffffff 40%, #f1f5f9 70%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 3rem;
  line-height: 1.6;
}

/* Progress Tracker */
.progress-container {
  width: 100%;
  max-width: 500px;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9999px;
  border: 1px solid var(--border-glass);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 0%; /* Will animate in JS */
  background: linear-gradient(90deg, var(--accent-green) 0%, var(--accent-gold) 100%);
  border-radius: 9999px;
  position: relative;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Subscription Form */
.subscribe-section {
  width: 100%;
  max-width: 500px;
  margin-bottom: 3rem;
}

.subscribe-form {
  display: flex;
  gap: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  padding: 6px;
  border-radius: 9999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.subscribe-form:focus-within {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.1), 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.subscribe-input::placeholder {
  color: var(--text-muted);
}

.subscribe-button {
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-emerald) 100%);
  color: #ffffff;
  border: none;
  outline: none;
  padding: 0.8rem 2rem;
  border-radius: 9999px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 98, 51, 0.3);
}

.subscribe-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-gold) 100%);
  color: var(--bg-primary);
}

.subscribe-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.subscribe-button:hover svg {
  transform: translate(3px, -1px);
}

/* Success/Error message styling */
.form-message {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  min-height: 20px;
  transition: var(--transition-smooth);
  opacity: 0;
  transform: translateY(-5px);
}

.form-message.show {
  opacity: 1;
  transform: translateY(0);
}

.form-message.success {
  color: #10b981;
}

.form-message.error {
  color: #ef4444;
}

/* Social links & Footer */
.footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1.2rem;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-icon:hover {
  color: var(--accent-gold);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-3px) rotate(8deg);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.1);
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Animations */
@keyframes float-glow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(5%, 5%) scale(1.15);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.8;
    filter: drop-shadow(0 0 6px rgba(193, 39, 45, 0.4));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 15px rgba(193, 39, 45, 0.7));
  }
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 168, 107, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(0, 168, 107, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 168, 107, 0);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .container {
    padding: 2rem 1rem;
  }
  .subscribe-form {
    flex-direction: column;
    border-radius: 20px;
    padding: 10px;
  }
  .subscribe-input {
    padding: 0.6rem 1rem;
    text-align: center;
  }
  .subscribe-button {
    width: 100%;
    justify-content: center;
    padding: 0.8rem;
  }
}
