/* Corsair Health - Main Stylesheet */

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

:root {
  --navy:   #0B1B33;
  --teal-d: #0D6E7A;
  --teal:   #14C8B4;
  --teal-l: #66E7D6;
  --white:  #E6EDF3;
  --glass:  rgba(13,110,122,0.12);
  --border: rgba(20,200,180,0.18);
  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--navy); color: var(--white);
  font-family: var(--font-body); font-size: 16px;
  line-height: 1.6; overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(11,27,51,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; cursor: pointer;  margin-right: auto;}
.nav-logo svg { width: 36px; height: 36px; }
.nav-logo span { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.08em; color: var(--white); }
.nav-logo span em { color: var(--teal); font-style: normal; }
.navbar-brand-img {
  height: 54px;
  width: auto;
  max-width: 260px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  
  /* Forces pixel-perfect scaling maps on Retina / High-DPI smartphones */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a {
  color: rgba(230,237,243,0.65); text-decoration: none;
  font-size: 0.875rem; font-weight: 500; transition: color 0.2s;
  cursor: pointer; background: none; border: none; padding: 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-cta {
  background: var(--teal); color: var(--navy);
  padding: 0.5rem 1.25rem; border-radius: 6px;
  font-size: 0.875rem; font-weight: 600;
  cursor: pointer; border: none; transition: background 0.2s;
}
.nav-cta:hover { background: var(--teal-l); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; }
.mobile-menu {
  display: none; position: fixed; top: 65px; left: 0; right: 0; z-index: 199;
  background: rgba(11,27,51,0.97); border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem; flex-direction: column; gap: 1.25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(230,237,243,0.7); text-decoration: none;
  font-size: 1rem; font-weight: 500; cursor: pointer;
}
.mobile-menu a:hover { color: var(--teal); }

/* ── SPA VIEW SYSTEM ── */
.view { display: none; }
.view.active { display: block; }

/* ── SHARED ── */
section { padding: 6rem 2rem; }
.container { max-width: 1160px; margin: 0 auto; }
.section-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 0.75rem;
}
h2 {
  font-family: var(--font-display); font-size: clamp(1.8rem,4vw,2.8rem);
  font-weight: 700; line-height: 1.15; margin-bottom: 1rem; color: var(--white);
}
h2 span { color: var(--teal); }
.sub { color: rgba(230,237,243,0.65); max-width: 560px; font-size: 1rem; line-height: 1.7; }

.btn-primary {
  background: var(--teal); color: var(--navy);
  padding: 0.85rem 2rem; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: var(--teal-l); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--white);
  padding: 0.85rem 2rem; border-radius: 8px;
  font-weight: 500; font-size: 0.95rem;
  border: 1px solid var(--border); transition: all 0.2s;
  cursor: pointer; text-decoration: none; display: inline-block;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ══════════════════════════════════
   MAIN SITE VIEW
══════════════════════════════════ */

/* HERO */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 8rem 2rem 4rem; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(13,110,122,0.22) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 80% 20%, rgba(20,200,180,0.08) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero-eyebrow {
  display: inline-block; margin-bottom: 1.5rem;
  padding: 0.35rem 1rem; border: 1px solid var(--border);
  border-radius: 99px; font-size: 0.75rem; font-weight: 500;
  color: var(--teal); letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(20,200,180,0.07);
}
h1 {
  font-family: var(--font-display); font-size: clamp(2.6rem,6vw,4.5rem);
  font-weight: 800; line-height: 1.05; margin-bottom: 1.5rem; color: var(--white);
}
h1 span { color: var(--teal); }
.hero-sub {
  font-size: clamp(1rem,2vw,1.2rem); color: rgba(230,237,243,0.72);
  max-width: 620px; margin: 0 auto 2.5rem; line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; justify-content: center; margin-top: 4rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--teal); }
.stat-lbl { font-size: 0.8rem; color: rgba(230,237,243,0.55); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ABOUT */
#about { background: rgba(13,110,122,0.06); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; margin-top: 3rem; }
.acronym-list { list-style: none; margin-top: 1.5rem; }
.acronym-list li { display: flex; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.acronym-list li:last-child { border-bottom: none; }
.letter { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--teal); width: 20px; flex-shrink: 0; }
.about-visual { background: var(--glass); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem; }
.about-visual p { font-size: 1.05rem; line-height: 1.8; color: rgba(230,237,243,0.8); }
.about-visual p strong { color: var(--teal); font-weight: 500; }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 2rem 0 2.5rem; }
.vm-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform 0.2s, border-color 0.2s;
}
.vm-card:hover { transform: translateY(-4px); border-color: var(--teal); }
.vm-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(20,200,180,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.vm-icon svg { width: 24px; height: 24px; }
.vm-card h4 {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: var(--white); letter-spacing: 0.02em;
}
.vm-card p { font-size: 0.92rem; color: rgba(230,237,243,0.68); line-height: 1.7; }

@media (max-width: 768px) {
  .vm-grid { grid-template-columns: 1fr; }
  .brand-logo img {
    height: 35px;
  }
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .nav-links {
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* VALUES */
.values-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1.25rem; }
.value-card { background: var(--glass); border: 1px solid var(--border); border-radius: 14px; padding: 1.75rem; transition: transform 0.2s, border-color 0.2s; }
.value-card:hover { transform: translateY(-4px); border-color: var(--teal); }
.value-icon { margin-bottom: 1rem; }
.value-icon svg { width: 36px; height: 36px; }
.value-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--teal); margin-bottom: 0.5rem; letter-spacing: 0.04em; }
.value-card p { font-size: 0.875rem; color: rgba(230,237,243,0.65); line-height: 1.6; }

/* SERVICES */
#services { background: rgba(13,110,122,0.06); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.25rem; margin-top: 3rem; }
.service-card { background: rgba(11,27,51,0.6); border: 1px solid var(--border); border-radius: 14px; padding: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.svc-icon { width: 44px; height: 44px; background: rgba(20,200,180,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.svc-icon svg { width: 22px; height: 22px; }
.service-card h3 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--white); letter-spacing: 0.05em; text-transform: uppercase; }
.service-card p { font-size: 0.875rem; color: rgba(230,237,243,0.6); line-height: 1.6; }

/* AFRICA */
.africa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; margin-top: 3rem; }
.africa-points { display: flex; flex-direction: column; gap: 1.5rem; }
.africa-point { display: flex; gap: 1.25rem; align-items: flex-start; }
.africa-point .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-top: 7px; flex-shrink: 0; }
.africa-point h4 { font-weight: 600; font-size: 0.95rem; color: var(--white); margin-bottom: 0.25rem; }
.africa-point p { font-size: 0.875rem; color: rgba(230,237,243,0.6); line-height: 1.6; }
.africa-map { background: var(--glass); border: 1px solid var(--border); border-radius: 16px; padding: 3rem 2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 340px; position: relative; overflow: hidden; }
.africa-map svg { width: 200px; opacity: 0.8; }
.map-pulse { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(20,200,180,0.6)} 70%{box-shadow:0 0 0 18px rgba(20,200,180,0)} 100%{box-shadow:0 0 0 0 rgba(20,200,180,0)} }
.map-label { margin-top: 1.25rem; font-size: 0.8rem; color: rgba(230,237,243,0.5); text-align: center; letter-spacing: 0.08em; text-transform: uppercase; }

/* CONTACT */
#contact { background: rgba(13,110,122,0.06); border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.ci-icon { width: 40px; height: 40px; background: rgba(20,200,180,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ci-icon svg { width: 18px; height: 18px; }
.contact-item h4 { font-size: 0.8rem; color: var(--teal); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.contact-item p, .contact-item a { font-size: 0.95rem; color: rgba(230,237,243,0.8); text-decoration: none; }
.contact-item a:hover { color: var(--teal); }

/* CONTACT FORM */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  background: rgba(11,27,51,0.8); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.75rem 1rem;
  color: var(--white); font-family: var(--font-body); font-size: 0.9rem;
  outline: none; transition: border-color 0.2s; width: 100%;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(230,237,243,0.3); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--teal); }
.contact-form select option { background: #0B1B33; color: var(--white); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-status { display: none; padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.9rem; margin-top: 0.5rem; }
.form-status.success { display: block; background: rgba(29,158,117,0.15); border: 1px solid rgba(29,158,117,0.4); color: #1D9E75; }
.form-status.error   { display: block; background: rgba(226,75,74,0.15); border: 1px solid rgba(226,75,74,0.4); color: #E24B4A; }

/* FOOTER */
footer {
  padding: 2rem 2.5rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-logo { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: rgba(230,237,243,0.5); letter-spacing: 0.06em; }
.footer-logo em { color: var(--teal); font-style: normal; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8rem; color: rgba(230,237,243,0.4); text-decoration: none; cursor: pointer; transition: color 0.2s; }
.footer-links a:hover { color: var(--teal); }
.footer-copy { font-size: 0.78rem; color: rgba(230,237,243,0.3); }

/* ══════════════════════════════════
   PRODUCTS VIEW
══════════════════════════════════ */
#view-products {
  min-height: 100vh;
  display: flex; flex-direction: column;
}
.products-hero {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 9rem 2rem 5rem;
  position: relative; overflow: hidden;
}
.products-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 65% 55% at 50% 45%, rgba(13,110,122,0.2) 0%, transparent 70%),
              radial-gradient(ellipse 30% 30% at 15% 80%, rgba(20,200,180,0.05) 0%, transparent 60%);
}
.products-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 20%, transparent 75%);
}
/* Orbits */
.orbit-wrap { position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.orbit { position: absolute; border-radius: 50%; border: 1px solid var(--border); animation: spin linear infinite; }
.orbit-1 { width: 340px; height: 340px; animation-duration: 28s; }
.orbit-2 { width: 520px; height: 520px; animation-duration: 45s; animation-direction: reverse; }
.orbit-3 { width: 700px; height: 700px; animation-duration: 65s; }
.orbit-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); top: -3.5px; left: 50%; transform: translateX(-50%); box-shadow: 0 0 8px var(--teal); }
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

.products-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; max-width: 680px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.4rem 1rem; border-radius: 99px;
  border: 1px solid var(--border); background: rgba(20,200,180,0.07);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 2rem;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }
.products-title { font-family: var(--font-display); font-size: clamp(2.8rem,7vw,5rem); font-weight: 800; line-height: 1.0; color: var(--white); margin-bottom: 0.5rem; }
.products-title span { color: var(--teal); }
.products-tagline { font-family: var(--font-display); font-size: clamp(1rem,2.5vw,1.25rem); font-weight: 600; color: rgba(230,237,243,0.4); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.75rem; }
.products-desc { font-size: 1.05rem; color: rgba(230,237,243,0.65); line-height: 1.75; margin-bottom: 3rem; max-width: 560px; }

/* Product teaser cards */
.product-teasers { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; width: 100%; margin-bottom: 3rem; }
.teaser-card {
  background: var(--glass); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.5rem 1.25rem; display: flex; flex-direction: column; align-items: center;
  gap: 0.75rem; position: relative; overflow: hidden; cursor: default;
}
.teaser-card::after {
  content: 'Coming Soon'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11,27,51,0.75); backdrop-filter: blur(3px);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  color: var(--teal); text-transform: uppercase; opacity: 0; transition: opacity 0.25s;
}
.teaser-card:hover::after { opacity: 1; }
.teaser-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(20,200,180,0.1); display: flex; align-items: center; justify-content: center; }
.teaser-icon svg { width: 22px; height: 22px; }
.teaser-name { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; color: var(--white); text-align: center; }
.teaser-blur { font-size: 0.78rem; color: rgba(230,237,243,0.35); filter: blur(3.5px); user-select: none; text-align: center; line-height: 1.5; }

/* Notify */
.notify-wrap { display: flex; gap: 0.75rem; width: 100%; max-width: 440px; flex-wrap: wrap; justify-content: center; }
.notify-wrap input {
  flex: 1; min-width: 220px;
  background: rgba(11,27,51,0.8); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.75rem 1rem;
  color: var(--white); font-family: var(--font-body); font-size: 0.9rem;
  outline: none; transition: border-color 0.2s;
}
.notify-wrap input::placeholder { color: rgba(230,237,243,0.3); }
.notify-wrap input:focus { border-color: var(--teal); }
.btn-notify {
  background: var(--teal); color: var(--navy);
  padding: 0.75rem 1.5rem; border-radius: 8px;
  font-weight: 600; font-size: 0.9rem;
  border: none; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-notify:hover { background: var(--teal-l); transform: translateY(-1px); }
.notify-note { margin-top: 0.75rem; font-size: 0.78rem; color: rgba(230,237,243,0.35); }
.back-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 3rem;
  color: rgba(230,237,243,0.45); font-size: 0.85rem;
  background: none; border: none; cursor: pointer; transition: color 0.2s;
}
.back-link:hover { color: var(--teal); }
.back-link svg { width: 14px; height: 14px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; justify-content: space-between; }
  .nav-links, .nav-cta { display: none; }
  .nav-logo {margin-right: 0; }
  .nav-socials { 
    display: flex !important;
    margin-left: auto;
    margin-right: 1.25rem;
    gap: 0.85rem;
  }
  .hamburger { display: flex; }
  .navbar-brand-img { height: 46px; max-width: 260px; }
  .about-grid, .africa-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  section { padding: 4rem 1.25rem; }
  .product-teasers { grid-template-columns: 1fr; }
  .orbit-1 { width: 260px; height: 260px; }
  .orbit-2 { width: 380px; height: 380px; }
  .orbit-3 { width: 500px; height: 500px; }
  footer { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1; transform:none; }
  .map-pulse, .orbit, .badge-dot { animation: none; }
}

.africa-image {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(20,200,180,0.25));
}
