/* ============================================================
   NBM Life Science — Design System
   Palette: Navy #0B2A5B / Deep Navy #071B3D / Signal Red #E2382B
            Leaf Green #2FA86B / Mist #F5F7FA / White #FFFFFF
   Type: Manrope (display) + Inter (body/UI)
   Signature: the "pulse line" — a heartbeat trace that runs
   through section dividers, echoing the cardiogram mark used
   across NBM's own product branding.
   ============================================================ */

:root{
  --navy:#0B2A5B;
  --navy-deep:#071B3D;
  --navy-soft:#173B78;
  --red:#E2382B;
  --green:#2FA86B;
  --mist:#F5F7FA;
  --mist-2:#EDF1F6;
  --white:#FFFFFF;
  --ink:#0E1B2E;
  --ink-soft:#4A5568;
  --ink-faint:#8A94A6;
  --line:#E3E8EF;

  --display:'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --body:'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm:10px;
  --radius-md:18px;
  --radius-lg:28px;
  --shadow-sm:0 2px 10px rgba(11,42,91,0.06);
  --shadow-md:0 12px 40px rgba(11,42,91,0.10);
  --shadow-lg:0 24px 70px rgba(11,42,91,0.16);
  --ease:cubic-bezier(.16,.8,.24,1);
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.001ms !important;animation-iteration-count:1 !important;transition-duration:0.001ms !important;}
}

body{
  font-family:var(--body);
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
  overflow-x:hidden;
}

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

h1,h2,h3,h4{
  font-family:var(--display);
  font-weight:800;
  color:var(--navy-deep);
  letter-spacing:-0.02em;
  line-height:1.12;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--body);
  font-size:12.5px;
  font-weight:700;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--red);
}
.eyebrow::before{
  content:'';
  width:16px;height:1.5px;
  background:var(--red);
  display:inline-block;
}

.container{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
}

.section{padding:100px 0;}
@media (max-width:768px){ .section{padding:64px 0;} }

.section-head{
  max-width:640px;
  margin-bottom:56px;
}
.section-head h2{font-size:clamp(28px,4vw,42px);margin-top:14px;}
.section-head p{margin-top:16px;color:var(--ink-soft);font-size:17px;}
.center{text-align:center;margin-left:auto;margin-right:auto;}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:15px 30px;
  border-radius:100px;
  font-weight:600;
  font-size:15px;
  border:1px solid transparent;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
  white-space:nowrap;
}
.btn-primary{
  background:var(--navy);
  color:var(--white);
  box-shadow:0 8px 24px rgba(11,42,91,0.28);
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(11,42,91,0.36);}
.btn-ghost{
  background:transparent;
  color:var(--navy);
  border-color:var(--line);
}
.btn-ghost:hover{border-color:var(--navy);transform:translateY(-2px);}
.btn-white{
  background:var(--white);
  color:var(--navy);
}
.btn-white:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(0,0,0,0.18);}
.btn-sm{padding:11px 22px;font-size:13.5px;}

/* ===== Header ===== */
.site-header{
  position:fixed;
  top:0;left:0;right:0;
  z-index:1000;
  background:rgba(255,255,255,0.72);
  backdrop-filter:saturate(180%) blur(20px);
  -webkit-backdrop-filter:saturate(180%) blur(20px);
  border-bottom:1px solid rgba(11,42,91,0.06);
  transition:background .3s;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:132px;
  padding:10px 0;
}
@media (max-width:900px){
  .header-inner{min-height:112px;}
}
@media (max-width:600px){
  .header-inner{min-height:84px;padding:6px 0;}
}
@media (max-width:380px){
  .header-inner{min-height:72px;}
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:var(--display);
  font-weight:800;
  font-size:19px;
  color:var(--navy-deep);
}
.brand .mark{
  width:116px;height:116px;
  object-fit:contain;
  flex-shrink:0;
  display:block;
}
@media (max-width:900px){
  .brand .mark{width:96px;height:96px;}
}
@media (max-width:600px){
  .brand .mark{width:72px;height:72px;}
}
@media (max-width:380px){
  .brand .mark{width:60px;height:60px;}
}
.brand small{
  display:block;
  font-family:var(--body);
  font-weight:600;
  font-size:10px;
  letter-spacing:0.05em;
  color:var(--red);
  text-transform:uppercase;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:38px;
}
.nav-links a{
  font-size:14.5px;
  font-weight:600;
  color:var(--ink-soft);
  position:relative;
  padding:6px 0;
  transition:color .25s;
}
.nav-links a:hover, .nav-links a.active{color:var(--navy);}
.nav-links a.active::after{
  content:'';
  position:absolute;left:0;right:0;bottom:0;
  height:2px;background:var(--red);
  border-radius:2px;
}
.nav-cta{display:flex;align-items:center;gap:18px;}
.nav-toggle{display:none;}

@media (max-width:900px){
  .nav-links{
    position:fixed;
    top:84px;left:0;right:0;
    background:var(--white);
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    padding:8px 24px 20px;
    box-shadow:0 20px 40px rgba(11,42,91,0.12);
    transform:translateY(-8px);
    opacity:0;
    visibility:hidden;
    transition:all .3s var(--ease);
  }
  .nav-links.open{transform:translateY(0);opacity:1;visibility:visible;}
  .nav-links a{width:100%;padding:14px 0;border-bottom:1px solid var(--line);}
  .nav-cta .btn-ghost{display:none;}
  .nav-toggle{
    display:flex;flex-direction:column;justify-content:center;gap:5px;
    width:40px;height:40px;background:none;border:none;
  }
  .nav-toggle span{width:22px;height:2px;background:var(--navy);border-radius:2px;transition:.3s;}
  .nav-toggle.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .nav-toggle.open span:nth-child(2){opacity:0;}
  .nav-toggle.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
}

/* ===== Hero ===== */
.hero{
  position:relative;
  padding:210px 0 110px;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(47,168,107,0.13), transparent 60%),
    radial-gradient(900px 500px at 5% 0%, rgba(11,42,91,0.09), transparent 55%),
    var(--mist);
  overflow:hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:60px;
  align-items:center;
}
@media (max-width:960px){
  .hero-grid{grid-template-columns:1fr;}
  .hero{padding:130px 0 70px;}
}
.hero h1{
  font-size:clamp(36px,5.4vw,64px);
  animation:riseIn .9s var(--ease) both;
}
.hero h1 em{
  font-style:normal;
  color:var(--red);
}
.hero p.lead{
  margin-top:22px;
  font-size:18px;
  color:var(--ink-soft);
  max-width:520px;
  animation:riseIn .9s var(--ease) .1s both;
}
.hero-cta{
  margin-top:36px;
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  animation:riseIn .9s var(--ease) .2s both;
}
.hero-stats{
  margin-top:56px;
  display:flex;
  gap:40px;
  flex-wrap:wrap;
  animation:riseIn .9s var(--ease) .3s both;
}
.hero-stats .stat b{
  display:block;
  font-family:var(--display);
  font-size:30px;
  font-weight:800;
  color:var(--navy-deep);
}
.hero-stats .stat span{
  font-size:13px;
  color:var(--ink-faint);
  font-weight:600;
}

@keyframes riseIn{
  from{opacity:0;transform:translateY(22px);}
  to{opacity:1;transform:translateY(0);}
}

.hero-visual{
  position:relative;
  animation:riseIn 1.1s var(--ease) .15s both;
}
.hero-card{
  background:var(--white);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
  padding:22px;
  position:relative;
  transform:rotate(1.2deg);
}
.hero-card img{border-radius:var(--radius-md);width:100%;}
.floating-chip{
  position:absolute;
  background:var(--white);
  border-radius:14px;
  box-shadow:var(--shadow-md);
  padding:14px 18px;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  font-weight:700;
  color:var(--navy-deep);
  animation:float 5s ease-in-out infinite;
}
.floating-chip.chip-1{ top:-24px; left:-24px; animation-delay:.2s;}
.floating-chip.chip-2{ bottom:-20px; right:-18px; animation-delay:1s;}
.floating-chip .dot{width:9px;height:9px;border-radius:50%;background:var(--green);flex-shrink:0;}
@keyframes float{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-10px);}
}
@media (max-width:600px){
  .floating-chip{padding:10px 14px;font-size:11.5px;}
  .floating-chip.chip-1{top:-14px;left:-10px;}
  .floating-chip.chip-2{bottom:-14px;right:-10px;}
}

/* ===== Pulse divider — signature element ===== */
.pulse-divider{
  width:100%;
  height:52px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.pulse-divider svg{width:100%;max-width:1200px;height:100%;opacity:.5;}
.pulse-divider path{
  stroke-dasharray:1400;
  stroke-dashoffset:1400;
  animation:drawPulse 3.2s var(--ease) forwards;
}
@keyframes drawPulse{ to{stroke-dashoffset:0;} }

/* ===== Trust strip ===== */
.trust-strip{
  background:var(--navy-deep);
  color:#fff;
  padding:22px 0;
}
.trust-strip .container{
  display:flex;
  gap:36px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  font-size:13.5px;
  font-weight:600;
  letter-spacing:.02em;
  color:rgba(255,255,255,0.85);
}
.trust-strip span{display:flex;align-items:center;gap:9px;}
.trust-strip .dot-sep{width:5px;height:5px;border-radius:50%;background:var(--red);opacity:.7;}

/* ===== Cards / grids ===== */
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:28px;}
@media (max-width:900px){ .grid-3{grid-template-columns:repeat(2,1fr);} }
@media (max-width:640px){ .grid-3, .grid-2{grid-template-columns:1fr;} }

.feature-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  padding:32px 28px;
  transition:transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.feature-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-md);
  border-color:transparent;
}
.feature-card .icon{
  width:48px;height:48px;
  border-radius:13px;
  background:var(--mist);
  display:flex;align-items:center;justify-content:center;
  font-size:22px;
  margin-bottom:20px;
}
.feature-card h3{font-size:18px;margin-bottom:10px;}
.feature-card p{color:var(--ink-soft);font-size:15px;}

/* ===== Product cards ===== */
.product-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  overflow:hidden;
  transition:transform .45s var(--ease), box-shadow .45s var(--ease);
  display:flex;
  flex-direction:column;
}
.product-card:hover{transform:translateY(-8px);box-shadow:var(--shadow-lg);}
.product-media{
  aspect-ratio:3/2;
  background:var(--mist);
  overflow:hidden;
  position:relative;
}
.product-media img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .6s var(--ease);
}
.product-card:hover .product-media img{transform:scale(1.06);}
.rx-badge{
  position:absolute;top:14px;left:14px;
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(6px);
  color:var(--red);
  font-weight:800;
  font-size:12px;
  padding:5px 10px;
  border-radius:8px;
  letter-spacing:.02em;
}
.product-body{padding:26px 26px 28px;flex:1;display:flex;flex-direction:column;}
.product-body .tag{
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--green);
  margin-bottom:8px;
}
.product-body h3{font-size:21px;margin-bottom:6px;}
.product-body .composition{
  font-size:13.5px;
  color:var(--ink-faint);
  font-weight:600;
  margin-bottom:14px;
}
.product-body p.desc{
  font-size:14.5px;
  color:var(--ink-soft);
  flex:1;
  margin-bottom:18px;
}
.product-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:16px;
  border-top:1px solid var(--line);
  font-size:13px;
  color:var(--ink-faint);
  font-weight:600;
}

/* ===== Timeline / numbered list (mission) ===== */
.mission-list{margin-top:8px;}
.mission-list li{
  display:flex;
  gap:16px;
  padding:20px 0;
  border-bottom:1px solid var(--line);
}
.mission-list li:last-child{border-bottom:none;}
.mission-list .num{
  font-family:var(--display);
  font-weight:800;
  color:var(--red);
  font-size:14px;
  flex-shrink:0;
  padding-top:2px;
}
.mission-list p{color:var(--ink-soft);font-size:15.5px;}

/* ===== Split section ===== */
.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
  align-items:center;
}
@media (max-width:900px){ .split{grid-template-columns:1fr;gap:36px;} }
.split .media-frame{
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow-md);
  position:relative;
}
.split .media-frame img{width:100%;}

/* ===== CTA band ===== */
.cta-band{
  background:linear-gradient(120deg,var(--navy) 0%, var(--navy-soft) 55%, #0f3a7a 100%);
  border-radius:var(--radius-lg);
  padding:64px 56px;
  color:#fff;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  flex-wrap:wrap;
}
.cta-band::after{
  content:'';
  position:absolute;
  width:420px;height:420px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(47,168,107,0.35),transparent 70%);
  top:-160px;right:-120px;
}
.cta-band h2{color:#fff;font-size:clamp(24px,3vw,32px);max-width:480px;}
.cta-band p{color:rgba(255,255,255,0.78);margin-top:10px;max-width:440px;}
.cta-actions{display:flex;gap:14px;flex-wrap:wrap;position:relative;z-index:1;}

/* ===== Footer ===== */
.site-footer{
  background:var(--navy-deep);
  color:rgba(255,255,255,0.72);
  padding:72px 0 28px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1.2fr;
  gap:40px;
  padding-bottom:48px;
  border-bottom:1px solid rgba(255,255,255,0.1);
}
@media (max-width:860px){ .footer-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:560px){ .footer-grid{grid-template-columns:1fr;} }
.footer-grid h4{
  color:#fff;font-size:14px;
  font-family:var(--body);
  letter-spacing:.04em;
  text-transform:uppercase;
  margin-bottom:18px;
}
.footer-grid li{margin-bottom:11px;font-size:14.5px;}
.footer-grid a:hover{color:#fff;}
.footer-brand .brand{color:#fff;margin-bottom:14px;}
.footer-brand p{font-size:14px;line-height:1.7;max-width:280px;color:rgba(255,255,255,0.6);}
.footer-bottom{
  padding-top:26px;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  font-size:13px;
  color:rgba(255,255,255,0.45);
}

/* ===== Page hero (inner pages) ===== */
.page-hero{
  padding:190px 0 70px;
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(47,168,107,0.12), transparent 60%),
    var(--mist);
}
.page-hero .eyebrow{margin-bottom:14px;}
.page-hero h1{font-size:clamp(32px,4.6vw,52px);}
.page-hero p{margin-top:16px;color:var(--ink-soft);font-size:17px;max-width:600px;}
@media (max-width:600px){
  .page-hero{padding:110px 0 50px;}
}
.breadcrumb{
  font-size:13px;color:var(--ink-faint);font-weight:600;margin-bottom:18px;
}
.breadcrumb a{color:var(--navy);}

/* ===== Contact page ===== */
.contact-grid{
  display:grid;
  grid-template-columns:0.95fr 1.05fr;
  gap:48px;
  align-items:start;
}
@media (max-width:900px){ .contact-grid{grid-template-columns:1fr;} }
.contact-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  padding:28px;
  display:flex;
  gap:18px;
  margin-bottom:18px;
}
.contact-card .icon{
  width:46px;height:46px;border-radius:12px;
  background:var(--mist);
  display:flex;align-items:center;justify-content:center;
  font-size:20px;flex-shrink:0;
}
.contact-card h4{font-size:15px;margin-bottom:6px;color:var(--navy-deep);}
.contact-card p, .contact-card a{font-size:14.5px;color:var(--ink-soft);}
.contact-card a:hover{color:var(--navy);}

.form-panel{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:40px;
  box-shadow:var(--shadow-sm);
}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
@media (max-width:560px){ .form-row{grid-template-columns:1fr;} }
.field{margin-bottom:20px;}
.field label{
  display:block;font-size:13px;font-weight:700;color:var(--navy-deep);
  margin-bottom:8px;letter-spacing:.02em;
}
.field input, .field textarea, .field select{
  width:100%;
  padding:14px 16px;
  border:1.5px solid var(--line);
  border-radius:12px;
  font-family:var(--body);
  font-size:14.5px;
  color:var(--ink);
  background:var(--mist);
  transition:border-color .25s, background .25s;
}
.field input:focus, .field textarea:focus, .field select:focus{
  outline:none;
  border-color:var(--navy);
  background:#fff;
}
.field textarea{resize:vertical;min-height:120px;}
.map-frame{
  border-radius:var(--radius-md);
  overflow:hidden;
  border:1px solid var(--line);
  margin-top:8px;
}
.map-frame iframe{width:100%;height:320px;border:0;display:block;}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:2px solid var(--navy);
  outline-offset:3px;
}

/* Reveal-on-scroll */
.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in{opacity:1;transform:translateY(0);}

/* Back to top */
.to-top{
  position:fixed;
  bottom:26px;right:26px;
  width:48px;height:48px;
  border-radius:50%;
  background:var(--navy);
  color:#fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow:var(--shadow-md);
  opacity:0;visibility:hidden;
  transform:translateY(10px);
  transition:all .35s var(--ease);
  z-index:900;
  border:none;
  font-size:18px;
}
.to-top.show{opacity:1;visibility:visible;transform:translateY(0);}

/* Utility */
.mt-8{margin-top:8px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;} .mt-40{margin-top:40px;}
.text-soft{color:var(--ink-soft);}
.badge-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px;}
.badge{
  background:var(--mist);
  border:1px solid var(--line);
  padding:8px 14px;
  border-radius:100px;
  font-size:12.5px;
  font-weight:700;
  color:var(--navy);
  display:flex;align-items:center;gap:7px;
}
.badge .dot{width:7px;height:7px;border-radius:50%;background:var(--green);}
