/* ═══════════════════════════════════════════════════════════
   HealthID — Teaser Landing Page
   Design language: matches slide deck (warm, cream, card-based)
   ═══════════════════════════════════════════════════════════ */

/* ─── Variables ─── */
:root {
  --navy: #0F2B3C;
  --navy-light: #1A3A4F;
  --terracotta: #C4703F;
  --terracotta-light: rgba(196, 112, 63, 0.08);
  --sage: #7A9E7E;
  --bg: #F5F2ED;
  --bg-alt: #EDE9E3;
  --card-bg: #ECEAE5;
  --text: #1A1A1A;
  --text-secondary: #555;
  --white: #FFFFFF;
  --border: rgba(15, 43, 60, 0.08);

  --font-heading: 'DM Serif Display', serif;
  --font-body: 'Inter', sans-serif;

  --nav-height: 68px;
  --container-max: 1060px;
  --section-py: clamp(72px, 10vw, 120px);
  --radius: 12px;
  --radius-lg: 16px;
}

/* ─── Reset ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Pill Badge ─── */
.pill {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill--nav {
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.65rem;
}

.pill--hero {
  background: var(--terracotta-light);
  color: var(--terracotta);
  border: 1px solid rgba(196, 112, 63, 0.2);
}

.pill--footer {
  background: var(--terracotta-light);
  color: var(--terracotta);
  border: 1px solid rgba(196, 112, 63, 0.15);
}

/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav--solid {
  background: var(--bg);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--navy);
}

.nav__links {
  display: flex;
  gap: 28px;
}

.nav__link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

.nav__link:hover {
  color: var(--navy);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__burger.active span:nth-child(2) {
  opacity: 0;
}

.nav__burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 140px 0 80px;
  background: radial-gradient(ellipse at 50% 0%, rgba(196, 112, 63, 0.04) 0%, transparent 60%),
              var(--bg);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
}

.hero__bg canvas {
  width: 100%;
  height: 100%;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: var(--nav-height);
  max-width: 780px;
}

.hero__label {
  display: block;
  font-size: clamp(0.6rem, 0.9vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--terracotta);
  margin-bottom: 28px;
}

.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

.hero__accent {
  width: 60px;
  height: 3px;
  background: var(--terracotta);
  margin: 0 auto 28px;
  border-radius: 2px;
}

.hero__badges {
  margin-bottom: 32px;
}


.hero__brand {
  margin-top: 8px;
}

.hero__brand-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.hero__brand-text strong {
  color: var(--terracotta);
  font-weight: 600;
}

.hero__scroll-hint {
  margin-top: 40px;
  color: rgba(15, 43, 60, 0.2);
  animation: bounce 2.5s ease-in-out infinite;
}

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

/* ═══════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════ */
.section {
  padding: var(--section-py) 0;
  background: var(--bg);
}

.section--alt {
  background: var(--bg-alt);
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 18px;
}

.section__intro {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.75;
}

.section__intro strong {
  color: var(--navy);
  font-weight: 600;
}

/* ─── Section divider ─── */
.section + .section::before {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--terracotta);
  opacity: 0.3;
  margin: 0 auto;
  margin-top: calc(var(--section-py) * -1);
  padding-bottom: 48px;
  border-radius: 1px;
}

/* ─── Card for slide images ─── */
.section__card {
  max-width: 920px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: 0 4px 24px rgba(15, 43, 60, 0.06);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.section__card:hover {
  box-shadow: 0 8px 36px rgba(15, 43, 60, 0.1);
  transform: translateY(-2px);
}

.section--alt .section__card {
  background: var(--bg);
}

.section__card img {
  width: 100%;
  border-radius: var(--radius);
}

/* ═══════════════════════════════════════════════════════════
   STATS BANNER
   ═══════════════════════════════════════════════════════════ */
.stats-banner {
  background: var(--navy);
  padding: 64px 0;
}

.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  text-align: center;
}

.stat {
  flex: 1;
}

.stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--terracotta);
  margin-bottom: 8px;
}

.stat__label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
}

.stat__divider {
  width: 1px;
  height: 64px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   BUILT FOR
   ═══════════════════════════════════════════════════════════ */
.built-for {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.built-for__card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.built-for__card:hover {
  box-shadow: 0 8px 32px rgba(15, 43, 60, 0.08);
  transform: translateY(-2px);
}

.built-for__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--terracotta-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--terracotta);
}

.built-for__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.built-for__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════════ */
.cta {
  padding: var(--section-py) 0;
}

.cta__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}

.cta__subtitle {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
}

.cta__button {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--white);
  background: var(--terracotta);
  padding: 14px 36px;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta__button:hover {
  background: #B5633A;
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-alt);
  padding: 56px 0 28px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--navy);
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

.footer__line {
  height: 1px;
  background: var(--border);
  max-width: var(--container-max);
  margin: 36px auto;
  padding: 0 24px;
}

.footer__bottom {
  text-align: center;
}

.footer__bottom p {
  font-size: 0.78rem;
  color: rgba(26, 26, 26, 0.35);
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in hero */
.hero .fade-up:nth-child(1) { transition-delay: 0.1s; }
.hero .fade-up:nth-child(2) { transition-delay: 0.2s; }
.hero .fade-up:nth-child(3) { transition-delay: 0.3s; }
.hero .fade-up:nth-child(4) { transition-delay: 0.4s; }
.hero .fade-up:nth-child(5) { transition-delay: 0.5s; }
.hero .fade-up:nth-child(6) { transition-delay: 0.6s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__scroll-hint {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .nav__links {
    gap: 18px;
  }

  .nav__link {
    font-size: 0.78rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .nav__burger {
    display: flex;
  }

  .pill--nav {
    display: none;
  }

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border-top: 1px solid var(--border);
  }

  .nav__links.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    font-size: 1rem;
    color: var(--text-secondary);
  }

  .hero__headline {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .hero__subtitle {
    padding: 0 4px;
  }

  .hero__image {
    max-width: 100%;
    margin-top: 8px;
    padding: 0 8px;
  }

  .section__header {
    margin-bottom: 28px;
  }

  .section__card {
    padding: 4px;
    border-radius: var(--radius);
    margin: 0 -4px;
  }

  .section__card img {
    border-radius: 8px;
  }

  .stats {
    flex-direction: column;
    gap: 32px;
  }

  .stat__divider {
    width: 48px;
    height: 1px;
  }

  .built-for {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .built-for__card {
    padding: 28px 24px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer__brand {
    text-align: center;
  }
}
