:root {
  --bg: #080c12;
  --surface: #0d1422;
  --border: #15202f;
  --text: #e8f0fe;
  --muted: #4e6280;
  --dim: #1e2d40;
  --cyan: #00e5ff;
  --green: #00e676;
  --r: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

/* NAV */
nav {
  position: fixed; top: 34px; left: 0; right: 0; z-index: 100;
  height: 72px; padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
nav.solid { background: rgba(8,12,18,.96); border-color: var(--border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav-logo { flex-shrink: 0; display: flex; align-items: center; height: 100%; }
.nav-logo img { height: 80px; max-height: 100%; width: auto; object-fit: contain; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: rgba(232,240,254,.55); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; margin: -6px; line-height: 0; }

/* VIDEO TOP — full-width standalone video block */
.video-top {
  width: 100%; height: 85vh; min-height: 480px;
  overflow: hidden; background: #000; display: block;
}
.video-top video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* HERO */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: flex-end; padding-bottom: 9rem;
  overflow: hidden;
}
.hero-text {
  padding: 7rem 0 6rem; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(8,12,18,.82);
}
.hero-body { position: relative; z-index: 2; max-width: 820px; padding: 0 2.5rem; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(232,240,254,.75); margin-bottom: 1.25rem; }
.hero h1, .hero-text h1 { font-size: clamp(2.8rem, 7vw, 5.8rem); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; margin-bottom: 1.5rem; }
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(232,240,254,.6); max-width: 560px; margin-bottom: 2.5rem; line-height: 1.7; }

/* LAYOUT */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 2.5rem; }
section { padding: 7rem 0; }

/* HEADINGS */
h2 { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; margin-bottom: .8rem; }
.label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; display: block; }
.label.c { color: var(--cyan); }
.label.g { color: var(--green); }
.label.m { color: var(--muted); }
.body { font-size: 17px; color: rgba(232,240,254,.6); line-height: 1.8; max-width: 660px; }
.body + .body { margin-top: 1rem; }

/* PROOF BAR */
.proof-bar { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: .85rem 0; }
.proof-track { display: flex; align-items: center; width: max-content; animation: ticker 40s linear infinite; }
.proof-item { white-space: nowrap; font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 0 2rem; }
.proof-item::before { content: '·'; margin-right: 2rem; color: var(--dim); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* PRODUCT SHOT — full width, no crop */
.product-shot {
  width: 100%; display: block;
  border-radius: 20px;
  box-shadow: 0 40px 100px rgba(0,0,0,.7);
  margin-top: 4rem;
}

/* STAT BAND */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--surface); padding: 2rem; }
.stat-n { font-size: 2.8rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.stat-n.c { color: var(--cyan); }
.stat-n.g { color: var(--green); }
.stat-t { font-size: 12px; color: var(--muted); margin-top: .5rem; text-transform: uppercase; letter-spacing: .05em; }

/* 9 CONDITIONS GRID */
.cond-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-top: 3rem; }
.cond { background: var(--surface); padding: 1.5rem 1.75rem; }
.cond-name { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.cond-icd { font-size: 11px; font-weight: 600; color: var(--cyan); letter-spacing: .06em; margin-bottom: .5rem; }
.cond p { font-size: 13px; color: rgba(232,240,254,.4); line-height: 1.55; }

/* HRV METRICS */
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-top: 3rem; }
.metric { background: var(--surface); padding: 1.75rem 2rem; }
.metric-name { font-size: 1.1rem; font-weight: 700; color: var(--cyan); margin-bottom: .4rem; font-family: monospace; letter-spacing: .04em; }
.metric-name.g { color: var(--green); }
.metric p { font-size: 14px; color: rgba(232,240,254,.5); line-height: 1.65; }
.metric-full { grid-column: 1 / -1; }

/* TABLES */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); margin-top: 3rem; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: .9rem 1.25rem; border-bottom: 1px solid var(--border); text-align: left; background: var(--surface); }
.tbl td { padding: 1rem 1.25rem; border-bottom: 1px solid rgba(21,32,47,.6); vertical-align: top; line-height: 1.55; background: var(--bg); }
.tbl tr:last-child td { border-bottom: none; }
.tbl td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.tbl td:not(:first-child) { color: rgba(232,240,254,.5); }
.pass { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: rgba(0,230,118,.1); color: var(--green); letter-spacing: .04em; }
.chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: rgba(0,229,255,.12); color: var(--cyan); letter-spacing: .04em; }

/* PILLAR GRID */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-top: 3rem; }
.pillar { background: var(--surface); padding: 2.5rem 2rem; }
.pillar h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .75rem; }
.pillar p { font-size: 15px; color: rgba(232,240,254,.5); line-height: 1.7; }

/* PRODUCT CARDS — index only */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-top: 5rem; }
.pcard { background: var(--surface); padding: 2.5rem; }
.pcard-logo { height: 80px; width: auto; margin-bottom: 1.5rem; display: block; }
.pcard h3 { font-size: 2rem; font-weight: 700; margin-bottom: .3rem; }
.pcard .ptype { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.5rem; display: block; }
.pcard p { font-size: 15px; color: rgba(232,240,254,.5); line-height: 1.75; margin-bottom: 2rem; }
.pcard .product-shot { margin-top: 1.5rem; margin-bottom: 2rem; }
.arrow { font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; transition: gap .2s; }
.arrow:hover { gap: .6rem; }
.arrow::after { content: ' →'; }
.arrow.c { color: var(--cyan); }
.arrow.g { color: var(--green); }

/* BRAND STATEMENT */
.brand { max-width: 700px; margin: 0 auto; text-align: center; padding: 7rem 2.5rem; }
.brand h2 { margin-bottom: 2rem; }
.brand p { font-size: 1.2rem; color: rgba(232,240,254,.55); line-height: 1.85; }
.brand p + p { margin-top: 1.25rem; }

/* SUGAR BOMB */
.sugar-bomb { border: 1px solid rgba(0,230,118,.2); border-radius: 16px; background: rgba(0,230,118,.04); padding: 2.5rem; margin-top: 3rem; }
.sugar-bomb .threshold { font-size: 3.5rem; font-weight: 700; color: var(--green); letter-spacing: -.04em; margin-bottom: .25rem; line-height: 1; }
.sugar-bomb h3 { color: var(--green); font-size: 1.6rem; margin-bottom: .75rem; }
.sugar-bomb .cite { font-size: 13px; color: var(--muted); margin-top: 1rem; font-style: italic; }

/* PREDICTION GRID */
.pred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: 2.5rem; }
.pred { background: var(--surface); padding: 1.75rem 2rem; }
.pred-name { font-weight: 700; color: var(--text); margin-bottom: .4rem; font-size: 1rem; }
.pred-window { font-size: 1.4rem; font-weight: 700; color: var(--green); margin-bottom: .4rem; letter-spacing: -.02em; }
.pred p { font-size: 14px; color: rgba(232,240,254,.45); line-height: 1.6; }

/* CITE CARDS */
.cite-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: 3rem; }
.cite-card { background: var(--surface); padding: 1.75rem 2rem; }
.cite-card .cite-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--green); font-weight: 600; margin-bottom: .5rem; }
.cite-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.cite-card p { font-size: 14px; color: rgba(232,240,254,.45); line-height: 1.65; }
.cite-card .pmid { font-size: 12px; color: var(--muted); margin-top: .75rem; font-style: italic; }

/* CONTACT */
.contact { text-align: center; padding: 5rem 2.5rem; border-top: 1px solid var(--border); }
.contact h3 { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: .75rem; letter-spacing: -.02em; }
.contact p { font-size: 1rem; color: rgba(232,240,254,.55); margin-bottom: 1.5rem; }
.contact a.contact-link { display: inline-block; font-size: 1.05rem; font-weight: 600; color: var(--cyan); border: 1px solid rgba(0,229,255,.25); border-radius: 8px; padding: .65rem 1.75rem; transition: background .2s, border-color .2s; }
.contact a.contact-link:hover { background: rgba(0,229,255,.08); border-color: var(--cyan); }

/* DISCLAIMER */
.disc { font-size: 13px; color: var(--muted); line-height: 1.75; padding: 1.75rem 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); margin-top: 4rem; }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 3.5rem 0; }
.foot { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; }
.foot-brand { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.foot-meta { font-size: 13px; color: var(--muted); line-height: 1.7; }
.foot-links { display: flex; gap: 2rem; }
.foot-links a { font-size: 14px; color: var(--muted); transition: color .2s; }
.foot-links a:hover { color: var(--text); }

/* SECTION BORDER */
.border-top { border-top: 1px solid var(--border); }

/* MOBILE */
@media (max-width: 900px) {
  .products { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .metric-full { grid-column: auto; }
  .cond-grid { grid-template-columns: 1fr 1fr; }
  .pred-grid, .cite-row { grid-template-columns: 1fr; }
  nav { padding: 0 1.5rem; }
  .hero-body, .wrap { padding-left: 1.5rem; padding-right: 1.5rem; }
  section { padding: 5rem 0; }
  .brand { padding: 5rem 1.5rem; }
}
@media (max-width: 480px) {
  .pillars { grid-template-columns: 1fr; }
  .cond-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .nav-logo img { height: 56px; }
}

/* TOP CONTACT BAR (flags + phone) */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 101; height: 34px; background: #0b1119; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: flex-end; gap: 1.75rem; padding: 0 2.5rem; }
.phone { display: inline-flex; align-items: center; gap: .45rem; font-size: 12.5px; font-weight: 500; color: rgba(232,240,254,.7); white-space: nowrap; transition: color .2s; }
.phone:hover { color: var(--text); }
.flag { height: 12px; width: auto; border-radius: 2px; display: inline-block; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }

/* FOOTER CONTACT (flag + address) */
.foot-contact { display: flex; align-items: center; gap: .5rem; font-size: 13px; color: var(--muted); line-height: 1.7; margin-top: .75rem; }
.foot-contact .flag { height: 12px; }

/* FOOTER OFFICE CARDS */
.foot-offices { display: flex; gap: .85rem; flex-wrap: wrap; margin-top: 1.1rem; }
.foot-office { flex: 1 1 220px; min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: .9rem 1.1rem; }
.foot-office .office-head { display: flex; align-items: center; gap: .5rem; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.foot-office .office-head .flag { height: 13px; }
.foot-office .office-addr { font-size: 13px; color: var(--text); opacity: .82; line-height: 1.55; }

@media (max-width: 820px) {
  .topbar { gap: 1rem; padding: 0 1.25rem; }
  .phone { font-size: 11.5px; gap: .35rem; }
}

/* MOBILE NAV (hamburger) */
@media (max-width: 760px) {
  nav { height: 60px; padding: 0 1.25rem; background: rgba(8,12,18,.96); border-color: var(--border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .nav-logo img { height: 44px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 0;
    background: rgba(8,12,18,.98); border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  nav.open .nav-links { max-height: 320px; }
  .nav-links li { width: 100%; border-top: 1px solid var(--border); }
  .nav-links li:first-child { border-top: none; }
  .nav-links a { display: block; padding: .9rem 1.5rem; font-size: 15px; color: rgba(232,240,254,.8); }
}
@media (max-width: 380px) {
  .topbar { gap: .65rem; padding: 0 1rem; }
  .phone { font-size: 11px; }
  .phone .flag { height: 11px; }
}
