@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0A0A1A;
  --bg-alt: #12122A;
  --surface: #181834;
  --surface-2: #1F1F45;
  --border: rgba(255, 255, 255, 0.09);
  --primary: #5757FF;
  --primary-2: #7A7AEE;
  --green: #22C55E;
  --red: #F45B69;
  --text: #F2F2FA;
  --text-muted: #A6A6C6;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html.hide #preloader {
  opacity: 0;
  visibility: hidden;
}

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

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

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

ul {
  list-style: none;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-2);
  background: rgba(87, 87, 255, 0.12);
  border: 1px solid rgba(122, 122, 238, 0.35);
  padding: 8px 16px;
  border-radius: 100px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-top: 14px;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
}

.section {
  padding: 96px 0;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader img {
  width: 64px;
  height: 64px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  padding: 16px 30px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-play-icon {
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(87, 87, 255, 0.6);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px -8px rgba(87, 87, 255, 0.75);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary-2);
  color: var(--primary-2);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

@keyframes floatCta {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

.hero-cta.btn-primary {
  animation: floatCta 3s ease-in-out infinite;
}

.hero-cta.btn-primary:hover {
  animation-play-state: paused;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: rgba(10, 10, 26, 0.88);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}

.logo-accent {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-desktop a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.burger-btn {
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  position: relative;
  cursor: pointer;
  display: none;
  flex-shrink: 0;
}

.burger-btn span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.burger-btn span:nth-child(1) { top: 15px; }
.burger-btn span:nth-child(2) { top: 22px; }
.burger-btn span:nth-child(3) { top: 29px; }

.burger-btn.act span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

#mobile-menu {
  position: fixed;
  inset: 0;
  top: 0;
  z-index: 999;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#mobile-menu.opened {
  opacity: 1;
  pointer-events: auto;
}

#mobile-menu a {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

body.fixed {
  overflow: hidden;
}

/* Hero */
.hero {
  padding-top: 168px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 700px 500px at 15% 0%, rgba(87, 87, 255, 0.28), transparent 60%),
    radial-gradient(ellipse 600px 500px at 100% 20%, rgba(122, 122, 238, 0.18), transparent 60%),
    var(--bg);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  margin: 18px 0 22px;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 540px;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-cta-note {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 15px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual img {
  width: 100%;
  max-width: 340px;
  border-radius: 28px;
  box-shadow: 0 40px 80px -30px rgba(87, 87, 255, 0.55);
}

/* Screen showcase (features / how it works galleries) */
.shot-card {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
}

.shot-card img {
  width: 100%;
}

/* Features */
.features {
  background: var(--bg-alt);
}

.features .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  font-size: 16px;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.feature-closing {
  margin-top: 26px;
  padding: 20px 22px;
  border-left: 3px solid var(--primary-2);
  background: rgba(87, 87, 255, 0.08);
  border-radius: 0 12px 12px 0;
  color: var(--text);
  font-size: 16px;
  font-style: italic;
  line-height: 1.6;
}

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

.shot-gallery .shot-card:nth-child(2) {
  transform: translateY(28px);
}

/* How it works */
.how-intro {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 12px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 24px;
  position: relative;
}

.step-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
  display: block;
}

.step-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.how-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.how-closing {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 680px;
}

.how-closing p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.how-closing p strong {
  color: var(--text);
  font-weight: 600;
}

/* Testimonials */
.testimonials {
  background: var(--bg-alt);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testi-quote {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}

.testi-author {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-2);
  font-size: 15px;
}

.testi-closing {
  margin-top: 36px;
  color: var(--text-muted);
  font-size: 16px;
  max-width: 640px;
}

/* Support */
.support .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.support-intro,
.support-card {
  min-width: 0;
}

.support-intro h2 {
  margin-top: 14px;
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 40px);
}

.support-intro p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
}

.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7%;
}

.support-card p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 16px;
}

.support-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 19px;
  color: var(--text);
  background: rgba(87, 87, 255, 0.1);
  border: 1px solid rgba(122, 122, 238, 0.35);
  padding: 14px 3%;
  border-radius: 12px;
  margin: 10px 0 18px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.support-note {
  color: var(--text-muted);
  font-size: 15px;
}

/* Footer */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

/* Legal pages */
.legal-page {
  padding-top: 160px;
  padding-bottom: 100px;
  min-height: 60vh;
}

.legal-content h1 {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 32px;
}

.legal-content > div {
  padding: 0 0 28px;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary-2);
}

.legal-content p {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-content ul {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.75;
  padding-left: 22px;
  margin-bottom: 12px;
}

.legal-content ul li {
  list-style: disc;
  margin-bottom: 6px;
}

.legal-content .name {
  color: var(--text);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    max-width: 280px;
  }

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

  .shot-gallery {
    max-width: 480px;
    margin: 0 auto;
  }

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

  .how-gallery {
    grid-template-columns: repeat(2, 1fr);
    max-width: 480px;
  }

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

  .support .container {
    grid-template-columns: 1fr;
  }
}

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

  .header-actions .btn {
    display: none;
  }

  .burger-btn {
    display: block;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 140px;
  }

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

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

  .shot-gallery .shot-card:nth-child(2) {
    transform: none;
  }
}

@media (max-width: 640px) {
  .hero-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .shot-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .how-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .support-card{
    text-align: center;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
