/* ===== Looksy AI — стили ===== */
:root {
  --bg: #0d0b14;
  --bg-soft: #16121f;
  --bg-card: #1d1829;
  --text: #f2f0f7;
  --text-muted: #a29bb8;
  --accent: #8b5cf6;
  --accent-2: #ec4899;
  --accent-3: #22d3ee;
  --gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --max-w: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent-3); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  border: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(236, 72, 153, 0.4); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.25) 0%, transparent 65%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
  position: relative;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  position: relative;
}

.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.sub {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
  position: relative;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.hero-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
}

/* ===== Sections ===== */
section { padding: 80px 0; }
section.alt { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.section-head p { color: var(--text-muted); font-size: 17px; }

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.style-card {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
  position: relative;
  overflow: hidden;
}
.style-card:hover { transform: translateY(-6px) scale(1.02); }
.style-card .emoji { font-size: 44px; text-shadow: none; }
.style-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.25) 100%);
}
.style-card > * { position: relative; z-index: 1; }

.g1 { background: linear-gradient(135deg, #6366f1, #a855f7); }
.g2 { background: linear-gradient(135deg, #ec4899, #f97316); }
.g3 { background: linear-gradient(135deg, #0ea5e9, #22d3ee); }
.g4 { background: linear-gradient(135deg, #10b981, #84cc16); }
.g5 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.g6 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.g7 { background: linear-gradient(135deg, #14b8a6, #6366f1); }
.g8 { background: linear-gradient(135deg, #64748b, #334155); }

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 32px 26px;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 19px;
  margin-bottom: 18px;
}

.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 15px; }

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

.feature {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s ease;
}
.feature:hover { border-color: rgba(139, 92, 246, 0.4); }

.feature .icon {
  font-size: 34px;
  margin-bottom: 16px;
  display: block;
}
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { color: var(--text-muted); font-size: 15px; }

/* ===== Pricing ===== */
.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

.plan {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan.popular {
  border: 2px solid var(--accent);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.25);
}

.plan-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan h3 { font-size: 18px; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }

.plan .count {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 4px;
}

.plan .price {
  font-size: 36px;
  font-weight: 800;
  margin: 14px 0 4px;
}
.plan .price span { font-size: 18px; color: var(--text-muted); font-weight: 600; }

.plan .per {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 22px;
}

.plan ul {
  list-style: none;
  margin-bottom: 26px;
  flex: 1;
}
.plan ul li {
  padding: 6px 0;
  font-size: 15px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
}
.plan ul li::before { content: "✓"; color: var(--accent-3); font-weight: 700; }

.pricing-note {
  margin-top: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Payment info ===== */
.pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== FAQ ===== */
.faq { max-width: 780px; margin: 0 auto; }

.faq details {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }

.faq .answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ===== CTA ===== */
.cta-block {
  background: var(--gradient);
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
}
.cta-block h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 14px; }
.cta-block p { font-size: 17px; opacity: 0.92; margin-bottom: 30px; }
.cta-block .btn {
  background: #fff;
  color: #7c3aed;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 56px 0 32px;
  font-size: 14px;
  color: var(--text-muted);
}

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

.footer h4 { color: var(--text); font-size: 15px; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 9px; }
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  font-size: 13px;
  line-height: 1.8;
}

/* ===== Legal pages ===== */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.legal h1 { font-size: 32px; margin-bottom: 8px; letter-spacing: -0.01em; }
.legal .updated { color: var(--text-muted); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 22px; margin: 36px 0 14px; }
.legal p, .legal li { color: #cdc8dd; font-size: 15.5px; margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 24px; margin-bottom: 16px; }
.legal .back { display: inline-block; margin-bottom: 28px; color: var(--accent-3); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .steps, .pricing { grid-template-columns: repeat(2, 1fr); }
  .features, .pay-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
}

@media (max-width: 600px) {
  section { padding: 56px 0; }
  .hero { padding: 64px 0 48px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .steps, .pricing, .features, .pay-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions .btn { width: 100%; }
}
