:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --card: #1a1a2e;
  --border: #2a2a3e;
  --primary: #ff006e;
  --secondary: #8338ec;
  --accent: #3a86ff;
  --text: #f8f8ff;
  --muted: #a0a0b8;
  --glow: rgba(255, 0, 110, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 80px; /* Отступ для sticky кнопки */
}

/* Age Modal */
.age-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
}

.age-content {
  background: linear-gradient(145deg, var(--card), var(--surface));
  border: 1px solid rgba(255,0,110,0.3);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  max-width: 450px;
  box-shadow: 0 30px 60px rgba(255,0,110,0.2);
}

.age-content h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.age-content p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.age-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-yes, .btn-no {
  padding: 1rem 2rem;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
}

.btn-yes {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.btn-yes:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255,0,110,0.4);
}

.btn-no {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

.hidden {
  display: none !important;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 72px;
  background: rgba(10,10,15,0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-download {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s;
}

.btn-download:hover {
  transform: translateY(-2px);
}

/* Hero */
.hero {
  min-height: 100vh;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.glow-bg {
  position: absolute;
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(255,0,110,0.2), transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,0,110,0.1);
  border: 1px solid rgba(255,0,110,0.3);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 800;
}

.stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-btns {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 10px 30px rgba(255,0,110,0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255,0,110,0.4);
}

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

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--primary);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Phone Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 300px;
  height: 600px;
  background: var(--card);
  border-radius: 40px;
  padding: 1rem;
  box-shadow: 
    0 50px 100px rgba(255,0,110,0.2),
    inset 0 0 0 1px rgba(255,255,255,0.1);
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 30px;
  background: var(--bg);
  border-radius: 0 0 20px 20px;
}

.phone-screen {
  background: linear-gradient(180deg, #1a1a2e 0%, #0a0a0f 100%);
  border-radius: 32px;
  height: 100%;
  padding: 3rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.app-header {
  display: flex;
  justify-content: space-between;
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0 0.5rem;
}

/* Интерактивное сравнение в телефоне */
.photo-compare {
  position: relative;
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  cursor: ns-resize;
  user-select: none;
  touch-action: none;
  margin: 0.5rem 0;
}

.photo-after,
.photo-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.photo-after {
  z-index: 1;
}

.photo-after img,
.photo-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-before {
  z-index: 2;
  height: 70%;
  overflow: hidden;
  border-bottom: 3px solid #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.compare-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 70%;
  height: 40px;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ns-resize;
}

.compare-handle {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff006e, #8338ec);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  box-shadow: 0 5px 20px rgba(255,0,110,0.5);
  border: 2px solid white;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.compare-hint {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  z-index: 4;
  pointer-events: none;
  transition: opacity 0.3s;
}

.ai-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem;
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* Авто-анимация */
.photo-compare.auto-play .photo-before {
  animation: autoReveal 4s ease-in-out infinite;
}

.photo-compare.auto-play .compare-line {
  animation: autoLine 4s ease-in-out infinite;
}

@keyframes autoReveal {
  0%, 100% { height: 70%; }
  50% { height: 0%; }
}

@keyframes autoLine {
  0%, 100% { top: 70%; }
  50% { top: 0%; }
}

.floating-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Sections */
.section {
  padding: 100px 0;
}

.section.dark {
  background: var(--surface);
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  font-weight: 800;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 4rem;
}

/* Comparisons */
.comparisons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.comparison-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  transition: transform 0.3s;
}

.comparison-card:hover {
  transform: translateY(-5px);
}

.comparison-card h3 {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--text);
}

.comparison {
  position: relative;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}

.comparison-after,
.comparison-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.comparison-after {
  z-index: 1;
}

.comparison-before {
  z-index: 2;
  width: 50%;
  overflow: hidden;
  border-right: 3px solid #fff;
  box-shadow: 5px 0 20px rgba(0,0,0,0.3);
}

.comparison-after img,
.comparison-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.label {
  position: absolute;
  top: 1rem;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
}

.comparison-after .label {
  right: 1rem;
}

.comparison-before .label {
  left: 1rem;
}

.comparison-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 40px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
}

.slider-handle {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 5px 20px rgba(255,0,110,0.5);
  border: 3px solid white;
}

/* Video */
.video-demo {
  text-align: center;
}

.video-demo h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.video-container {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-container video {
  width: 100%;
  display: block;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(255,0,110,0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
}

.step-num {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1.5rem;
  color: white;
}

.step h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(145deg, rgba(255,0,110,0.1), rgba(131,56,236,0.05));
  border: 1px solid rgba(255,0,110,0.2);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-box h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.cta-box p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.btn-large {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1.2rem 3rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}

.btn-large:hover {
  transform: scale(1.05);
}

.file-info {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Sticky Download Button */
.sticky-download {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10,10,15,0.95);
  border-top: 1px solid rgba(255,0,110,0.3);
  padding: 1rem;
  z-index: 999;
  backdrop-filter: blur(20px);
  transform: translateY(100%);
  transition: transform 0.3s;
}

.sticky-download.visible {
  transform: translateY(0);
}

.sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  max-width: 400px;
  margin: 0 auto;
  animation: stickyPulse 2s ease-in-out infinite;
  box-shadow: 0 10px 40px rgba(255,0,110,0.4);
}

@keyframes stickyPulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 10px 40px rgba(255,0,110,0.4);
  }
  50% { 
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(255,0,110,0.6);
  }
}

.sticky-icon {
  font-size: 1.5rem;
}

.sticky-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sticky-text strong {
  font-size: 1.1rem;
}

.sticky-text small {
  font-size: 0.8rem;
  opacity: 0.9;
  font-weight: 400;
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 100px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand p {
  color: var(--muted);
  margin-top: 0.5rem;
  max-width: 300px;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .subtitle {
    margin: 0 auto 2rem;
  }
  
  .stats {
    justify-content: center;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .pills {
    justify-content: center;
  }
  
  .phone-mockup {
    width: 260px;
    height: 520px;
  }
  
  .nav-links {
    display: none;
  }
  
  .comparisons {
    grid-template-columns: 1fr;
  }
  
  .comparison {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .age-content {
    padding: 2rem;
    margin: 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .comparison {
    height: 300px;
  }
  
  .sticky-text small {
    display: none;
  }
}