/* --- BetterLife Premium Design System & Typography --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Colors matching iOS design tokens */
  --bg-primary: #0F0A2A;
  --bg-secondary: #08041B;
  --surface: rgba(26, 21, 72, 0.45);
  --surface-hover: rgba(26, 21, 72, 0.7);
  --border-color: rgba(155, 93, 229, 0.25);
  
  --violet: #7B2FBE;
  --violet-light: #9B5DE5;
  --gold: #F5A623;
  --gold-light: #FFD166;
  --teal: #06D6A0;
  --coral: #EF476F;
  
  --text-primary: #F0EBF8;
  --text-secondary: #A89EC5;
  --text-tertiary: #6B5F8A;

  /* Font mappings */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base Rules --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-primary);
  background-image: radial-gradient(circle at 10% 20%, rgba(123, 47, 190, 0.15) 0%, transparent 40%),
                    radial-gradient(circle at 90% 80%, rgba(6, 214, 160, 0.1) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
  font-weight: 400;
}

/* --- Nav Bar --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 5%;
  background: rgba(15, 10, 42, 0.7);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(123, 47, 190, 0.5);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--violet-light);
}

.btn-cta {
  background: linear-gradient(135deg, var(--violet), var(--violet-light));
  color: white;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 99px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(123, 47, 190, 0.4);
  transition: var(--transition-smooth);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 47, 190, 0.6);
}

/* --- Hero Section --- */
.hero {
  padding: 10rem 5% 6rem;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-tag {
  align-self: center;
  background: rgba(123, 47, 190, 0.2);
  border: 1px solid var(--violet-light);
  color: var(--violet-light);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  color: white;
}

.hero-title span {
  background: linear-gradient(135deg, var(--violet-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 700px;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-secondary {
  background: rgba(26, 21, 72, 0.4);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.75rem 1.8rem;
  border-radius: 99px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(26, 21, 72, 0.7);
  border-color: var(--violet-light);
}

.hero-showcase {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-container {
  width: 280px;
  height: 560px;
  background: #08041B;
  border: 8px solid rgba(155, 93, 229, 0.3);
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(123, 47, 190, 0.5);
  overflow: hidden;
  position: relative;
  animation: floatPhone 6s ease-in-out infinite;
}

.phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* --- Section Container --- */
.section {
  padding: 6rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-hdr {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-tag {
  color: var(--violet-light);
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
}

.section-title {
  font-size: 2.5rem;
  color: white;
}

/* --- Feature Grid ("What You Get") --- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.card {
  flex: 1 1 320px;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-8px);
  background: var(--surface-hover);
  border-color: var(--violet-light);
  box-shadow: 0 12px 30px rgba(123, 47, 190, 0.25);
}

.card-icon {
  font-size: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(123, 47, 190, 0.25);
  border: 1px solid rgba(155, 93, 229, 0.4);
  color: var(--violet-light);
}

.card-title {
  font-size: 1.5rem;
  color: white;
}

.card-desc {
  font-size: 0.95rem;
}

/* --- Step Flow ("How to Use") --- */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--violet-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.75;
}

.step-title {
  font-size: 1.25rem;
  color: white;
}

/* --- Screenshot Showcase --- */
.carousel-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border-color);
  background: rgba(8, 4, 27, 0.5);
  padding: 3rem 1rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 2rem;
}

.carousel-slide {
  min-width: calc(33.333% - 1.33rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.carousel-slide img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(155, 93, 229, 0.2);
  transition: var(--transition-smooth);
}

.carousel-slide.active img {
  border-color: var(--violet-light);
  box-shadow: 0 15px 35px rgba(123, 47, 190, 0.35);
}

.carousel-caption {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.carousel-btn {
  background: rgba(26, 21, 72, 0.6);
  border: 1px solid var(--border-color);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  transition: var(--transition-smooth);
}

.carousel-btn:hover {
  background: var(--violet);
  border-color: var(--violet-light);
}

/* --- FAQ Section --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-q {
  padding: 1.5rem 2rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--violet-light);
  transition: var(--transition-smooth);
}

.faq-item.active .faq-q::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 2rem;
  font-size: 0.95rem;
}

.faq-item.active .faq-a {
  max-height: 200px;
  padding: 0 2rem 1.5rem;
}

/* --- EEAT Trust Footer --- */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 5rem 5% 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr repeat(2, 0.9fr);
  gap: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-tagline {
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-hdr {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--violet-light);
}

.footer-bottom {
  max-width: 1200px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(155, 93, 229, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.icf-citation {
  max-width: 600px;
  line-height: 1.5;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 8rem;
    gap: 3rem;
  }
  
  .hero-tag {
    align-self: center;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .carousel-slide {
    min-width: calc(50% - 1rem);
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .carousel-slide {
    min-width: 100%;
  }
}
