@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  --primary: #E94560;
  --secondary: #0F3460;
  --accent: #533483;
  --bg: #0A0A1A;
  --bg-card: rgba(15, 52, 96, 0.3);
  --bg-section: #0D0D24;
  --bg-section-alt: #12122E;
  --text: #E0E0E0;
  --text-muted: #8B8BA3;
  --text-bright: #F5F5F5;
  --border: rgba(233, 69, 96, 0.2);
  --radius: 14px;
  --font-heading: 'Fraunces', serif;
  --font-body: 'Atkinson Hyperlegible', 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);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.25s;
}

a:hover {
  color: var(--text-bright);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-bright);
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-style: italic;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-style: italic;
}

h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
}

p {
  margin-bottom: 1rem;
}

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

/* ======== HEADER ======== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 26, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

.header-logo span {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-bright);
  font-style: italic;
}

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

.desktop-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.2s;
  white-space: nowrap;
}

.desktop-nav a:hover {
  color: var(--text-bright);
}

.nav-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #000000 !important;
  font-weight: 800 !important;
  padding: 10px 26px;
  border-radius: 50px;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(233, 69, 96, 0.35);
  color: #000000 !important;
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.burger-btn span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text-bright);
  border-radius: 3px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ======== SIDEBAR ======== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: var(--bg-section);
  z-index: 2100;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  margin-bottom: 24px;
  transition: color 0.2s;
}

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

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-nav a {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.2s;
}

.sidebar-nav a:hover {
  color: var(--primary);
  padding-left: 8px;
}

.sidebar-cta {
  margin-top: 32px;
  text-align: center;
}

/* ======== HERO ======== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  padding-top: 68px;
}

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

.hero-badge {
  display: inline-block;
  background: rgba(233, 69, 96, 0.15);
  border: 1px solid var(--border);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-content h1 {
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 520px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #000000;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  transition: transform 0.25s, box-shadow 0.25s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(233, 69, 96, 0.4);
  color: #000000;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: #000000;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  transition: transform 0.25s, box-shadow 0.25s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(83, 52, 131, 0.4);
  color: #000000;
}

.trust-badges {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.trust-badge .badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(233, 69, 96, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.hero-shape-1 {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.25), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-glow 4s ease-in-out infinite;
}

.hero-shape-2 {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: linear-gradient(135deg, rgba(83, 52, 131, 0.4), rgba(15, 52, 96, 0.3));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: morph 8s ease-in-out infinite;
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
}

.hero-shape-3 {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0.18;
  top: 20%;
  right: 10%;
  animation: float 6s ease-in-out infinite;
}

.hero-shield {
  position: relative;
  z-index: 2;
  width: 120px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

@keyframes pulse-glow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

@keyframes morph {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 58% 42% 36% 64% / 51% 66% 34% 49%; }
  50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75% { border-radius: 33% 67% 58% 42% / 63% 39% 61% 37%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* ======== STATS BAR ======== */
.stats-bar {
  background: var(--bg-section);
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.stat-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--primary);
  font-style: italic;
}

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

/* ======== FEATURES ======== */
.features {
  padding: 100px 0;
  background: var(--bg-section-alt);
}

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

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

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

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(233, 69, 96, 0.15);
  border-color: var(--primary);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.2), rgba(83, 52, 131, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ======== DOWNLOAD ======== */
.download {
  padding: 100px 0;
  background: var(--bg-section);
}

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

.platform-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.platform-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(233, 69, 96, 0.15);
  border-color: var(--primary);
  color: var(--text-bright);
}

.platform-icon {
  font-size: 2.6rem;
  margin-bottom: 14px;
}

.platform-card h3 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.platform-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* ======== FAQ ======== */
.faq {
  padding: 100px 0;
  background: var(--bg-section-alt);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-bright);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s;
}

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

.faq-question .faq-arrow {
  font-size: 1.3rem;
  color: var(--primary);
  transition: transform 0.35s;
  flex-shrink: 0;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

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

.faq-answer-inner {
  padding: 0 0 22px;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.97rem;
}

/* ======== CTA BANNER ======== */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(233, 69, 96, 0.12);
  top: -200px;
  right: -100px;
}

.cta-banner h2 {
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1.1rem;
  position: relative;
  z-index: 2;
}

.cta-banner .btn-primary {
  position: relative;
  z-index: 2;
}

/* ======== FOOTER ======== */
.site-footer {
  background: #060612;
  padding: 60px 0 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 14px;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 18px;
  color: var(--text-bright);
  font-style: italic;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ======== INSTRUKTSIYA PAGE ======== */
.instr-hero {
  padding: 140px 0 80px;
  background: var(--bg);
  text-align: center;
}

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

.steps-section {
  padding: 80px 0;
  background: var(--bg-section);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.step-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.step-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(233, 69, 96, 0.12);
}

.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: #000;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.step-card h3 {
  margin-bottom: 14px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.step-card .btn-primary {
  margin-top: 18px;
  font-size: 0.9rem;
  padding: 12px 24px;
}

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

.after-payment-content {
  max-width: 800px;
  margin: 0 auto;
}

.after-payment-content h2 {
  text-align: center;
  margin-bottom: 24px;
}

.after-payment-content > p {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.after-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.after-platform-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  transition: border-color 0.3s;
}

.after-platform-card:hover {
  border-color: var(--primary);
}

.after-platform-card .platform-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.after-platform-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.after-platform-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.instr-cta {
  padding: 80px 0;
  background: var(--bg-section);
  text-align: center;
}

.instr-cta h2 {
  margin-bottom: 16px;
}

.instr-cta p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.footer-minimal {
  background: #060612;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ======== RESPONSIVE ======== */
@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

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

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 0;
    min-height: 260px;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .trust-badges {
    justify-content: center;
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

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

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero {
    padding-top: 80px;
    min-height: auto;
    padding-bottom: 60px;
  }

  h1 {
    font-size: 1.8rem;
  }

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

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