/* ===========================
   Pepti Landing Page Styles
   =========================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #00C896;
  --primary-dark: #00a67b;
  --secondary: #FF8A80;
  --bg-dark: #121212;
  --bg-dark-card: #1E1E1E;
  --bg-light: #F8F9FA;
  --text-light: #FFFFFF;
  --text-muted: #A0A0A0;
  --text-dark: #1A1A1A;
  --text-dark-muted: #555;
  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.3s ease;
}

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

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

/* --- Section Titles --- */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 56px;
  font-weight: 300;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  border: none;
}

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

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 30px rgba(0, 200, 150, 0.3);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.08);
}

.btn--large {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* ===========================
   Navigation
   =========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.nav--scrolled {
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.nav__logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}

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

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--text-light);
}

.nav__cta {
  background: var(--primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.nav__cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle--active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav__toggle--active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   Hero
   =========================== */
.hero {
  padding: 160px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

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

.hero__title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__title br + br {
  display: none;
}

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
  font-weight: 300;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero__tag {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
}

/* Phone Mockup */
.hero__mockup {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 300px;
  height: 580px;
  background: var(--bg-dark-card);
  border-radius: 40px;
  padding: 16px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  position: relative;
  overflow: hidden;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--bg-dark);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-mockup__screen {
  width: 100%;
  height: 100%;
  background: #0A0A0A;
  border-radius: 28px;
  padding: 48px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mockup-chart {
  flex: 1;
}

.mockup-chart__title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.mockup-chart__svg {
  width: 100%;
  height: 120px;
}

.mockup-chart__labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 8px;
  padding: 0 4px;
}

.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mockup-stat {
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 12px 4px;
}

.mockup-stat__value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.mockup-stat__label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===========================
   Features
   =========================== */
.features {
  padding: 120px 0;
  background: var(--bg-light);
  color: var(--text-dark);
}

.features .section-title {
  color: var(--text-dark);
}

.features .section-subtitle {
  color: var(--text-dark-muted);
}

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

.features__grid .feature-card:nth-child(4),
.features__grid .feature-card:nth-child(5) {
  /* Center the last two cards */
}

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 200, 150, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.feature-card__tagline {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--text-dark-muted);
  line-height: 1.6;
}

/* ===========================
   How It Works
   =========================== */
.how-it-works {
  padding: 120px 0;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  text-align: center;
  flex: 1;
  max-width: 280px;
  position: relative;
}

.step__number {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 20px;
}

.step__icon {
  margin-bottom: 20px;
}

.step__icon svg {
  margin: 0 auto;
}

.step__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

.step__connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), rgba(0, 200, 150, 0.2));
  margin-top: 56px;
  flex-shrink: 0;
}

/* ===========================
   Medications
   =========================== */
.medications {
  padding: 120px 0;
  background: var(--bg-light);
  color: var(--text-dark);
}

.medications .section-title {
  color: var(--text-dark);
}

.medications .section-subtitle {
  color: var(--text-dark-muted);
}

.medications__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.med-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform var(--transition), box-shadow var(--transition);
}

.med-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.med-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.med-card__brands {
  font-size: 0.85rem;
  color: var(--text-dark-muted);
}

.med-card--custom {
  border: 2px dashed rgba(0, 200, 150, 0.3);
  background: rgba(0, 200, 150, 0.03);
}

.med-card--custom .med-card__name {
  color: var(--primary);
}

/* ===========================
   Personas / Social Proof
   =========================== */
.personas {
  padding: 120px 0;
}

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

.persona-card {
  background: var(--bg-dark-card);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform var(--transition), border-color var(--transition);
}

.persona-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 200, 150, 0.2);
}

.persona-card__emoji {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.persona-card__headline {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.persona-card__type {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.persona-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* ===========================
   FAQ
   =========================== */
.faq {
  padding: 120px 0;
  background: var(--bg-light);
  color: var(--text-dark);
}

.faq .section-title {
  color: var(--text-dark);
}

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

.faq__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq__item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  background: none;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
}

.faq__question:hover {
  color: var(--primary-dark);
}

.faq__chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-dark-muted);
}

.faq__item--open .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq__item--open .faq__answer {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq__answer p {
  font-size: 0.95rem;
  color: var(--text-dark-muted);
  line-height: 1.7;
}

/* ===========================
   CTA Banner
   =========================== */
.cta-banner {
  padding: 120px 0;
  text-align: center;
  background: linear-gradient(135deg, #0a1a14 0%, var(--bg-dark) 50%, #1a0a0f 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 200, 150, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  position: relative;
}

.cta-banner__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-weight: 300;
  position: relative;
}

.cta-banner__buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  position: relative;
}

.cta-banner__tag {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
  position: relative;
}

/* ===========================
   Footer
   =========================== */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.footer__brand {
  margin-bottom: 32px;
}

.footer__logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.footer__tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
  font-weight: 300;
}

.footer__links {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
}

.footer__link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--primary);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__email {
  color: var(--text-muted);
}

/* ===========================
   Scroll Reveal
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Responsive Design
   =========================== */

/* Tablet: 1024px and below */
@media (max-width: 1024px) {
  .section-title {
    font-size: 2rem;
  }

  .hero__container {
    gap: 40px;
  }

  .hero__title {
    font-size: 3rem;
  }

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

  .medications__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .personas__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .persona-card {
    padding: 32px 24px;
  }
}

/* Small tablet: 768px and below */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: right 0.35s ease;
  }

  .nav__menu--open {
    right: 0;
  }

  .nav__link {
    font-size: 1.2rem;
  }

  .nav__cta {
    text-align: center;
    display: block;
  }

  .hero {
    padding: 120px 0 80px;
    min-height: auto;
  }

  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__title {
    font-size: 2.75rem;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__ctas {
    justify-content: center;
  }

  .hero__mockup {
    order: -1;
  }

  .phone-mockup {
    width: 240px;
    height: 460px;
    border-radius: 32px;
  }

  .phone-mockup::before {
    width: 100px;
    height: 24px;
  }

  .phone-mockup__screen {
    border-radius: 22px;
    padding: 40px 16px 16px;
  }

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

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .step__connector {
    width: 2px;
    height: 40px;
    margin: 0;
    background: linear-gradient(180deg, var(--primary), rgba(0, 200, 150, 0.2));
  }

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

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

  .cta-banner__title {
    font-size: 2rem;
  }

  .footer__links {
    flex-direction: column;
    gap: 16px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* Mobile: 480px and below */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .section-title {
    font-size: 1.75rem;
  }

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

  .hero__title {
    font-size: 2.25rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

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

  .cta-banner {
    padding: 80px 0;
  }

  .cta-banner__title {
    font-size: 1.75rem;
  }

  .cta-banner__buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-banner__buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* Tiny mobile: 320px */
@media (max-width: 360px) {
  .hero__title {
    font-size: 1.9rem;
  }

  .phone-mockup {
    width: 200px;
    height: 400px;
  }

  .persona-card {
    padding: 28px 20px;
  }
}

/* Large desktop: 1440px+ */
@media (min-width: 1440px) {
  .container,
  .nav__container,
  .hero__container,
  .footer__container {
    max-width: 1320px;
  }

  .hero__title {
    font-size: 4.5rem;
  }

  .section-title {
    font-size: 2.75rem;
  }
}
