/* ---------------------------------- Hero -------------------------------- */
.hero {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5.5vw, 4rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero__content h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  margin-bottom: 1.25rem;
}

.hero__content .lede { margin-bottom: 2.25rem; font-size: clamp(1rem, 1.6vw, 1.2rem); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.75rem;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-mute);
}

.hero__note .icon { width: 1rem; height: 1rem; color: var(--ok); }

/* ----- Device panel (HUD mockup) ----- */
.hero__visual { position: relative; }

.device-panel {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255,255,255,0.02) inset;
  overflow: hidden;
  transform: rotate(1.5deg);
}

.device-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--brand-glow) 50%, transparent 100%);
  opacity: 0.06;
  height: 40%;
  animation: scan 5s linear infinite;
  pointer-events: none;
}

@keyframes scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(350%); }
}

.device-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.device-panel__id {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-mute);
  letter-spacing: 0.05em;
}

.status-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.5s var(--ease);
}

.status-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge--pending {
  background: var(--accent-soft);
  color: var(--accent);
}
.status-badge--pending::before { animation: pulse-glow 1.4s ease-in-out infinite; }

.status-badge--ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.device-panel__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
}

.gauges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.gauge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.4rem 0.6rem;
}

.gauge__ring { width: 100%; aspect-ratio: 1; }

.gauge__track, .gauge__fill {
  fill: none;
  stroke-width: 8;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.gauge__track { stroke: rgba(255, 255, 255, 0.06); }

.gauge__fill {
  --pct: 0;
  stroke: var(--ok);
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: calc(264 * (1 - var(--pct)));
  transition: --pct 1.6s var(--ease), stroke 0.4s ease;
}

.is-visible .gauge[data-target="84"] .gauge__fill { --pct: 0.84; }
.is-visible .gauge[data-target="4"] .gauge__fill { --pct: 0.04; }
.is-visible .gauge[data-target="6"] .gauge__fill { --pct: 0.06; }
.is-visible .gauge[data-target="2"] .gauge__fill { --pct: 0.02; }

.gauge__readout {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: var(--font-mono);
}

.gauge__num { display: block; font-size: 1.05rem; font-weight: 600; color: var(--text); }
.gauge__unit { display: block; font-size: 0.55rem; color: var(--text-mute); letter-spacing: 0.1em; }

.gauge__label {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-mute);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.5s var(--ease), color 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: var(--d, 0s);
}

.checklist .check-box {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.4s var(--ease);
}

.checklist .check-box .icon {
  width: 12px; height: 12px;
  stroke-width: 3;
  color: transparent;
  transition: color 0.3s var(--ease);
}

.is-visible .checklist li {
  opacity: 1;
  transform: translateX(0);
  color: var(--text-soft);
}

.is-visible .checklist li.is-done .check-box {
  background: var(--ok);
  border-color: var(--ok);
}
.is-visible .checklist li.is-done .check-box .icon { color: var(--bg); }
.is-visible .checklist li.is-done { color: var(--text); }

.device-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--border-strong);
}

.signature-stamp {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.signature-stamp__qr {
  width: 36px; height: 36px;
  color: var(--text-mute);
  transition: color 0.5s var(--ease);
}
.is-visible .signature-stamp__qr { color: var(--brand); }

.signature-stamp__title { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.signature-stamp__hash { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-mute); }

/* Floating approved sticker */
.hero__sticker {
  position: absolute;
  top: -22px;
  right: -18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 104px; height: 104px;
  border-radius: 50%;
  border: 2px dashed var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  background: rgba(255, 182, 39, 0.06);
  backdrop-filter: blur(6px);
  transform: rotate(8deg);
  animation: float-rotate 7s ease-in-out infinite;
  z-index: 2;
}

.hero__sticker span { display: block; }
.hero__sticker .icon { width: 22px; height: 22px; margin-bottom: 4px; stroke-width: 2; }

@keyframes float-rotate {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-8px); }
}
