/* ==========================================================================
   Health BETA — Master Stylesheet
   Genomic Guided Sustainable Functional Health
   Fidelity Conversion from Figma Design
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

:root {
  /* Typography */
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', Menlo, Monaco, Consolas, monospace;

  /* Color Palette */
  --color-dark-bg: #0b0e14;
  --color-card-dark: rgba(22, 26, 35, 0.75);
  --color-glass-border: rgba(255, 255, 255, 0.28);
  --color-glass-bg: rgba(255, 255, 255, 0.12);
  --color-glass-pill: rgba(255, 255, 255, 0.18);
  --color-text-white: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.78);
  --color-text-dim: rgba(255, 255, 255, 0.55);

  --color-light-bg: #ffffff;
  --color-light-section: #f7f6f9;
  --color-light-border: #e2e1e7;
  --color-text-dark: #191622;
  --color-text-subtle: #5a5568;
  --color-text-secondary: #777284;

  /* Accents */
  --accent-pink: #ff3399;
  --accent-pink-glow: rgba(255, 51, 153, 0.45);
  --accent-cyan: #00b4d8;
  --accent-cyan-glow: rgba(0, 180, 216, 0.45);
  --accent-purple: #9966cc;
  --accent-gradient: linear-gradient(135deg, #ff3399 0%, #9966cc 50%, #00b4d8 100%);
  --accent-cyan-gradient: linear-gradient(90deg, #00b4d8 0%, #0096c7 100%);

  /* Layout */
  --max-width: 1440px;
  --header-height: 88px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   CSS Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 56px);
}

/* ==========================================================================
   Navigation Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal), border-color var(--transition-normal);
  background: linear-gradient(180deg, rgba(11, 14, 20, 0.85) 0%, rgba(11, 14, 20, 0) 100%);
}

.site-header.scrolled {
  background: rgba(11, 14, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 56px);
}

.header-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-fast);
  position: relative;
  padding-block: 6px;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

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

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.btn-mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  padding: 8px;
}

.btn-mobile-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ==========================================================================
   Hero Showcase Carousel
   ========================================================================== */
.hero-showcase {
  position: relative;
  min-height: 850px;
  height: 92vh;
  max-height: 1000px;
  background-color: var(--color-dark-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-slider-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--header-height) + 16px);
  padding-bottom: 72px;
}

.hero-slider-track.is-ready .hero-slide {
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  filter: none;
}

.hero-overlay {
  display: none;
}

.hero-slide-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 56px);
}

/* Slide 1 — GxL in actions */
.hero-slide#slide-1 {
  overflow: visible;
}

.hero-slide#slide-1 .hero-slide-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding-inline: 0;
  box-sizing: border-box;
}

.slide-gxl-card {
  position: relative;
  width: 1260px;
  min-width: 1260px;
  max-width: 1260px;
  height: 337px;
  min-height: 337px;
  max-height: 337px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 44px 0 0 0;
  text-align: center;
  border-radius: 25px;
  flex-shrink: 0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

/* Punched Glassmorphism Background Layer with SVG Mask Cutouts */
.slide-gxl-card-bg {
  position: absolute;
  inset: 0;
  border-radius: 25px;
  background: rgba(45, 48, 58, 0.35);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  --shape: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%201260%20337%27%3E%3Cmask%20id%3D%27m%27%3E%3Crect%20width%3D%271260%27%20height%3D%27337%27%20rx%3D%2725%27%20fill%3D%27white%27/%3E%3Cg%20fill%3D%27black%27%3E%3Ccircle%20cx%3D%27150%27%20cy%3D%2784%27%20r%3D%2740%27/%3E%3Ccircle%20cx%3D%27270%27%20cy%3D%2784%27%20r%3D%2740%27/%3E%3Ccircle%20cx%3D%27390%27%20cy%3D%2784%27%20r%3D%2740%27/%3E%3Ccircle%20cx%3D%27510%27%20cy%3D%2784%27%20r%3D%2740%27/%3E%3Ccircle%20cx%3D%27630%27%20cy%3D%2784%27%20r%3D%2740%27/%3E%3Ccircle%20cx%3D%27750%27%20cy%3D%2784%27%20r%3D%2740%27/%3E%3Ccircle%20cx%3D%27870%27%20cy%3D%2784%27%20r%3D%2740%27/%3E%3Ccircle%20cx%3D%27990%27%20cy%3D%2784%27%20r%3D%2740%27/%3E%3Ccircle%20cx%3D%271110%27%20cy%3D%2784%27%20r%3D%2740%27/%3E%3C/g%3E%3C/mask%3E%3Crect%20width%3D%271260%27%20height%3D%27337%27%20rx%3D%2725%27%20fill%3D%27white%27%20mask%3D%27url(%23m)%27/%3E%3C/svg%3E");
  -webkit-mask: var(--shape) center / 100% 100% no-repeat;
  mask: var(--shape) center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 1;
}

/* Crisp stroke outline for glass border and punch-through holes */
.glass-outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 0.75;
  pointer-events: none;
  z-index: 2;
}

/* Foreground Content */
.slide-gxl-card-content {
  position: relative;
  z-index: 3;
}

.gxl-icon-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  height: 80px;
  margin: 0 auto 24px;
  flex-wrap: nowrap;
}

/* 7 Punched-Through Rounds */
.gxl-icon-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  background: transparent;
  padding: 16px;
  flex-shrink: 0;
  box-sizing: border-box;
  pointer-events: none;
  cursor: default;
}

.gxl-icon-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* Negative Effect for Diet (Precision Nutrition) and Exercise */
.gxl-icon-item.negative-effect {
  width: 80px;
  height: 80px;
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: none;
  border-radius: 50%;
  pointer-events: none;
}

.gxl-icon-item.negative-effect img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: fill;
  display: block;
  pointer-events: none;
}

.slide-gxl-card .hero-title {
  font-family: var(--font-serif);
  font-size: 54px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-text-white);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  white-space: nowrap;
  text-wrap: nowrap;
}

.slide-gxl-card .divider-line {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 16px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 18%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(255, 255, 255, 0.45) 82%,
    rgba(255, 255, 255, 0) 100%
  );
}

.slide-gxl-card .hero-desc {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
  max-width: 860px;
  margin-inline: auto;
}

.slide-gxl-card .hero-desc-highlight {
  display: block;
  font-weight: 600;
  color: #ffffff;
  margin-top: 4px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4.4vw, 4.25rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--color-text-white);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero-desc {
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 820px;
  margin-inline: auto;
}

.hero-desc-highlight {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-weight: 500;
}

/* Slide 2 — Biology Pathways */
.hero-slide#slide-2 {
  padding: 0;
  display: block;
  overflow: hidden;
}

.hero-slide#slide-2 .hero-slide-container {
  position: relative;
  width: 100%;
  max-width: 1512px;
  height: 100%;
  margin-inline: auto;
  padding: 0;
  pointer-events: none;
}

.slide-pathways-layout {
  position: relative;
  width: 100%;
  height: 100%;
}

.pathways-glass-card {
  position: absolute;
  left: 112px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  min-height: 313px;
  box-sizing: border-box;
  margin: 0;
  padding: 34px 38px 28px 40px;
  text-align: left;
  background: rgba(45, 48, 58, 0.35);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 25px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.pathways-glass-card .hero-title {
  font-family: var(--font-serif);
  font-size: 54px;
  line-height: 1.05;
  font-weight: 400;
  color: var(--color-text-white);
  letter-spacing: -0.01em;
  margin-bottom: 0;
  text-align: left;
}

.pathways-glass-card .divider-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 18%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(255, 255, 255, 0.45) 82%,
    rgba(255, 255, 255, 0) 100%
  );
  margin-block: 20px;
}

.pathways-glass-card .hero-desc {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  text-align: left;
}

/* Frame 81 Matrix & Biological Pathways */
.pathways-interactive-matrix,
.frame-81 {
  position: absolute;
  left: 531px;
  top: 60%;
  transform: translateY(-50%);
  width: 1175px;
  height: 709px;
  pointer-events: none;
  background: transparent;
}

.frame-81 *,
.frame-81 *::before,
.frame-81 *::after,
.pathways-interactive-matrix *,
.pathways-interactive-matrix *::before,
.pathways-interactive-matrix *::after {
  box-sizing: border-box;
}

.frame-81 [data-node-id],
.pathways-interactive-matrix [data-node-id] {
  position: absolute;
}

.frame-81 .glass,
.frame-81 .solid,
.frame-81 .gene-pill,
.pathways-interactive-matrix .glass,
.pathways-interactive-matrix .solid,
.pathways-interactive-matrix .gene-pill {
  border-radius: 25px;
}

.frame-81 .glass,
.pathways-interactive-matrix .glass {
  background: rgb(169 169 169 / 25%);
  box-shadow: inset 0 0 0 0.5px #fff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1;
}

.frame-81 .solid,
.pathways-interactive-matrix .solid {
  background: #fff;
  opacity: 0.8;
  z-index: 1;
}

.frame-81 .label,
.pathways-interactive-matrix .label {
  margin: 0;
  color: #fff;
  font-family: var(--font-sans, "Inter", sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.01em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  display: flex;
  align-items: center;
  z-index: 2;
}

.frame-81 .gene-pill,
.pathways-interactive-matrix .gene-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(255 255 255 / 80%);
  color: #000;
  font-family: var(--font-sans, "Inter", sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

.frame-81 .gene-pill-svg,
.pathways-interactive-matrix .gene-pill-svg {
  display: block;
  background: transparent;
  pointer-events: none;
  z-index: 2;
  object-fit: fill;
  max-width: none;
  border-radius: 25px;
}

/* Top row */
[data-node-id="26:280"] { left: 213.42px; top: 176px; width: 295px; height: 47px; }
[data-node-id="26:281"] { left: 237.42px; top: 191px; width: 255px; height: 18px; }
[data-node-id="26:267"] { left: 533.42px; top: 176px; width: 150px; height: 47px; }
[data-node-id="26:265"] { left: 708.42px; top: 176px; width: 47.48px; height: 47.48px; }
[data-node-id="26:266"] { left: 780.42px; top: 176px; width: 75.97px; height: 47.48px; }
[data-node-id="26:264"] { left: 881.42px; top: 176px; width: 150px; height: 47px; }

/* Second row */
[data-node-id="26:247"] { left: 200.23px; top: 248.46px; width: 75.97px; height: 47.48px; }
[data-node-id="26:246"] { left: 300.89px; top: 248.46px; width: 47.48px; height: 47.48px; }
[data-node-id="26:248"] { left: 373.42px; top: 248px; width: 423px; height: 48px; }
[data-node-id="26:263"] { left: 395.42px; top: 263px; width: 413px; height: 18px; }
[data-node-id="26:249"] { left: 824.42px; top: 248px; width: 150px; height: 48px; }

/* Third row */
[data-node-id="26:226"] { left: 251.75px; top: 325.38px; width: 75.97px; height: 47.48px; }
[data-node-id="26:227"] { left: 349.42px; top: 325px; width: 335px; height: 48px; }
[data-node-id="26:245"] { left: 377.42px; top: 341px; width: 287px; height: 18px; }
[data-node-id="26:225"] { left: 708.29px; top: 325.38px; width: 75.97px; height: 47.48px; }
[data-node-id="26:228"] { left: 806.1px; top: 325px; width: 180px; height: 48px; }

/* Fourth row */
[data-node-id="26:203"] { left: 124.42px; top: 401px; width: 210px; height: 48px; }
[data-node-id="26:201"] { left: 362.85px; top: 401px; width: 75.97px; height: 48px; }
[data-node-id="26:202"] { left: 467.42px; top: 401px; width: 450px; height: 48px; }
[data-node-id="26:223"] { left: 490.42px; top: 401px; width: 402px; height: 48px; }
[data-node-id="26:224"] { left: 940.17px; top: 401px; width: 75.97px; height: 48px; }

/* Bottom row */
[data-node-id="26:199"] { left: 101px; top: 486px; width: 75.97px; height: 47.48px; }
[data-node-id="26:173"] { left: 211.66px; top: 486px; width: 47.48px; height: 47.48px; }
[data-node-id="26:172"] { left: 280.42px; top: 486px; width: 430px; height: 47px; }
[data-node-id="26:200"] { left: 307.42px; top: 501px; width: 409px; height: 18px; }
[data-node-id="26:175"] { left: 741.22px; top: 486px; width: 270px; height: 48px; }

/* Slide 3 — Way of Living as Medicine */
.hero-slide#slide-3 {
  padding: 0;
  display: block;
}

.hero-slide#slide-3 .hero-slide-container {
  position: relative;
  width: 100%;
  max-width: 1512px;
  height: 100%;
  margin-inline: auto;
  padding: 0;
  pointer-events: none;
}

.slide-medicine-layout {
  position: static;
  width: 100%;
  height: 100%;
}

.medicine-glass-card {
  position: absolute;
  top: 150px;
  right: 250px;
  width: 380px;
  min-height: 320px;
  height: auto;
  box-sizing: border-box;
  margin: 0;
  padding: 34px 38px 28px 40px;
  text-align: left;
  background: rgba(45, 48, 58, 0.35);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 25px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.medicine-glass-card .hero-title {
  font-family: var(--font-serif);
  font-size: 54px;
  line-height: 1.05;
  font-weight: 400;
  color: var(--color-text-white);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
}

.medicine-glass-card .divider-line {
  width: 100%;
  max-width: 431px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 18%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(255, 255, 255, 0.45) 82%,
    rgba(255, 255, 255, 0) 100%
  );
  margin: 14px 0 12px 0;
}

.medicine-glass-card .hero-desc {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.48;
  color: rgba(255, 255, 255, 0.92);
  max-width: 300px;
  margin: 0;
  text-align: left;
}

/* Slider Controls */
.hero-controls {
  position: absolute;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 18px;
  background: rgba(11, 14, 20, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-nav-btn {
  color: #ffffff;
  opacity: 0.7;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.hero-nav-btn:hover {
  opacity: 1;
  transform: scale(1.15);
}

.hero-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.hero-dot.active {
  width: 26px;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Live Status & Metrics Stream
   ========================================================================== */
.status-stream-section {
  position: relative;
  z-index: 20;
  margin-top: 0;
  padding-top: 36px;
  padding-bottom: 44px;
  background-color: var(--color-light-bg);
}

.status-pill-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
  min-height: 76px;
  max-height: 76px;
  padding: 0 26px;
  background: #ffffff;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 40px rgba(20, 15, 35, 0.10), 0 2px 6px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  overflow: hidden;
}

.status-indicator-col {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 390px;
  max-width: 390px;
  min-width: 0;
}

.pulse-ring-wrapper {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pulse-ring {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3.5px solid var(--accent-pink);
  animation: pulse-ring-anim 2s infinite ease-out;
}

@keyframes pulse-ring-anim {
  0% { transform: scale(0.95); opacity: 1; box-shadow: 0 0 0 0 var(--accent-pink-glow); }
  70% { transform: scale(1.05); opacity: 0.8; box-shadow: 0 0 0 8px rgba(255, 51, 153, 0); }
  100% { transform: scale(0.95); opacity: 1; }
}

.status-text-rotator {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.status-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text-dark);
  letter-spacing: -0.01em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.status-subtitle {
  font-size: 0.8rem;
  color: var(--color-text-subtle);
  letter-spacing: 0.01em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.status-badges-col {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  border: 1px solid #dcdbe3;
  background: #f8f8fb;
  color: var(--color-text-subtle);
  font-size: 0.81rem;
  font-weight: 500;
  white-space: nowrap;
  box-sizing: border-box;
  overflow: hidden;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.metric-pill:hover {
  background: #ffffff;
  border-color: #b5b2c4;
  color: var(--color-text-dark);
}

#food-processed-pill,
#case-gen-pill {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
}

.metric-text {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.metric-val {
  color: #191622;
  font-weight: 600;
  margin-inline: 4px;
}

.metric-val.at-start {
  margin-inline-start: 0;
}

.metric-val.font-mono {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn-cyan-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  padding: 0 24px;
  border-radius: var(--radius-full);
  background: var(--accent-cyan-gradient);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 18px var(--accent-cyan-glow);
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.btn-cyan-action:hover {
  background: linear-gradient(90deg, #00c0e8 0%, #0088b3 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 180, 216, 0.55);
}

/* ==========================================================================
   Section Title Utility
   ========================================================================== */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: 400;
  text-align: center;
  color: var(--color-text-dark);
  letter-spacing: -0.01em;
  margin-bottom: 56px;
}

/* ==========================================================================
   Partnership Section
   ========================================================================== */
.partnerships-section {
  padding-block: 42px 48px;
  background-color: var(--color-light-bg);
  overflow: hidden;
  position: relative;
}

.partnerships-section .section-title {
  margin-bottom: 24px;
}

/* Continuous Carousel Wrapper & Fade Mask */
.partners-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-block: 4px 8px;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 72px,
    black calc(100% - 72px),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 72px,
    black calc(100% - 72px),
    transparent 100%
  );
}

.partners-marquee-track {
  display: flex;
  width: max-content;
  user-select: none;
}

.partners-marquee-group {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  padding-right: 64px; /* Matches gap exactly for seamless continuous loop */
  flex-shrink: 0;
  list-style: none;
  animation: partnerMarquee 36s linear infinite;
  will-change: transform;
}

.partners-marquee-wrapper:hover .partners-marquee-group,
.partners-marquee-wrapper:focus-within .partners-marquee-group {
  animation-play-state: paused;
}

@keyframes partnerMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 200px;
  flex-shrink: 0;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.partner-card:hover {
  transform: translateY(-3px);
}

.partner-logo-box {
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.partner-logo-box img {
  max-width: 185px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: contrast(1.02);
  transition: transform var(--transition-fast);
}

.partner-card:hover .partner-logo-box img {
  transform: scale(1.06);
}

.partner-name {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: #191622;
  line-height: 1.35;
  text-align: center;
  max-width: 195px;
  min-height: 2.7em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transition: color var(--transition-fast);
}

.partner-card:hover .partner-name {
  color: var(--color-cyan-glow);
}

@media (prefers-reduced-motion: reduce) {
  .partners-marquee-group {
    animation-play-state: paused;
  }
}

/* ==========================================================================
   Team Section
   ========================================================================== */
.team-section {
  position: relative;
  padding-block: 96px 112px;
  background-color: #f6f4f9;
  background-image: linear-gradient(rgba(246, 244, 249, 0.88), rgba(246, 244, 249, 0.88)), url('../images/team-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.team-grid-primary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
  max-width: 1080px;
  margin-inline: auto;
  margin-bottom: 64px;
}

.team-grid-secondary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
  max-width: 1200px;
  margin-inline: auto;
}

.team-member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform var(--transition-fast);
}

.team-member-card:hover {
  transform: translateY(-6px);
}

.member-photo-box {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1.05;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #e5e1eb;
  margin-bottom: 20px;
  box-shadow: 0 12px 32px rgba(25, 20, 40, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--transition-slow);
}

.team-member-card:hover .member-photo {
  transform: scale(1.05);
}

.member-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 4px;
  line-height: 1.25;
}

.member-role {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-subtle);
  line-height: 1.35;
}

.member-credentials {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 6px;
  max-width: 240px;
  line-height: 1.35;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #ebecee;
  color: var(--color-text-subtle);
  padding-block: 72px 32px;
  border-top: 1px solid var(--color-light-border);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: clamp(36px, 6vw, 84px);
  margin-bottom: 64px;
}

.footer-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 22px;
}

.footer-about-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #555160;
  max-width: 460px;
}

.footer-heading {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.footer-link {
  font-size: 0.95rem;
  color: #555160;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-link:hover {
  color: var(--color-text-dark);
  transform: translateX(3px);
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #555160;
}

.contact-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.footer-social-wrapper {
  margin-top: 28px;
}

.social-icons-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: #3b5998;
  border: 1px solid #d5d3dc;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-icon-btn.linkedin { color: #0077b5; }
.social-icon-btn.facebook { color: #1877f2; }
.social-icon-btn.instagram { color: #e4405f; }
.social-icon-btn.youtube { color: #ff0000; }

.social-icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-color: #b5b2c0;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid #d7d5dc;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-legal-links a:hover {
  color: var(--color-text-dark);
}

/* ==========================================================================
   Modals & Drawers
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(11, 14, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: all var(--transition-normal);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0edf4;
  color: var(--color-text-dark);
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #e2dee8;
  transform: scale(1.1);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--color-text-subtle);
  margin-bottom: 24px;
}

.modal-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.modal-form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.modal-form-group input {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-light-border);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.modal-form-group input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.btn-modal-submit {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 12px;
  box-shadow: 0 4px 16px var(--accent-pink-glow);
  transition: all var(--transition-fast);
}

.btn-modal-submit:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-showcase { min-height: 800px; }
  .team-grid-primary { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
  .team-grid-secondary { grid-template-columns: repeat(2, 1fr); max-width: 680px; gap: 36px 28px; }
  .status-stream-section { margin-top: 0; padding-top: 28px; padding-bottom: 36px; }
  .status-pill-card {
    height: auto;
    min-height: auto;
    max-height: none;
    flex-wrap: wrap;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    gap: 16px;
    justify-content: center;
  }
  .status-indicator-col { flex: 1 1 100%; max-width: 100%; justify-content: center; }
  .status-text-rotator { align-items: center; }
  .status-badges-col { flex-wrap: wrap; width: 100%; gap: 12px; }
  #food-processed-pill, #case-gen-pill { min-width: 0; flex: 1 1 0; }
  .footer-top-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .header-nav { display: none; }
  .btn-mobile-menu { display: flex; }

  .site-header.nav-open .header-nav {
    display: flex;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(11, 14, 20, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 28px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
    gap: 24px;
  }

  .site-header.nav-open .nav-links {
    flex-direction: column;
    gap: 18px;
    width: 100%;
    align-items: center;
  }

  .site-header.nav-open .header-actions {
    width: 100%;
    justify-content: center;
  }

  .site-header.nav-open .btn-login {
    width: 100%;
    max-width: 240px;
  }

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

  .btn-mobile-menu.active span:nth-child(2) {
    opacity: 0;
  }

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

  .hero-showcase { min-height: 820px; height: auto; }
  .hero-slide { padding-top: calc(var(--header-height) + 16px); padding-bottom: 76px; }

  /* Slide 3 Mobile/Tablet Polish */
  .hero-slide#slide-3 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: calc(var(--header-height) + 16px);
    padding-bottom: 76px;
  }
  .hero-slide#slide-3 .hero-slide-container {
    position: static;
    height: auto;
    padding-inline: 20px;
    pointer-events: auto;
  }
  .slide-medicine-layout {
    display: flex;
    justify-content: center;
  }
  .medicine-glass-card {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 400px;
    height: auto;
    padding: 32px 28px;
    border-radius: 20px;
  }
  .medicine-glass-card .hero-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
  }

  .status-stream-section { margin-top: 0; padding-top: 24px; padding-bottom: 32px; }
  .partners-marquee-group { gap: 48px; padding-right: 48px; animation-duration: 28s; }
  .partner-card { width: 175px; }
  .partner-logo-box { height: 60px; }
  .partner-logo-box img { max-height: 48px; max-width: 160px; }
  .partner-name { font-size: 0.86rem; }
  .team-grid-primary { grid-template-columns: repeat(1, 1fr); max-width: 340px; }
  .team-grid-secondary { grid-template-columns: repeat(1, 1fr); max-width: 340px; }
  .status-badges-col { flex-direction: column; align-items: stretch; width: 100%; gap: 10px; }
  .metric-pill { justify-content: center; }
  #food-processed-pill, #case-gen-pill { width: 100%; flex: 1 1 auto; }
  .btn-cyan-action { width: 100%; }
}

@media (max-width: 560px) {
  .hero-showcase { min-height: 760px; height: auto; }
  .hero-slide { padding-top: calc(var(--header-height) + 8px); padding-bottom: 58px; }
  .status-stream-section { margin-top: 0; padding-top: 20px; padding-bottom: 28px; }
  .metric-pill { padding: 0 14px; font-size: 0.78rem; max-width: 100%; }
  .metric-text { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .hero-title { font-size: 1.9rem; line-height: 1.15; }
  .hero-desc { font-size: 0.92rem; line-height: 1.48; }
  /* Slide 3 Mobile Polish */
  .medicine-glass-card { padding: 18px 16px; }
  .medicine-glass-card .hero-title { font-size: 1.75rem; margin-bottom: 6px; }
  .medicine-glass-card .divider-line { margin-block: 10px; }
  .medicine-glass-card .hero-desc { font-size: 0.86rem; line-height: 1.42; }

  /* Mobile Controls */
  .hero-controls { bottom: 12px; padding: 6px 14px; }

  .partners-marquee-wrapper {
    mask-image: linear-gradient(to right, transparent 0%, black 32px, black calc(100% - 32px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 32px, black calc(100% - 32px), transparent 100%);
  }
  .partners-marquee-group { gap: 36px; padding-right: 36px; animation-duration: 24s; }
  .partner-card { width: 155px; padding: 6px 4px; }
  .partner-logo-box { height: 52px; margin-bottom: 8px; }
  .partner-logo-box img { max-height: 42px; max-width: 135px; }
  .partner-name { font-size: 0.8rem; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-row { flex-direction: column; gap: 14px; text-align: center; }
}

/* ==========================================================================
   Health BETA — Legal Pages (Privacy Policy & Terms of Use)
   ========================================================================== */

/* Page Base */
body.legal-page {
  background-color: #f7f9fc;
  color: #1e293b;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.legal-page .site-footer {
  margin-top: auto;
}

/* Subpage Header (Always dark frosted glass on legal pages) */
.subpage-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Legal Hero Banner */
.legal-hero {
  position: relative;
  background: radial-gradient(circle at 50% -20%, #171f2e 0%, #0b0e14 75%);
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 48px;
  color: var(--color-text-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.08) 0%, rgba(255, 51, 153, 0.04) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.legal-hero .container {
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-dim);
  margin-bottom: 24px;
}

.legal-breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.legal-breadcrumb a:hover {
  color: var(--accent-cyan);
}

.legal-breadcrumb .breadcrumb-current {
  color: var(--accent-cyan);
  font-weight: 500;
}

/* Hero Title & Subtitle */
.legal-hero-header {
  margin-bottom: 24px;
}

.legal-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.legal-hero-sub {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  font-weight: 400;
  max-width: 760px;
  line-height: 1.5;
}

/* Hero Meta Badges */
.legal-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-bottom: 32px;
}

.legal-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.legal-meta-badge svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

/* Document Switcher Tabs */
.legal-switcher {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
}

.legal-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.legal-tab svg {
  stroke: currentColor;
  transition: stroke var(--transition-fast);
}

.legal-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.legal-tab.active {
  background: #ffffff;
  color: #0b0e14;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.legal-tab.active svg {
  stroke: #0b0e14;
}

/* Main Section & Two-Column Layout */
.legal-main-section {
  padding-top: 48px;
  padding-bottom: 96px;
  background-color: #f7f9fc;
  flex: 1;
}

.legal-layout-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* Sticky Sidebar & TOC */
.legal-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  max-height: calc(100vh - var(--header-height) - 40px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  padding-right: 4px;
}

.legal-sidebar::-webkit-scrollbar {
  width: 5px;
}

.legal-sidebar::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}

.legal-toc-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.legal-toc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.legal-toc-header svg {
  color: var(--accent-cyan);
}

.legal-toc {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.toc-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #475569;
  transition: all var(--transition-fast);
}

.toc-link:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.toc-link.active {
  color: #0284c7;
  background: #e0f2fe;
  font-weight: 600;
}

.toc-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
  min-width: 18px;
}

.toc-link.active .toc-num {
  color: #0284c7;
  font-weight: 700;
}

.toc-text {
  flex: 1;
}

/* Legal Content Card */
.legal-content-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.04);
}

/* Sections */
.legal-section {
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid #edf2f7;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.legal-section:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.section-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(0, 180, 216, 0.1);
  color: #0369a1;
  border: 1px solid rgba(0, 180, 216, 0.25);
}

.legal-section-heading {
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0;
}

.legal-subheading {
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal-p {
  font-size: 0.96rem;
  line-height: 1.72;
  color: #334155;
  margin-bottom: 16px;
}

.legal-p:last-child {
  margin-bottom: 0;
}

.legal-p strong {
  color: #0f172a;
  font-weight: 600;
}

.legal-lead {
  font-size: 1.04rem;
  line-height: 1.75;
  color: #1e293b;
  margin-bottom: 20px;
}

.legal-inline-link {
  color: #0284c7;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.legal-inline-link:hover {
  color: #0369a1;
}

/* Lists */
.legal-alpha-list {
  list-style-type: lower-alpha;
  padding-left: 28px;
  margin-block: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.96rem;
  line-height: 1.68;
  color: #334155;
}

.legal-alpha-list > li > strong {
  color: #0f172a;
}

.legal-roman-list,
.legal-sub-list-roman {
  list-style-type: lower-roman;
  padding-left: 24px;
  margin-block: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #475569;
}

.legal-sub-list-alpha {
  list-style-type: lower-alpha;
  padding-left: 24px;
  margin-block: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #475569;
}

.legal-bullet-list {
  list-style-type: disc;
  padding-left: 24px;
  margin-block: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.96rem;
  line-height: 1.68;
  color: #334155;
}

/* Definitions Grid */
.legal-definitions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-block: 20px;
}

.legal-def-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--accent-cyan);
  border-radius: 8px;
  padding: 14px 18px;
}

.legal-def-card .legal-p {
  margin-bottom: 0;
}

/* Callout Boxes */
.legal-callout {
  margin-block: 28px;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid;
}

.callout-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.callout-header svg {
  flex-shrink: 0;
}

.callout-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
}

/* Callout — Disclaimer */
.legal-callout.disclaimer {
  background: #fff8f5;
  border-color: #ffd8cc;
  border-left: 5px solid #ea580c;
}

.legal-callout.disclaimer .callout-header svg {
  color: #ea580c;
}

.legal-callout.disclaimer .callout-header h3 {
  color: #9a3412;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.legal-callout.disclaimer ol {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.92rem;
  line-height: 1.68;
  color: #7c2d12;
}

/* Callout — Healthcare Data */
.legal-callout.health-data {
  background: #f0fdfa;
  border-color: #99f6e4;
  border-left: 5px solid #0d9488;
}

.legal-callout.health-data .callout-header svg {
  color: #0d9488;
}

.legal-callout.health-data .callout-header h3 {
  color: #115e59;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.legal-callout.health-data .callout-note {
  border-top-color: rgba(13, 148, 136, 0.25);
}

/* DPO Card */
.legal-dpo-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0284c7;
}

.legal-dpo-card .dpo-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.legal-dpo-card .dpo-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-dpo-card .dpo-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.legal-dpo-card .dpo-entity {
  font-size: 0.92rem;
  color: #475569;
  margin: 0;
}

.legal-dpo-card .dpo-email {
  font-size: 0.94rem;
  color: #334155;
  margin: 0;
}

/* Responsive Styles for Legal Pages */
@media (max-width: 1024px) {
  .legal-layout-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }

  .legal-toc-wrapper {
    padding: 16px;
  }

  .legal-toc {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 6px;
  }
}

@media (max-width: 768px) {
  .legal-hero {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 32px;
  }

  .legal-hero-title {
    font-size: 2.2rem;
  }

  .legal-hero-sub {
    font-size: 1rem;
  }

  .legal-hero-meta {
    gap: 8px 12px;
  }

  .legal-meta-badge {
    font-size: 0.78rem;
    padding: 5px 10px;
  }

  .legal-switcher {
    width: 100%;
    display: flex;
    border-radius: 12px;
  }

  .legal-tab {
    flex: 1;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.84rem;
  }

  .legal-content-card {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .legal-toc {
    grid-template-columns: 1fr;
  }

  .legal-dpo-card {
    flex-direction: column;
    gap: 12px;
  }
}

/* ==========================================================================
   Health BETA — Partners' Resources Page
   ========================================================================== */
body.resources-page {
  background-color: #0b0e14;
  color: var(--color-text-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.resources-page .site-footer {
  margin-top: auto;
}

.resources-hero {
  position: relative;
  background: radial-gradient(circle at 50% -10%, #151d2a 0%, #0b0e14 70%);
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  color: var(--color-text-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  flex: 1;
}

.resources-hero::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.12) 0%, rgba(255, 51, 153, 0.06) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.resources-hero .container {
  position: relative;
  z-index: 1;
}

.resources-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-dim);
  margin-bottom: 28px;
}

.resources-breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.resources-breadcrumb a:hover {
  color: var(--accent-cyan);
}

.resources-breadcrumb .breadcrumb-current {
  color: var(--accent-cyan);
  font-weight: 500;
}

.resources-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.resources-intro {
  max-width: 580px;
}

.resources-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 180, 216, 0.12);
  border: 1px solid rgba(0, 180, 216, 0.3);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.resources-badge svg {
  flex-shrink: 0;
}

.resources-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 400;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 16px;
}

.resources-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text-dim);
  margin-bottom: 32px;
}

.resources-features-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.resources-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.resources-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.resources-feature-text h4 {
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 3px;
}

.resources-feature-text p {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--color-text-dim);
  margin: 0;
}

.resources-card-wrapper {
  display: flex;
  justify-content: center;
}

.resources-login-card {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: var(--color-text-dark);
}

.resources-login-card .modal-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.resources-login-card .modal-desc {
  font-size: 0.95rem;
  color: var(--color-text-subtle);
  margin-bottom: 24px;
  line-height: 1.45;
}

.resources-card-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #eef0f4;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--color-text-subtle);
  text-align: center;
}

.resources-card-footer a {
  color: var(--accent-pink);
  font-weight: 500;
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.resources-card-footer a:hover {
  color: var(--color-text-dark);
}

.resources-cloud-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #0284c7 !important;
  font-weight: 600;
  text-decoration: none !important;
}

.resources-cloud-link:hover {
  color: #0369a1 !important;
  text-decoration: underline !important;
}

@media (max-width: 960px) {
  .resources-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .resources-intro {
    max-width: 100%;
    text-align: center;
  }
  .resources-badge {
    margin-left: auto;
    margin-right: auto;
  }
  .resources-feature-item {
    text-align: left;
  }
  .resources-hero {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 56px;
  }
}

@media (max-width: 500px) {
  .resources-login-card {
    padding: 28px 20px;
  }
  .resources-login-card .modal-title {
    font-size: 1.75rem;
  }
}




