/* ADD+ v4 — hero with line-mask headline, live meter instrument, trust marquee */

.hero {
  position: relative;
  padding: clamp(64px, 11vh, 128px) 0 clamp(56px, 9vh, 96px);
  overflow: hidden;
  /* faint ruler ticks along the top — instrument feel */
  background:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 56px) top / 100% 14px no-repeat,
    var(--bg);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--sub);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 7px 14px;
  margin-bottom: 30px;
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 53, 43, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(229, 53, 43, 0); }
}

/* line-mask headline reveal */
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln i { display: block; font-style: normal; }
.js .hero h1 .ln i { transform: translateY(112%); animation: line-up 1s var(--ease-out) forwards; }
.js .hero h1 .ln:nth-child(2) i { animation-delay: 0.12s; }
@keyframes line-up { to { transform: none; } }

.js .hero .badge { animation: fade-up 0.8s var(--ease-out) both; }
.js .hero .lead { animation: fade-up 0.8s var(--ease-out) 0.28s both; }
.js .hero .hero-cta { animation: fade-up 0.8s var(--ease-out) 0.38s both; }
.js .hero .meter { animation: fade-up 0.9s var(--ease-out) 0.5s both; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.hero-cta { display: flex; gap: 12px; margin-top: 38px; }

/* ---- live measurement instrument ---- */
.meter {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.15fr;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  margin-top: clamp(52px, 8vh, 88px);
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(19, 21, 25, 0.04), 0 24px 64px rgba(19, 21, 25, 0.09);
  overflow: hidden;
}
.meter-cell {
  padding: clamp(22px, 3vw, 34px) clamp(20px, 2.6vw, 30px);
  border-right: 1px solid var(--line);
  min-width: 0;
}
.meter-cell i {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--faint);
}
.meter-cell em {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-style: normal;
  margin-top: 12px;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.meter-cell em u { font-size: 0.4em; font-weight: 700; color: var(--red); }
.meter-cell em.pos b { color: var(--red); }
.meter-cell span { display: block; margin-top: 10px; font-size: 12.5px; color: var(--body); }

.meter-photo { position: relative; min-height: 150px; }
.meter-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.meter-photo figcaption {
  position: absolute;
  left: 14px; bottom: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #FFF;
  background: rgba(16, 14, 13, 0.45);
  backdrop-filter: blur(4px);
  padding: 5px 10px;
  border-radius: 6px;
}

/* scanline sweeping across the readings */
.meter-scan {
  position: absolute;
  top: 0; bottom: 0;
  width: 1.5px;
  background: linear-gradient(180deg, transparent, rgba(229, 53, 43, 0.65) 30% 70%, transparent);
  left: 0;
  z-index: 2;
  pointer-events: none;
}
.js .meter-scan { animation: scan 5.2s var(--ease) 1.4s infinite; }
@keyframes scan {
  0% { left: 0; opacity: 0; }
  8% { opacity: 1; }
  46% { left: calc(100% - 2px); opacity: 1; }
  54% { opacity: 0; }
  100% { left: calc(100% - 2px); opacity: 0; }
}

/* ---- trust marquee ---- */
.marquee {
  background: var(--dark);
  overflow: hidden;
  padding: 17px 0;
  position: relative;
}
.marquee::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.05;
  pointer-events: none;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  white-space: nowrap;
}
.js .marquee-track { animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.82);
}
.marquee b { color: var(--red-soft); font-size: 15px; }

@media (max-width: 900px) {
  .hero h1 br { display: none; }
  .meter { grid-template-columns: 1fr 1fr; }
  .meter-cell:nth-child(3) { border-right: none; }
  .meter-cell { border-bottom: 1px solid var(--line); }
  .meter-photo { grid-column: 1 / -1; min-height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero h1 .ln i, .js .hero .badge, .js .hero .lead,
  .js .hero .hero-cta, .js .hero .meter { animation: none; transform: none; opacity: 1; }
  .js .meter-scan, .badge i { animation: none; }
  .js .marquee-track { animation: none; }
}
