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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--black-deep);
  background-image:
    radial-gradient(ellipse 700px 500px at 8% 0%, rgba(139, 92, 246, 0.20), transparent 60%),
    radial-gradient(ellipse 600px 500px at 100% 15%, rgba(240, 69, 156, 0.14), transparent 55%),
    radial-gradient(ellipse 500px 400px at 15% 60%, rgba(34, 211, 238, 0.07), transparent 55%),
    radial-gradient(ellipse 800px 600px at 90% 95%, rgba(139, 92, 246, 0.13), transparent 60%),
    radial-gradient(ellipse 500px 400px at 40% 100%, rgba(240, 69, 156, 0.10), transparent 55%),
    linear-gradient(180deg, #0A0A0F 0%, #0D0B14 50%, #0A0A0F 100%);
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

body > * {
  position: relative;
  z-index: 1;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

::selection {
  background: var(--violet-bright);
  color: var(--white);
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--black-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--violet-dark);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--violet-bright);
}

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

ul {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

.section {
  padding: 90px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.in-view > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero::before, .hero::after, .hero-mesh-extra,
  .upload-card, .upload-icon, .progress-fill, .spinner,
  .age-spinner, .result-badge, .age-modal, .age-overlay {
    animation: none !important;
  }
}

.section-alt {
  background-color: var(--black-dark);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--violet-light);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-vibe);
  box-shadow: 0 0 8px var(--pink-bright);
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.section-title .accent {
  background: var(--gradient-vibe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray-light);
  max-width: 700px;
  margin-bottom: 48px;
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.accent {
  color: var(--violet-bright);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  border: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-vibe);
  background-size: 160% 160%;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4), 0 0 0 1px rgba(255,255,255,0.06) inset;
  position: relative;
  transition: all 0.3s ease, background-position 0.5s ease;
}

.btn-primary:hover {
  background-position: 100% 100%;
  box-shadow: 0 6px 30px rgba(240, 69, 156, 0.55), 0 0 0 1px rgba(255,255,255,0.1) inset;
  transform: translateY(-3px);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(139, 92, 246, 0.06);
  color: var(--violet-light);
  border: 2px solid var(--violet-bright);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  background: rgba(240, 69, 156, 0.1);
  border-color: var(--pink-bright);
  color: var(--pink-light);
  box-shadow: 0 0 20px rgba(240, 69, 156, 0.25);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 18px;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 500;
  background-color: rgba(15, 12, 20, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.18);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.3px;
  color: var(--white);
}

.logo span {
  background: var(--gradient-vibe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient-vibe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--white);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.5);
}

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

.nav a {
  color: var(--gray-light);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-vibe);
  transition: right 0.25s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--white);
}

.nav a:hover::after,
.nav a.active::after {
  right: 0;
}

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

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--black-dark);
  border-bottom: 1px solid var(--black-light);
  z-index: 499;
  padding: 20px 24px 30px;
  flex-direction: column;
  gap: 18px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
}

/* ===== HERO ===== */
.hero {
  background: var(--gradient-hero);
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(139,92,246,0.28) 0%, transparent 70%);
  pointer-events: none;
  animation: floatOrb 9s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -200px;
  left: -140px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(240,69,156,0.22) 0%, transparent 70%);
  pointer-events: none;
  animation: floatOrb 11s ease-in-out infinite reverse;
}

.hero-mesh-extra {
  position: absolute;
  top: 20%;
  left: 45%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14) 0%, transparent 70%);
  pointer-events: none;
  animation: floatOrb 13s ease-in-out infinite;
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(196, 181, 253, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 181, 253, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.08); }
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 19px;
  color: var(--gray-light);
  margin-bottom: 26px;
  max-width: 540px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.hero-badges span {
  color: var(--violet-light);
  font-weight: 700;
  font-size: 13px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 7px 14px;
  border-radius: 20px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-counter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(139, 92, 246, 0.18);
}

.hero-counter-number {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-vibe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  min-width: 118px;
}

.hero-counter-label {
  font-size: 13px;
  color: var(--gray-medium);
  line-height: 1.4;
  max-width: 180px;
}

.hero-counter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
  flex-shrink: 0;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-counter-dot {
    animation: none;
  }
}

/* Upload widget */
.upload-card {
  background: conic-gradient(from 0deg, var(--violet-bright), var(--pink-bright), var(--cyan-bright), var(--violet-bright));
  border-radius: var(--radius-xl);
  padding: 2px;
  position: relative;
  animation: rotateBorder 6s linear infinite;
  box-shadow: 0 25px 70px rgba(139, 92, 246, 0.25), 0 25px 70px rgba(240, 69, 156, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.upload-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 90px rgba(139, 92, 246, 0.35), 0 25px 70px rgba(240, 69, 156, 0.2);
}

@keyframes rotateBorder {
  to { filter: hue-rotate(360deg); }
}

.upload-card > div:first-child {
  display: none;
}

.upload-card-inner {
  background: linear-gradient(180deg, var(--black-dark) 0%, var(--black-medium) 100%);
  border-radius: var(--radius-xl);
  padding: 42px 32px;
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.upload-card-inner::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px dashed rgba(196, 181, 253, 0.4);
  border-radius: 14px;
  pointer-events: none;
  transition: border-color 0.25s ease;
}

.upload-card-inner:hover::before {
  border-color: var(--violet-bright);
}

.upload-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-vibe);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 20px;
  margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}

.upload-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--gradient-vibe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--white);
  box-shadow: 0 0 0 10px rgba(139, 92, 246, 0.08), 0 0 30px rgba(139, 92, 246, 0.4);
  animation: pulseIcon 2.4s ease-in-out infinite;
}

@keyframes pulseIcon {
  0%, 100% { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0.08), 0 0 30px rgba(139, 92, 246, 0.4); }
  50% { box-shadow: 0 0 0 16px rgba(240, 69, 156, 0.1), 0 0 40px rgba(240, 69, 156, 0.5); }
}

.upload-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.upload-card p {
  color: var(--gray-light);
  font-size: 14px;
  margin-bottom: 24px;
}

.upload-formats {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.upload-formats span {
  font-size: 11px;
  font-weight: 700;
  color: var(--violet-light);
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.08);
  padding: 5px 11px;
  border-radius: 6px;
}

.upload-hint {
  margin-top: 16px;
  font-size: 12px;
  color: var(--gray-medium);
}

.upload-input {
  display: none;
}

/* processing state */
.upload-state {
  display: none;
}

.upload-state.active {
  display: block;
}

.progress-track {
  background-color: var(--black-light);
  border-radius: 10px;
  height: 12px;
  overflow: hidden;
  margin: 24px 0 14px;
  position: relative;
}

.progress-fill {
  background: var(--gradient-vibe);
  background-size: 200% 100%;
  height: 100%;
  border-radius: 10px;
  width: 0%;
  transition: width 0.2s linear;
  animation: shimmerFill 1.5s linear infinite;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

@keyframes shimmerFill {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.progress-text {
  font-size: 14px;
  color: var(--gray-light);
}

.progress-text b {
  color: var(--violet-light);
}

.spinner {
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 4px solid var(--black-light);
  border-top-color: var(--violet-bright);
  border-right-color: var(--pink-bright);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.result-badge {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), #34D399);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--black-deep);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.45);
  animation: popIn 0.4s ease;
}

@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.result-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

/* ===== STEPS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
  padding: 32px 20px;
  background: var(--black-dark);
  border: 1px solid var(--black-light);
  border-radius: var(--radius);
  position: relative;
}

.step-number {
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gradient-vibe);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.step {
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-6px);
}

.step:hover .step-number {
  box-shadow: 0 8px 28px rgba(240, 69, 156, 0.5);
}

.step h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.step p {
  color: var(--gray-light);
  font-size: 15px;
}

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

.feature-card {
  background: linear-gradient(160deg, var(--black-dark) 0%, rgba(36, 31, 48, 0.6) 100%);
  border: 1px solid var(--black-light);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-vibe);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 16px 40px rgba(139, 92, 246, 0.2);
  transform: translateY(-6px);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--gradient-vibe);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.3);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--gray-light);
  font-size: 14px;
}

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

.example-card {
  background: var(--black-dark);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.example-card:hover {
  border-color: var(--pink-bright);
  box-shadow: 0 16px 40px rgba(240, 69, 156, 0.18);
  transform: translateY(-6px);
}

.example-compare {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--black-medium);
}

.example-compare .after,
.example-compare .before {
  position: absolute;
  inset: 0;
  padding: 0;
  color: var(--gray-medium);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.example-compare .before img,
.example-compare .after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  pointer-events: none;
}

.example-compare .before::before,
.example-compare .after::before {
  content: "ДО";
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
}

.example-compare .after::before {
  content: "ПОСЛЕ";
  left: auto;
  right: 12px;
  background: var(--gradient-vibe);
  color: var(--white);
  border: none;
}

.example-compare .before {
  background: var(--black-medium);
}

.example-compare .after {
  background: var(--black-dark);
  clip-path: inset(0 50% 0 0);
}

.example-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg, var(--violet-bright), var(--pink-bright));
  cursor: ew-resize;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

.example-slider::after {
  content: "⇔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  background: var(--gradient-vibe);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5), 0 0 0 4px rgba(10,10,15,0.6);
}

.example-caption {
  padding: 16px 18px;
  font-size: 14px;
  color: var(--gray-light);
}

.example-caption b {
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}

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

.faq-item {
  background: var(--black-dark);
  border: 1px solid var(--black-light);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}

.faq-toggle {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-vibe);
  color: var(--white);
  font-size: 18px;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-toggle {
  transform: rotate(135deg);
}

.faq-item.open {
  border-color: rgba(139, 92, 246, 0.5);
  background: var(--black-medium);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 22px;
}

.faq-answer p {
  color: var(--gray-light);
  font-size: 15px;
}

.faq-answer .accent {
  font-weight: 700;
}

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

.alt-card {
  background: linear-gradient(160deg, var(--black-dark) 0%, rgba(36, 31, 48, 0.6) 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.alt-card:hover {
  background: var(--black-medium);
  border-color: var(--pink-bright);
  box-shadow: 0 16px 40px rgba(240, 69, 156, 0.2);
  transform: translateY(-6px);
}

.alt-card .feature-icon {
  margin: 0 auto 16px;
}

.alt-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.alt-card p {
  color: var(--gray-light);
  font-size: 14px;
  margin-bottom: 18px;
}

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

.blog-card {
  background: var(--black-dark);
  border: 1px solid var(--black-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.blog-card:hover {
  border-color: var(--violet-bright);
  box-shadow: 0 16px 40px rgba(139, 92, 246, 0.2);
  transform: translateY(-6px);
}

.blog-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #241F30, #0A0A0F);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet-light);
  font-size: 30px;
  overflow: hidden;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta {
  font-size: 12px;
  color: var(--gray-medium);
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  line-height: 1.35;
}

.blog-card p {
  color: var(--gray-light);
  font-size: 14px;
  margin-bottom: 18px;
  flex: 1;
}

.blog-link {
  color: var(--violet-bright);
  font-weight: 700;
  font-size: 14px;
}

.view-all-link {
  text-align: center;
  margin-top: 36px;
}

.view-all-link a {
  color: var(--violet-bright);
  font-weight: 700;
  font-size: 16px;
}

/* ===== CTA ===== */
.cta {
  background:
    radial-gradient(ellipse 700px 300px at 50% 0%, rgba(139, 92, 246, 0.2), transparent 70%),
    radial-gradient(ellipse 600px 280px at 80% 100%, rgba(240, 69, 156, 0.15), transparent 70%),
    radial-gradient(ellipse 400px 250px at 10% 90%, rgba(34, 211, 238, 0.08), transparent 65%),
    linear-gradient(90deg, #0A0A0F 0%, #17111F 50%, #0A0A0F 100%);
  text-align: center;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196, 181, 253, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 181, 253, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 100% at 50% 50%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 50%, #000 40%, transparent 80%);
  pointer-events: none;
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 14px;
  background: var(--gradient-vibe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.cta p {
  color: var(--gray-light);
  font-size: 17px;
  margin-bottom: 30px;
}

.cta-telegram {
  margin-top: 18px;
  color: var(--gray-medium);
  font-size: 14px;
}

.cta-telegram a {
  color: var(--violet-light);
  font-weight: 700;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--black-dark);
  padding: 60px 0 24px;
  border-top: 1px solid var(--black-light);
}

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

.footer-brand p {
  color: var(--gray-light);
  font-size: 14px;
  margin-top: 14px;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--gray-light);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--violet-bright);
}

.footer-bottom {
  border-top: 1px solid var(--black-light);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--gray-medium);
}

.footer-bottom a {
  color: var(--gray-medium);
}

.footer-bottom a:hover {
  color: var(--violet-bright);
}

/* ===== AGE MODAL ===== */
.age-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 5, 10, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInOverlay 0.4s ease;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.age-overlay.hidden {
  display: none;
}

.age-modal {
  background: linear-gradient(180deg, rgba(36, 31, 48, 0.9) 0%, rgba(22, 20, 31, 0.95) 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(139, 92, 246, 0.2), 0 0 0 1px rgba(255,255,255,0.04) inset;
  max-width: 420px;
  width: 100%;
  padding: 44px 34px 34px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: popModal 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes popModal {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.age-modal::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.35), transparent 70%);
  pointer-events: none;
}

.age-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: var(--gradient-vibe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.45);
  position: relative;
}

.age-warning {
  color: var(--white);
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  position: relative;
}

.age-modal p {
  color: var(--gray-light);
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.55;
  position: relative;
}

.age-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
  position: relative;
}

.age-buttons .btn {
  padding: 14px 28px;
}

.age-timer {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gray-medium);
  font-size: 13px;
  margin-top: 20px;
  position: relative;
}

.age-timer.active {
  display: flex;
  animation: fadeInOverlay 0.3s ease;
}

.age-spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid var(--black-light);
  border-top-color: var(--violet-bright);
  border-right-color: var(--pink-bright);
  animation: spin 0.8s linear infinite;
}

.age-buttons .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
    justify-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-text {
    width: 100%;
    max-width: 100%;
  }
  .upload-card {
    width: 100%;
    max-width: min(440px, 100%);
    margin-left: auto;
    margin-right: auto;
    justify-self: center;
    box-sizing: border-box;
    min-width: 0;
    animation: none;
  }
  .upload-card:hover {
    transform: none;
  }
  .upload-card-inner {
    box-sizing: border-box;
    max-width: 100%;
  }
  .steps, .features-grid, .examples-grid, .alt-grid, .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav, .header-actions .btn {
    display: none;
  }
  .burger {
    display: flex;
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
  .mobile-nav a {
    padding: 10px 0;
  }
  .steps, .features-grid, .examples-grid, .alt-grid, .blog-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .section {
    padding: 60px 0;
  }
  .hero {
    padding: 40px 0 60px;
    overflow-x: hidden;
  }
  .upload-card {
    width: 100%;
    max-width: 100%;
  }
  .upload-card-inner {
    padding: 28px 16px;
  }
  .upload-card h3 {
    font-size: 18px;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 16px;
  }
  .upload-card-inner {
    padding: 32px 20px;
  }
  .age-modal {
    padding: 32px 20px 24px;
  }
  .age-overlay {
    padding: 12px;
  }
}

/* Finder + registration */
.finder-box {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(139, 92, 246, 0.35);
  background:
    radial-gradient(500px 180px at 10% 0%, rgba(139,92,246,0.16), transparent 70%),
    var(--black-dark);
  box-shadow: var(--shadow-card);
}
.finder-orbit {
  width: 72px;
  height: 72px;
  margin: 8px auto 18px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.08);
  border-top-color: var(--violet-bright);
  border-right-color: var(--pink-bright);
  animation: spin 0.9s linear infinite;
}
.finder-box .progress-track { max-width: 360px; margin: 0 auto 12px; }
.finder-status { color: var(--gray-light); margin: 0 0 6px; }
.finder-pct { font-weight: 800; color: var(--white); min-height: 1.4em; }
.finder-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
#finderResult[hidden],
#finderRun[hidden],
#finderStart[hidden] { display: none !important; }
.reg-overlay[hidden] { display: none !important; }
.reg-overlay {
  position: fixed; inset: 0; z-index: 10050;
  background: rgba(4, 3, 9, 0.9);
  display: grid; place-items: center; padding: 20px;
  backdrop-filter: blur(12px);
}
.reg-modal {
  width: min(440px, 100%);
  background: var(--black-dark);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-lift);
}
.reg-modal h3 { margin: 0 0 10px; font-size: 24px; }
.reg-modal p { color: var(--gray-light); margin: 0 0 20px; line-height: 1.55; }

@keyframes spin { to { transform: rotate(360deg); } }
