/* =====================================================
   1. DESIGN TOKENS (COLORS, RADII, SHADOWS, SPACING)
===================================================== */

:root {
  /* Core Palette */
  --cosmic-indigo: #1a1a2e;
  --deep-plum: #2b1b3d;
  --rose-gold: #c77e8a;
  --soft-lavender: #8a7cc7;
  --moonlight: #f4f2ff;

  /* Glass System */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);

  /* Text */
  --color-text-main: #f4f2ff;
  --color-text-sub: rgba(244, 242, 255, 0.75);

  /* Radii */
  --radius-lg: 30px;
  --radius-pill: 50px;

  /* Shadows */
  --shadow-soft: 0 15px 40px rgba(138, 124, 199, 0.25);

  /* Layout */
  --header-height: 80px;
  --container-width: 900px;
}


/* =====================================================
   2. RESET + BASE FOUNDATION
===================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(138,124,199,0.25), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(199,126,138,0.2), transparent 50%),
    linear-gradient(160deg, var(--deep-plum), var(--cosmic-indigo));
  color: var(--color-text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


/* =====================================================
   3. LAYOUT SYSTEM
===================================================== */

.page {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: calc(var(--header-height) + 80px) 24px 120px;
}

@media (max-width: 768px) {
  .page {
    padding: calc(var(--header-height) + 60px) 20px 100px;
  }
}

.page-title {
  font-size: 2.8rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: 20px;
  color: var(--rose-gold);
  text-shadow: 0 0 20px rgba(199,126,138,0.3);
}

.page-subtitle {
  text-align: center;
  margin-bottom: 70px;
  color: var(--color-text-sub);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}
.section-title {
  font-size: 2.6rem;
  font-weight: 300;
  margin-bottom: 10px;
  color: var(--rose-gold);
}

.section-subtitle {
  color: var(--color-text-sub);
  margin-bottom: 60px;
  font-size: 1rem;
}

/* =====================================================
   4. NAVIGATION SYSTEM
===================================================== */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(26, 26, 46, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
}

.header-container {
  max-width: 1150px;
  margin: 0 auto;
  height: 100%;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link img {
  height: 42px;
  border-radius: 14px;
  transition: 0.3s ease;
}

.logo-link img:hover {
  filter: drop-shadow(0 0 12px rgba(199,126,138,0.4));
}

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

.nav-link {
  color: var(--color-text-sub);
  text-decoration: none;
  transition: 0.3s ease;
}

.nav-link:hover {
  color: var(--rose-gold);
}

/* =====================================================
   MOBILE NAVIGATION
===================================================== */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--color-text-main);
  transition: 0.3s ease;
}

/* Mobile breakpoint */
@media (max-width: 900px) {

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: linear-gradient(160deg, var(--deep-plum), var(--cosmic-indigo));
    flex-direction: column;
    padding: calc(var(--header-height) + 40px) 30px;
    gap: 28px;
    transition: right 0.35s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.4);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

/* Hamburger animation */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =====================================================
   5. BUTTON SYSTEM
===================================================== */

.button,
.cta-button,
.cta-btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s ease;
  text-align: center;
}
  .button,
  .cta-button {
    width: auto;
  }

  .cta-btn,
  .pricing-card {
    width: 100%;
  }

.button--primary,
.cta-button,
.cta-btn.primary {
  background: linear-gradient(135deg, var(--soft-lavender), var(--rose-gold));
  color: white;
  box-shadow: var(--shadow-soft);
}

.button--secondary,
.cta-btn.secondary {
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.05);
  color: var(--color-text-main);
}

.button:hover,
.cta-button:hover,
.cta-btn:hover {
  transform: translateY(-2px);
}


/* =====================================================
   6. CARD SYSTEM (UNIFIED)
===================================================== */

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  padding: 48px;
  margin-bottom: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.card h2 {
  color: var(--rose-gold);
  font-weight: 300;
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.card p,
.card li {
  color: var(--color-text-sub);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

.card strong {
  color: var(--color-text-main);
}


/* =====================================================
   7. FAQ COMPONENT
===================================================== */

.faq-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: 0.3s ease;
}

.faq-item.active {
  box-shadow: 0 0 25px rgba(199,126,138,0.25);
}

.faq-question {
  padding: 26px 30px;
  width: 100%;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  color: var(--color-text-main);
}

/* =====================================================
   FAQ ANSWER (JS-CONTROLLED HEIGHT SYSTEM)
===================================================== */

.faq-answer {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease, opacity 0.25s ease;
  opacity: 0;
}

.faq-item.active .faq-answer {
  opacity: 1;
}

.faq-answer-content {
  padding: 0 30px 24px 30px;
  color: var(--color-text-sub);
  line-height: 1.7;
}

/* =====================================================
   8. HERO SECTION
===================================================== */

.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: calc(var(--header-height) + 100px) 8% 120px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  max-width: 520px;
}

.hero-title {
  font-size: 3.2rem;
  margin-bottom: 24px;
}

.hero-subtitle {
  color: var(--color-text-sub);
  margin-bottom: 30px;
}

@media (max-width: 900px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
  }
}

/* =============================
   PHONE MOCKUPS (REFINED RESPONSIVE)
============================= */

.phone-display {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;   /* allows grid wrapping */
  gap: 40px;         /* spacing between phones */
  position: relative;
  min-height: 540px;
  }

.phone-mockup {
  width: 260px;
  height: 520px;
  border-radius: 40px;
  border: 8px solid #222;
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transition: transform 0.6s cubic-bezier(.34,1.56,.64,1);
}

/* Front phone */
.mockup-front {
  position: relative;
  z-index: 2;
}

/* Back phone */
.mockup-back {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-65%, -35%) scale(0.96);
  opacity: 0.85;
  z-index: 1;
}

/* Hover interaction (subtle, premium) */
.phone-display:hover .mockup-front {
  transform: translateY(-10px);
}

.phone-display:hover .mockup-back {
  transform: translate(-65%, -40%) scale(0.96);
}

/* =============================
   LARGE SCREENS (More breathing room)
============================= */

@media (min-width: 1400px) {
  .phone-mockup {
    width: 290px;
    height: 580px;
  }

  .mockup-back {
    transform: translate(-75%, -35%) scale(0.95);
  }
}

/* =============================
   TABLET
============================= */

@media (max-width: 1024px) {
  .phone-mockup {
    width: 220px;
    height: 440px;
  }

  .mockup-back {
    transform: translate(-60%, -35%) scale(0.95);
  }
}

/* =============================
   MOBILE (Stacked Clean)
============================= */

  /* =============================
     MOBILE (Stacked Clean)
  ============================= */

  @media (max-width: 768px) {

    .phone-display {
      min-height: auto;
      margin-top: 40px;
      flex-direction: column; /* stack phones */
    }

    .phone-mockup {
      width: 220px;
      height: 440px;
    }

    .mockup-front {
      position: relative;
      transform: none;
    }

    .mockup-back {
      position: relative;
      top: auto;
      left: auto;
      transform: none;
      margin-top: 20px;
      opacity: 0.6;
    }
  }



  /* ==============================
     PRICING SECTION
  ============================== */

  .pricing-section {
    padding: 120px 24px;
    position: relative;
  }

  .pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
  }

  /* GRID */

  .pricing-grid {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
  }

  /* CARD */

  .pricing-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 50px 40px;
    backdrop-filter: blur(12px);
    transition: all 0.35s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-float);
  }

  /* FEATURED */

  .pricing-card.featured {
    border: 1px solid var(--rose-gold);
    box-shadow: 0 0 40px rgba(199,126,138,0.2);
  }

  .pricing-card.featured:hover {
    transform: scale(1.05) translateY(-6px);
  }
  /* TEXT */

  .pricing-card h3 {
    font-weight: 400;
    margin-bottom: 8px;
    font-size: 1.5rem;
  }

  .price {
    font-size: 2rem;
    font-weight: 300;
    margin: 10px 0 25px;
    margin-bottom: 20px;
    color: white;
  }


  .price span {
    font-size: 0.9rem;
    color: var(--color-text-sub);
  }

  .pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
  }
  .pricing-card li {
    margin-bottom: 12px;
    color: var(--color-text-sub);
    font-size: 1rem;
  }


  /* BUTTONS */

  .cta-btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-align: center;
  }

  .cta-btn.primary {
    background: linear-gradient(135deg, #c77e8a, #8a7cc7);
    color: white;
  }

  .cta-btn.secondary {
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
  }

  .cta-btn:hover {
    transform: translateY(-2px);
  }

  /* NOTE */

  .pricing-note {
    margin-top: 50px;
    font-size: 0.9rem;
    color: var(--color-text-sub);
  }


/* =============================
   RESPONSIVE
============================= */

  /* ==============================
     RESPONSIVE
  ============================== */

  @media (max-width: 1024px) {
    .pricing-grid {
      grid-template-columns: 1fr 1fr;
    }

    .pricing-card.featured {
      transform: none;
    }
  }

  @media (max-width: 768px) {
    .pricing-section {
      padding: 80px 20px;
    }

    .pricing-grid {
      grid-template-columns: 1fr;
    }

    .pricing-card {
      text-align: center;
    }


    .pricing-card ul {
      text-align: center;
    }
  }
/* =====================================================
   10. FEATURE SECTION (ISOLATED + SAFE)
===================================================== */

.features-section {
  padding: 120px 8%;
  max-width: 1200px;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 70px;
}

.features-header h2 {
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--rose-gold);
  margin-bottom: 15px;
}

.features-header p {
  color: var(--color-text-sub);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.feature-card h3 {
  font-size: 1.3rem;
  color: var(--rose-gold);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--color-text-sub);
  line-height: 1.7;
}

/* Mobile Safety */
@media (max-width: 768px) {
  .features-section {
    padding: 90px 24px;
  }
}

/* =====================================================
   11. FAQ ACCORDION (PRODUCTION SAFE)
===================================================== */

.faq-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
}

.faq-item.active {
  box-shadow: 0 0 25px rgba(199,126,138,0.25);
}

.faq-question {
  width: 100%;
  padding: 26px 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  color: var(--color-text-main);
}

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--rose-gold);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  padding: 0 30px;
}

.faq-answer-content {
  padding: 0 0 24px 0;
  color: var(--color-text-sub);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  opacity: 1;
  max-height: 500px; /* Safe expand limit */
}

/* =====================================================
   9. FOOTER
===================================================== */

.footer {
  padding: 90px 20px 70px;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.15);
}

.footer p {
  color: var(--color-text-sub);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--color-text-sub);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--rose-gold);
}