/* ========================================
   FamilyWell — Coming Soon Landing Page
   ======================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --teal:        #1B7B7E;
  --teal-dark:   #145C5E;
  --teal-light:  #2AADAB;
  --coral:       #F47B6C;
  --coral-dark:  #E05A4A;
  --coral-light: #FF9F94;
  --bg-start:    #0B1E2D;
  --bg-end:      #132F42;
  --card-bg:     rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --text:        #FFFFFF;
  --text-muted:  rgba(255, 255, 255, 0.6);
  --text-soft:   rgba(255, 255, 255, 0.45);
  --radius:      24px;
  --radius-sm:   14px;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--bg-start) 0%, var(--bg-end) 50%, #0E2737 100%);
  overflow: hidden;
  position: relative;
}

/* ---------- Animated Background ---------- */
#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Gradient orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}

.orb--teal {
  width: 500px;
  height: 500px;
  background: var(--teal);
  top: -10%;
  left: -8%;
  animation: float-orb 18s ease-in-out infinite;
}

.orb--coral {
  width: 400px;
  height: 400px;
  background: var(--coral);
  bottom: -10%;
  right: -5%;
  animation: float-orb 22s ease-in-out infinite reverse;
}

.orb--small {
  width: 250px;
  height: 250px;
  background: var(--teal-light);
  top: 60%;
  left: 50%;
  opacity: 0.12;
  animation: float-orb 15s ease-in-out infinite 3s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.05); }
  66%      { transform: translate(-20px, 20px) scale(0.95); }
}

/* ---------- Main Container ---------- */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 580px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 1s ease-out both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Logo ---------- */
.logo {
  width: 240px;
  height: auto;
  margin-bottom: 12px;
  animation: fadeInUp 1s ease-out 0.15s both;
  filter: drop-shadow(0 4px 24px rgba(27, 123, 126, 0.3));
}

/* ---------- Tagline ---------- */
.tagline {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.6;
  animation: fadeInUp 1s ease-out 0.3s both;
}

/* ---------- Glass Card ---------- */
.card {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 44px 36px 40px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: fadeInUp 1s ease-out 0.45s both;
}

/* ---------- Coming Soon Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(27, 123, 126, 0.2), rgba(244, 123, 108, 0.15));
  border: 1px solid rgba(27, 123, 126, 0.3);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 28px;
}

.badge__dot {
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

/* ---------- Countdown ---------- */
.countdown {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
}

.countdown__number {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--teal-light), var(--coral-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-soft);
}

.countdown__separator {
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--text-soft);
  padding-top: 4px;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.2; }
}

/* ---------- Divider ---------- */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-border), transparent);
  margin-bottom: 32px;
}

/* ---------- Form ---------- */
.form-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 18px;
}

.form {
  display: flex;
  gap: 10px;
  width: 100%;
}

.form__input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form__input::placeholder {
  color: var(--text-soft);
}

.form__input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(27, 123, 126, 0.2);
}

.form__button {
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: #fff;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.form__button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244, 123, 108, 0.35);
}

.form__button:hover::before {
  opacity: 1;
}

.form__button:active {
  transform: translateY(0);
}

/* Success state */
.form__success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: rgba(27, 123, 126, 0.15);
  border: 1px solid rgba(27, 123, 126, 0.3);
  color: var(--teal-light);
  font-weight: 500;
  font-size: 0.95rem;
  width: 100%;
  animation: fadeInUp 0.4s ease-out both;
}

.form__success.active {
  display: flex;
}

.form.hidden {
  display: none;
}

/* ---------- Footer / Social ---------- */
.footer {
  margin-top: 40px;
  text-align: center;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.social__link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}

.social__link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.social__link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.copyright {
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .container { padding: 16px; }

  .logo { width: 180px; }

  .tagline { font-size: 1rem; margin-bottom: 32px; }

  .card { padding: 32px 24px; border-radius: 20px; }

  .countdown { gap: 8px; }
  .countdown__item { min-width: 58px; }
  .countdown__number { font-size: 2.1rem; }
  .countdown__label { font-size: 0.6rem; }
  .countdown__separator { font-size: 1.6rem; }

  .form { flex-direction: column; }
  .form__button { width: 100%; padding: 16px; }

  .orb--teal { width: 300px; height: 300px; }
  .orb--coral { width: 250px; height: 250px; }
  .orb--small { display: none; }
}

@media (max-width: 380px) {
  .countdown__number { font-size: 1.7rem; }
  .countdown__item { min-width: 48px; }
}
