.hero {
  position: relative;
  overflow: hidden;
  min-height: 75vh;
  display: flex;
  align-items: center;
}

.hero-container {
  width: 100%;
  padding-top: 30px; 
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 50;
}

/* Logo Card */
.hero-logo-card {
  display: inline-flex;
  background: white;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

.hero-logo-card img {
  width: 64px;
  height: 64px;
}

.hero-badge {
  display: inline-block;
  padding: 10px 24px;
  background: rgba(0, 178, 169, 0.08);
  color: var(--primary);
  border-radius: 50px;
  font-size: 20px; /* Increased from 13px by ~54% */
  font-weight: 700;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 68px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 24px;
  letter-spacing: -2.5px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 48px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Floating Elements (Desktop only) */
.hero-visuals {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none; /* Container is passive */
}

.floating-card {
  position: absolute;
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  z-index: 10;
  min-width: 220px;
  pointer-events: auto; /* Cards must be active for hover to work */
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --y: 0px;
  --s: 1;
  transform: translateY(var(--y)) rotate(var(--rot, 0deg)) scale(var(--s));
}

.floating-card:hover {
  --y: -15px;
  --s: 1.05;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
  z-index: 100;
}

/* Removed old float animation to prevent 'shaking' */

/* Positioning cards FAR from the center */
@media (min-width: 1200px) {
  .content-card { left: 4%; top: 12%; --rot: -5deg; width: 310px; }
  .learn-card { right: 4%; top: 15%; --rot: 5deg; width: 310px; }
  .reflection-card { left: 4%; top: 55%; --rot: 4deg; width: 290px; }
  .stats-card { right: 4%; top: 60%; --rot: -5deg; width: 290px; }
}

@media (max-width: 1199px) and (min-width: 1025px) {
  .floating-card { --s: 0.9; }
  .content-card { left: 2%; top: 12%; --rot: -5deg; width: 310px; }
  .learn-card { right: 2%; top: 15%; --rot: 5deg; width: 310px; }
  .reflection-card { left: 2%; top: 55%; --rot: 4deg; width: 290px; }
  .stats-card { right: 2%; top: 60%; --rot: -5deg; width: 290px; }
}

@media (max-width: 1024px) {
  .hero-visuals {
    display: none;
  }
}

/* Card Inner Styles */
.card-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0, 178, 169, 0.1);
  color: var(--primary);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.habit-streak {
  display: flex;
  gap: 6px;
  margin: 12px 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
}

.dot.active {
  background: var(--primary);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  margin: 10px 0;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: var(--primary-gradient);
}

.card-description {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dark);
  margin: 12px 0;
  opacity: 0.8;
}

.card-outcome {
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-top: 12px;
}

.card-outcome h4 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 4px;
}

.card-outcome p {
  font-size: 13px;
  color: var(--text-muted);
}

.image-card {
  padding: 0;
  overflow: hidden;
  display: flex;
}

.priz-img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(34px, 11vw, 52px); /* Slightly larger */
    letter-spacing: -1.8px;
    margin-bottom: 18px;
    line-height: 1.05;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero-subtitle {
    font-size: 18px;
    margin-bottom: 32px;
    padding: 0 10px;
    opacity: 0.85; /* Refined hierarchy */
    line-height: 1.5;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
  }
  .hero-badge {
    font-size: 11px;
    padding: 6px 14px;
    margin-bottom: 20px;
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 178, 169, 0.2);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .btn-large {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
  }
  .hero-container {
    padding-top: 40px;
    padding-bottom: 80px;
  }
  .hero {
    min-height: auto;
    padding: 40px 0;
  }
  .hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(0, 178, 169, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
  }
}

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 36px;
  }
  .btn-large {
    width: 100%;
    padding: 16px 32px;
  }
}
