/* Custom styles beyond Tailwind */

:root {
  --bg-primary: #F9FAFB;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F3F4F6;
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6B7280;
  --border-color: #E5E7EB;
  --hero-gradient-start: #064E3B;
  --hero-gradient-mid: #065F46;
  --hero-gradient-end: #047857;
}

html[data-theme="dark"] {
  --bg-primary: #111827;
  --bg-card: #1F2937;
  --bg-card-hover: #374151;
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --border-color: #374151;
  --hero-gradient-start: #064E3B;
  --hero-gradient-mid: #065F46;
  --hero-gradient-end: #111827;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 300ms ease, color 300ms ease;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Glass Navbar */
.glass-nav {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--border-color);
}

html[data-theme="dark"] .glass-nav {
  background: rgba(31, 41, 55, 0.8);
}

/* Hero Gradient */
.hero-gradient {
  background: linear-gradient(135deg, var(--hero-gradient-start), var(--hero-gradient-mid), var(--hero-gradient-end));
}

/* Phone Mockup */
.phone-mockup {
  width: 300px;
  height: 600px;
  border-radius: 44px;
  border: 12px solid #1F2937;
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .phone-mockup {
  border-color: #000000;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background-color: #1F2937;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

html[data-theme="dark"] .phone-notch {
  background-color: #000000;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* FAQ Accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.faq-answer.open {
  max-height: 500px; /* Arbitrary large height */
}

/* Cards */
.theme-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: background-color 300ms ease, border-color 300ms ease, transform 200ms ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
}

.theme-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Text Colors */
.text-theme-primary { color: var(--text-primary); }
.text-theme-secondary { color: var(--text-secondary); }
.text-theme-muted { color: var(--text-muted); }

/* Buttons */
.btn-scale {
  transition: transform 200ms ease, background-color 200ms ease;
}
.btn-scale:hover {
  transform: scale(0.98);
}
