/* ==========================================================================
   Ahidagbé.bj — Waiting Page CSS (Vanilla & Hardened Style)
   ========================================================================== */

/* Design System & Variables */
:root {
  --bg-primary: #121A16; /* sage dark */
  --bg-secondary: rgba(26, 37, 32, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(107, 142, 35, 0.5); /* Olive Green */
  
  /* Text colors */
  --text-white: #ffffff;
  --text-primary: #EDF7F2;
  --text-muted: #719383;
  --text-dark: #121A16;
  
  /* Brand Accents */
  --accent: #6B8E23; /* Vert Olive Doux */
  --accent-light: #8A9A5B;
  --accent-green: #6B8E23;
  --accent-red: #ef4444;

  /* Fonts */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background Glows */
.background-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 142, 35, 0.2) 0%, rgba(26, 37, 32, 0) 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: rotate-slow 25s infinite linear;
}

.background-glow-secondary {
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 142, 35, 0.1) 0%, rgba(26, 37, 32, 0) 70%);
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

/* Header */
header {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--text-white);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(107, 142, 35, 0.25);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

.logo-text span {
  color: var(--accent-light);
}

/* Main Content */
main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  z-index: 10;
}

.glass-card {
  width: 100%;
  max-width: 38rem;
  padding: 3rem 2.5rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 1.75rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
  animation: fade-in-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Lancement Tag */
.inline-flex {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background-color: rgba(107, 142, 35, 0.15);
  border: 1px solid rgba(107, 142, 35, 0.3);
  color: var(--accent-light);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* Headline */
h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1.15;
  color: var(--text-white);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.text-gradient {
  background: linear-gradient(135deg, #fbbf24 0%, var(--accent) 60%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pitch */
p.text-slate-400 {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 30rem;
  margin: 0 auto 2rem auto;
}

/* Progress Bar */
.progress-container {
  max-width: 24rem;
  margin: 0 auto 2.5rem auto;
}

.progress-container .flex {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.progress-container span {
  color: var(--text-muted);
}

.progress-container span.text-accent {
  color: var(--accent-light);
  font-weight: 700;
}

.progress-bar {
  width: 100%;
  height: 0.5rem;
  background-color: var(--bg-primary);
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 9999px;
  box-shadow: 0 0 8px rgba(107, 142, 35, 0.4);
}

/* Subscription Form */
form#subscribe-form {
  max-width: 28rem;
  margin: 0 auto;
}

form#subscribe-form .flex-col {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background-color: var(--bg-primary);
  border-radius: 1.25rem;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  width: 100%;
}

form#subscribe-form .flex-col:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(107, 142, 35, 0.15);
}

form#subscribe-form .flex-1 {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

form#subscribe-form svg {
  color: var(--text-muted);
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

form#subscribe-form input {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0.75rem 0.5rem;
  font-size: 0.9rem;
  color: var(--text-white);
  outline: none;
}

form#subscribe-form input::placeholder {
  color: rgba(113, 147, 131, 0.6);
}

form#subscribe-form button {
  padding: 0.75rem 1.5rem;
  background-color: var(--text-primary);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0.875rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

form#subscribe-form button svg {
  width: 1rem;
  height: 1rem;
  color: inherit;
}

form#subscribe-form button:hover {
  background-color: var(--text-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

form#subscribe-form button:active {
  transform: translateY(0) scale(0.98);
}

/* Success Message styling */
.success-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background-color: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 1.25rem;
  margin-top: 1.5rem;
}

.success-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
  margin-bottom: 0.5rem;
}

.success-icon-wrap svg {
  width: 2rem;
  height: 2rem;
  color: inherit;
}

/* Feedback messages */
.feedback-msg {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.feedback-msg.success { color: var(--accent-light); }
.feedback-msg.error { color: var(--accent-red); }
.hidden { display: none; }

/* Footer */
footer {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  z-index: 10;
  border-top: 1px solid var(--border-color);
}

footer p.mb-3 {
  margin-bottom: 0.5rem;
}

footer p.text-slate-600 {
  color: rgba(113, 147, 131, 0.5);
  font-size: 0.6875rem;
}

/* Animations */
@keyframes rotate-slow {
  0% { transform: translate(-50%, 0) rotate(0deg); }
  50% { transform: translate(-50%, -30px) rotate(180deg); }
  100% { transform: translate(-50%, 0) rotate(360deg); }
}

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

/* Responsive Rules */
@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }
  .glass-card {
    padding: 2.5rem 1.75rem;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
  }
  form#subscribe-form .flex-col {
    flex-direction: column;
    background-color: transparent;
    border: none;
    padding: 0;
    gap: 0.75rem;
  }
  form#subscribe-form .flex-col:focus-within {
    box-shadow: none;
  }
  form#subscribe-form .flex-1 {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 0.25rem 0.75rem;
  }
  form#subscribe-form .flex-1:focus-within {
    border-color: var(--border-focus);
  }
  form#subscribe-form button {
    width: 100%;
    padding: 0.875rem;
    border-radius: 1rem;
    justify-content: center;
  }
}
