/* ══════════════════════════════════════
   AGEYE — Hero Section
   Includes scaffold, dashboard cards,
   and hero-specific keyframes
   ══════════════════════════════════════ */

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 40px 60px;
  position: relative;
  overflow: hidden;
}

.hero-content { max-width: 860px; position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center; gap: 10px;
  font-size: 0.76rem; font-weight: 600;
  color: var(--pink);
  margin-bottom: 28px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: fadeUp 0.7s ease both;
}

.hero-badge .p { font-size: 0.68rem; }

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--black);
  margin-bottom: 28px;
  animation: fadeUp 0.7s ease 0.08s both;
}

.hero h1 em { font-style: normal; color: var(--pink); }

.hero-sub {
  font-size: 1.2rem; color: var(--gray-800);
  max-width: 560px; line-height: 1.7;
  margin-bottom: 44px;
  animation: fadeUp 0.7s ease 0.16s both;
}

.hero-ctas {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.24s both;
}

/* ── HERO PILLARS ── */
.hero-pillars {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  max-width: 780px;
  animation: fadeUp 0.7s ease 0.4s both;
}

.pillar {
  padding: 24px 28px;
  border-left: 2px solid var(--pink);
}

.pillar-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem; font-weight: 800;
  color: var(--black); letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.pillar-label {
  font-size: 0.85rem; color: var(--gray-400);
  font-weight: 500; line-height: 1.5;
}

/* ═══ HERO-WIDE SCAFFOLD (behind text) ═══ */
.hero-scaffold {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* ═══ BLENDED: RACK SCAFFOLD + DASHBOARD CARDS ═══ */
.hero-visual {
  position: absolute;
  right: 0; top: 52%;
  transform: translateY(-40%);
  width: 48%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.visual-container {
  position: relative;
  width: 440px;
  height: 520px;
}

/* ── RACK SCAFFOLD ── */
.scaffold {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scaffold-h {
  position: absolute;
  left: 0; right: 0;
  height: var(--sh, 2px);
  background: var(--sc, var(--pink));
  opacity: var(--so, 0.14);
}

.scaffold-v {
  position: absolute;
  top: 0; bottom: 0;
  width: var(--sw, 2px);
  background: var(--sc, var(--pink));
  opacity: var(--so, 0.10);
}

.stream {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--green-bright);
  opacity: 0;
  animation: streamUp var(--dur, 5s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes streamUp {
  0% { opacity: 0; transform: translateY(0); }
  8% { opacity: 0.9; }
  85% { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-460px); }
}

.node {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--nc, var(--green-bright));
  animation: nodePulse var(--dur, 3s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes nodePulse {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(2.2); box-shadow: 0 0 12px var(--nc, rgba(62,207,142,0.35)); }
}

.splus {
  position: absolute;
  font-family: 'Outfit', sans-serif;
  font-weight: 300; font-size: 0.85rem;
  color: var(--pink); opacity: 0.18;
  animation: plusBreath 6s ease-in-out var(--delay, 0s) infinite;
}

@keyframes plusBreath {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.3; }
}

.scanline {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--green-bright) 30%, var(--green-bright) 70%, transparent 100%);
  opacity: 0.35;
  animation: scanMove 8s ease-in-out infinite;
}

@keyframes scanMove {
  0% { top: 5%; opacity: 0; }
  5% { opacity: 0.35; }
  95% { opacity: 0.35; }
  100% { top: 95%; opacity: 0; }
}

/* ── DASHBOARD CARDS ── */
.dcard {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  border-radius: 12px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.07);
  padding: 16px 18px;
  animation: cardFloat var(--dur, 6s) ease-in-out var(--delay, 0s) infinite;
  transition: var(--t);
  z-index: 2;
}

.dcard:hover {
  box-shadow: 0 8px 36px rgba(0,0,0,0.09);
  transform: translateY(-4px) !important;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.ct { font-family: 'Outfit', sans-serif; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-400); margin-bottom: 6px; }
.cv { font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--black); letter-spacing: -0.02em; margin-bottom: 2px; }
.cc { font-size: 0.68rem; font-weight: 600; }
.cc.up { color: var(--green-bright); }

.card-yield { top: 0; left: 10px; width: 210px; --delay: 0s; --dur: 7s; }
.mini-chart { width: 100%; height: 40px; margin-top: 8px; }
.mini-chart svg { width: 100%; height: 100%; }

.card-env { top: 15px; right: 0; width: 145px; --delay: 1.2s; --dur: 6.5s; }
.erow { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid rgba(0,0,0,0.03); }
.erow:last-child { border: none; }
.el { font-size: 0.66rem; color: var(--gray-400); }
.ev { font-family: 'Outfit', sans-serif; font-size: 0.78rem; font-weight: 700; color: var(--black); }

.card-alert { top: 195px; right: 5px; width: 155px; --delay: 1.8s; --dur: 5.5s; border-left: 3px solid var(--green-bright); padding: 14px 16px; }
.alert-b { display: inline-block; font-size: 0.56rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 100px; background: rgba(62,207,142,0.1); color: var(--green-mid); margin-bottom: 6px; }
.alert-txt { font-size: 0.72rem; color: var(--gray-800); line-height: 1.45; }
.alert-t { font-size: 0.6rem; color: var(--gray-400); margin-top: 5px; }

.card-nut { bottom: 40px; right: 10px; width: 130px; --delay: 2s; --dur: 6s; text-align: center; }
.nut-ring { width: 52px; height: 52px; margin: 0 auto 8px; position: relative; }
.nut-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.nut-val { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: 'Outfit', sans-serif; font-size: 0.82rem; font-weight: 800; color: var(--black); }
.nut-label { font-size: 0.62rem; color: var(--gray-400); line-height: 1.4; }

.card-agent { bottom: 60px; left: 20px; width: 210px; --delay: 0.8s; --dur: 7.5s; background: rgba(26,58,42,0.95); backdrop-filter: blur(12px); color: white; border-color: rgba(62,207,142,0.1); }
.agent-row { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.agent-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green-bright); animation: aDot 2s ease infinite; }
.agent-tag { font-family: 'Outfit', sans-serif; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green-bright); }
.agent-msg { font-size: 0.74rem; color: rgba(255,255,255,0.7); line-height: 1.5; margin-bottom: 8px; }
.agent-link { font-size: 0.66rem; font-weight: 600; color: var(--green-bright); }
