/* ============================================
   BodyMake AI — Landing Page Styles
   Apple-inspired design system
   ============================================ */

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

:root {
  --color-bg-dark: #000000;
  --color-bg-light: #ffffff;
  --color-bg-alt: #f5f5f7;
  --color-text-primary: #1d1d1f;
  --color-text-secondary: #86868b;
  --color-text-on-dark: #f5f5f7;
  --color-text-muted-dark: #a1a1a6;
  --color-accent: #f97316;
  --color-accent-2: #ea580c;
  --color-accent-3: #facc15;
  --gradient-accent: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%);
  --gradient-hero: linear-gradient(180deg, #000000 0%, #1a0f0a 100%);
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1120px;
  --section-padding: 120px 24px;
  --transition-base: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background: var(--color-bg-light);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* --- Typography --- */
.headline-hero {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.headline-section {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.headline-sub {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.body-large {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.body-regular {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
}

/* --- Gradient Text --- */
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.section {
  padding: var(--section-padding);
}

.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.section--alt {
  background: var(--color-bg-alt);
}

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

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-on-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__logo-icon {
  width: 28px;
  height: 28px;
  background: var(--gradient-accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav__links a {
  font-size: 13px;
  color: var(--color-text-muted-dark);
  transition: color var(--transition-base);
}

.nav__links a:hover {
  color: var(--color-text-on-dark);
}

.nav__lang {
  font-size: 13px;
  color: var(--color-text-muted-dark);
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 4px 14px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.nav__lang:hover {
  border-color: rgba(255,255,255,0.5);
  color: var(--color-text-on-dark);
}

/* Mobile Nav */
.nav__menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text-on-dark);
  margin: 4px 0;
  transition: all 0.3s;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: var(--gradient-hero);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(249, 115, 22, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(234, 88, 12, 0.06) 0%, transparent 60%);
  animation: heroGlow 15s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-5%, 3%) scale(1.1); }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero__eyebrow {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.hero__title {
  color: var(--color-text-on-dark);
  margin-bottom: 24px;
}

.hero__subtitle {
  color: var(--color-text-muted-dark);
  max-width: 600px;
  margin: 0 auto 48px;
}

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

/* App Store Badge */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-text-on-dark);
  color: var(--color-bg-dark);
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  transition: all var(--transition-base);
  cursor: pointer;
}

.app-store-badge:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.3);
}

.app-store-badge svg {
  width: 24px;
  height: 24px;
}

.app-store-badge--outline {
  background: transparent;
  color: var(--color-text-on-dark);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.app-store-badge--outline:hover {
  border-color: rgba(255,255,255,0.7);
  box-shadow: 0 8px 32px rgba(255,255,255,0.1);
}

/* Phone mockup */
.hero__phone {
  margin-top: 64px;
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 280px;
  height: 580px;
  background: #1a1a2e;
  border-radius: 40px;
  border: 3px solid #333;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5),
              0 0 0 1px rgba(255,255,255,0.05),
              inset 0 0 0 1px rgba(255,255,255,0.05);
}

.phone-frame__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 30px;
  background: #000;
  border-radius: 0 0 20px 20px;
  z-index: 2;
}

.phone-frame__screen {
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border-radius: 37px;
  overflow: hidden;
  background: linear-gradient(180deg, #0f0f23 0%, #1a1a2e 100%);
  display: flex;
  flex-direction: column;
  padding: 50px 20px 30px;
}

.phone-screen__header {
  text-align: center;
  margin-bottom: 16px;
}

.phone-screen__title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.phone-screen__subtitle {
  font-size: 10px;
  color: var(--color-text-muted-dark);
  margin-top: 2px;
}

.phone-screen__card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}

.phone-screen__card-title {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.phone-screen__exercise {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.phone-screen__exercise:last-child {
  border-bottom: none;
}

.phone-screen__exercise-name {
  font-size: 12px;
  color: rgba(255,255,255,0.9);
}

.phone-screen__exercise-detail {
  font-size: 10px;
  color: var(--color-text-muted-dark);
}

.phone-screen__check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.phone-screen__check--done {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ============================================
   How It Works
   ============================================ */
.steps {
  padding: var(--section-padding);
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 64px;
}

.step {
  text-align: center;
}

.step__number {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.step__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.step__desc {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================
   Feature Sections
   ============================================ */
.feature {
  padding: var(--section-padding);
}

.feature__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature__inner--reverse {
  direction: rtl;
}

.feature__inner--reverse > * {
  direction: ltr;
}

.feature__eyebrow {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.feature__eyebrow--accent {
  color: var(--color-accent);
}

.feature__eyebrow--dark {
  color: var(--color-accent-2);
}

.feature__title {
  margin-bottom: 20px;
}

.feature__desc {
  margin-bottom: 32px;
}

.feature__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
}

.feature__list-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  margin-top: 2px;
}

/* Feature visual placeholders */
.feature__visual {
  position: relative;
}

.feature-card {
  background: var(--color-bg-alt);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.section--dark .feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.feature-card__mockup {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

/* AI Visual */
.ai-visual {
  background: linear-gradient(135deg, #1a0f05 0%, #2a1a0a 100%);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ai-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
}

.ai-visual__icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--gradient-accent);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Lucide icon sizing */
.lucide-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.75;
  vertical-align: middle;
  display: inline-block;
  position: relative;
  top: -1px;
}

.lucide-icon--lg {
  width: 36px;
  height: 36px;
  color: #fff;
}

.lucide-icon--sm {
  width: 16px;
  height: 16px;
  top: 0;
}

.ai-visual__text {
  position: relative;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.ai-visual__flow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.ai-visual__flow-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  min-width: 100px;
}

.ai-visual__flow-arrow {
  color: var(--color-accent);
  display: flex;
  align-items: center;
}

/* Progression visual */
.progression-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.progression-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progression-bar__label {
  font-size: 13px;
  color: var(--color-text-secondary);
  min-width: 60px;
  text-align: right;
}

.progression-bar__track {
  flex: 1;
  height: 8px;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progression-bar__fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.progression-bar__value {
  font-size: 14px;
  font-weight: 600;
  min-width: 48px;
}

/* ============================================
   Pricing / Free vs Pro
   ============================================ */
.pricing {
  padding: var(--section-padding);
}

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 64px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  border-radius: 24px;
  padding: 40px;
  position: relative;
}

.pricing-card--free {
  background: var(--color-bg-alt);
  border: 1px solid #e5e5ea;
}

.pricing-card--pro {
  background: linear-gradient(180deg, #0f0f23 0%, #1a1a3e 100%);
  color: var(--color-text-on-dark);
  border: 1px solid rgba(249, 115, 22, 0.3);
  box-shadow: 0 20px 60px rgba(249, 115, 22, 0.15);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card__name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-card__price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-card__price span {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.6;
}

.pricing-card__period {
  font-size: 14px;
  opacity: 0.6;
  margin-bottom: 32px;
}

.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.pricing-card__features .icon-check {
  flex-shrink: 0;
  color: #34c759;
  font-size: 16px;
  margin-top: 1px;
}

.pricing-card__features .icon-minus {
  flex-shrink: 0;
  color: var(--color-text-secondary);
  font-size: 16px;
  margin-top: 1px;
  opacity: 0.4;
}

.pricing-card--pro .pricing-card__features .icon-check {
  color: #fb923c;
}

.pricing-card__cta {
  display: block;
  width: 100%;
  margin-top: 32px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
}

.pricing-card__cta--free {
  background: var(--color-text-primary);
  color: var(--color-bg-light);
}

.pricing-card__cta--pro {
  background: var(--gradient-accent);
  color: #fff;
}

.pricing-card__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  padding: 120px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(249, 115, 22, 0.12) 0%, transparent 60%);
}

.cta-section__content {
  position: relative;
  z-index: 1;
}

.cta-section__title {
  margin-bottom: 20px;
}

.cta-section__subtitle {
  color: var(--color-text-muted-dark);
  max-width: 500px;
  margin: 0 auto 48px;
}

.cta-section__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

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

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  font-size: 13px;
  color: var(--color-text-muted-dark);
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__links a {
  font-size: 13px;
  color: var(--color-text-muted-dark);
  transition: color var(--transition-base);
}

.footer__links a:hover {
  color: var(--color-text-on-dark);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 80px 20px;
  }

  .nav__links {
    display: none;
  }

  .nav__menu-btn {
    display: block;
  }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
  }

  .hero {
    min-height: auto;
    padding: 140px 20px 60px;
  }

  .hero__title {
    font-size: clamp(36px, 9vw, 56px);
  }

  .steps__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature__inner,
  .feature__inner--reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .phone-frame {
    width: 240px;
    height: 500px;
  }

  .ai-visual__flow {
    flex-direction: column;
  }

  .ai-visual__flow-arrow {
    transform: rotate(90deg);
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__cta {
    flex-direction: column;
  }

  .app-store-badge {
    width: 100%;
    justify-content: center;
  }

  .pricing-card {
    padding: 28px;
  }
}
