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

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #16161f;
  --border: rgba(255,255,255,0.08);
  --text: #e8e8f0;
  --text-muted: #888899;
  --accent: #6c63ff;
  --accent2: #a78bfa;
  --accent3: #38bdf8;
  --gradient: linear-gradient(135deg, #6c63ff 0%, #a78bfa 50%, #38bdf8 100%);
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ===== CONTAINER ===== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--lg { padding: 16px 36px; font-size: 17px; }

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(108,99,255,0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(108,99,255,0.5);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent2);
  background: rgba(108,99,255,0.08);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.header.scrolled { background: rgba(10,10,15,0.97); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo__icon {
  font-size: 22px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo__text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav__link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.nav__link:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(108,99,255,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(56,189,248,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 100px;
  font-size: 13px;
  color: var(--accent2);
  background: rgba(108,99,255,0.08);
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero__sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 60px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 24px 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
.stat { text-align: center; padding: 0 32px; }
.stat__num { font-size: 24px; font-weight: 700; color: var(--text); }
.stat__label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.stat__divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ===== SECTION ===== */
.section { padding: 100px 0; }
.section--dark { background: var(--bg2); }

.section__head {
  text-align: center;
  margin-bottom: 64px;
}
.section__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 16px;
}
.section__title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
}
.section__cta {
  text-align: center;
  margin-top: 48px;
}

/* ===== FEATURES ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 32px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: rgba(108,99,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(108,99,255,0.12);
}
.feature-card__icon { font-size: 36px; margin-bottom: 20px; }
.feature-card__title { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.feature-card__text { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

/* ===== STEPS ===== */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.step {
  flex: 1;
  padding: 36px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step__num {
  font-size: 48px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 20px;
}
.step__title { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.step__text { font-size: 15px; color: var(--text-muted); }
.step__arrow {
  font-size: 28px;
  color: var(--text-muted);
  flex-shrink: 0;
  padding-top: 50px;
}

/* ===== GALLERY ===== */
.categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  position: relative;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}
.category-card:hover { transform: scale(1.02); }

.category-card--nature   { background: linear-gradient(135deg, #1a4a2e 0%, #2d7a4f 50%, #1e5c38 100%); }
.category-card--space    { background: linear-gradient(135deg, #0d0d2b 0%, #1a1a4a 40%, #2d1b69 100%); }
.category-card--abstract { background: linear-gradient(135deg, #2d0a4e 0%, #6c1f8a 50%, #9b59b6 100%); }
.category-card--city     { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%); }
.category-card--anime    { background: linear-gradient(135deg, #4a0a2e 0%, #8a1a5a 50%, #c0395c 100%); }
.category-card--minimal  { background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #404040 100%); }

.category-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}
.category-card__title { font-size: 20px; font-weight: 700; }
.category-card__count { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* ===== REVIEWS ===== */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  padding: 32px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.review-card__stars { font-size: 20px; color: #fbbf24; margin-bottom: 16px; }
.review-card__text { font-size: 15px; color: var(--text-muted); line-height: 1.65; margin-bottom: 20px; font-style: italic; }
.review-card__author { font-size: 14px; font-weight: 600; color: var(--text); }

/* ===== FAQ ===== */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg3);
}
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: background 0.2s;
}
.faq__q:hover { background: rgba(255,255,255,0.04); }
.faq__arrow {
  font-size: 22px;
  color: var(--accent2);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq__q.open .faq__arrow { transform: rotate(45deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq__a.open {
  max-height: 200px;
  padding: 0 24px 20px;
}
.faq__a p { color: var(--text-muted); font-size: 15px; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--bg);
}
.cta-block {
  text-align: center;
  padding: 80px 40px;
  background: var(--bg3);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: 24px;
  background-image: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(108,99,255,0.1) 0%, transparent 70%);
}
.cta-block__title {
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.cta-block__sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.cta-block__note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== CONTACTS ===== */
.contacts {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 36px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 260px;
}
.contact-item__icon { font-size: 32px; }
.contact-item__label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.contact-item__value { font-size: 17px; font-weight: 600; }
.contact-item__value:hover { color: var(--accent2); }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 24px 48px;
}
.footer__desc { font-size: 14px; color: var(--text-muted); margin-top: 16px; line-height: 1.7; }
.footer__col-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 16px; }
.footer__link {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer__link:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== SOCIAL ICONS ===== */
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.social-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.social-btn svg { width: 20px; height: 20px; }
.social-btn:hover {
  background: rgba(108,99,255,0.15);
  border-color: rgba(108,99,255,0.4);
  color: var(--accent2);
  transform: translateY(-2px);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--bg3);
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  transform: scale(0.92) translateY(16px);
  transition: transform 0.25s ease;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}
.modal-icon {
  font-size: 52px;
  margin-bottom: 20px;
  line-height: 1;
}
.modal-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 14px;
}
.modal-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.modal-text strong { color: var(--accent2); }

/* ===== DOWNLOAD PAGE ===== */
.download-hero {
  padding: 140px 0 80px;
  text-align: center;
}
.download-hero h1 { font-size: clamp(32px, 5vw, 60px); font-weight: 800; letter-spacing: -1.5px; margin-bottom: 20px; }
.download-hero p { font-size: 18px; color: var(--text-muted); margin-bottom: 48px; }
.download-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 48px 64px;
  background: var(--bg3);
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: 24px;
}
.download-box__info { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; }
.download-info-item { text-align: center; }
.download-info-item__val { font-size: 22px; font-weight: 700; }
.download-info-item__key { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ===== LEGAL PAGES ===== */
.legal-page { padding: 120px 0 80px; }
.legal-page h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.legal-page .date { font-size: 14px; color: var(--text-muted); margin-bottom: 48px; }
.legal-page h2 { font-size: 22px; font-weight: 700; margin: 40px 0 16px; }
.legal-page p { color: var(--text-muted); font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.legal-page ul { color: var(--text-muted); font-size: 15px; line-height: 1.8; margin-bottom: 16px; padding-left: 24px; }
.legal-page ul li { margin-bottom: 8px; }
.legal-max { max-width: 760px; margin: 0 auto; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .categories { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step__arrow { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; }
  .nav.open { display: flex; }
  .nav__link { padding: 12px 16px; }
  .burger { display: flex; }
  .header__inner > .btn--sm { display: none; }
  .features { grid-template-columns: 1fr; }
  .categories { grid-template-columns: 1fr; }
  .hero__stats { flex-direction: column; gap: 16px; padding: 24px; }
  .stat__divider { width: 80px; height: 1px; }
  .stat { padding: 0; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .contacts { flex-direction: column; }
  .contact-item { min-width: 0; width: 100%; }
}
