/* ============================================================
   BIOPTIVE — Design System
   Brand: Navy #1a3765 + Sky #5395d0
   Type: Cormorant Garamond (Blair ITC substitute) + Satoshi (Avenir substitute)
============================================================ */

:root {
  --navy: #1a3765;
  --navy-deep: #0e2244;
  --navy-darker: #081530;
  --sky: #5395d0;
  --sky-soft: #a8d0f0;
  --sky-pale: #e8f1f9;

  /* DARK THEME: surfaces are now navy variants */
  --bg: #081530;          /* deep navy canvas (matches --navy-darker) */
  --bg-soft: #0c1d3d;     /* slightly raised surface */
  --bg-cool: #102449;     /* card / band surface */

  /* DARK THEME: text colors flipped to light */
  --text: #f4f7fb;
  --text-soft: rgba(244, 247, 251, 0.78);
  --text-mute: rgba(244, 247, 251, 0.55);
  --line: rgba(168, 208, 240, 0.16);
  --line-soft: rgba(168, 208, 240, 0.08);

  /* NOTE: kept variable name --serif for code-stability, but it now points
     at Oswald — a tall condensed display sans. */
  --serif: 'Oswald', 'Bebas Neue', 'Impact', 'Arial Narrow', sans-serif;
  --sans: 'Satoshi', 'Avenir', 'Avenir LT Std', -apple-system, system-ui, sans-serif;

  --r: 12px;
  --r-lg: 20px;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1240px;
  --pad: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  position: relative;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ===== Loader ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-mark {
  animation: pulse 1.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(0.95); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* ===== Animated background canvas =====
   Fixed to the viewport, behind everything. Sections layered on top use
   semi-transparent navy backgrounds so the molecular network bleeds
   through across the whole site. */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-mark {
  flex-shrink: 0;
  transition: transform 0.6s var(--ease);
}
.logo:hover .logo-mark {
  transform: rotate(-15deg) scale(1.08);
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-word {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.18em;
  color: var(--navy);
}
.logo-tag {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--sky);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.nav-links a {
  position: relative;
  color: var(--text-soft);
  transition: color 0.3s var(--ease);
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--navy);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover {
  color: var(--navy);
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-toggle {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  display: flex;
  gap: 4px;
  color: var(--text-mute);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.3s var(--ease);
}
.lang-toggle:hover { border-color: var(--navy); }
.lang-toggle .lang-current { color: var(--navy); font-weight: 600; }
.lang-toggle .lang-divider { color: var(--text-mute); }

body[data-lang="gr"] .lang-toggle .lang-current { color: var(--text-mute); font-weight: 500; }
body[data-lang="gr"] .lang-toggle .lang-other { color: var(--navy); font-weight: 600; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 28px;
  height: 28px;
  justify-content: center;
  align-items: center;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  transition: all 0.3s var(--ease);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1.2;
}
.btn svg {
  transition: transform 0.4s var(--ease);
}
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--sky) 0%, var(--navy) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--navy);
}
.btn-ghost:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.btn-large {
  padding: 18px 36px;
  font-size: 15px;
}

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 96px 0 56px;
  overflow: hidden;
  background: linear-gradient(180deg, #f6f9fc 0%, #e9f1f8 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.95;
  /* Two stacked animations:
     1) heartbeat — fast lub-dub pulse (~60 bpm)
     2) heroFloat  — slow ambient drift, kept as a wrapper for cinema feel
     We combine them by animating two different transforms on the same element
     using `transform-origin: center` and a single composite keyframe set. */
  animation: heartbeat 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transform-origin: 70% 55%; /* anatomical heart center, not image center */
  will-change: transform;
}

/* Realistic lub-dub pulse: strong systolic (lub) ~10% of cycle, brief relax,
   softer diastolic (dub) ~25%, long rest. Scale only — no translate — so it
   reads as the heart breathing rather than the image bouncing. */
@keyframes heartbeat {
  0%   { transform: scale(1);     }
  8%   { transform: scale(1.035); }  /* lub  — peak systolic contraction */
  16%  { transform: scale(1.005); }  /* quick relax */
  26%  { transform: scale(1.022); }  /* dub  — second softer beat */
  38%  { transform: scale(1);     }  /* return */
  100% { transform: scale(1);     }  /* long rest until next beat */
}

/* Respect users who prefer reduced motion — freeze the heart */
@media (prefers-reduced-motion: reduce) {
  .hero-image { animation: none; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #f6f9fc 0%, rgba(246, 249, 252, 0.85) 35%, rgba(246, 249, 252, 0.1) 55%, transparent 70%),
    radial-gradient(circle at 80% 50%, rgba(83, 149, 208, 0.15), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  /* Use the full container; place text in the left column of a 2-col grid
     so it aligns to the container's left edge and balances against the
     heart image on the right. */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}
.hero-content > .hero-eyebrow-wrap,
.hero-content > .eyebrow,
.hero-content > .hero-title,
.hero-content > .hero-sub,
.hero-content > .hero-cta {
  grid-column: 1;
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--sky);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 var(--sky);
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(83, 149, 208, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(83, 149, 208, 0); }
}

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 5.2vw, 72px);
  /* Oswald is condensed; relax tracking and tighten leading */
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 22px;
  /* Prevent ugly mid-word breaks at hyphens ("MEDICAL-/TECHNOLOGY") */
  hyphens: manual;
  -webkit-hyphens: manual;
  overflow-wrap: normal;
  word-break: normal;
}
.hero-title > span {
  display: block;
}
.hero-accent {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(90deg, var(--sky) 0%, var(--navy) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
  color: var(--text-soft);
  margin-bottom: 26px;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.ecg-strip {
  margin-top: 40px;
  max-width: 500px;
  height: 60px;
  position: relative;
}
.ecg-strip svg { width: 100%; height: 100%; }
.ecg-strip path {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: ecgDraw 4s linear infinite;
}
@keyframes ecgDraw {
  from { stroke-dashoffset: 2000; }
  to { stroke-dashoffset: 0; }
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--navy) 50%, transparent 50%);
  background-size: 100% 200%;
  animation: scrollLine 2s linear infinite;
}
@keyframes scrollLine {
  from { background-position: 0 -100%; }
  to { background-position: 0 100%; }
}

/* ===== STATS ===== */
.stats {
  padding: 80px 0;
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  z-index: 1;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 60px);
}
.stat {
  position: relative;
}
.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 10%;
  right: clamp(-30px, -1.5vw, -10px);
  height: 80%;
  width: 1px;
  background: var(--line-soft);
}
.stat-value {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4vw, 56px);
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.stat-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* ===== Sections ===== */
.section {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
}
.section-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--sky);
}
.section-kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
}
.section-head.light .section-num { color: var(--sky-soft); }
.section-head.light .section-kicker { color: var(--sky-pale); }
.section-head.dark .section-num { color: var(--sky); }
.section-head.dark .section-kicker { color: #fff; }

.section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 28px;
  /* Prevent ugly mid-word breaks at hyphens ("MEDICAL-/TECHNOLOGY") */
  hyphens: manual;
  -webkit-hyphens: manual;
  overflow-wrap: normal;
  word-break: normal;
}
/* Oswald: drop italic styling on accent text — italic Oswald is too narrow
   to read well at display sizes. Use weight + color contrast instead. */
.hero-title .accent-text,
.section h2 .accent-text { font-style: normal; font-weight: 400; }
.section h2 span { display: block; }

.accent-text {
  font-style: italic;
  font-weight: 400;
  color: var(--sky);
}
.accent-text-light {
  font-style: italic;
  font-weight: 400;
  color: var(--sky-soft);
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 40px;
}
.about-text p {
  font-size: 17px;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 22px;
  max-width: 520px;
}
.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.pill {
  padding: 8px 16px;
  background: var(--bg-cool);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.04em;
  transition: all 0.3s var(--ease);
}
.pill:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  transform: translateY(-2px);
}

.visual-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #f6f9fc 0%, #e9f1f8 100%);
  padding: 60px 40px;
  border: 1px solid var(--line-soft);
}
.visual-frame img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(26, 55, 101, 0.15));
  animation: floatY 6s var(--ease) infinite alternate;
}
@keyframes floatY {
  from { transform: translateY(-6px); }
  to { transform: translateY(6px); }
}
.visual-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-radius: 999px;
}
.visual-dot {
  width: 8px;
  height: 8px;
  background: var(--sky);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

/* ===== TECHNOLOGY (dark) ===== */
.technology {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff;
  overflow: hidden;
}
.technology::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(83, 149, 208, 0.1), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(83, 149, 208, 0.08), transparent 50%);
  pointer-events: none;
}
.technology .container { position: relative; z-index: 1; }
.technology h2 {
  color: #fff;
}
.tech-intro {
  max-width: 760px;
  margin-bottom: 80px;
}
.tech-intro p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 620px;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: stretch;
  margin-bottom: 80px;
}
.compare-card {
  padding: 40px;
  border-radius: var(--r-lg);
  position: relative;
}
.compare-old {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}
.compare-new {
  background: linear-gradient(140deg, rgba(83, 149, 208, 0.15), rgba(83, 149, 208, 0.05));
  border: 1px solid rgba(83, 149, 208, 0.3);
  color: #fff;
  box-shadow: 0 20px 60px rgba(83, 149, 208, 0.15);
}
.compare-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.compare-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.compare-new .compare-tag { color: var(--sky-soft); }
.compare-year {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  opacity: 0.6;
}
.compare-svg {
  width: 100%;
  height: 100px;
  margin-bottom: 24px;
}
.compare-new .vector-3d path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawVector 4s var(--ease-out) infinite;
  filter: drop-shadow(0 0 6px rgba(83, 149, 208, 0.6));
}
.compare-new .vector-3d circle {
  animation: orbit 4s linear infinite;
  transform-origin: 150px 50px;
}
@keyframes drawVector {
  0% { stroke-dashoffset: 1000; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1000; }
}
@keyframes orbit {
  from { transform: rotate(0deg) translateX(80px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(80px) rotate(-360deg); }
}

.compare-list li {
  position: relative;
  padding-left: 22px;
  padding-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
}
.compare-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.compare-list.light li { color: rgba(255, 255, 255, 0.85); }

.compare-arrow {
  font-family: var(--serif);
  font-size: 40px;
  color: var(--sky);
  display: flex;
  align-items: center;
  animation: arrowMove 2s ease-in-out infinite;
}
@keyframes arrowMove {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

.tech-formula {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  font-family: var(--serif);
}
.formula-part {
  font-size: clamp(15px, 1.8vw, 20px);
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
}
.formula-op {
  font-size: 20px;
  color: var(--sky);
  font-weight: 300;
}
.formula-result {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 500;
  color: var(--sky-soft);
  font-style: italic;
}

/* ===== DISEASES ===== */
.disease-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}
.disease-card {
  padding: 40px 32px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease);
}
.disease-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(83, 149, 208, 0.04) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.disease-card:hover {
  border-color: var(--sky);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(26, 55, 101, 0.08);
}
.disease-card:hover::before { opacity: 1; }
.disease-card > * { position: relative; z-index: 1; }

.disease-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sky-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--navy);
  transition: all 0.5s var(--ease);
}
.disease-card:hover .disease-icon {
  background: var(--navy);
  color: var(--sky-soft);
  transform: rotate(8deg) scale(1.05);
}
.disease-icon svg { width: 28px; height: 28px; }

.disease-pct {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--sky);
  margin-bottom: 8px;
}
.disease-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.2;
}
.disease-card p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 20px;
}
.disease-test {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

/* ===== PROCESS (dark) ===== */
.process {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  overflow: hidden;
}
.process h2 { color: #fff; }

.process-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 80px 0;
  position: relative;
}
.process-line {
  position: absolute;
  /* Vertical center of the 120px icon circle (measured ~126px from row top) */
  top: 126px;
  /* Anchor the line tightly between the centers of step 1 and step 3.
     The grid has 3 equal columns, so column centers are at 1/6, 3/6, 5/6.
     left:16.67%/right:16.67% would land exactly there; we add a tiny inset
     so the line never appears to overshoot the outer icons. */
  left: 16.67%;
  right: 16.67%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(83, 149, 208, 0.4) 20%, rgba(83, 149, 208, 0.4) 80%, transparent 100%);
  /* Clip any blur halo so the animated beam can't bleed past step 3. */
  overflow: hidden;
}
.process-line::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 30%;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--sky), transparent);
  border-radius: 999px;
  animation: lineFlow 4s linear infinite;
  filter: blur(2px);
}
/* Stop the beam when its right edge reaches the line's right edge.
   Beam width is 30% of the line, so the beam's left edge maxes at 70%,
   which is 70%/30% = 233.33% of its own width. */
@keyframes lineFlow {
  0%   { transform: translateX(0);        opacity: 0;   }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateX(233.33%); opacity: 0;   }
}

.process-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.process-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--sky);
  margin-bottom: 16px;
}
.process-icon-wrap {
  /* Bigger circle so the icon reads as the centerpiece of each step */
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--navy-deep);
  border: 1px solid rgba(83, 149, 208, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  color: var(--sky);
  position: relative;
  transition: all 0.5s var(--ease);
}
.process-icon-wrap::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(83, 149, 208, 0.2);
  border-radius: 50%;
  animation: ripple 3s ease-out infinite;
}
@keyframes ripple {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}
.process-step:hover .process-icon-wrap {
  background: var(--sky);
  color: var(--navy-deep);
  transform: scale(1.06);
}
.process-icon-wrap svg { width: 48px; height: 48px; }

.process-time {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky-soft);
  margin-bottom: 12px;
}
.process-step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: #fff;
  margin-bottom: 12px;
}
.process-step p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

.process-image {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 60px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
.process-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== AI SECTION (full-bleed dark) ===== */
.ai-section {
  position: relative;
  background: var(--navy-darker);
  color: #fff;
  overflow: hidden;
  padding: clamp(100px, 12vw, 160px) 0;
}
.ai-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ai-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  animation: aiZoom 30s ease-in-out infinite alternate;
}
@keyframes aiZoom {
  from { transform: scale(1) translateX(0); }
  to { transform: scale(1.1) translateX(-2%); }
}
.ai-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--navy-darker) 0%, rgba(8, 21, 48, 0.6) 50%, var(--navy-darker) 100%),
    linear-gradient(180deg, var(--navy-darker) 0%, transparent 30%, transparent 70%, var(--navy-darker) 100%);
}
.ai-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.ai-section h2 { color: #fff; }
.ai-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 50px;
}
.ai-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.ai-metric {
  padding: 28px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(83, 149, 208, 0.2);
  border-radius: var(--r);
  transition: all 0.4s var(--ease);
}
.ai-metric:hover {
  border-color: var(--sky);
  background: rgba(83, 149, 208, 0.08);
  transform: translateY(-4px);
}
.ai-metric-value {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(36px, 4vw, 52px);
  color: var(--sky-soft);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.ai-metric-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}

/* ===== TERRITORIES ===== */
.territories {
  background: var(--bg-soft);
}
.territory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.territory-card {
  background: #fff;
  padding: 36px 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}
.territory-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.territory-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(26, 55, 101, 0.12);
  border-color: transparent;
}
.territory-card:hover::before { transform: scaleX(1); }

.territory-flag {
  font-size: 38px;
  margin-bottom: 20px;
  line-height: 1;
}
.territory-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 14px;
}
.territory-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
