/* ================================================
   HERO.CSS
   ------------------------------------------------
   Styles for the homepage hero / banner section.
   Includes: headline, subtext, chips, buttons,
             visual panel with badge grid, stat boxes.

   TO EDIT:
   - Hero background: update --grad-hero-bg in variables.css
   - Min height: update min-height in `.hero`
   - Hero visual colors: update .hero-img-box background
================================================ */


/* ── HERO WRAPPER ─────────────────────────────── */
.hero {
  background: var(--grad-hero-bg);
  min-height: calc(100vh - 68px); /* full viewport minus navbar */
  display: grid;
  grid-template-columns: 1fr 1fr; /* left content | right visual */
  align-items: center;
  gap: 48px;
  padding: 72px var(--space-2xl) 48px;
  position: relative;
  overflow: hidden;
}

/* Decorative background glow (top right) */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #7c3aed18, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}


/* ── TRUST BADGE ──────────────────────────────── */
/* Small pill: "Trusted by 500+ Organizations ⭐" */
.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e6fdf5;
  border: 1.5px solid #0db88e55;
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
}


/* ── HERO HEADLINE ────────────────────────────── */
.hero h1 {
  font-size: clamp(42px, 5.5vw, 68px); /* fluid font size */
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 20px;
}


/* ── HERO PARAGRAPH ───────────────────────────── */
.hero p {
  font-size: var(--text-md);
  color: var(--gray);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
}


/* ── FEATURE CHIPS ────────────────────────────── */
/* Small checkbox-style tags below the paragraph */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy2);
}

.chip svg {
  color: var(--teal);
  flex-shrink: 0;
}


/* ── HERO BUTTONS ─────────────────────────────── */
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}


/* ── HERO VISUAL (RIGHT SIDE) ─────────────────── */
.hero-visual {
  position: relative;
}

/* Gradient image box that holds the badge grid */
.hero-img-box {
  background: linear-gradient(135deg, #0db88e, #3b82f6 50%, #7c3aed);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Grid of badge cards inside the visual */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 32px;
  transform: perspective(600px) rotateY(-8deg) rotateX(5deg); /* 3D tilt effect */
}

/* Individual badge card */
.badge-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.badge-card .badge-icon { font-size: 28px; }
.badge-card .badge-qr   { font-size: 36px; }

/* Orange variant badge card */
.badge-card--orange {
  background: rgba(249, 115, 22, 0.7);
  border-color: rgba(249, 115, 22, 0.5);
}

/* Teal variant badge card */
.badge-card--teal {
  background: rgba(13, 184, 142, 0.6);
  border-color: rgba(13, 184, 142, 0.4);
}


/* ── FLOATING STAT BOX (top right) ───────────── */
/* Shows "2.4M+ Badges Issued" */
.hero-stat-box {
  position: absolute;
  top: 20px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-stat-box .stat-emoji { font-size: 28px; }

.hero-stat-box strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
}

.hero-stat-box span {
  font-size: 12px;
  color: var(--gray);
}


/* ── FLOATING LIVE BOX (bottom left) ─────────── */
/* Shows "Live — Real-time Analytics" */
.hero-live-box {
  position: absolute;
  bottom: 20px;
  left: -20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Pulsing green dot */
.live-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

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

.hero-live-box strong {
  font-size: 14px;
  font-weight: 700;
}

.hero-live-box span {
  font-size: 11px;
  color: var(--gray);
  display: block;
}
