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

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  color: #1a1a2e;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  line-height: 1.6;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Improve focus visibility for accessibility */
:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 3px;
  border-radius: 8px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg,
    rgba(102, 126, 234, 0.08) 0%,
    rgba(118, 75, 162, 0.08) 50%,
    rgba(255, 255, 255, 0.98) 100%
  );
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
  z-index: 1;
}

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

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  background: rgba(255, 255, 255, 0.9);
  padding: 40px 35px;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-text h1 {
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.2;
  margin: 0 0 20px;
  font-weight: 800;
  color: #1a1a2e;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  animation: slideInLeft 1s ease-out;
}

.hero-text h1 span {
  color: #667eea;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

.subtitle {
  margin: 0 0 24px;
  color: #2d3748;
  font-size: 18px;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
  animation: slideInLeft 1s ease-out 0.2s both;
}

.metrics {
  display: flex;
  gap: 20px;
  margin: 24px 0;
  animation: slideInUp 1s ease-out 0.4s both;
}

.metric {
  background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
  border: 2px solid rgba(102, 126, 234, 0.2);
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.metric::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  transition: left 0.8s;
}

.metric:hover::before {
  left: 100%;
}

.metric:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 64px rgba(102, 126, 234, 0.2);
}

.metric-value {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 800;
  color: #667eea;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888;
  font-weight: 600;
}

.age-note {
  color: #0d9488;
  background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
  border: 2px solid #67e8f9;
  padding: 12px 16px;
  border-radius: 12px;
  display: inline-block;
  margin: 16px 0;
  font-weight: 600;
  animation: pulse 2s infinite;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.2);
}

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

.actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  animation: slideInUp 1s ease-out 0.6s both;
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-media {
  animation: slideInRight 1s ease-out 0.3s both;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

.placeholder-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.placeholder-img:hover {
  transform: scale(1.02) rotateY(5deg);
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.4);
}

.placeholder-img img {
  transition: transform 0.4s ease;
}

.placeholder-img:hover img {
  transform: scale(1.05);
}

/* Enhanced Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: #fff;
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(34, 197, 94, 0.4);
}

.btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

.btn-telegram {
  background: linear-gradient(135deg, #0088cc 0%, #229ed9 100%);
  color: #fff;
  box-shadow: 0 8px 25px rgba(0, 136, 204, 0.3);
}

.btn-telegram:hover {
  background: linear-gradient(135deg, #0066aa 0%, #0088cc 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 136, 204, 0.4);
}

/* Loading Animation */
.btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Sections */
.section {
  padding: 80px 0;
  position: relative;
  background: #fff;
}

.section.alt {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.section h2 {
  margin: 0 0 40px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  text-align: center;
  color: #1a1a2e;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.centered-cta {
  text-align: center;
  margin-top: 40px;
}

.centered-cta .actions {
  justify-content: center;
  margin-bottom: 20px;
}

.centered-cta .muted {
  color: #374151;
  margin-top: 12px;
  font-style: italic;
  font-weight: 500;
}

/* Enhanced Cards */
.cards {
  display: grid;
  gap: 24px;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid rgba(102, 126, 234, 0.1);
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
}

.card h3 {
  margin: 16px 0 12px;
  font-size: 22px;
  color: #1a1a2e;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: #374151;
  line-height: 1.6;
  font-weight: 500;
}

.card-icon {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 16px;
  color: #fff;
  margin-bottom: 8px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.card-img {
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.card-img:hover {
  transform: scale(1.02);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-img:hover img {
  transform: scale(1.05);
}

/* Footer */
.site-footer {
  border-top: 2px solid #e5e7eb;
  padding: 40px 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
}

.site-footer p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  text-align: center;
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .cards.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-media {
    order: -1;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 60px 0;
  }

  .cards.three {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }

  .centered-cta .btn {
    width: 100%;
  }

  .metric {
    padding: 16px 20px;
  }

  .hero-text h1 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .metrics {
    flex-direction: column;
    align-items: center;
  }

  .metric {
    width: 100%;
    max-width: 300px;
  }
}
