/* ============================================
   HERO SECTION — Green-to-Dark Gradient
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding: 140px 0 100px;
}

/* Mesh gradient overlays for modern depth */
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 125, 50, 0.35) 0%, rgba(46,125,50,0.1) 40%, transparent 70%);
  animation: meshFloat 12s ease-in-out infinite;
  filter: blur(40px);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 187, 106, 0.2) 0%, transparent 65%);
  animation: meshFloat 16s ease-in-out infinite reverse;
  filter: blur(50px);
}

@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Subtle noise texture overlay */
.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  animation: particleDrift var(--duration, 20s) linear infinite;
}

@keyframes particleDrift {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 0.8; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Grid line accents */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(ellipse at 60% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 50%, black 30%, transparent 75%);
}

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

/* ---------- Left: Content ---------- */
.hero-content {
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--green-200);
  margin-bottom: 28px;
  backdrop-filter: blur(12px);
  letter-spacing: 0.02em;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--green-400);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(102, 187, 106, 0.5);
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px rgba(102, 187, 106, 0.5); }
  50% { opacity: 0.6; transform: scale(1.4); box-shadow: 0 0 16px rgba(102, 187, 106, 0.8); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero h1 .highlight {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--green-300), var(--green-400), #a5d6a7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.12rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  max-width: 500px;
}

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

/* Stats */
.hero-stats {
  display: flex;
  gap: 44px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat {
  text-align: left;
}

.hero-stat .number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* ---------- Right: Phone Visual ---------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-wrapper {
  position: relative;
  animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(0.5deg); }
}

.phone-frame {
  position: relative;
  width: 280px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 10px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.1);
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.phone-frame img {
  width: 100%;
  display: block;
}

/* Glow behind phone */
.phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.3) 0%, rgba(46,125,50,0.15) 40%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: glowPulse 5s ease-in-out infinite;
  filter: blur(20px);
}

@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* Floating badge cards near phone */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 4;
  border: 1px solid rgba(255,255,255,0.6);
}

.floating-badge .badge-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.floating-badge .badge-label {
  font-size: 0.72rem;
  color: var(--gray-400);
  line-height: 1.2;
}

.floating-badge .badge-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.2;
}

.floating-badge.badge-1 {
  top: 12%;
  right: -28px;
  animation: badgeFloat1 5s ease-in-out infinite;
}

.floating-badge.badge-1 .badge-icon {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.floating-badge.badge-2 {
  bottom: 18%;
  left: -36px;
  animation: badgeFloat2 6s ease-in-out infinite;
}

.floating-badge.badge-2 .badge-icon {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}

@keyframes badgeFloat1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes badgeFloat2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}

/* Bottom wave divider */
.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 2;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
  display: block;
}
