/* ===================================================
   WooTalker Coming Soon - Light Theme Stylesheet
   Brand colors: #5a5af3 (indigo), #434175 (deep)
=================================================== */

:root {
  --primary: #5a5af3;
  --primary-light: #7b7bf7;
  --primary-dark: #3b3bd0;
  --accent: #6d6df5;
  --deep: #434175;
  --bg-page: #f5f5ff;
  --bg-white: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #ffffff;
  --border: rgba(90, 90, 243, 0.12);
  --border-focus: rgba(90, 90, 243, 0.5);
  --text-primary: #1a1a3e;
  --text-secondary: #555577;
  --text-muted: #9090b8;
  --success: #16a34a;
  --error: #dc2626;
  --warning: #d97706;
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-glow: 0 0 40px rgba(90, 90, 243, 0.12);
  --shadow-card: 0 8px 40px rgba(90, 90, 243, 0.1);
  --shadow-soft: 0 2px 16px rgba(67, 65, 117, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

/* ===== Soft Background ===== */
.glow-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  animation: float 14s ease-in-out infinite alternate;
}

.glow-sphere-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #c7c7fc, transparent);
  top: -200px;
  left: -150px;
  animation-duration: 16s;
}

.glow-sphere-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #ddd9fc, transparent);
  bottom: -120px;
  right: -100px;
  animation-duration: 20s;
}

.glow-sphere-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #ede9fe, transparent);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 12s;
  opacity: 0.2;
}

@keyframes float {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(20px, 30px) scale(1.05); }
  100% { transform: translate(-10px, -20px) scale(0.95); }
}

/* ===== App Container ===== */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Header ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  max-height: 40px;
  width: auto;
  display: block;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(90, 90, 243, 0.07);
  border: 1px solid rgba(90, 90, 243, 0.18);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ===== Main Content ===== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 60px;
}

/* ===== Hero Section ===== */
.hero-section {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
}

.announcement {
  margin-bottom: 20px;
}

.badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(90, 90, 243, 0.1), rgba(167, 139, 250, 0.1));
  border: 1px solid rgba(90, 90, 243, 0.25);
  border-radius: var(--radius-full);
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.text-gradient {
  background: linear-gradient(135deg, #5a5af3, #8b5cf6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Signup Card ===== */
.signup-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.signup-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #8b5cf6, var(--primary-light));
}

.signup-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-align: center;
}

.signup-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
}

/* ===== Subscribe Form ===== */
.subscribe-form {
  width: 100%;
}

.input-group {
  display: flex;
  align-items: center;
  background: #f8f8ff;
  border: 1.5px solid rgba(90, 90, 243, 0.2);
  border-radius: var(--radius-full);
  padding: 6px 6px 6px 20px;
  gap: 8px;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
}

.input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(90, 90, 243, 0.1), var(--shadow-soft);
  background: #ffffff;
}

.input-icon {
  color: var(--text-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.input-group:focus-within .input-icon {
  color: var(--primary);
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-body);
  padding: 10px 0;
  min-width: 0;
}

.input-group input::placeholder {
  color: var(--text-muted);
}

.input-group button {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(90, 90, 243, 0.35);
}

.input-group button:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(90, 90, 243, 0.45);
}

.input-group button:active {
  transform: scale(0.98);
}

.input-group button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Feedback Messages ===== */
.feedback-message {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  animation: fadeSlideIn 0.4s ease-out;
}

.feedback-message.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.feedback-message.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.feedback-message.warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Features Section ===== */
.features-section {
  width: 100%;
  max-width: 1000px;
  margin: 72px auto 0;
  text-align: center;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: left;
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #8b5cf6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  border-color: rgba(90, 90, 243, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(90, 90, 243, 0.12);
}

.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(90, 90, 243, 0.1), rgba(90, 90, 243, 0.04));
  border: 1px solid rgba(90, 90, 243, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
  color: var(--primary);
  transition: var(--transition);
}

.feature-card:hover .feature-icon-wrapper {
  background: linear-gradient(135deg, rgba(90, 90, 243, 0.18), rgba(90, 90, 243, 0.08));
  border-color: rgba(90, 90, 243, 0.3);
  box-shadow: 0 4px 16px rgba(90, 90, 243, 0.15);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== Footer ===== */
.footer {
  padding: 28px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

/* ===== Utility ===== */
.hidden {
  display: none !important;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .signup-card {
    padding: 28px 24px;
  }

  .input-group {
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: 14px;
    gap: 12px;
    align-items: stretch;
  }

  .input-icon {
    display: none;
  }

  .input-group input {
    padding: 10px 0;
  }

  .input-group button {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-md);
    padding: 14px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .header {
    padding: 20px 0;
  }

  .logo {
    font-size: 1.3rem;
  }
}

@media (max-width: 400px) {
  .status-badge {
    display: none;
  }
}
