/* ============================================
   PERSONAL TRAINER — LANDING PAGE
   Dark glassmorphism SaaS aesthetic
   ============================================ */

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

:root {
  --bg: #0a0a0f;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --text: #e2e2e8;
  --text-muted: #8888a0;
  --primary: #2196F3;
  --primary-glow: rgba(33,150,243,0.25);
  --gradient: linear-gradient(135deg, #2196F3, #64B5F6, #E1F5FE);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

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

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

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

/* --- ANIMATIONS --- */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.nav.scrolled {
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
  padding: 12px 0;
}
.nav__container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav__logo {
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__logo-icon {
  font-size: 1.3rem;
}
.nav__cta {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--primary-glow);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.25s cubic-bezier(.16,1,.3,1);
  cursor: pointer;
  border: none;
  line-height: 1;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 24px var(--primary-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--primary-glow);
}
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--bg-card);
}
.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--xl { padding: 18px 36px; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn__arrow {
  transition: transform 0.25s;
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(33,150,243,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(100,181,246,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 30% 40% at 20% 80%, rgba(33,150,243,0.06) 0%, transparent 50%);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}
.hero__content {
  position: relative;
  max-width: 720px;
  text-align: center;
}
.hero__badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero__proof {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.hero__proof-item { text-align: center; }
.hero__proof-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__proof-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.hero__proof-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* --- SECTIONS COMMON --- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- PROBLEM --- */
.problem {
  padding: 100px 0;
  position: relative;
}
.problem__grid {
  display: grid;
  gap: 56px;
}
.problem__text { text-align: center; }
.problem__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.problem__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.problem__card:hover {
  border-color: rgba(229,57,53,0.3);
  background: rgba(229,57,53,0.04);
  transform: translateY(-4px);
}
.problem__card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.problem__card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.problem__card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- FEATURES --- */
.features {
  padding: 100px 0;
  position: relative;
}
.features::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.35s cubic-bezier(.16,1,.3,1);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.35s;
}
.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.feature-card:hover::before { opacity: 1; }
.feature-card__icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(33,150,243,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card__icon { font-size: 1.4rem; }
.feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- DIFFERENTIATOR --- */
.diff {
  padding: 100px 0;
  position: relative;
}
.diff::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.diff__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.diff__badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.diff__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.diff__text {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}
.diff__comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
}
.diff__col {
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
}
.diff__col--other {
  background: rgba(229,57,53,0.04);
  border-color: rgba(229,57,53,0.15);
}
.diff__col--ours {
  background: rgba(33,150,243,0.06);
  border-color: rgba(33,150,243,0.2);
}
.diff__col-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  color: var(--text-muted);
}
.diff__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.diff__list li {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- HOW IT WORKS --- */
.how {
  padding: 100px 0;
  position: relative;
}
.how::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.how__steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
}
.how__step {
  text-align: center;
  max-width: 280px;
  padding: 0 20px;
}
.how__step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(33,150,243,0.12);
  border: 2px solid var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}
.how__step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.how__step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.how__step-connector {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  margin-top: 28px;
  flex-shrink: 0;
}

/* --- CTA --- */
.cta {
  padding: 100px 0 120px;
  position: relative;
}
.cta__inner {
  text-align: center;
  background:
    radial-gradient(ellipse 50% 80% at 50% 100%, rgba(33,150,243,0.12) 0%, transparent 70%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}
.cta__inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
}
.cta__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta__text {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* --- FOOTER --- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__logo {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer__text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero { padding: 100px 20px 60px; min-height: auto; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__proof { gap: 20px; }
  .hero__proof-divider { display: none; }

  .problem, .features, .diff, .how, .cta { padding: 72px 0; }

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

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

  .how__steps { flex-direction: column; align-items: center; gap: 32px; }
  .how__step-connector { width: 2px; height: 40px; background: linear-gradient(180deg, var(--primary), transparent); margin: 0; }

  .cta__inner { padding: 48px 24px; }

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

@media (max-width: 480px) {
  .hero__title { font-size: 2rem; }
  .btn--lg { padding: 12px 20px; font-size: 0.9rem; }
  .btn--xl { padding: 14px 28px; font-size: 1rem; }
}
