/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0f;
  color: #e8e8f0;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== VARIABLES ===== */
:root {
  --purple: #7c3aed;
  --purple-light: #a855f7;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --pink: #ec4899;
  --gold: #f59e0b;
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #16161f;
  --border: rgba(255,255,255,0.08);
  --text: #e8e8f0;
  --text-muted: #9090a8;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
  --glow-purple: 0 0 40px rgba(124,58,237,0.3);
  --glow-blue: 0 0 40px rgba(59,130,246,0.3);
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn--sm { padding: 8px 18px; font-size: 14px; }
.btn--lg { padding: 16px 32px; font-size: 16px; border-radius: 14px; }
.btn--full { width: 100%; justify-content: center; }
.btn--primary {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(124,58,237,0.5); }
.btn--outline {
  border: 1.5px solid rgba(255,255,255,0.2);
  color: #fff;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
}
.btn--outline:hover { border-color: var(--purple-light); background: rgba(124,58,237,0.1); }
.btn--gradient {
  background: linear-gradient(135deg, var(--gold), var(--pink), var(--purple));
  color: #fff;
  box-shadow: 0 4px 20px rgba(245,158,11,0.3);
}
.btn--gradient:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(245,158,11,0.4); }
.btn--white { background: #fff; color: #1a1a2e; font-weight: 700; }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,255,255,0.2); }

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--purple-light), var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle { font-size: 17px; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
}
.header.scrolled {
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.header .container {
  display: flex;
  align-items: center;
  gap: 32px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}
.logo-icon { font-size: 24px; }
.logo-accent { color: var(--purple-light); }
.header__nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.header__nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.header__nav a:hover { color: #fff; }
.header__cta { flex-shrink: 0; }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,15,0.3) 0%,
    rgba(10,10,15,0.5) 40%,
    rgba(10,10,15,0.85) 80%,
    rgba(10,10,15,1) 100%
  );
}
.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero__content { max-width: 780px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-light);
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--purple-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero__title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(232,232,240,0.8);
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat__label { font-size: 13px; color: var(--text-muted); }
.stat__divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  z-index: 1;
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(4px); }
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 0;
  background: var(--bg);
}
.features__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
}
.feature-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: rgba(124,58,237,0.4);
  box-shadow: var(--glow-purple);
  transform: translateY(-4px);
}
.feature-card--main {
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(59,130,246,0.05));
  border-color: rgba(124,58,237,0.2);
}
.feature-card__icon { font-size: 40px; margin-bottom: 20px; }
.feature-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.feature-list { display: flex; flex-direction: column; gap: 8px; }
.feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.feature-list li::before {
  content: '✓';
  color: var(--purple-light);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 100px 0;
  background: var(--bg2);
}
.steps {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
}
.step__num {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1;
}
.step__content h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.step__content p { color: var(--text-muted); font-size: 15px; }
.step__arrow {
  font-size: 28px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ===== EXAMPLES ===== */
.examples {
  padding: 100px 0;
  background: var(--bg);
}
.examples__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.example-card { border-radius: var(--radius); overflow: hidden; background: var(--bg3); }
.example-card--wide { grid-column: span 2; }
.example-card__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}
.example-card--wide .example-card__img { aspect-ratio: 2/1; }
.example-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.example-card:hover .example-card__img img { transform: scale(1.05); }
.example-card__overlay {
  position: absolute;
  top: 12px;
  right: 12px;
}
.example-tag {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.example-card__info { padding: 16px; }
.example-prompt { font-size: 13px; color: var(--text-muted); font-style: italic; line-height: 1.5; }

/* ===== PRICING ===== */
.pricing {
  padding: 100px 0;
  background: var(--bg2);
}
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.pricing-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  transition: all 0.3s ease;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card--popular {
  border-color: var(--purple);
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(59,130,246,0.05));
  box-shadow: var(--glow-purple);
}
.pricing-card--premium {
  border-color: rgba(245,158,11,0.3);
  background: linear-gradient(135deg, rgba(245,158,11,0.05), rgba(236,72,153,0.05));
}
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.pricing-card__header { text-align: center; margin-bottom: 28px; }
.pricing-icon { font-size: 36px; display: block; margin-bottom: 12px; }
.pricing-card__header h3 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.pricing-price { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin-bottom: 4px; }
.price-amount { font-size: 52px; font-weight: 900; line-height: 1; }
.price-currency { font-size: 24px; font-weight: 700; color: var(--text-muted); }
.price-credits { font-size: 14px; color: var(--text-muted); }
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.pricing-features li::before {
  content: '✓';
  color: var(--purple-light);
  font-weight: 700;
  flex-shrink: 0;
}
.pricing__models {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.pricing__models h3 { font-size: 20px; font-weight: 700; margin-bottom: 24px; text-align: center; }
.models-table { display: flex; flex-direction: column; gap: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.models-table__header, .models-table__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 14px 20px;
  gap: 16px;
}
.models-table__header {
  background: rgba(124,58,237,0.1);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--purple-light);
}
.models-table__row {
  border-top: 1px solid var(--border);
  font-size: 14px;
  transition: background 0.2s;
}
.models-table__row:hover { background: rgba(255,255,255,0.03); }
.models-table__row span:not(:first-child) { text-align: center; color: var(--text-muted); }

/* ===== PLATFORMS ===== */
.platforms {
  padding: 100px 0;
  background: var(--bg);
}
.platforms__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.platform-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
  display: block;
}
.platform-card:hover {
  border-color: rgba(124,58,237,0.4);
  transform: translateY(-4px);
  box-shadow: var(--glow-purple);
}
.platform-card__logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  margin: 0 auto 20px;
  color: #fff;
}
.platform-card__logo--max {
  background: linear-gradient(135deg, #0066ff, #00aaff);
}
.platform-card__logo--vk {
  background: linear-gradient(135deg, #0077ff, #005cc5);
}
.platform-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.platform-card p { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; }
.platform-link { color: var(--purple-light); font-weight: 600; font-size: 15px; }

/* ===== FAQ ===== */
.faq {
  padding: 100px 0;
  background: var(--bg2);
}
.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.2s;
}
.faq-question::after {
  content: '+';
  font-size: 24px;
  color: var(--purple-light);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-question:hover { background: rgba(255,255,255,0.03); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
}
.faq-answer a { color: var(--purple-light); text-decoration: underline; }

/* ===== CTA ===== */
.cta {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  text-align: center;
}
.cta__bg {
  position: absolute;
  inset: 0;
}
.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,15,0.75);
}
.cta .container { position: relative; z-index: 1; }
.cta__content h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  margin-bottom: 16px;
}
.cta__content p { font-size: 18px; color: rgba(232,232,240,0.8); margin-bottom: 40px; }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}
.footer__brand p { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin-bottom: 8px; }
.footer__powered { font-size: 13px !important; }
.footer__links h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 16px; }
.footer__links ul { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer__bottom a { color: var(--purple-light); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: 1fr 1fr; }
  .feature-card--main { grid-column: span 2; }
  .examples__grid { grid-template-columns: repeat(2, 1fr); }
  .example-card--wide { grid-column: span 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header__nav, .header__cta { display: none; }
  .burger { display: flex; }
  .header__nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(10,10,15,0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
  }
  .header__nav.open a { font-size: 18px; color: #fff; }
  .features__grid { grid-template-columns: 1fr; }
  .feature-card--main { grid-column: span 1; }
  .pricing__grid { grid-template-columns: 1fr; }
  .examples__grid { grid-template-columns: 1fr; }
  .example-card--wide { grid-column: span 1; }
  .example-card--wide .example-card__img { aspect-ratio: 1; }
  .platforms__grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: stretch; }
  .step__arrow { transform: rotate(90deg); text-align: center; }
  .step { max-width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .hero__actions { flex-direction: column; }
  .hero__stats { justify-content: center; }
  .models-table__header, .models-table__row { grid-template-columns: 1.5fr 1fr 1fr 1fr; font-size: 13px; padding: 12px 14px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 32px; }
  .section-title { font-size: 26px; }
  .stat__num { font-size: 22px; }
  .stat__divider { display: none; }
}
