/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --color-background: hsl(240 10% 4%);
  --color-foreground: hsl(0 0% 98%);
  --color-card: hsl(240 10% 6%);
  --color-primary: hsl(265 85% 65%);
  --color-primary-foreground: hsl(0 0% 100%);
  --color-secondary: hsl(240 5% 15%);
  --color-muted: hsl(240 5% 15%);
  --color-muted-foreground: hsl(240 5% 65%);
  --color-border: hsl(240 5% 15%);
}

body {
  font-family: var(--font-sans);
  background: var(--color-background);
  color: var(--color-foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "rlig" 1, "calt" 1;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Parallax Background */
.parallax-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* Оптимизация рендеринга */
  contain: layout style paint;
  will-change: transform;
}

.bg-girl {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  will-change: transform;
}

.bg-girl img {
  width: 80%;
  height: auto;
  opacity: 0.6;
  filter: blur(4px) brightness(0.5) contrast(1.1);
  mix-blend-mode: screen;
  content-visibility: auto;
}

/* WebP поддержка для фоновых изображений - удалено, используется picture */

.glass-texture {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 4px 4px;
  filter: blur(1px);
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.strawberry {
  position: absolute;
  width: 128px;
  height: 128px;
  opacity: 0.8;
  background-image: url('assets/strawberry-single.png');
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 10px 20px rgba(255,0,0,0.3));
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.strawberry-1 {
  top: 15%;
  left: 10%;
  width: 128px;
  height: 128px;
}

.strawberry-2 {
  top: 65%;
  right: 12%;
  width: 160px;
  height: 160px;
  opacity: 0.6;
}

.strawberry-3 {
  position: fixed;
  top: 40%;
  right: 25%;
  width: 80px;
  height: 80px;
  opacity: 0.9;
  z-index: 60;
  filter: drop-shadow(0 15px 30px rgba(255,0,0,0.5));
}

.vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent, rgba(0,0,0,0.8));
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.5rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.8;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(to bottom right, var(--color-primary), #9333ea);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.logo-text {
  letter-spacing: -0.02em;
  color: white;
}

.nav {
  display: none;
  align-items: center;
  gap: 40px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn-text {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-text:hover {
  color: var(--color-primary);
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  padding: 10px 24px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 900;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: rgba(168, 85, 247, 0.9);
  transform: scale(1.05);
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-large {
  height: 56px;
  padding: 0 32px;
  font-size: 18px;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 24px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 128px;
  padding-bottom: 80px;
  z-index: 10;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 192px;
    padding-bottom: 128px;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

@media (min-width: 1024px) {
  .hero-content {
    flex-direction: row;
    align-items: center;
    gap: 96px;
  }
}

.hero-text {
  flex: 1;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-text {
    text-align: left;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: var(--color-primary);
  background: rgba(168, 85, 247, 0.05);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.badge-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

.badge-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-primary);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.hero-title {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 24px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.text-gradient {
  background: linear-gradient(to right, var(--color-primary), #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--color-muted-foreground);
  margin-bottom: 32px;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

@media (min-width: 1024px) {
  .hero-description {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hero-buttons {
    justify-content: flex-start;
  }
}

.hero-features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--color-muted-foreground);
}

@media (min-width: 640px) {
  .hero-features {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hero-features {
    justify-content: flex-start;
  }
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-item svg {
  color: #4ade80;
}

.feature-item:last-child svg {
  color: #fbbf24;
}

.hero-visual {
  flex: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .hero-visual {
    max-width: none;
  }
}

.user-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.user-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3/4;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  transition: transform 0.7s;
}

.user-card:nth-child(2),
.user-card:nth-child(3) {
  aspect-ratio: 4/3;
}

.user-card:hover {
  transform: scale(1.1);
}

.user-card picture {
  width: 100%;
  height: 100%;
  display: block;
}

.user-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-weight: 500;
  font-size: 14px;
}

.user-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

/* Stats Section */
.stats {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
  cursor: default;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 12px;
  transition: transform 0.3s;
}

.stat-item:hover .stat-icon {
  transform: scale(1.1);
}

.stat-icon-blue { color: #60a5fa; }
.stat-icon-green { color: #4ade80; }
.stat-icon-purple { color: #a78bfa; }
.stat-icon-pink { color: #f472b6; }

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--color-muted-foreground);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Features Section */
.features {
  padding: 96px 0;
  background: rgba(6, 6, 6, 0.5);
  position: relative;
  z-index: 10;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-description {
  color: var(--color-muted-foreground);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 32px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s;
}

.feature-card:hover {
  border-color: rgba(168, 85, 247, 0.5);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-primary);
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-description {
  color: var(--color-muted-foreground);
  line-height: 1.75;
}

/* How It Works Section */
.how-it-works {
  padding: 96px 0;
  position: relative;
  z-index: 10;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-number {
  position: absolute;
  top: 0;
  right: 0;
  transform: translateY(-50%) translateX(50%);
  font-size: 120px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  user-select: none;
}

.step-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--color-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 10;
  color: var(--color-primary);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  z-index: 10;
}

.step-description {
  color: var(--color-muted-foreground);
  font-size: 14px;
  z-index: 10;
}

/* FAQ Section */
.faq {
  padding: 96px 0;
  position: relative;
  z-index: 10;
}

.faq .container {
  max-width: 48rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--color-card);
  border-radius: 8px;
  padding: 0 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 500;
  text-align: left;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-chevron {
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s;
  color: var(--color-muted-foreground);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: var(--color-muted-foreground);
  font-size: 16px;
  padding: 0 0 0 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 0 24px 0;
}

/* CTA Section */
.cta {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(168, 85, 247, 0.1);
  filter: blur(100px);
  pointer-events: none;
}

.cta-card {
  position: relative;
  z-index: 10;
  max-width: 64rem;
  margin: 0 auto;
  background: var(--color-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 48px 80px;
  border-radius: 24px;
  overflow: hidden;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-card {
    padding: 80px;
  }
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(168, 85, 247, 0.1), transparent);
  pointer-events: none;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 3.75rem;
  }
}

.cta-description {
  font-size: 1.25rem;
  color: var(--color-muted-foreground);
  margin-bottom: 40px;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-users {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  margin-bottom: 8px;
}

@media (min-width: 640px) {
  .cta-users {
    flex-direction: row;
  }
}

.cta-avatars {
  display: flex;
  gap: -16px;
  margin-left: -16px;
}

.cta-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  margin-left: -16px;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.cta-avatar:hover {
  transform: scale(1.1);
}

.cta-avatar-blue { background: #3b82f6; }
.cta-avatar-pink { background: #ec4899; }
.cta-avatar-purple { background: #a855f7; }

.cta-users-text {
  text-align: left;
}

.cta-users-title {
  color: white;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-users-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.cta-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--color-muted-foreground);
  opacity: 0.7;
}

/* SEO Section */
.seo {
  padding: 40px 0;
  position: relative;
  z-index: 10;
  opacity: 0.85;
}

.seo-content {
  max-width: 64rem;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.75;
}

.seo-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.seo-content p {
  margin-bottom: 16px;
}

/* Footer */
.footer {
  padding: 64px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.9);
  position: relative;
  z-index: 10;
  backdrop-filter: blur(12px);
}

/* Animations from script.js */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .footer-brand {
    grid-column: 1;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.footer-description {
  color: rgba(255, 255, 255, 0.6);
  max-width: 24rem;
  font-size: 14px;
  line-height: 1.75;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-nav {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 24px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.age-badge {
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  color: white;
  background: rgba(220, 38, 38, 0.3);
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background: rgba(168, 85, 247, 0.3);
}
