/* Design refresh layered on top of styles.css (Start Bootstrap "New Age" theme). */

:root {
  --brand: #9E1554;
  --brand-dark: #6e0d3a;
  --brand-glow: rgba(158, 21, 84, 0.28);
  --surface-alt: #faf6f8;
  --ink: #1a1620;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --shadow-soft: 0 24px 60px -28px rgba(26, 22, 32, 0.35);
  --shadow-lift: 0 16px 32px -16px rgba(158, 21, 84, 0.35);
}

body {
  font-family: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.accent-serif {
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--brand);
}

/* Navbar: frosted glass instead of flat white */
#mainNav {
  background-color: rgba(255, 255, 255, 0.75) !important;
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(26, 22, 32, 0.06) !important;
  transition: background-color 0.2s ease;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 50rem;
  background: var(--surface-alt);
  border: 1px solid rgba(158, 21, 84, 0.15);
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}
.eyebrow-badge i {
  font-size: 0.9rem;
}

/* Hero */
.masthead {
  background-color: var(--surface-alt);
  background-image: radial-gradient(circle at 15% 20%, rgba(158, 21, 84, 0.08), transparent 45%);
  padding-top: 10.5rem;
}
.masthead h1 {
  letter-spacing: -0.02em;
}

.masthead-device-mockup {
  position: relative;
}
.masthead-device-mockup::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(closest-side, var(--brand-glow), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}
.masthead-device-mockup #hero-visual-root {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Live heart-rate visual (React component, replaces the old phone screenshot/video) */
.hr-visual {
  width: min(21rem, 100%);
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #211a26, #171018);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.hr-visual-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.hr-live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: hr-live-pulse 1.8s ease-out infinite;
}
.hr-live-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.hr-heart-icon {
  margin-left: auto;
  color: var(--brand);
  animation: hr-heartbeat 1.1s ease-in-out infinite;
}
.hr-bpm-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.hr-bpm-number {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hr-bpm-unit {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}
.hr-wave-frame {
  overflow: hidden;
  width: 100%;
  height: 4.5rem;
  margin-bottom: 1.5rem;
}
.hr-wave-svg {
  width: 200%;
  height: 100%;
  display: block;
  animation: hr-wave-scroll 3.2s linear infinite;
}
.hr-wave-line {
  fill: none;
  stroke: var(--brand);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.hr-stat-row {
  display: flex;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hr-stat {
  text-align: center;
}
.hr-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hr-stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
}

@keyframes hr-live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}
@keyframes hr-heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.25);
  }
  40% {
    transform: scale(1);
  }
  55% {
    transform: scale(1.15);
  }
}
@keyframes hr-wave-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hr-live-dot,
  .hr-heart-icon,
  .hr-wave-svg {
    animation: none;
  }
}

.social-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}
.social-proof-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.social-proof-item i {
  color: var(--brand);
}
.social-proof-item .bi-star-fill {
  color: #f5b400;
}
.social-proof-divider {
  color: rgba(26, 22, 32, 0.25);
}

.badge-link {
  display: inline-block;
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.badge-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

/* Testimonial / quote aside */
.bg-gradient-primary-to-secondary {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand)) !important;
  position: relative;
  overflow: hidden;
}
.bg-gradient-primary-to-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.12), transparent 55%);
  pointer-events: none;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.icon-badge img {
  height: 3rem;
}

/* .text-gradient's stops are identical (#9E1554 -> #9E1554), so it's really just
   a solid color applied via background-clip:text. That trick doesn't reach the
   ::before pseudo-element Bootstrap Icons render into, leaving icons invisible.
   Set color directly instead. */
.text-gradient {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--brand);
}

/* Reviews / testimonials */
#reviews {
  background-color: #fff;
}
.testimonial-card {
  height: 100%;
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  border: 1px solid rgba(26, 22, 32, 0.05);
}
.testimonial-stars {
  color: #f5b400;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.testimonial-quote {
  color: var(--ink);
  font-size: 1.02rem;
}
.testimonial-author {
  font-weight: 700;
}
.testimonial-source {
  font-size: 0.8rem;
  color: rgba(26, 22, 32, 0.5);
}
.reviews-link {
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}
.reviews-link:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* Feature cards */
#features {
  background-color: #fff;
}
.feature-card {
  height: 100%;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  border: 1px solid rgba(26, 22, 32, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}
.feature-card .icon-feature {
  font-size: 2.5rem;
  width: 4rem;
  height: 4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(158, 21, 84, 0.08);
  margin-bottom: 1rem;
}

/* CTA section: swap dated stock photo for a brand-toned gradient mesh */
section.cta {
  background-image: none;
  background: radial-gradient(circle at 20% 20%, rgba(158, 21, 84, 0.9), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(110, 13, 58, 0.9), transparent 55%), #171018;
  padding: 8rem 0;
}
section.cta:before {
  content: none;
}

/* Camera scan visual (features section) */
.scan-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 3rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  border: 1px solid rgba(26, 22, 32, 0.05);
}
.scan-rings {
  position: relative;
  width: 9rem;
  height: 9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scan-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--brand);
  opacity: 0;
  animation: scan-ping 2.7s ease-out infinite;
}
.scan-ring-2 {
  animation-delay: 0.9s;
}
.scan-ring-3 {
  animation-delay: 1.8s;
}
.scan-lens {
  position: relative;
  z-index: 1;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--brand-dark), var(--brand));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lift);
}
.scan-status {
  min-height: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  animation: scan-fade-in 0.35s ease;
}
@keyframes scan-ping {
  0% {
    transform: scale(0.6);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
@keyframes scan-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* How-it-works step visual */
.steps-visual {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0.25rem;
  padding: 2.5rem 1.25rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(26, 22, 32, 0.08);
  box-shadow: var(--shadow-soft);
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 6.5rem;
  text-align: center;
}
.step-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  color: rgba(26, 22, 32, 0.35);
  font-size: 1.3rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.step-item-active .step-icon {
  background: var(--brand);
  color: #fff;
  transform: scale(1.08);
}
.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(26, 22, 32, 0.5);
  transition: color 0.3s ease;
}
.step-item-active .step-label {
  color: var(--ink);
}
.step-connector {
  flex: 0 1 3rem;
  height: 2px;
  margin-top: 1.6rem;
  background: rgba(26, 22, 32, 0.1);
  transition: background 0.3s ease;
}
.step-connector-active {
  background: var(--brand);
}

@media (max-width: 420px) {
  .steps-visual {
    flex-direction: column;
    align-items: center;
  }
  .step-connector {
    width: 2px;
    height: 1.5rem;
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scan-ring {
    animation: none;
    opacity: 0.35;
  }
  .scan-status {
    animation: none;
  }
}

/* Buttons */
.btn-primary {
  background-color: var(--brand);
  border-color: var(--brand);
}
.btn-primary:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
}
