:root {
  --accent: #7c5cff;
  --accent-2: #a78bfa;
  --accent-3: #c4b5fd;
  --bg: #07070d;
  --bg-alt: #0c0c16;
  --surface: rgba(22, 22, 31, 0.7);
  --surface-2: #1c1c28;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(124, 92, 255, 0.5);
  --text: #eaeaf2;
  --muted: #8b8b9e;
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Unbounded", "Segoe UI", sans-serif;
  --font: "Manrope", "Segoe UI", -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ============================================================
   АНИМИРОВАННЫЙ ФОН
   ============================================================ */

.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 10%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(167, 139, 250, 0.12), transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(124, 92, 255, 0.10), transparent 60%);
  animation: aurora 18s ease-in-out infinite alternate;
}

@keyframes aurora {
  0% {
    background:
      radial-gradient(ellipse 60% 50% at 20% 10%, rgba(124, 92, 255, 0.20), transparent 60%),
      radial-gradient(ellipse 50% 40% at 80% 30%, rgba(167, 139, 250, 0.10), transparent 60%),
      radial-gradient(ellipse 70% 60% at 50% 100%, rgba(124, 92, 255, 0.08), transparent 60%);
  }
  100% {
    background:
      radial-gradient(ellipse 60% 50% at 80% 20%, rgba(124, 92, 255, 0.15), transparent 60%),
      radial-gradient(ellipse 50% 40% at 20% 60%, rgba(167, 139, 250, 0.15), transparent 60%),
      radial-gradient(ellipse 70% 60% at 60% 90%, rgba(196, 181, 253, 0.10), transparent 60%);
  }
}

/* Плавающие сферы */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  will-change: transform;
}
.orb-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #7c5cff, transparent 70%);
  top: -100px; left: -100px;
  animation: float1 24s ease-in-out infinite;
}
.orb-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #a78bfa, transparent 70%);
  bottom: -150px; right: -150px;
  animation: float2 30s ease-in-out infinite;
}
.orb-3 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, #c4b5fd, transparent 70%);
  top: 45%; left: 55%;
  animation: float3 20s ease-in-out infinite;
  opacity: 0.2;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(120px, 80px) scale(1.15); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, -60px) scale(1.1); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, 60px) scale(0.9); }
}

/* Курсор-прожектор */
.cursor-glow {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity .3s;
  will-change: left, top;
}

/* Полоса прогресса */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent));
  background-size: 200% 100%;
  animation: gradient-move 3s linear infinite;
  z-index: 1000;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.7);
  transition: width .1s linear;
}

@keyframes gradient-move {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ============================================================
   ОБЩЕЕ
   ============================================================ */

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.wrap-narrow { max-width: 760px; }

a { color: var(--accent-2); text-decoration: none; transition: color .25s; }
a:hover { color: #fff; }

.muted { color: var(--muted); font-size: .92rem; }
.accent { color: var(--accent-2); }

h1, h2, h3, h4, .brand-text, .section-title {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

/* ============================================================
   HEADER
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 7, 13, 0.6);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand-mark {
  color: var(--accent);
  font-size: 1.6rem;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(124, 92, 255, 0.7));
  animation: crown-glow 3s ease-in-out infinite;
}
@keyframes crown-glow {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(124, 92, 255, 0.6)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 22px rgba(167, 139, 250, 0.9)); transform: scale(1.06); }
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  border-radius: 2px;
  transition: width .3s ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

/* ============================================================
   КНОПКИ
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: all .3s cubic-bezier(.2,.8,.2,1);
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.btn-sm { padding: 8px 18px; font-size: .88rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #8f6fff 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(124, 92, 255, 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(124, 92, 255, 0.6), inset 0 1px 0 rgba(255,255,255,0.25);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(124, 92, 255, 0.1);
  transform: translateY(-2px);
}

/* Блик по кнопке */
.btn-shine {
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.35) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
}
.btn:hover .btn-shine {
  animation: shine 0.9s ease;
}
@keyframes shine {
  0% { left: -100%; }
  100% { left: 150%; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  padding: 130px 0 100px;
  text-align: center;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; }

.hero-mark {
  font-size: 5rem;
  color: var(--accent);
  margin-bottom: 16px;
  line-height: 1;
  filter: drop-shadow(0 0 30px rgba(124, 92, 255, 0.7));
  animation: crown-float 4s ease-in-out infinite;
}
@keyframes crown-float {
  0%, 100% { transform: translateY(0) rotate(0deg); filter: drop-shadow(0 0 30px rgba(124, 92, 255, 0.6)); }
  50% { transform: translateY(-10px) rotate(3deg); filter: drop-shadow(0 0 50px rgba(167, 139, 250, 0.9)); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 24px;
  background: linear-gradient(120deg, #fff 0%, var(--accent-2) 40%, #fff 60%, var(--accent-3) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 8s ease-in-out infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.lead {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-note { color: var(--muted); font-size: .9rem; }

/* ============================================================
   СЕКЦИИ
   ============================================================ */

.section { padding: 100px 0; position: relative; }
.section-alt { background: rgba(12, 12, 22, 0.5); }

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #b9b9d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  color: var(--muted);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
  font-size: 1rem;
}

/* ============================================================
   КАРТОЧКИ
   ============================================================ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}
.card {
  background: linear-gradient(180deg, rgba(22,22,31,0.85), rgba(15,15,24,0.85));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .4s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  will-change: transform;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 92, 255, 0.15), transparent 40%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover {
  border-color: var(--border-hover);
  box-shadow:
    0 30px 60px -20px rgba(124, 92, 255, 0.3),
    0 0 0 1px rgba(124, 92, 255, 0.15) inset;
}

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 18px;
  display: inline-block;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.card:hover .card-icon { transform: scale(1.15) rotate(-5deg); }

.card h3 { font-size: 1.25rem; margin-bottom: 6px; font-weight: 600; letter-spacing: -0.01em; }
.card-tag {
  color: var(--accent-2);
  font-size: .9rem;
  margin-bottom: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.card-list { list-style: none; margin-bottom: 26px; flex-grow: 1; }
.card-list li {
  padding-left: 24px;
  position: relative;
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 9px;
  transition: color .2s;
}
.card-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  transition: transform .2s;
}
.card:hover .card-list li { color: #c4c4d6; }
.card:hover .card-list li::before { transform: translateX(3px); }

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.size { color: var(--muted); font-size: .88rem; font-weight: 600; }
.link { font-size: .9rem; font-weight: 700; position: relative; }
.link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent-3);
  transition: width .3s;
}
.link:hover::after { width: 100%; }

/* ============================================================
   СКРИНШОТЫ
   ============================================================ */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.shots-three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.shots-subtitle {
  text-align: center;
  margin: 64px 0 32px;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-display);
}
.shot { margin: 0; }
.shot-frame {
  aspect-ratio: 16/10;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .4s cubic-bezier(.2,.8,.2,1);
  position: relative;
}
.shot-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(124,92,255,0.08) 100%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.shot:hover .shot-frame {
  border-color: var(--border-hover);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 30px 60px -20px rgba(124, 92, 255, 0.4);
}
.shot:hover .shot-frame::after { opacity: 1; }
.shot-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.shot:hover .shot-frame img { transform: scale(1.06); }
.shot figcaption {
  margin-top: 14px;
  font-size: .9rem;
  color: var(--muted);
  text-align: center;
  transition: color .2s;
}
.shot:hover figcaption { color: var(--accent-2); }

/* ============================================================
   ШАГИ
   ============================================================ */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}
.steps li {
  background: linear-gradient(180deg, rgba(22,22,31,0.85), rgba(15,15,24,0.85));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  transition: all .35s cubic-bezier(.2,.8,.2,1);
  backdrop-filter: blur(12px);
}
.steps li:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(124, 92, 255, 0.25);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--accent), #8f6fff);
  color: #fff;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(124, 92, 255, 0.4);
}
.steps h4 { font-size: 1.05rem; margin-bottom: 10px; font-weight: 600; }
.steps p { color: var(--muted); font-size: .92rem; line-height: 1.65; }

code {
  background: rgba(124, 92, 255, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: .88rem;
  color: var(--accent-3);
  font-family: "JetBrains Mono", "Consolas", monospace;
  border: 1px solid rgba(124, 92, 255, 0.15);
}
pre {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  overflow-x: auto;
  margin-top: 12px;
}
pre code { background: none; padding: 0; font-size: .85rem; color: var(--text); border: none; }

.cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq details {
  background: rgba(22, 22, 31, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
  backdrop-filter: blur(10px);
}
.faq details:hover { border-color: rgba(124, 92, 255, 0.25); }
.faq details[open] {
  border-color: var(--border-hover);
  box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.2);
}
.faq summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  transition: color .2s;
}
.faq summary:hover { color: var(--accent-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  flex-shrink: 0;
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq-body {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: .95rem;
  animation: faq-fade .3s ease;
}
@keyframes faq-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.faq-body p { margin-bottom: 10px; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body ul { padding-left: 20px; margin-bottom: 10px; }
.faq-body li { margin-bottom: 5px; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 50px 0;
  background: rgba(12, 12, 22, 0.6);
  position: relative;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 600;
  position: relative;
  padding: 4px 0;
}
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent-2);
  transition: width .3s;
}
.footer-links a:hover { color: var(--accent-2); }
.footer-links a:hover::after { width: 100%; }

/* ============================================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

@media (max-width: 820px) {
  .nav { display: none; }
  .hero { padding: 90px 0 70px; }
  .section { padding: 70px 0; }
  .steps { grid-template-columns: 1fr; }
  .cursor-glow { display: none; }
  .orb { opacity: 0.2; }
}

@media (max-width: 480px) {
  .hero-mark { font-size: 3.5rem; }
  .card { padding: 28px 22px; }
  .card-foot { flex-direction: column; gap: 10px; align-items: flex-start; }
}