/* BioDream — Warm Dark Theme
   Colors from Android app's Theme.Ember palette */

:root {
  --ember:        #E8A87C;
  --rose:         #D4A5A5;
  --gold:         #F3D9B1;
  --dark:         #141218;
  --surface:      #1C1B1F;
  --card:         #252329;
  --elevated:     #2D2B32;
  --text:         #F2EDE8;
  --text-dim:     #9E9A96;
  --text-faint:   #6B6762;
  --success:      #81C784;
  --error:        #EF9A9A;
  --user-bubble:  #3D3429;
  --comp-bubble:  #252329;
  --glow:         rgba(232, 168, 124, 0.12);
  --glow-strong:  rgba(232, 168, 124, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--dark); color: var(--text); line-height: 1.6; overflow-x: hidden;
}
h1, h2, h3, blockquote { font-family: 'Playfair Display', Georgia, serif; }

/* ---- NAV ---- */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(20, 18, 24, 0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232, 168, 124, 0.08);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem;
}
.logo { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; }
.logo span { color: var(--ember); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--ember); }
.btn-nav {
  background: var(--ember); color: var(--dark); padding: 0.5rem 1.2rem;
  border-radius: 8px; font-weight: 600; font-size: 0.85rem;
}
.btn-nav:hover { background: var(--gold); color: var(--dark); }
.menu-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 8rem 2rem 4rem; position: relative;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto; display: flex; align-items: center;
  gap: 4rem; width: 100%;
}
.hero-content { flex: 1; }
.hero-tag {
  font-size: 0.85rem; color: var(--text-dim); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 700;
  color: var(--ember); line-height: 1.1; margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.15rem; color: var(--text-dim); max-width: 500px;
  margin-bottom: 2.5rem; line-height: 1.7;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-block; background: var(--ember); color: var(--dark);
  padding: 0.9rem 2rem; border-radius: 10px; font-weight: 600;
  text-decoration: none; font-size: 1rem; transition: all 0.2s;
}
.btn-primary:hover { background: var(--gold); transform: translateY(-1px); box-shadow: 0 8px 30px var(--glow-strong); }
.btn-ghost {
  display: inline-block; color: var(--text-dim); padding: 0.9rem 2rem;
  border: 1px solid var(--text-faint); border-radius: 10px;
  text-decoration: none; font-size: 1rem; transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--ember); color: var(--ember); }
.hero-glow {
  position: absolute; top: 15%; left: 30%; width: 600px; height: 600px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--glow-strong) 0%, transparent 70%);
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* ---- PHONE MOCKUP ---- */
.hero-phone { flex-shrink: 0; }
.phone-frame {
  width: 280px; height: 560px; background: #0a0a0e; border-radius: 36px;
  border: 3px solid #333; position: relative; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 40px var(--glow);
}
.phone-notch {
  width: 100px; height: 24px; background: #0a0a0e; border-radius: 0 0 16px 16px;
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 2;
}
.phone-screen { padding: 32px 12px 12px; height: 100%; display: flex; flex-direction: column; }
.chat-header {
  display: flex; align-items: center; gap: 10px; padding: 8px 4px 12px;
  border-bottom: 1px solid rgba(232, 168, 124, 0.1); margin-bottom: 12px;
}
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--ember);
  color: var(--dark); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.chat-name { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.chat-status { font-size: 0.65rem; color: var(--ember); }
.chat-messages { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 8px; }
.msg {
  max-width: 85%; padding: 8px 12px; border-radius: 14px;
  font-size: 0.72rem; line-height: 1.5; animation: msgFade 0.5s ease both;
}
.msg-user {
  background: var(--user-bubble); color: var(--text); align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.msg-companion {
  background: var(--comp-bubble); color: var(--text); align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.msg:nth-child(1) { animation-delay: 0.2s; }
.msg:nth-child(2) { animation-delay: 0.6s; }
.msg:nth-child(3) { animation-delay: 1.0s; }
.msg:nth-child(4) { animation-delay: 1.4s; }
.msg:nth-child(5) { animation-delay: 1.8s; }
.msg:nth-child(6) { animation-delay: 2.2s; }
@keyframes msgFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---- PROOF ---- */
.proof { padding: 4rem 2rem; border-top: 1px solid rgba(232, 168, 124, 0.06); }
.proof-grid {
  max-width: 800px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center;
}
.proof-num { display: block; font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700; color: var(--ember); }
.proof-label { font-size: 0.85rem; color: var(--text-dim); }

/* ---- SECTIONS ---- */
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
section h2 {
  font-size: clamp(2rem, 4vw, 3rem); text-align: center;
  margin-bottom: 0.8rem; color: var(--text);
}
.section-sub { text-align: center; color: var(--text-dim); font-size: 1.1rem; margin-bottom: 3rem; }

/* ---- HOW IT WORKS ---- */
.how-it-works { padding: 5rem 0; background: var(--surface); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 800px; margin: 0 auto; }
.step-card { text-align: center; padding: 2rem 1.5rem; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--ember); color: var(--dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.2rem; margin-bottom: 1rem;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--ember); }
.step-card p { color: var(--text-dim); font-size: 0.9rem; }

/* ---- FEATURES ---- */
.features { padding: 6rem 0; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--card); border-radius: 16px; padding: 2rem;
  border: 1px solid rgba(232, 168, 124, 0.06); transition: transform 0.2s, border-color 0.3s;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(232, 168, 124, 0.15); }
.feature-icon { font-size: 2rem; display: block; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; color: var(--ember); }
.feature-card p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; }

/* ---- JOURNEY ---- */
.journey { padding: 6rem 0; background: var(--surface); }
.journey-timeline { max-width: 650px; margin: 0 auto; position: relative; }
.journey-timeline::before {
  content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--ember), var(--rose), var(--gold));
}
.journey-step { display: flex; gap: 2rem; margin-bottom: 3rem; position: relative; }
.step-marker {
  width: 50px; height: 50px; min-width: 50px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--ember);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.2rem;
  color: var(--ember); z-index: 1;
}
.step-content h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--text); }
.step-content p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; }
.step-tag {
  display: inline-block; margin-top: 0.8rem; font-size: 0.8rem;
  padding: 0.3rem 0.8rem; border-radius: 20px;
}
.free-tag { background: rgba(129, 199, 132, 0.15); color: var(--success); }

/* ---- QUOTE ---- */
.quote-section { padding: 5rem 2rem; text-align: center; }
.quote-section blockquote p {
  font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--rose);
  font-style: italic; max-width: 600px; margin: 0 auto;
}

/* ---- PRICING ---- */
.pricing { padding: 6rem 0; }
.pricing-toggle {
  display: flex; justify-content: center; gap: 0; margin-bottom: 2rem;
  background: var(--card); border-radius: 10px; padding: 4px; width: fit-content; margin-left: auto; margin-right: auto;
}
.toggle-btn {
  background: none; border: none; color: var(--text-dim); padding: 0.6rem 1.5rem;
  border-radius: 8px; cursor: pointer; font-size: 0.9rem; font-family: 'Inter', sans-serif; transition: all 0.2s;
}
.toggle-btn.active { background: var(--ember); color: var(--dark); font-weight: 600; }
.pricing-card {
  max-width: 420px; margin: 0 auto; background: var(--card);
  border-radius: 20px; padding: 2.5rem; text-align: center;
  border: 1px solid rgba(232, 168, 124, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.pricing-header h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.price { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; color: var(--ember); transition: all 0.3s; }
.price span { font-size: 1rem; color: var(--text-dim); font-weight: 400; }
.pricing-features {
  list-style: none; text-align: left; margin: 2rem 0; padding: 0;
  font-size: 0.95rem; color: var(--text-dim);
}
.pricing-features li { padding: 0.5rem 0; }
.pricing-trial { color: var(--success); font-size: 0.9rem; margin-bottom: 1.5rem; }
.pricing-card .btn-primary { width: 100%; text-align: center; }

/* ---- PRIVACY ---- */
.privacy { padding: 6rem 0; background: var(--surface); }
.privacy-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem; max-width: 900px; margin: 0 auto;
}
.privacy-item {
  background: var(--card); border-radius: 12px; padding: 1.5rem;
  border: 1px solid rgba(232, 168, 124, 0.06);
}
.privacy-item span { font-size: 1.5rem; display: block; margin-bottom: 0.8rem; }
.privacy-item p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }

/* ---- FAQ ---- */
.faq { padding: 6rem 0; }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
  background: var(--card); border-radius: 12px; margin-bottom: 0.8rem;
  border: 1px solid rgba(232, 168, 124, 0.06); overflow: hidden;
}
.faq-item summary {
  padding: 1.2rem 1.5rem; cursor: pointer; font-weight: 500; font-size: 1rem;
  color: var(--text); list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--ember); font-size: 1.3rem; font-weight: 300; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.5rem 1.2rem; color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }

/* ---- DOWNLOAD ---- */
.download { padding: 6rem 0; text-align: center; }
.download-buttons { display: flex; gap: 1.5rem; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.store-badge img { height: 60px; transition: transform 0.2s; }
.store-badge:hover img { transform: scale(1.05); }
.store-badge-soon { opacity: 0.5; }
.badge-placeholder {
  font-size: 0.95rem; color: var(--text-faint); padding: 0.8rem 1.5rem;
  border: 1px solid var(--text-faint); border-radius: 10px; display: inline-block;
}
.download-note { color: var(--text-faint); font-size: 0.8rem; margin-top: 0.5rem; }

/* ---- FOOTER ---- */
footer {
  padding: 3rem 2rem; border-top: 1px solid rgba(232, 168, 124, 0.06); text-align: center;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }
.footer-links { display: flex; gap: 2rem; justify-content: center; margin-bottom: 1rem; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: var(--ember); }
.footer-copy { color: var(--text-faint); font-size: 0.8rem; }

/* ---- ANIMATIONS ---- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- MOBILE ---- */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 3rem; }
  .hero-content { align-items: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-glow { left: 50%; transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--dark);
    padding: 1.5rem 2rem; gap: 1rem;
    border-bottom: 1px solid rgba(232, 168, 124, 0.08);
  }
  .menu-toggle { display: block; }
  .proof-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 1rem; }
  .hero { padding: 7rem 1.5rem 3rem; }
  .phone-frame { width: 240px; height: 480px; }
  .msg { font-size: 0.68rem; }
}
