/* ============================================================
   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);

  --serif: 'Cormorant Garamond', 'Blair ITC', 'Garamond', 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 ===== */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}

/* ===== 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(--sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.12em;
  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: 120px 0 80px;
  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;
  animation: heroFloat 14s var(--ease) infinite alternate;
}
@keyframes heroFloat {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-12px) scale(1.02); }
}
.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: 32px;
}
.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(42px, 6.5vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 32px;
}
.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(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: var(--text-soft);
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
  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(32px, 4.5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 28px;
}
.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;
  top: 78px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(83, 149, 208, 0.4) 20%, rgba(83, 149, 208, 0.4) 80%, transparent 100%);
}
.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);
}
@keyframes lineFlow {
  from { transform: translateX(0); }
  to { transform: translateX(333%); }
}

.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 {
  width: 80px;
  height: 80px;
  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 24px;
  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: 32px; height: 32px; }

.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%;
}
.active-dot {
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: greenPulse 2s ease-in-out infinite;
}
.pending-dot {
  background: var(--sky-soft);
}
@keyframes greenPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}
.territory-card.active .territory-status { color: #16a34a; }
.territory-card:not(.active) .territory-status { color: var(--text-mute); }

.territory-segments {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.5;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

/* ===== CONTACT ===== */
.contact {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.contact::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(83, 149, 208, 0.15), transparent 70%);
  pointer-events: none;
}
.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}
.contact h2 { color: #fff; }
.contact > .container > .contact-inner > p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 50px;
  max-width: 620px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}
.contact-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r);
  transition: all 0.4s var(--ease);
}
.contact-card:hover {
  background: rgba(83, 149, 208, 0.1);
  border-color: var(--sky);
  transform: translateY(-3px);
}
.contact-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky-soft);
  margin-bottom: 14px;
}
.contact-value {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  color: #fff;
  display: block;
  word-break: break-word;
}
a.contact-value {
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
a.contact-value:hover { border-bottom-color: var(--sky); }

.contact-cta {
  margin-top: 20px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-darker);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.footer .logo-word { color: #fff; }
.footer .logo-tag { color: var(--sky-soft); }
.footer-tagline {
  font-size: 14px;
  max-width: 360px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s var(--ease);
}
.footer-links a:hover { color: var(--sky); }
.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-align: right;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 30px var(--pad);
    gap: 20px;
    border-bottom: 1px solid var(--line);
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .stat:not(:last-child)::after { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-content { grid-template-columns: 1fr; gap: 32px; }
  .hero-content > .hero-eyebrow-wrap,
  .hero-content > .eyebrow,
  .hero-content > .hero-title,
  .hero-content > .hero-sub,
  .hero-content > .hero-cta { max-width: 100%; }

  .compare-grid { grid-template-columns: 1fr; gap: 24px; }
  .compare-arrow { transform: rotate(90deg); justify-self: center; }

  .disease-grid { grid-template-columns: 1fr; }

  .process-flow { grid-template-columns: 1fr; gap: 50px; }
  .process-line { display: none; }

  .ai-metrics { grid-template-columns: 1fr; }

  .territory-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links, .footer-copy { justify-content: flex-start; text-align: left; }
}

@media (max-width: 580px) {
  .hero-image { width: 100%; opacity: 0.35; }
  .hero-overlay {
    background:
      linear-gradient(180deg, #f6f9fc 0%, rgba(246, 249, 252, 0.85) 50%, rgba(246, 249, 252, 0.6) 100%);
  }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .logo-word { font-size: 16px; letter-spacing: 0.14em; }
  .logo-tag { font-size: 8px; }
  .territory-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ================================================
   FUTURISTIC v2 — Aurora, grid, glass, holograms
   ================================================ */

/* Aurora gradient mesh */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}
.aurora-blob-1 {
  width: 50vw;
  height: 50vw;
  left: -10vw;
  top: -10vw;
  background: radial-gradient(circle, rgba(83,149,208,0.55), rgba(83,149,208,0) 70%);
  animation: aurora-drift-1 22s ease-in-out infinite alternate;
}
.aurora-blob-2 {
  width: 45vw;
  height: 45vw;
  right: -8vw;
  top: 10vw;
  background: radial-gradient(circle, rgba(26,55,101,0.45), rgba(26,55,101,0) 70%);
  animation: aurora-drift-2 26s ease-in-out infinite alternate;
}
.aurora-blob-3 {
  width: 38vw;
  height: 38vw;
  left: 30vw;
  bottom: -10vw;
  background: radial-gradient(circle, rgba(168,208,240,0.5), rgba(168,208,240,0) 70%);
  animation: aurora-drift-3 30s ease-in-out infinite alternate;
}
@keyframes aurora-drift-1 {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(12vw, 8vw) scale(1.15); }
}
@keyframes aurora-drift-2 {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-10vw, 10vw) scale(1.2); }
}
@keyframes aurora-drift-3 {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-8vw, -12vw) scale(1.1); }
}

/* Grid overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(26,55,101,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26,55,101,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 78%);
  animation: grid-pulse 8s ease-in-out infinite;
}
@keyframes grid-pulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* Floating data chips on hero */
.data-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  white-space: nowrap;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(83,149,208,0.35);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--navy);
  box-shadow: 0 10px 28px rgba(26,55,101,0.12), inset 0 0 0 1px rgba(255,255,255,0.4);
  opacity: 0;
  animation: chip-in 1.2s 1.6s var(--ease) forwards, chip-float 7s ease-in-out 2.6s infinite;
  pointer-events: none;
}
.data-chip .chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 4px rgba(52,199,89,0.18), 0 0 8px rgba(52,199,89,0.65);
  animation: chip-pulse 2.2s ease-in-out infinite;
}
.data-chip .chip-label {
  font-weight: 500;
  color: rgba(26,55,101,0.65);
}
.data-chip .chip-val {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}
.data-chip-1 { top: 14%; right: 6%;  animation-delay: 0s, 2.6s; }
.data-chip-2 { top: 32%; right: 32%; animation-delay: 0.3s, 3.0s; }
.data-chip-3 { top: 56%; right: 4%;  animation-delay: 0.6s, 3.4s; }
.data-chip-4 { top: 76%; right: 24%; animation-delay: 0.9s, 3.8s; }
@keyframes chip-in {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes chip-float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(-6px) translateX(3px); }
}
@keyframes chip-pulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(52,199,89,0.5), 0 0 6px rgba(52,199,89,0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(52,199,89,0),   0 0 10px rgba(52,199,89,0.8); }
}

/* Hero ECG enhanced */
.ecg-strip {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(83,149,208,0.25);
  background: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ecg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(83,149,208,0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(83,149,208,0.12) 1px, transparent 1px);
  background-size: 20px 20px;
}
.ecg-sweep {
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  left: -80px;
  background: linear-gradient(90deg,
    rgba(83,149,208,0) 0%,
    rgba(83,149,208,0.45) 70%,
    rgba(255,255,255,0.9) 100%);
  filter: blur(2px);
  animation: ecg-sweep 3.4s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}
@keyframes ecg-sweep {
  0%   { left: -80px; }
  100% { left: 100%; }
}

/* Magnetic buttons + shine */
.btn { position: relative; overflow: hidden; }
.btn.magnetic { transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease); }
.btn.magnetic:hover { box-shadow: 0 18px 42px rgba(26,55,101,0.22); }
.btn-shine {
  position: absolute;
  top: 0; bottom: 0;
  left: -120%;
  width: 60%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%);
  pointer-events: none;
  animation: btn-shine 5s ease-in-out infinite;
}
@keyframes btn-shine {
  0%, 60% { left: -120%; }
  85%     { left: 140%; }
  100%    { left: 140%; }
}

/* Scramble accent */
.hero-accent.scramble {
  display: inline-block;
}

/* 3D Tilt for territory cards */
.territory-card.tilt {
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(0) rotateY(0);
  transition: transform 0.2s ease-out, box-shadow 0.3s ease-out;
  position: relative;
  overflow: hidden;
}
.territory-card.tilt::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(83,149,208,0.55) 0%,
    rgba(83,149,208,0) 30%,
    rgba(83,149,208,0) 70%,
    rgba(83,149,208,0.4) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.territory-card.tilt:hover::before { opacity: 1; }
.territory-card.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 50%),
    rgba(83,149,208,0.18),
    transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.territory-card.tilt:hover::after { opacity: 1; }

/* FAQ section */
.faq {
  position: relative;
  background: linear-gradient(180deg, #f6f9fc 0%, #eef4fa 100%);
  overflow: hidden;
}
.faq-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(83,149,208,0.22);
}
.orbit-ring::before {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 16px rgba(83,149,208,0.65);
  top: -4px; left: 50%;
  margin-left: -4px;
}
.orbit-ring-1 {
  width: 520px; height: 520px;
  top: -180px; right: -180px;
  animation: orbit 28s linear infinite;
}
.orbit-ring-2 {
  width: 360px; height: 360px;
  bottom: -120px; left: -120px;
  animation: orbit 36s linear infinite reverse;
}
@keyframes orbit { to { transform: rotate(360deg); } }

.faq-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  color: var(--navy);
  margin: 24px 0 56px;
  max-width: 820px;
}
.faq-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 920px;
}
.faq-item {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(26,55,101,0.1);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.faq-item:hover {
  border-color: rgba(83,149,208,0.45);
  box-shadow: 0 12px 36px rgba(26,55,101,0.08);
}
.faq-item[open] {
  background: rgba(255,255,255,0.92);
  border-color: rgba(83,149,208,0.55);
  box-shadow: 0 18px 50px rgba(26,55,101,0.1);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.4;
  color: var(--navy);
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { flex: 1; }
.faq-icon {
  position: relative;
  width: 26px; height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(83,149,208,0.55);
  transition: transform 0.4s var(--ease), background 0.3s ease;
}
.faq-icon span {
  position: absolute;
  background: var(--navy);
  border-radius: 2px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.faq-icon span:nth-child(1) {
  top: 50%; left: 50%;
  width: 10px; height: 1.5px;
  transform: translate(-50%, -50%);
}
.faq-icon span:nth-child(2) {
  top: 50%; left: 50%;
  width: 1.5px; height: 10px;
  transform: translate(-50%, -50%);
}
.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  background: rgba(83,149,208,0.15);
}
.faq-item[open] .faq-icon span:nth-child(2) {
  opacity: 0;
  transform: translate(-50%, -50%) scaleY(0);
}
.faq-a {
  padding: 0 28px 26px 28px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(26,55,101,0.78);
  max-width: 780px;
  /* animate via JS height; fall back to instant on no-js */
  animation: faq-a-in 0.45s var(--ease);
}
@keyframes faq-a-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stats — orbital halo on cards */
.stat {
  position: relative;
  padding: 24px 12px 18px;
}
.stat::before {
  content: "";
  position: absolute;
  top: -14px;
  left: -14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px dashed rgba(83,149,208,0.45);
  animation: orbit 14s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.stat.in-view::before { opacity: 1; }
.stat::after {
  content: "";
  position: absolute;
  top: -10px; left: -10px;
  width: 28px; height: 28px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 30% 30%, rgba(168,208,240,0.9), rgba(83,149,208,0.2) 60%, transparent 70%);
  filter: blur(0.5px);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.stat.in-view::after { opacity: 1; }

/* Section reveal: enhanced — slight scale + blur */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Disease cards — neon outline hover */
.disease-card {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.disease-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(83,149,208,0.7), rgba(83,149,208,0) 50%, rgba(83,149,208,0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.disease-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(26,55,101,0.12);
}
.disease-card:hover::before { opacity: 1; }
.disease-icon {
  position: relative;
}
.disease-icon::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83,149,208,0.3), transparent 65%);
  filter: blur(6px);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}
.disease-card:hover .disease-icon::after { opacity: 1; }

/* Process steps — glow on the connector line */
.process-flow {
  position: relative;
}
.process-flow::before {
  content: "";
  position: absolute;
  top: 50px; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(83,149,208,0) 0%,
    rgba(83,149,208,0.55) 30%,
    rgba(83,149,208,0.85) 50%,
    rgba(83,149,208,0.55) 70%,
    rgba(83,149,208,0) 100%);
  filter: blur(0.5px);
  pointer-events: none;
  opacity: 0;
  animation: process-line-pulse 4s ease-in-out 0.8s infinite;
}
@keyframes process-line-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

/* Mobile FAQ tweaks */
@media (max-width: 720px) {
  .faq-item summary { padding: 20px 20px; font-size: 17px; gap: 16px; }
  .faq-a { padding: 0 20px 22px; font-size: 15px; }
  .data-chip-1, .data-chip-2, .data-chip-3, .data-chip-4 { display: none; }
}

/* Nav link added — keep wrap-friendly */
@media (max-width: 980px) {
  .nav-links a { font-size: 14px; }
}

/* Section number animated underline */
.section-num {
  position: relative;
  display: inline-block;
}
.section-num::after {
  content: "";
  position: absolute;
  left: 100%; top: 50%;
  margin-left: 8px;
  width: 24px; height: 1px;
  background: currentColor;
  opacity: 0.4;
  transform-origin: left center;
  animation: num-line 3.5s ease-in-out infinite;
}
@keyframes num-line {
  0%, 100% { transform: scaleX(1); opacity: 0.35; }
  50%      { transform: scaleX(1.6); opacity: 0.7; }
}

/* Flagship banner — Cardisio intro inside Technology section */
.flagship-banner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(83,149,208,0.10) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-left: 3px solid var(--accent, #5395d0);
  border-radius: 20px;
  padding: 32px 36px;
  margin: 8px 0 56px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 60px rgba(8, 22, 48, 0.28);
}
.flagship-copy { min-width: 0; }
.flagship-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, #5395d0);
  background: rgba(83,149,208,0.10);
  border: 1px solid rgba(83,149,208,0.28);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
/* Greek language fallback for tags: Satoshi lacks proper capital Omega.
   Use a Greek-capable font and skip the transform (text is already uppercase). */
body[data-lang="gr"] .flagship-tag,
body[data-lang="gr"] .section-kicker,
body[data-lang="gr"] .eyebrow,
body[data-lang="gr"] .pill,
body[data-lang="gr"] .compare-tag,
body[data-lang="gr"] .process-time,
body[data-lang="gr"] .contact-label {
  font-family: 'Inter', 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.flagship-lede {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  color: rgba(255,255,255,0.92);
  margin: 0;
  font-weight: 400;
}
.flagship-visual {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0e1a30;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}
.flagship-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease, cubic-bezier(.2,.7,.2,1));
}
.flagship-banner:hover .flagship-visual img { transform: scale(1.04); }

/* About visual: photo treatment (no float, no drop-shadow) */
.about-visual .visual-frame {
  padding: 0;
  background: #0e1a30;
}
.about-visual .visual-frame img {
  filter: none;
  animation: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  display: block;
}
.about-visual .visual-label {
  background: rgba(8, 22, 48, 0.75);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.12);
}
.about-visual .visual-label .visual-dot {
  background: var(--accent, #5395d0);
}

/* Process bottom image: real photo treatment */
.process-image img {
  border-radius: 16px;
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  aspect-ratio: 16 / 9;
  object-position: center 30%;
}

/* Responsive flagship banner */
@media (max-width: 860px) {
  .flagship-banner {
    grid-template-columns: 1fr;
    padding: 24px 22px;
    gap: 22px;
  }
  .flagship-visual { aspect-ratio: 16 / 10; }
}

/* ============================================================
   DARK THEME ROLLOUT — sitewide navy treatment
   Inspired by the AI / intelligence-layer section.
   Strategy: tokens are flipped at :root. This block targets
   the few rules that hard-coded white/light values.
============================================================ */

/* Global canvas: deep navy + ambient network glow */
html, body {
  background: var(--navy-darker);
  color: var(--text);
}

/* Site-wide ambient network glow (fixed, behind everything) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(83, 149, 208, 0.18), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(83, 149, 208, 0.12), transparent 55%),
    var(--navy-darker);
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('../images/ai-network.png');
  background-size: cover;
  background-position: center;
  opacity: 0.10;
  pointer-events: none;
}

/* Loader: dark */
.loader { background: var(--navy-darker); }

/* Navigation: dark glass */
.nav {
  background: rgba(8, 21, 48, 0.55);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 21, 48, 0.85);
  border-bottom-color: rgba(168, 208, 240, 0.12);
}
.logo-word { color: #fff; }
.logo-tag  { color: var(--sky-soft); }
.nav-links a { color: rgba(244, 247, 251, 0.72); }
.nav-links a:hover { color: #fff; }

/* Language toggle */
.lang-toggle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(168, 208, 240, 0.18);
  color: var(--text);
}
body[data-lang="en"] .lang-toggle .lang-current,
body[data-lang="gr"] .lang-toggle .lang-current { color: #fff; }
body[data-lang="en"] .lang-toggle .lang-other,
body[data-lang="gr"] .lang-toggle .lang-other { color: rgba(244, 247, 251, 0.55); }

/* Mobile menu trigger */
.menu-toggle span { background: #fff; }

/* HERO: dark canvas, heart blends in */
.hero {
  background: radial-gradient(ellipse at 70% 50%, rgba(83, 149, 208, 0.12), transparent 60%), var(--navy-darker);
}
/* Smooth, gradual fade from solid navy on the left to transparent on the right.
   Avoids the visible seam between text column and heart image. */
/* Overlay is now only a soft ambient glow on the right.
   The hard left edge of the heart is handled by the mask on .hero-image itself. */
.hero-overlay {
  background:
    radial-gradient(ellipse 90% 80% at 85% 50%, rgba(83, 149, 208, 0.18), transparent 65%),
    linear-gradient(90deg, rgba(8, 21, 48, 0.35) 0%, rgba(8, 21, 48, 0.10) 50%, transparent 100%);
}
/* Mask the heart's left edge so it fades into the dark canvas instead of stopping at a hard rectangle */
.hero-image {
  opacity: 0.72;
  mix-blend-mode: screen;
  filter: brightness(1.12) contrast(1.05);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.15) 12%, rgba(0,0,0,0.55) 28%, rgba(0,0,0,0.85) 48%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.15) 12%, rgba(0,0,0,0.55) 28%, rgba(0,0,0,0.85) 48%, #000 70%);
}
.hero-title { color: #fff; }
.hero-accent {
  background: linear-gradient(90deg, var(--sky-soft) 0%, var(--sky) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { color: rgba(255, 255, 255, 0.78); }

/* Eyebrow / pills: dark glass */
.eyebrow {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(168, 208, 240, 0.18);
  color: rgba(244, 247, 251, 0.92);
  backdrop-filter: blur(10px);
}

/* Floating metric pills in hero */
.metric-pill,
.hero .stat-pill {
  background: rgba(8, 21, 48, 0.6);
  border: 1px solid rgba(168, 208, 240, 0.22);
  color: rgba(244, 247, 251, 0.95);
}

/* Scroll indicator */
.scroll-indicator { color: rgba(244, 247, 251, 0.5); }

/* All h2/h3 default to light text on dark sections */
.section h2 { color: #fff; }
.section-kicker { color: rgba(244, 247, 251, 0.85); }
.section-num    { color: var(--sky); }
.section-head.light .section-num    { color: var(--sky-soft); }
.section-head.light .section-kicker { color: rgba(244, 247, 251, 0.7); }

/* About section: was using bg-cool (light), now navy */
.about-visual,
.visual-frame {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  border-color: rgba(168, 208, 240, 0.14);
}
.about-text p { color: rgba(244, 247, 251, 0.82); }
.about-pills .pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(168, 208, 240, 0.22);
  color: rgba(244, 247, 251, 0.92);
}
.visual-label {
  background: rgba(8, 22, 48, 0.7);
  color: rgba(244, 247, 251, 0.85);
  border: 1px solid rgba(168, 208, 240, 0.18);
}

/* About-visual photo treatment override */
.about-visual { background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%); }

/* Flagship banner inside Technology — already dark; sharpen contrast */
.flagship-banner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(83, 149, 208, 0.10) 100%);
  border-color: rgba(168, 208, 240, 0.18);
}

/* DISEASE / WHAT-WE-DETECT cards: were white */
.disease-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(168, 208, 240, 0.14);
  backdrop-filter: blur(10px);
}
.disease-card::before {
  background: linear-gradient(180deg, transparent 0%, rgba(83, 149, 208, 0.10) 100%);
}
.disease-card:hover {
  border-color: rgba(83, 149, 208, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.disease-icon {
  background: rgba(83, 149, 208, 0.14);
}
.disease-icon svg { color: var(--sky-soft); }
.disease-card h3 { color: #fff; }
.disease-card p,
.disease-test { color: rgba(244, 247, 251, 0.72); }
.disease-pct { color: var(--sky-soft); }

/* COMPARE LIST: dark glass cards */
.compare-card,
.compare-grid > * {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(168, 208, 240, 0.14);
}
.compare-list li { color: rgba(244, 247, 251, 0.82); }
.compare-card h3 { color: #fff; }

/* TERRITORIES: was light bg + white cards */
.territories { background: transparent; }
.territory-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(168, 208, 240, 0.14);
  backdrop-filter: blur(10px);
}
.territory-card h3 { color: #fff; }
.territory-card:hover {
  background: rgba(83, 149, 208, 0.06);
  border-color: rgba(83, 149, 208, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.territory-card.active .territory-status { color: #4ade80; }
.territory-card:not(.active) .territory-status { color: rgba(244, 247, 251, 0.55); }
.territory-segments {
  color: rgba(244, 247, 251, 0.62);
  border-top-color: rgba(168, 208, 240, 0.10);
}

/* FAQ: was linear-gradient(#f6f9fc → #eef4fa) */
.faq {
  background: linear-gradient(180deg, var(--navy-darker) 0%, var(--navy-deep) 100%);
}
.faq-title { color: #fff; }
.faq-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(168, 208, 240, 0.14);
  backdrop-filter: blur(14px) saturate(140%);
}
.faq-item:hover {
  border-color: rgba(83, 149, 208, 0.45);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
.faq-item[open] {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(83, 149, 208, 0.55);
}
.faq-item summary { color: #fff; }
.faq-icon { border-color: rgba(168, 208, 240, 0.45); }
.faq-icon span { background: var(--sky-soft); }
.faq-a { color: rgba(244, 247, 251, 0.78); }

/* STATS / numbers on light backgrounds — make sure they read */
.stat-value { color: #fff; }
.stat-label { color: rgba(244, 247, 251, 0.7); }
.stat:not(:last-child)::after { background: rgba(168, 208, 240, 0.18); }

/* PROCESS section: keep dark; bump connectors */
.process-step h3 { color: #fff; }
.process-step p  { color: rgba(244, 247, 251, 0.78); }
.process-time    { color: var(--sky-soft); }

/* Buttons: ghost button needs to read on dark */
.btn-ghost {
  color: #fff;
  border-color: rgba(168, 208, 240, 0.4);
}
.btn-ghost:hover {
  background: rgba(83, 149, 208, 0.12);
  border-color: var(--sky);
}

/* Generic typography: ensure body text reads */
.section p,
.section li { color: rgba(244, 247, 251, 0.82); }

/* AI section glow ring on cards — already dark, leave alone.
   The AI background image is preserved via .ai-bg overlay. */

/* Footer: already dark, just refine border */
.footer { border-top: 1px solid rgba(168, 208, 240, 0.08); }
