/* Intelliview Biotechnologies — site styles
   Brand: navy #0B2A45, teal #1FA2C8, glow cyan #43E3F2 (the heartbeat line in the mark). */

:root {
  --ink-900: #04121f;
  --ink-800: #071a2e;
  --ink-700: #0b2a45;
  --ink-600: #12385a;
  --line: rgba(140, 200, 230, 0.16);
  --teal: #1fa2c8;
  --teal-bright: #3cc4e6;
  --glow: #43e3f2;
  --text: #eaf4fa;
  --text-dim: #a7bfd0;
  --text-faint: #6f8aa0;
  --paper: #f5f9fc;
  --paper-ink: #0b2a45;
  --paper-dim: #4a6378;
  --radius: 18px;
  --wrap: 1180px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ink-800);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 20ch; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--teal); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal-bright); margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; box-shadow: 0 0 10px var(--glow); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  background: linear-gradient(135deg, var(--teal-bright), var(--teal));
  color: #fff; font-weight: 700; font-size: 0.98rem; text-decoration: none;
  box-shadow: 0 8px 30px -10px rgba(67, 227, 242, 0.6);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 36px -10px rgba(67, 227, 242, 0.8); }
.btn--ghost { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.28); box-shadow: none; backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); box-shadow: none; }
.btn--small { padding: 9px 18px; font-size: 0.88rem; }
.btn--large { padding: 18px 36px; font-size: 1.08rem; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(7, 26, 46, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__icon { width: 40px; height: 40px; filter: drop-shadow(0 0 12px rgba(67,227,242,.25)); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 800; font-size: 1.32rem; letter-spacing: -0.02em; color: #fff; }
.brand__name span { color: var(--teal-bright); }
.brand__sub { font-size: 0.56rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--text-dim); margin-top: 5px; font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { text-decoration: none; color: var(--text-dim); font-size: 0.92rem; font-weight: 600; transition: color .2s; }
.nav__links a:not(.btn):hover { color: #fff; }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; margin: 6px 0; transition: transform .25s ease; }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(7, 26, 46, 0.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav__links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav__links .btn { margin-top: 16px; }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.is-open { background: rgba(7, 26, 46, 0.97); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* Hero */
.hero {
  position: relative; min-height: clamp(640px, 100vh, 940px); min-height: clamp(640px, 100svh, 940px);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; isolation: isolate; padding: 120px 0 90px;
}
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 50%; z-index: -2; filter: saturate(0.85) contrast(1.05); }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(4,18,31,0.96) 0%, rgba(7,26,46,0.86) 38%, rgba(7,26,46,0.35) 72%, rgba(7,26,46,0.2) 100%),
    linear-gradient(0deg, var(--ink-800) 0%, rgba(7,26,46,0) 30%),
    radial-gradient(ellipse at 70% 50%, rgba(31,162,200,0.18), transparent 60%);
}
.hero__content { position: relative; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); max-width: 13ch; margin-bottom: 26px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-dim); max-width: 56ch; margin-bottom: 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__caption { position: absolute; bottom: 22px; left: 0; right: 0; font-size: 0.74rem; color: var(--text-faint); letter-spacing: 0.04em; }
/* Phones: a portrait crop of the 16:9 frame would land on bare wall and sit under the text,
   so show the image as an uncovered band up top, framed on the hand and the reveal. */
@media (max-width: 700px) {
  .hero { display: block; min-height: 0; padding: 0 0 72px; background: var(--ink-800); }
  .hero__media { position: relative; inset: auto; z-index: auto; height: auto; aspect-ratio: 1 / 1; object-position: 68% 82%; }
  .hero__shade {
    bottom: auto; height: calc(100vw + 2px);
    background:
      radial-gradient(ellipse 90% 45% at 50% 88%, rgba(31,162,200,0.38), transparent 70%),
      linear-gradient(180deg, rgba(7,26,46,0.7) 0, rgba(7,26,46,0) 90px, rgba(7,26,46,0.15) 55%, var(--ink-800) 100%);
    z-index: 0;
  }
  .hero__content { margin-top: -28px; z-index: 1; }
  .hero h1 { font-size: clamp(2.3rem, 10vw, 2.9rem); margin-bottom: 18px; }
  .lede { margin-bottom: 28px; }
  .hero__caption { bottom: 24px; }
}

/* Heartbeat line motif (path length ~1357 user units): the line traces in once, then a bright beat runs along it every 5s.
   Glow goes on the <svg>, not the paths: Safari ignores CSS filters on SVG children. */
.pulse {
  position: absolute; left: 0; right: 0; bottom: 64px; width: 100%; height: 56px;
  pointer-events: none; overflow: visible;
  filter: drop-shadow(0 0 5px rgba(67,227,242,0.9));
}
.pulse path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.pulse__base {
  stroke: var(--glow); stroke-width: 2; opacity: .5;
  stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: trace 3.2s ease-out .4s forwards;
}
.pulse__beat {
  stroke: #d9fbff; stroke-width: 3;
  stroke-dasharray: 190 1400; stroke-dashoffset: 190; opacity: 0;
  animation: beat 5s linear 3.6s infinite;
}
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes beat {
  0%      { stroke-dashoffset: 190; opacity: 1; }
  34%     { stroke-dashoffset: -1360; opacity: 1; }
  34.1%, 100% { stroke-dashoffset: -1360; opacity: 0; }
}
@media (max-width: 700px) {
  /* Sit on the fade at the bottom of the square image band. */
  .pulse { bottom: auto; top: calc(100vw - 92px); height: 40px; z-index: 1; }
}

/* Sections */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section__intro { color: var(--text-dim); font-size: 1.12rem; max-width: 62ch; margin-top: 22px; }
.section + .section { border-top: 1px solid var(--line); }

/* Problem */
.statement { font-size: clamp(2rem, 4.6vw, 3.8rem); max-width: 18ch; }
.statement em { font-style: normal; color: var(--teal-bright); text-shadow: 0 0 40px rgba(67,227,242,.35); }
.problem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); margin-top: 56px; align-items: start; }
.problem__lead { font-size: 1.2rem; color: var(--text-dim); }
@media (max-width: 860px) { .problem__grid { grid-template-columns: 1fr; } }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--radius);
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
}
.checklist strong { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.checklist span:not(.checklist__mark) { color: var(--text-dim); font-size: 0.96rem; }
.checklist__mark { flex: none; width: 28px; height: 28px; border-radius: 50%; position: relative; margin-top: 1px; }
.is-yes .checklist__mark { background: rgba(31,162,200,0.16); border: 1px solid rgba(60,196,230,0.5); }
.is-yes .checklist__mark::after { content: ""; position: absolute; left: 9px; top: 5px; width: 6px; height: 11px; border: solid var(--teal-bright); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.is-no { border-color: rgba(255, 140, 120, 0.35) !important; background: rgba(255, 120, 100, 0.06) !important; }
.is-no .checklist__mark { border: 1px dashed rgba(255, 150, 130, 0.7); }
.is-no .checklist__mark::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; color: #ffab98; font-weight: 800; font-size: 0.9rem; }

.define {
  margin-top: 56px; display: flex; gap: 24px; align-items: baseline;
  padding: 24px 28px; border-left: 3px solid var(--teal); background: linear-gradient(90deg, rgba(31,162,200,0.1), transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.define__term { font-weight: 800; font-size: 1.8rem; color: var(--teal-bright); letter-spacing: -0.02em; }
.define__body { color: var(--text-dim); }
.define__body strong { color: var(--text); font-weight: 700; }
@media (max-width: 600px) { .define { flex-direction: column; gap: 6px; } }

/* Technology */
.tech { background: radial-gradient(ellipse at 50% 0%, rgba(31,162,200,0.12), transparent 60%), var(--ink-700); }
.steps { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { background: rgba(4, 18, 31, 0.45); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding-bottom: 28px; }
.step__fig { margin: 0 0 24px; aspect-ratio: 4 / 3; overflow: hidden; background: #0b2a45; border-bottom: 1px solid var(--line); }
.step__fig img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transform-origin: 50% 45%; transition: transform .8s ease; }
.step:hover .step__fig img { transform: scale(1.2); }
.step__num { display: block; padding: 0 26px; font-weight: 800; font-size: 0.82rem; color: var(--teal-bright); letter-spacing: 0.18em; margin-bottom: 8px; }
.step h3 { padding: 0 26px; margin-bottom: 10px; }
.step p { padding: 0 26px; color: var(--text-dim); font-size: 0.98rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .step__fig { aspect-ratio: 16 / 9; } .step__fig img { transform: scale(1.05); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 72px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--ink-700); padding: 32px 26px; display: flex; flex-direction: column; gap: 10px; }
.stat__value { font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -0.03em; color: #fff; text-shadow: 0 0 30px rgba(67,227,242,.25); font-variant-numeric: tabular-nums; }
.stat__value--text { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--teal-bright); text-shadow: none; }
.stat__label { color: var(--text-dim); font-size: 0.92rem; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

.proof { margin-top: 40px; font-size: clamp(1.15rem, 2vw, 1.45rem); max-width: 40ch; color: var(--text-dim); }
.proof strong { color: #fff; }

/* Prototype */
.film { margin: 56px 0 0; border-radius: calc(var(--radius) + 4px); overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 40px 100px -40px rgba(0,0,0,.7), 0 0 0 1px rgba(67,227,242,0.08); }
.film img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.film figcaption { padding: 14px 20px; font-size: 0.82rem; color: var(--text-faint); background: var(--ink-900); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.feature { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: rgba(255,255,255,0.025); display: flex; flex-direction: column; }
.feature__media { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: #111; }
.feature__body { padding: 24px 24px 28px; }
.feature__body h3 { margin-bottom: 10px; }
.feature__body p { color: var(--text-dim); font-size: 0.96rem; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }

.layers { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.layers li { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-dim); transition: all .35s ease; }
.layers li.is-on { color: #fff; border-color: var(--teal-bright); background: rgba(31,162,200,0.22); box-shadow: 0 0 14px rgba(67,227,242,.3); }

.roadmap { margin-top: 48px; padding: 32px; border-radius: var(--radius); border: 1px dashed rgba(60,196,230,0.4); display: flex; gap: 32px; align-items: flex-start; }
.tag { flex: none; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-900); background: var(--teal-bright); padding: 6px 12px; border-radius: 6px; }
.roadmap__items { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; flex: 1; }
.roadmap h3 { margin-bottom: 6px; }
.roadmap p { color: var(--text-dim); font-size: 0.98rem; }
@media (max-width: 760px) { .roadmap { flex-direction: column; } .roadmap__items { grid-template-columns: 1fr; } }

/* Markets */
.markets { background: var(--ink-700); }
.markets__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.market { padding: 28px 24px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(31,162,200,0.14), rgba(31,162,200,0.03)); border: 1px solid rgba(60,196,230,0.25); }
.market h3 { margin-bottom: 10px; }
.market p { color: var(--text-dim); font-size: 0.95rem; }
@media (max-width: 960px) { .markets__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .markets__grid { grid-template-columns: 1fr; } }
.expand { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; color: var(--text-dim); }
.expand ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.expand li { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 0.95rem; }
.expand li::after { content: " →"; color: var(--teal-bright); }

/* Team (light) */
.team { background: var(--paper); color: var(--paper-ink); }
.team .eyebrow { color: var(--teal); }
.team .eyebrow::before { box-shadow: none; }
.section.team, .section.team + .section { border-top: 0; }
.team__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; }
.person { display: flex; gap: 24px; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid #dde8f0; box-shadow: 0 20px 50px -30px rgba(11,42,69,.35); }
.person img { flex: none; width: 128px; height: 128px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--teal); }
.person h3 { font-size: 1.3rem; }
.person__role { color: var(--teal); font-weight: 700; font-size: 0.86rem; margin: 6px 0 12px; letter-spacing: 0.02em; }
.person p:not(.person__role) { color: var(--paper-dim); font-size: 0.98rem; }
.person__link { display: inline-block; margin-top: 12px; color: var(--teal); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.person__link:hover { text-decoration: underline; }
@media (max-width: 900px) { .team__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .person { flex-direction: column; } }

/* Partner */
.partner { text-align: center; background: radial-gradient(ellipse at 50% 100%, rgba(31,162,200,0.25), transparent 60%), var(--ink-900); overflow: hidden; }
.partner__inner { display: flex; flex-direction: column; align-items: center; }
.partner h2 { max-width: 24ch; margin: 0 auto; }
.partner .section__intro { margin: 22px auto 36px; }
.callback { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-weight: 700; color: var(--text-dim); }
.callback li { display: flex; align-items: center; gap: 10px; }
.callback strong { color: var(--teal-bright); }
.callback__hero { color: #fff; }
.tick { width: 20px; height: 20px; border-radius: 50%; background: rgba(31,162,200,0.2); border: 1px solid var(--teal-bright); position: relative; }
.tick::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid var(--teal-bright); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.partner__email { margin-top: 16px; color: var(--text-faint); font-size: 0.9rem; }

/* Footer */
.footer { background: #fff; color: var(--paper-dim); padding: 56px 0 48px; }
.footer__inner { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: 48px; align-items: center; }
.footer__logo { width: 100%; height: auto; }
.footer__meta { display: grid; gap: 10px; font-size: 0.82rem; }
@media (max-width: 760px) { .footer__inner { grid-template-columns: 1fr; gap: 28px; } .footer__logo { max-width: 300px; } }

/* Scroll reveal */
/* Hidden only once JS has confirmed it can reveal them again. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pulse__base { animation: none; stroke-dashoffset: 0; }
  .pulse__beat { display: none; }
  .step__fig img, .btn { transition: none; }
}
