/* Bloom Landing Page Stylesheet */

:root {
  /* Colors */
  --bloom-primary: #E8567F;       /* Petal Pink */
  --bloom-primary-hover: #D0456C;
  --bloom-secondary: #9C64D6;     /* Lavender */
  --bloom-secondary-hover: #864EBF;
  --bloom-tertiary: #F4A261;      /* Luteal Orange */
  --bloom-success: #4CAF8B;       /* Safe / Ovulation Green */
  --bloom-danger: #E05D5D;
  
  --bloom-bg: #FFF8F6;            /* Soft warm bg */
  --bloom-surface: #FFFFFF;
  --bloom-surface-border: rgba(232, 86, 127, 0.1);
  --bloom-glass: rgba(255, 255, 255, 0.45);
  --bloom-glass-border: rgba(255, 255, 255, 0.5);
  
  --bloom-text: #2D1B33;          /* Deep Plum */
  --bloom-text-muted: #8E7A96;
  
  /* Elevation */
  --bloom-shadow-sm: 0 4px 12px rgba(232, 86, 127, 0.04);
  --bloom-shadow-md: 0 12px 30px rgba(232, 86, 127, 0.06);
  --bloom-shadow-lg: 0 20px 50px rgba(45, 27, 51, 0.08);
  --bloom-shadow-primary: 0 10px 24px rgba(232, 86, 127, 0.2);
  
  /* Radii */
  --bloom-radius-sm: 10px;
  --bloom-radius-md: 20px;
  --bloom-radius-lg: 30px;
  --bloom-radius-full: 9999px;
  
  /* Font Family Stack */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'DM Sans', sans-serif;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bloom-bg);
  color: var(--bloom-text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Animated Blobs */
.decorative-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.45;
  animation: blob-drift 20s infinite alternate ease-in-out;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232,86,127,0.3) 0%, rgba(232,86,127,0) 70%);
  top: -100px;
  right: -100px;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(156,100,214,0.25) 0%, rgba(156,100,214,0) 70%);
  bottom: 20%;
  left: -200px;
  animation-duration: 25s;
}

.blob-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(244,162,97,0.2) 0%, rgba(244,162,97,0) 70%);
  bottom: -50px;
  right: -50px;
  animation-duration: 18s;
}

@keyframes blob-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}

/* Global Typography & Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-headings);
  color: var(--bloom-text);
  line-height: 1.2;
}

h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

p {
  color: var(--bloom-text-muted);
}

.gradient-text {
  background: linear-gradient(135deg, var(--bloom-primary), var(--bloom-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }
.justify-center { justify-content: center; }
.mb-2 { margin-bottom: 16px; }
.mt-2 { margin-top: 16px; }
.full-width { width: 100%; }

/* Glassmorphism Cards */
.glass-card {
  background: var(--bloom-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bloom-glass-border);
  border-radius: var(--bloom-radius-md);
  padding: 24px;
  box-shadow: var(--bloom-shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card.accented {
  border-left: 4px solid var(--bloom-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--bloom-radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--bloom-primary), #F06292);
  color: #FFFFFF;
  box-shadow: var(--bloom-shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(232, 86, 127, 0.35);
  background: linear-gradient(135deg, var(--bloom-primary-hover), #E91E63);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--bloom-surface-border);
  color: var(--bloom-text);
  box-shadow: var(--bloom-shadow-sm);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: #FFFFFF;
  border-color: var(--bloom-primary);
  color: var(--bloom-primary);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: all 0.3s ease;
  padding: 20px 0;
}

.site-header.scrolled {
  background: rgba(255, 248, 246, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--bloom-shadow-sm);
  padding: 12px 0;
  border-bottom: 1px solid var(--bloom-surface-border);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 850;
  color: var(--bloom-text);
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--bloom-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--bloom-text-muted);
  font-size: 0.95rem;
  transition: color 0.25s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--bloom-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--bloom-primary);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.mobile-toggle span {
  width: 28px;
  height: 3px;
  background-color: var(--bloom-text);
  border-radius: 99px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
  padding: 160px 0 80px 0;
  position: relative;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.badge {
  display: inline-flex;
  padding: 6px 16px;
  background: rgba(232, 86, 127, 0.1);
  border: 1px solid rgba(232, 86, 127, 0.2);
  color: var(--bloom-primary);
  border-radius: var(--bloom-radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-headings);
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 3.4rem;
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-desc {
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Mockup Layout */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-container {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.phone-frame {
  width: 100%;
  max-width: 320px;
  height: 640px;
  border: 12px solid #2D1B33;
  border-radius: 40px;
  background: var(--bloom-bg);
  box-shadow: var(--bloom-shadow-lg);
  position: relative;
  overflow: hidden;
  animation: phone-float 6s infinite ease-in-out;
  margin: 0 auto;
}

.phone-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #FFF8F6;
  font-family: var(--font-body);
}

.phone-header {
  height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bloom-text);
  position: relative;
  background: transparent;
}

.phone-notch {
  width: 110px;
  height: 20px;
  background: #2D1B33;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.phone-icons {
  display: flex;
  gap: 4px;
}

.phone-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow-y: hidden;
}

.phone-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.phone-brand {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 850;
  color: var(--bloom-text);
}

.phone-avatar {
  font-size: 1.2rem;
}

.phone-dashboard {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  flex: 1;
}

.phone-cycle-ring {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 20px;
}

.ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.day-count {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bloom-text);
}

.phase-name {
  font-size: 0.75rem;
  color: var(--bloom-text-muted);
  font-weight: 600;
}

.phone-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(232, 86, 127, 0.08);
  border-radius: var(--bloom-radius-md);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--bloom-shadow-sm);
}

.card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bloom-text-muted);
}

.card-value {
  font-family: var(--font-headings);
  font-weight: 750;
  font-size: 0.9rem;
  color: var(--bloom-text);
}

.card-value.green-text {
  color: var(--bloom-success);
}

.glass-tag {
  position: absolute;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 12px 20px;
  border-radius: var(--bloom-radius-md);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--bloom-shadow-md);
  z-index: 10;
}

.tag-1 {
  top: 25%;
  left: -40px;
}

.tag-2 {
  bottom: 20%;
  right: -30px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--bloom-success);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(76, 175, 139, 0.4);
  animation: pulse 1.6s infinite;
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 139, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(76, 175, 139, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 139, 0); }
}

/* Sections */
.section {
  padding: 100px 0;
  position: relative;
}

.alt-bg {
  background: linear-gradient(180deg, rgba(255,248,246,0) 0%, rgba(232,86,127,0.04) 50%, rgba(255,248,246,0) 100%);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  max-width: 650px;
  margin: 0 auto 60px auto;
}

.section-subtitle {
  font-size: 1.05rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.feature-card {
  padding: 36px;
  border-radius: var(--bloom-radius-md);
  text-align: left;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--bloom-primary);
  box-shadow: var(--bloom-shadow-lg);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  display: inline-block;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 750;
}

/* Interactive Estimator Layout */
.estimator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.estimator-form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 440px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bloom-text);
}

.form-input {
  padding: 12px 16px;
  border-radius: var(--bloom-radius-sm);
  border: 1px solid var(--bloom-surface-border);
  background: rgba(255, 255, 255, 0.8);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--bloom-text);
  outline: none;
  transition: all 0.25s ease;
}

.form-input:focus {
  border-color: var(--bloom-primary);
  background: #FFFFFF;
  box-shadow: var(--bloom-shadow-sm);
}

/* Result Card */
.result-card {
  padding: 40px;
}

.result-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.divider {
  height: 1px;
  background: var(--bloom-surface-border);
  margin-bottom: 24px;
}

.result-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--bloom-text-muted);
}

.stat-value {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--bloom-primary);
}

.result-note {
  font-size: 0.75rem;
  margin-top: 28px;
  line-height: 1.4;
}

/* Tech Specs */
.tech-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 60px;
}

.tech-illustration {
  display: flex;
  justify-content: center;
}

.architecture-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 30px;
  width: 100%;
  max-width: 380px;
}

.node {
  background: #FFFFFF;
  border: 1.5px solid var(--bloom-surface-border);
  border-radius: var(--bloom-radius-sm);
  padding: 12px 20px;
  text-align: center;
  width: 100%;
  box-shadow: var(--bloom-shadow-sm);
}

.node h4 {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--bloom-text);
  margin-bottom: 2px;
}

.node span {
  font-size: 0.75rem;
  color: var(--bloom-text-muted);
}

.node-db {
  margin-top: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(156,100,214,0.1);
  color: var(--bloom-secondary);
  padding: 3px 10px;
  border-radius: var(--bloom-radius-full);
  display: inline-block;
}

.arrow {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--bloom-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tech-specs {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.tech-item h4 {
  font-size: 1.1rem;
  font-weight: 750;
  margin-bottom: 8px;
}

/* FAQ Accordion */
.faq-container {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  padding: 0;
  border-radius: var(--bloom-radius-md);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  outline: none;
  text-align: left;
}

.faq-trigger span:first-child {
  font-family: var(--font-headings);
  font-weight: 750;
  font-size: 1.05rem;
  color: var(--bloom-text);
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--bloom-primary);
  font-weight: 700;
  transition: transform 0.3s ease;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 24px;
}

.faq-content p {
  padding-bottom: 24px;
  font-size: 0.9rem;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-content {
  max-height: 200px; /* arbitrary height to slide down */
}

/* Footer */
.site-footer {
  background: #2D1B33; /* Deep plum matches dark mode background */
  color: #F5EDF8;
  padding: 80px 0 40px 0;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-footer .logo {
  color: #FFFFFF;
}

.footer-tagline {
  color: rgba(245, 237, 248, 0.6);
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.footer-links a {
  color: rgba(245, 237, 248, 0.7);
  text-decoration: none;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--bloom-primary);
}

.site-footer .btn-primary {
  margin: 30px 0;
}

.copyright {
  font-size: 0.75rem;
  color: rgba(245, 237, 248, 0.4);
  margin-top: 30px;
}

/* Intersection Observer Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Responsive Media Queries */
@media (max-width: 991px) {
  h2 { font-size: 1.9rem; }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content h1 { font-size: 2.8rem; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  .estimator-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .tech-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .site-header { padding: 15px 0; }
  .site-header.scrolled { padding: 10px 0; }
  
  .mobile-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #FFF8F6;
    flex-direction: column;
    padding: 100px 30px;
    gap: 24px;
    align-items: flex-start;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-cta {
    width: 100%;
    margin-top: 20px;
  }
  
  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
  }
}
