/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 76vh;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
}

.hero-content {
  padding: clamp(80px, 10vh, 130px) clamp(40px, 4vw, 80px) clamp(60px, 8vh, 100px) clamp(40px, 8vw, 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 28px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent-bright);
}

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.875rem, 5.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--fg);
  margin-bottom: 24px;
  text-wrap: balance;
}

:root[data-theme="dark"] .hero-title { color: var(--white); }

.hero-title em {
  font-style: italic;
  color: var(--accent-bright);
}

.hero-desc {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
}

:root[data-theme="dark"] .stat-value { color: var(--white); }

.stat-label {
  font-size: 0.6875rem;
  color: var(--fg-subtle);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* hero media */
.hero-visual {
  position: relative;
  overflow: hidden;
}

/* gradient fade from text column into video */
.hero-visual::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 280px;
  background: linear-gradient(
    to right,
    var(--bg)        0%,
    var(--bg)        10%,
    color-mix(in srgb, var(--bg) 80%, transparent) 35%,
    color-mix(in srgb, var(--bg) 45%, transparent) 55%,
    color-mix(in srgb, var(--bg) 15%, transparent) 75%,
    transparent      100%
  );
  z-index: 4;
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  max-width: none;
  aspect-ratio: unset;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: none;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* shown only when video file is missing */
.hero-media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--fg-subtle);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  pointer-events: none;
}

/* hide placeholder once video loads */
.hero-video:not([src=""]) ~ .hero-media-placeholder { display: none; }

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.32) 0%, transparent 50%);
  pointer-events: none;
}

.device-card {
  position: relative;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 0.75rem;
  min-width: 148px;
}

/* ── METRICS STRIP ── */
.metrics-strip {
  background: #080808;
  padding: 0 clamp(40px, 8vw, 120px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.metrics-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 110px;
}

/* status */
.ms-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-right: 32px;
}

.ms-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.6);
  animation: ms-ping 2s ease-out infinite;
  flex-shrink: 0;
}

@keyframes ms-ping {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.ms-status-text {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4ade80;
  white-space: nowrap;
}

/* dividers */
.ms-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
  margin: 0 32px;
}

/* metric block */
.ms-metric {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ms-metric-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.ms-metric-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.625rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.ms-bpm {
  animation: ms-heartbeat 1.8s ease-in-out infinite;
}

@keyframes ms-heartbeat {
  0%, 100% { opacity: 1; }
  45%       { opacity: 1; }
  50%       { opacity: 0.7; transform: scale(1.04); }
  55%       { opacity: 1; transform: scale(1); }
}

.ms-unit {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0;
}

/* ECG */
.ms-ecg {
  width: 120px;
  height: 22px;
  margin-top: 4px;
  overflow: visible;
}

.ms-ecg-path {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: ms-ecg-draw 2.4s linear infinite;
}

@keyframes ms-ecg-draw {
  0%   { stroke-dashoffset: 420; opacity: 0.3; }
  15%  { opacity: 1; }
  80%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* badge */
.ms-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  width: fit-content;
  margin-top: 2px;
}

.ms-badge-ok {
  background: rgba(74,222,128,0.12);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,0.25);
}

/* specs */
.ms-specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-left: auto;
  padding-left: 32px;
}

.ms-spec {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

/* ── CARD INTERNALS ── */
.card-label {
  color: var(--fg-subtle);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  font-weight: 600;
}

.card-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

:root[data-theme="dark"] .card-value { color: var(--white); }

.card-value .unit {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--fg-muted);
}

.card-pulse {
  display: flex;
  gap: 2px;
  margin-top: 8px;
  align-items: flex-end;
  height: 22px;
}

.pulse-bar {
  width: 3px;
  border-radius: 2px;
  background: var(--accent-bright);
  animation: pulse-anim 1.6s ease-in-out infinite;
}

.pulse-bar:nth-child(1) { height: 7px;  animation-delay: 0s; }
.pulse-bar:nth-child(2) { height: 18px; animation-delay: 0.12s; }
.pulse-bar:nth-child(3) { height: 10px; animation-delay: 0.24s; }
.pulse-bar:nth-child(4) { height: 16px; animation-delay: 0.36s; }
.pulse-bar:nth-child(5) { height: 5px;  animation-delay: 0.48s; }
.pulse-bar:nth-child(6) { height: 13px; animation-delay: 0.60s; }
.pulse-bar:nth-child(7) { height: 20px; animation-delay: 0.72s; }
.pulse-bar:nth-child(8) { height: 9px;  animation-delay: 0.84s; }

@keyframes pulse-anim {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) { .pulse-bar { animation: none; opacity: 0.7; } }

.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-bright);
  margin-right: 5px;
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}
