/* ============================================
   OPTIMUS MEDICAL — Global Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=DM+Sans:wght@400;500;700&display=swap');

/* --- CSS Variables --- */
:root {
  --white: #ffffff;
  --off-white: #f8faf9;
  --light-grey: #e8eded;
  --grey: #8a9a94;
  --dark-grey: #4a5a54;
  --green-lightest: #d4f5e2;
  --green-light: #7cd4a3;
  --green: #2ebd6b;
  --green-mid: #1f9e55;
  --green-dark: #14704a;
  --green-darkest: #0b3d28;
  --text-primary: #0f2318;
  --text-secondary: #3d5a4a;
  --text-muted: #6b8577;
  --shadow-sm: 0 1px 3px rgba(11,61,40,0.06);
  --shadow-md: 0 4px 16px rgba(11,61,40,0.08);
  --shadow-lg: 0 12px 40px rgba(11,61,40,0.12);
  --shadow-xl: 0 20px 60px rgba(11,61,40,0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.01em; }
p { font-size: 1.05rem; color: var(--text-secondary); }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 60px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(46,189,107,0.35);
}
.btn-primary:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(46,189,107,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green-light);
}
.btn-outline:hover {
  background: var(--green-lightest);
  border-color: var(--green);
}
.btn-white {
  background: var(--white);
  color: var(--green-dark);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background: rgba(255,255,255,0);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 0.6rem 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--green-dark);
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  box-shadow: 0 3px 12px rgba(46,189,107,0.3);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: var(--transition);
  border-radius: 2px;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--green-dark);
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}
.nav-cta { margin-left: 0.5rem; }

/* Mobile Nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--green-dark);
  border-radius: 3px;
  transition: var(--transition);
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 340px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2.5rem 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-cta { margin-left: 0; margin-top: 1rem; }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 998;
  }
  .nav-overlay.open { display: block; }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  overflow: hidden;
  background: linear-gradient(170deg, var(--white) 0%, var(--green-lightest) 50%, var(--off-white) 100%);
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(46,189,107,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(20,112,74,0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(124,212,163,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(46,189,107,0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.5;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-content { max-width: 600px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.2rem;
  background: rgba(46,189,107,0.1);
  border: 1px solid rgba(46,189,107,0.25);
  border-radius: 60px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--green-dark);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,189,107,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(46,189,107,0); }
}
.hero h1 { margin-bottom: 1.5rem; color: var(--green-darkest); }
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { font-size: 1.15rem; margin-bottom: 2.5rem; max-width: 500px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual-card {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}
.hero-visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--green-light), var(--green-dark));
}
.hv-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.hv-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-lightest), var(--green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.hv-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.hv-status { font-size: 0.82rem; color: var(--green); font-weight: 500; }
.hv-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.hv-metric {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: center;
}
.hv-metric-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--green-dark);
}
.hv-metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.hv-insight {
  background: linear-gradient(135deg, rgba(46,189,107,0.08), rgba(124,212,163,0.12));
  border: 1px solid rgba(46,189,107,0.15);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}
.hv-insight-icon {
  width: 32px;
  height: 32px;
  background: var(--green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.hv-insight-text { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; }

/* Floating elements */
.float-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 0.7rem 1.1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  animation: float 4s ease-in-out infinite;
  z-index: 3;
}
.float-badge.fb-1 { top: 8%; right: -5%; animation-delay: 0s; }
.float-badge.fb-2 { bottom: 15%; left: -8%; animation-delay: 1.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.fb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.fb-dot.green { background: var(--green); }
.fb-dot.blue { background: #4a9eff; }

/* --- Section Shared --- */
.section {
  padding: 6rem 0;
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}
.section-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 0.8rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 560px; margin: 0 auto; }

/* --- Features Section --- */
.features-section { background: var(--off-white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-light), var(--green));
  opacity: 0;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: rgba(46,189,107,0.15);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--green-lightest), rgba(46,189,107,0.15));
}
.feature-card h3 { margin-bottom: 0.8rem; color: var(--green-darkest); }
.feature-card p { font-size: 0.95rem; }

/* --- Stats Bar --- */
.stats-bar {
  background: linear-gradient(135deg, var(--green-dark), var(--green-darkest));
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.stat-item { text-align: center; color: var(--white); }
.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  margin-bottom: 0.3rem;
}
.stat-label {
  font-size: 0.9rem;
  opacity: 0.75;
}

/* --- Product Section --- */
.product-section { background: var(--white); }
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.product-visual {
  background: linear-gradient(150deg, var(--green-lightest), var(--off-white));
  border-radius: var(--radius-xl);
  padding: 3rem;
  position: relative;
}
.product-screen {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.ps-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 1.5rem;
}
.ps-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--light-grey);
}
.ps-dot:first-child { background: #ff6b6b; }
.ps-dot:nth-child(2) { background: #ffd93d; }
.ps-dot:nth-child(3) { background: var(--green); }
.ps-line {
  height: 10px;
  border-radius: 6px;
  margin-bottom: 0.8rem;
  background: var(--light-grey);
}
.ps-line.short { width: 40%; }
.ps-line.medium { width: 65%; }
.ps-line.long { width: 85%; }
.ps-line.accent { background: linear-gradient(90deg, var(--green-light), var(--green)); opacity: 0.6; }
.ps-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--light-grey);
}
.ps-chart-bar {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(to top, var(--green-light), var(--green));
  opacity: 0.7;
  transition: var(--transition);
}
.ps-chart-bar:hover { opacity: 1; }
.product-content .section-label { text-align: left; }
.product-content h2 { margin-bottom: 1.2rem; }
.product-content > p { margin-bottom: 2rem; }
.product-features { margin-bottom: 2rem; }
.pf-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.pf-check {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--green-lightest);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.9rem;
}
.pf-text { font-size: 0.95rem; color: var(--text-secondary); padding-top: 0.2rem; }

/* --- How It Works --- */
.how-section { background: var(--off-white); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-light), var(--green), var(--green-light), transparent);
  z-index: 0;
}
.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--green-dark);
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-md);
}
.step-card h3 { margin-bottom: 0.6rem; }

/* --- Diseases Section --- */
.diseases-section { background: var(--white); }
.diseases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.disease-tag {
  background: var(--off-white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.disease-tag:hover {
  background: var(--green-lightest);
  border-color: var(--green-light);
  color: var(--green-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.disease-tag .tag-icon {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

/* --- About / Purpose Section --- */
.about-hero {
  background: linear-gradient(170deg, var(--green-darkest) 0%, var(--green-dark) 100%);
  color: var(--white);
  padding: 10rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 36px 36px;
}
.about-hero .container { position: relative; z-index: 1; }
.about-hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.about-hero p { color: rgba(255,255,255,0.8); font-size: 1.2rem; max-width: 650px; }

.purpose-section { padding: 6rem 0; }
.purpose-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
}
.purpose-content h2 { margin-bottom: 1.5rem; }
.purpose-content p { margin-bottom: 1.5rem; line-height: 1.8; }
.purpose-content p.lead { font-size: 1.15rem; color: var(--text-primary); font-weight: 500; }
.purpose-sidebar {
  position: sticky;
  top: 6rem;
}
.purpose-card {
  background: linear-gradient(150deg, var(--green-lightest), var(--off-white));
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid rgba(46,189,107,0.15);
}
.purpose-card h3 { margin-bottom: 1.5rem; color: var(--green-darkest); }
.pc-value {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.pc-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.pc-value-text strong { display: block; font-size: 0.95rem; margin-bottom: 0.1rem; color: var(--green-darkest); }
.pc-value-text span { font-size: 0.85rem; color: var(--text-muted); }

/* --- Team Section --- */
.team-section { background: var(--off-white); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-lightest), var(--green-light));
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}
.team-card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.team-role {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
  font-family: var(--font-display);
}

/* --- Product Page --- */
.product-hero {
  background: linear-gradient(170deg, var(--off-white) 0%, var(--green-lightest) 50%, var(--white) 100%);
  padding: 10rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.product-hero .hero-grid-dots { opacity: 0.3; }
.product-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.capability-section { padding: 6rem 0; }
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.capability-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--light-grey);
  transition: var(--transition);
}
.capability-card:hover {
  border-color: var(--green-light);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.capability-card h3 { margin-bottom: 0.8rem; }
.cap-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* --- Contact Section --- */
.contact-section { background: var(--off-white); }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: 1.5px solid var(--light-grey);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,189,107,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-info-cards { display: flex; flex-direction: column; gap: 1.5rem; }
.ci-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  transition: var(--transition);
}
.ci-card:hover { box-shadow: var(--shadow-md); }
.ci-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--green-lightest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.ci-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.ci-card p { font-size: 0.9rem; }

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 2.5rem; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Footer --- */
.footer {
  background: var(--green-darkest);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { color: var(--white); margin-bottom: 1rem; }
.footer-brand .logo-icon { background: rgba(255,255,255,0.15); }
.footer-brand p { font-size: 0.9rem; max-width: 300px; }
.footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 1.2rem;
}
.footer ul li { margin-bottom: 0.6rem; }
.footer ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer ul a:hover { color: var(--green-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--green-light); }

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Counter animation */
.counting { transition: none; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container,
  .product-layout,
  .product-hero .container,
  .purpose-layout,
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .features-grid, .steps-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .diseases-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { order: -1; }
  .purpose-sidebar { position: static; }
}
@media (max-width: 640px) {
  .features-grid, .steps-grid, .capability-grid, .team-grid { grid-template-columns: 1fr; }
  .diseases-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .hero { padding: 7rem 0 3rem; }
  .section { padding: 4rem 0; }
  .steps-grid::before { display: none; }
  .float-badge { display: none; }
}

/* ============================================
   Cookie Consent Banner
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner.dismissed {
  transform: translateY(110%);
  pointer-events: none;
}
.cookie-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 61, 40, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.cookie-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-backdrop.dismissed {
  opacity: 0;
  pointer-events: none;
}
.cb-inner {
  background: var(--white);
  border-top: 3px solid var(--green);
  box-shadow: 0 -8px 40px rgba(11, 61, 40, 0.15);
  padding: 2rem 2.5rem;
  position: relative;
}
.cb-layout {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.cb-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--green-lightest), rgba(46,189,107,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.cb-text {
  flex: 1;
}
.cb-text h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green-darkest);
  margin-bottom: 0.35rem;
}
.cb-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}
.cb-text a {
  color: var(--green);
  text-decoration: underline;
  font-weight: 500;
}
.cb-text a:hover {
  color: var(--green-dark);
}
.cb-actions {
  display: flex;
  gap: 0.8rem;
  flex-shrink: 0;
}
.cb-btn {
  padding: 0.75rem 1.6rem;
  border-radius: 60px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.cb-btn-accept {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 3px 14px rgba(46,189,107,0.3);
}
.cb-btn-accept:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(46,189,107,0.4);
}
.cb-btn-decline {
  background: var(--off-white);
  color: var(--text-secondary);
  border: 1.5px solid var(--light-grey);
}
.cb-btn-decline:hover {
  background: var(--light-grey);
  color: var(--text-primary);
}
.cb-btn-settings {
  background: transparent;
  color: var(--green-dark);
  padding: 0.75rem 1.2rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cb-btn-settings:hover {
  color: var(--green);
}

/* Cookie Settings Panel (expandable) */
.cb-settings-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 2.5rem;
  background: var(--off-white);
}
.cb-settings-panel.open {
  max-height: 500px;
  padding: 1.5rem 2.5rem;
}
.cb-settings-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cb-toggle-group {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}
.cb-toggle-info h5 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}
.cb-toggle-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
/* Toggle switch */
.cb-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.cb-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cb-slider {
  position: absolute;
  inset: 0;
  background: var(--light-grey);
  border-radius: 24px;
  cursor: pointer;
  transition: var(--transition);
}
.cb-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.cb-switch input:checked + .cb-slider {
  background: var(--green);
}
.cb-switch input:checked + .cb-slider::before {
  transform: translateX(20px);
}
.cb-switch input:disabled + .cb-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .cb-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .cb-icon { display: none; }
  .cb-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .cb-btn-accept, .cb-btn-decline {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
  .cb-settings-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .cb-inner { padding: 1.5rem; }
  .cb-settings-panel.open { padding: 1.2rem 1.5rem; }
}

/* ============================================
   404 Page
   ============================================ */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(170deg, var(--white) 0%, var(--green-lightest) 50%, var(--off-white) 100%);
  position: relative;
  overflow: hidden;
  padding: 2rem;
}
.error-page .hero-grid-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(46,189,107,0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.4;
}
.error-card {
  text-align: center;
  max-width: 560px;
  position: relative;
  z-index: 2;
}
.error-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 15vw, 10rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--green-light), var(--green), var(--green-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -0.04em;
}
.error-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-lightest), rgba(46,189,107,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-md);
}
.error-card h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--green-darkest);
  margin-bottom: 1rem;
}
.error-card p {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.error-links {
  margin-top: 2.5rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.error-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--green);
  transition: var(--transition);
}
.error-links a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}
.error-pulse {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,189,107,0.06) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: errorPulse 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes errorPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}
