@import url('https://fonts.googleapis.com/css2?family=Jost:wght@200;300;400;500;600&family=Libre+Franklin:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #4361EE;
  --accent: #7209B7;
  --pink: #F72585;
  --bg: #FFFFFF;
  --bg-alt: #F0F0FA;
  --card-bg: #FFFFFF;
  --text: #1A1A2E;
  --text-muted: #6B7294;
  --border: #D8D8EE;
  --hero-overlay: rgba(26, 26, 46, 0.75);
  --radius: 10px;
  --font-heading: 'Jost', sans-serif;
  --font-body: 'Libre Franklin', sans-serif;
}

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

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

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

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

ul { list-style: none; }

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER / NAV (Axis B: transparent → white on scroll) ===== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.35s, box-shadow 0.35s;
  background: transparent;
}

.header.scrolled {
  background: var(--bg);
  box-shadow: 0 2px 20px rgba(26, 26, 46, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo img {
  height: 36px;
  width: auto;
}

.header-logo span {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.35rem;
  color: #fff;
  transition: color 0.35s;
}

.header.scrolled .header-logo span {
  color: var(--text);
}

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

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #fff;
}

.header.scrolled .nav-links a {
  color: var(--text-muted);
}

.header.scrolled .nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  background: var(--pink) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  font-family: var(--font-body) !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  border: none !important;
  font-size: 0.9rem !important;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s !important;
  display: inline-block;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(247, 37, 133, 0.35);
}

/* Burger */

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
}

.burger span {
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background 0.3s, transform 0.3s;
}

.header.scrolled .burger span {
  background: var(--text);
}

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

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

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

/* Mobile nav */

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--bg);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  z-index: 1050;
  transition: right 0.35s ease;
  padding: 90px 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1040;
}

.mobile-overlay.show {
  display: block;
}

/* ===== HERO (Axis D: Fullscreen bg + overlay) ===== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #4361EE 0%, #7209B7 50%, #F72585 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 120px 20px 80px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Ghost / outline buttons (Axis E) */

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.btn-ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--text);
}

.btn-ghost-accent {
  border-color: var(--pink);
  color: #fff;
}

.btn-ghost-accent:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: #000;
}

/* Btn on light backgrounds */

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

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

.btn-outline-accent {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline-accent:hover {
  background: var(--accent);
  color: #fff;
}

.btn-solid-pink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--pink);
  border: 2px solid var(--pink);
  border-radius: var(--radius);
  color: #000;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-solid-pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(247, 37, 133, 0.3);
}

/* Trust badges */

.trust-badges {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-badge-icon {
  font-size: 1.3rem;
}

/* ===== STATS BAR ===== */

.stats-bar {
  background: var(--bg-alt);
  padding: 40px 0;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== DIAGONAL SKEW DIVIDERS (Axis B sections) ===== */

.section {
  padding: 90px 0;
  position: relative;
}

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

.skew-top {
  position: relative;
}

.skew-top::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background: inherit;
  clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

.skew-bottom::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
  z-index: 1;
}

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

.section-header h2 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--text);
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ===== FEATURE CARDS (Axis F: Large icon on top) ===== */

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 24px 32px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(67, 97, 238, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

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

.feature-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== DOWNLOAD / PLATFORMS ===== */

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s;
  cursor: pointer;
}

.platform-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.platform-icon {
  font-size: 2.6rem;
}

.platform-card span {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

/* ===== TRIAL / GRADIENT CARD (Axis A price) ===== */

.trial-card {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 20px;
  padding: 56px 48px;
  text-align: center;
  color: #fff;
  max-width: 720px;
  margin: 0 auto;
}

.trial-card h2 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.trial-card p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 32px;
  line-height: 1.7;
}

.trial-card .btn-ghost {
  border-color: #fff;
}

.trial-card .btn-ghost:hover {
  background: #fff;
  color: var(--accent);
}

/* ===== FAQ TABS (Axis C) ===== */

.faq-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.faq-tab {
  padding: 10px 24px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s;
}

.faq-tab.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(67, 97, 238, 0.06);
}

.faq-tab:hover:not(.active) {
  border-color: var(--text-muted);
  color: var(--text);
}

.faq-panel {
  display: none;
  max-width: 720px;
  margin: 0 auto;
}

.faq-panel.active {
  display: block;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 10px;
}

.faq-a {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== CTA BANNER (Footer Axis E) ===== */

.cta-banner {
  background: linear-gradient(135deg, var(--accent), var(--pink));
  padding: 64px 20px;
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}

.cta-banner p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 28px;
}

.cta-banner .btn-ghost {
  border-color: #fff;
  font-size: 1.05rem;
  padding: 16px 40px;
}

.cta-banner .btn-ghost:hover {
  background: #fff;
  color: var(--accent);
}

/* ===== FOOTER ===== */

.footer {
  background: var(--text);
  padding: 28px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer a:hover {
  color: #fff;
}

/* ===== SLIDE-IN ANIMATIONS (Axis C anim) ===== */

.slide-left,
.slide-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.slide-left {
  transform: translateX(-60px);
}

.slide-right {
  transform: translateX(60px);
}

.slide-left.visible,
.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== INSTRUKTSIYA PAGE ===== */

.page-hero {
  padding: 140px 0 70px;
  text-align: center;
  background: var(--bg-alt);
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

.step-section {
  padding: 70px 0;
}

.step-block {
  max-width: 720px;
  margin: 0 auto 48px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.step-block h2 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--text);
}

.step-block p,
.step-block ul {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.step-block ul {
  padding-left: 20px;
}

.step-block ul li {
  list-style: disc;
  margin-bottom: 6px;
}

.after-payment {
  background: var(--bg-alt);
  padding: 70px 0;
}

.after-payment h2 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 20px;
}

.after-payment > .container > p {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }

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

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

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

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.9rem;
  }

  .hero-content {
    padding: 100px 16px 60px;
  }

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

  .btn-ghost,
  .btn-outline,
  .btn-solid-pink {
    width: 100%;
    justify-content: center;
  }

  .trust-badges {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

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

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

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

  .trial-card {
    padding: 36px 24px;
  }

  .section {
    padding: 60px 0;
  }

  .skew-top::before,
  .skew-bottom::after {
    height: 50px;
    top: -25px;
  }

  .skew-bottom::after {
    bottom: -25px;
  }

  .faq-tabs {
    gap: 8px;
  }

  .faq-tab {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 380px) {
  .stat-item strong {
    font-size: 1.4rem;
  }

  .platform-card {
    padding: 20px 12px;
  }
}
