/* ============================================================
   VARIABLES & RESET
============================================================ */
:root {
  --color-primary:    #6B5B7B;
  --color-primary-d:  #57496a;
  --color-secondary:  #C9B1D0;
  --color-bg:         #F8F6FA;
  --color-bg-alt:     #EFE9F4;
  --color-text:       #2D3436;
  --color-text-soft:  #636e72;
  --color-white:      #ffffff;
  --color-dark:       #1a1a2e;
  --color-dark-alt:   #16213e;

  --font-heading: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  --shadow-sm:  0 2px 8px rgba(107,91,123,.12);
  --shadow-md:  0 8px 32px rgba(107,91,123,.18);
  --shadow-lg:  0 20px 60px rgba(107,91,123,.25);

  --nav-h: 68px;
  --container: 1160px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ============================================================
   UTILITIES
============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.125rem;
  color: var(--color-text-soft);
  max-width: 520px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 2px solid transparent;
  text-align: center;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-d);
  border-color: var(--color-primary-d);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn--full { width: 100%; }

/* ============================================================
   SCROLL REVEAL
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAV
============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(248, 246, 250, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107,91,123,.1);
  transition: box-shadow .2s ease;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo img { height: 36px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--color-text-soft);
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--color-primary); }
.nav__links .btn {
  padding: 8px 20px;
  font-size: .9rem;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
============================================================ */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 80px 0 96px;
  background: linear-gradient(145deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(201,177,208,.3) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(107,91,123,.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 24px;
}

.hero__sub {
  font-size: 1.125rem;
  color: var(--color-text-soft);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.app-store-badge {
  display: inline-block;
  transition: transform .15s ease, opacity .15s ease;
}
.app-store-badge:hover { transform: translateY(-2px); opacity: .9; }

.hero__note {
  font-size: .875rem;
  color: var(--color-text-soft);
}

/* Phone mockup */
.hero__phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(201,177,208,.6) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 280px;
  height: 560px;
  background: #0d0d0d;
  border-radius: 44px;
  padding: 16px 12px 24px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 0 0 3px #1a1a1a,
    0 0 0 4px rgba(255,255,255,.06),
    var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 100px;
  height: 26px;
  background: #0d0d0d;
  border-radius: 0 0 20px 20px;
  margin: 0 auto 8px;
  flex-shrink: 0;
  position: relative;
}
.phone-notch::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #222;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}

.phone-screen {
  flex: 1;
  background: var(--color-white);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-chat {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  background: #f5f4f7;
}

.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 12.5px;
  line-height: 1.45;
  font-family: var(--font-body);
  animation: bubbleIn .4s ease both;
}

.chat-bubble--in {
  background: var(--color-white);
  color: var(--color-text);
  border-radius: 18px 18px 18px 4px;
  align-self: flex-start;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.chat-bubble--out {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 18px 18px 4px 18px;
  align-self: flex-end;
}

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(6px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-bubble:nth-child(1) { animation-delay: .1s; }
.chat-bubble:nth-child(2) { animation-delay: .4s; }
.chat-bubble:nth-child(3) { animation-delay: .7s; }
.chat-bubble:nth-child(4) { animation-delay: 1.0s; }
.chat-bubble:nth-child(5) { animation-delay: 1.3s; }
.chat-bubble:nth-child(6) { animation-delay: 1.6s; }

/* ============================================================
   FEATURES
============================================================ */
.features {
  background: var(--color-white);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid rgba(107,91,123,.1);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
}

.feature-card__body {
  font-size: .9375rem;
  color: var(--color-text-soft);
  line-height: 1.65;
}

/* ============================================================
   HOW IT WORKS
============================================================ */
.how {
  background: var(--color-bg);
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}

.how__steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.step__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
}

.step__body {
  font-size: .9375rem;
  color: var(--color-text-soft);
  line-height: 1.65;
  max-width: 260px;
}

/* ============================================================
   PRICING
============================================================ */
.pricing {
  background: var(--color-white);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--color-bg);
  border: 1px solid rgba(107,91,123,.12);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card--featured {
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary-d));
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.04);
  box-shadow: var(--shadow-lg);
}
.pricing-card--featured:hover { transform: scale(1.04) translateY(-4px); }

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-secondary);
  color: var(--color-text);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 99px;
  white-space: nowrap;
}

.pricing-card__tier {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
}
.pricing-card--featured .pricing-card__tier { color: rgba(255,255,255,.8); }

.pricing-card__price {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 600;
}
.pricing-card--featured .pricing-card__price { color: var(--color-white); }

.pricing-card__features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9375rem;
  color: var(--color-text-soft);
}
.pricing-card--featured .pricing-card__features li { color: rgba(255,255,255,.85); }

.pricing-card__features li::before {
  content: '✓';
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
}
.pricing-card--featured .pricing-card__features li::before { color: var(--color-secondary); }

.pricing-card--featured .btn--primary {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}
.pricing-card--featured .btn--primary:hover {
  background: var(--color-bg);
  border-color: var(--color-bg);
}

.pricing-card--featured .btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,.6);
}

/* ============================================================
   DOWNLOAD CTA
============================================================ */
.download {
  background: linear-gradient(145deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.download__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.download__icon {
  width: 80px;
  height: 80px;
}

.download__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
}

.download__sub {
  font-size: 1.0625rem;
  color: var(--color-text-soft);
  line-height: 1.7;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  margin-bottom: 48px;
}

.footer__brand {
  max-width: 280px;
}

.footer__logo { margin-bottom: 12px; }

.footer__tagline {
  font-size: .9rem;
  color: rgba(255,255,255,.5);
}

.footer__nav {
  display: flex;
  gap: 64px;
}

.footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__nav-heading {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 4px;
}

.footer__nav-col a {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  transition: color .15s ease;
}
.footer__nav-col a:hover { color: var(--color-white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: .85rem;
  color: rgba(255,255,255,.4);
}

.footer__social {
  display: flex;
  gap: 16px;
}
.footer__social a {
  color: rgba(255,255,255,.4);
  transition: color .15s ease;
}
.footer__social a:hover { color: var(--color-white); }

/* ============================================================
   RESPONSIVE — TABLET (max 900px)
============================================================ */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero__sub, .hero__text { max-width: 100%; }
  .hero__cta { justify-content: center; }
  .hero__note { text-align: center; }

  .hero__phone { order: -1; }
  .phone-frame { width: 240px; height: 480px; }

  .features__grid { grid-template-columns: repeat(2, 1fr); }

  .how__steps { grid-template-columns: 1fr; gap: 32px; }
  .how__steps::before { display: none; }
  .step { flex-direction: row; align-items: flex-start; text-align: left; gap: 20px; }
  .step__number { margin-bottom: 0; }
  .step__body { max-width: none; }

  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .pricing-card--featured { transform: scale(1); }
  .pricing-card--featured:hover { transform: translateY(-4px); }

  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__nav { flex-wrap: wrap; gap: 40px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 600px)
============================================================ */
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }

  .nav__links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 8px;
    border-top: 1px solid rgba(107,91,123,.1);
    overflow-y: auto;
    z-index: 99;
  }
  .nav__links.open { display: flex; }
  .nav__links a {
    padding: 12px 8px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(107,91,123,.08);
  }
  .nav__links .btn { margin-top: 8px; }
  .nav__hamburger { display: flex; }

  .hero { padding: 48px 0 64px; min-height: auto; }
  .phone-frame { width: 210px; height: 420px; }

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

  .footer__nav { flex-direction: column; gap: 32px; }
}
