/* ===== Positive HIS & IVF — site styles ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --ink: #0f172a;
  --muted: #5b6478;
  --line: #e6e9f0;
  --primary: #0a6fb8;
  --primary-dark: #08588f;
  --primary-soft: #e6f1fa;
  --accent: #8ab92d;
  --navy: #0b2a4a;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.container { width: min(var(--container), calc(100% - 2rem)); margin: 0 auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(10,111,184,.25); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--sm { padding: .6rem 1.1rem; font-size: .875rem; }
.btn--block { width: 100%; }

/* ---- Header ---- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; }
.brand__mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-weight: 800;
}
.brand__text strong { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 1.75rem; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--primary); }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(10,111,184,.14), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(138,185,45,.14), transparent 60%),
    #fff;
  padding: 5rem 0 4rem;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--primary-soft); color: var(--primary-dark);
  padding: .4rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 600; margin-bottom: 1.25rem;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(138,185,45,.25); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 36rem; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.5rem 0 1.25rem; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero__facts li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: .4rem; }

/* ---- Animated hero: orbital hub (light, no panel) ---- */
.hub { position: relative; padding: .5rem 0 0; }
.hub::before {
  content: ""; position: absolute; left: 50%; top: 24%; width: 70%; aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(138,185,45,.18) 0%, rgba(10,111,184,.10) 45%, transparent 70%); filter: blur(10px); pointer-events: none;
}
.hub__stage { position: relative; width: 100%; aspect-ratio: 1; max-width: 400px; margin: 0 auto; }
.hub__rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub__rings circle { fill: none; stroke: rgba(11,42,74,.12); stroke-width: 1; }
.hub__rings circle:nth-child(2) { stroke-dasharray: 3 6; animation: spin 60s linear infinite; transform-origin: 200px 200px; }
@keyframes spin { to { transform: rotate(360deg); } }
#hubBeam { stroke: #8ab92d; stroke-width: 2.5; stroke-linecap: round; opacity: 0; filter: drop-shadow(0 0 4px rgba(138,185,45,.6)); }
#hubSpark { fill: #6f9d1a; opacity: 0; filter: drop-shadow(0 0 5px #8ab92d); }
.hub__core {
  position: absolute; left: 50%; top: 50%; width: 27%; aspect-ratio: 1; transform: translate(-50%,-50%);
  border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 8px rgba(138,185,45,.12), 0 18px 40px -10px rgba(11,42,74,.35);
  animation: breathe 4s ease-in-out infinite;
}
.hub__core img { width: 52%; }
.hub__core i { position: absolute; top: 10%; right: 10%; width: 12px; height: 12px; border-radius: 50%; background: #8ab92d; border: 2px solid #fff; box-shadow: 0 0 8px rgba(138,185,45,.8); }
@keyframes breathe { 0%,100% { box-shadow: 0 0 0 8px rgba(138,185,45,.12), 0 18px 40px -10px rgba(11,42,74,.35); } 50% { box-shadow: 0 0 0 14px rgba(138,185,45,.18), 0 18px 40px -10px rgba(11,42,74,.35); } }

.node {
  position: absolute; width: 15%; aspect-ratio: 1; transform: translate(-50%,-50%);
  border-radius: 16px; border: 1px solid var(--line); background: #fff; color: var(--primary);
  display: grid; place-items: center; cursor: pointer; padding: 0; font: inherit;
  box-shadow: 0 8px 20px -8px rgba(11,42,74,.25);
  transition: background .4s, color .4s, box-shadow .4s, border-color .4s, transform .4s;
}
.node svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.node span {
  position: absolute; top: 108%; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: .64rem; font-weight: 600; color: var(--muted);
}
.node.is-active {
  background: #8ab92d; color: #0b2a4a; border-color: #8ab92d; transform: translate(-50%,-50%) scale(1.12);
  box-shadow: 0 0 0 7px rgba(138,185,45,.18), 0 12px 30px -6px rgba(138,185,45,.6);
}
.node.is-active span { color: #4f7a10; }

.feed { display: grid; gap: .5rem; margin: .75rem auto 0; max-width: 400px; grid-auto-rows: 60px; height: calc(60px * 3 + 1rem); overflow: hidden; }
.feed__item {
  display: flex; align-items: center; gap: .75rem; padding: .6rem .8rem; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: 0 6px 16px -10px rgba(11,42,74,.2);
  animation: feedIn .5s ease both; transition: opacity .5s, transform .5s;
}
.feed__item:nth-child(2) { opacity: .7; } .feed__item:nth-child(3) { opacity: .45; }
.feed__item:first-child { background: #f4f9ea; border-color: #c9df9a; }
.feed__icon { width: 34px; height: 34px; border-radius: 10px; background: var(--primary-soft); display: grid; place-items: center; color: var(--primary); flex: none; }
.feed__item:first-child .feed__icon { background: #8ab92d; color: #0b2a4a; }
.feed__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feed__item strong { display: block; font-size: .82rem; } .feed__item small { color: var(--muted); font-size: .7rem; }
.feed__now { margin-left: auto; font-size: .62rem; font-weight: 700; color: #4f7a10; display: inline-flex; align-items: center; gap: .3rem; }
.feed__now::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8ab92d; box-shadow: 0 0 8px #8ab92d; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) { .hub__core, .hub__rings circle { animation: none !important; } }
@media (max-width: 640px) { .node span { font-size: .56rem; } }

/* ---- Strip ---- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 1.5rem 0; }
.strip__inner div { display: flex; flex-direction: column; }
.strip__inner strong { font-size: .95rem; }
.strip__inner span { color: var(--muted); font-size: .85rem; }

/* ---- Sections ---- */
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 42rem; margin-bottom: 2.75rem; }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow { display: inline-block; color: var(--primary); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .75rem; }
.eyebrow--light { color: #bfe27a; }

.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--tight { margin-top: 2.5rem; }

.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
  transition: .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); font-size: 1.25rem; margin-bottom: 1rem; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

.mini { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; }
.mini p { color: var(--muted); margin: 0; font-size: .92rem; }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.tags span { font-size: .82rem; font-weight: 500; padding: .35rem .8rem; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--muted); }

/* ---- IVF timeline ---- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.timeline li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; }
.timeline li span { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: .2rem .55rem; border-radius: 6px; margin-bottom: .75rem; }
.timeline li h3 { font-size: 1rem; }
.timeline li p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---- Split (why desktop) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split__copy p { color: var(--muted); font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .6rem; }
.checks li { padding-left: 1.75rem; position: relative; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: .05rem; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary); font-size: .7rem; font-weight: 800; display: grid; place-items: center;
}
.checks--light li::before { background: rgba(255,255,255,.15); color: #bfe27a; }

.arch { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; }
.arch__node { display: inline-flex; flex-direction: column; background: var(--navy); color: #fff; padding: 1rem 1.75rem; border-radius: 12px; }
.arch__node span { font-size: .8rem; opacity: .75; }
.arch__lines { display: grid; grid-template-columns: repeat(3, 1fr); height: 40px; }
.arch__lines i { display: block; width: 2px; height: 100%; margin: 0 auto; background: linear-gradient(var(--primary), var(--accent)); }
.arch__clients { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.arch__clients div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem .5rem; display: flex; flex-direction: column; }
.arch__clients strong { font-size: .9rem; }
.arch__clients span { font-size: .75rem; color: var(--muted); }
.arch__note { margin: 1.25rem 0 0; font-size: .82rem; color: var(--muted); }

/* ---- Contact ---- */
.contact { background: linear-gradient(135deg, var(--navy), #0f9aa0); color: #fff; }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.contact__copy p { color: rgba(255,255,255,.8); font-size: 1.05rem; }
.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); display: grid; gap: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; width: 100%; transition: .15s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,111,184,.15); }
.form input.is-invalid { border-color: #ef4444; }
.form__hint { margin: 0; text-align: center; font-size: .82rem; color: var(--muted); }
.form__hint.is-success { color: #0f9d58; font-weight: 600; }
.form__hint.is-error { color: #ef4444; font-weight: 600; }

/* ---- Footer ---- */
.footer { background: #0a1430; color: #cbd5e1; padding: 3rem 0 1.5rem; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: start; }
.footer__inner p { max-width: 30rem; font-size: .9rem; color: #94a3b8; margin-top: .75rem; }
.brand--footer { color: #fff; }
.footer__links { display: flex; gap: 1.5rem; justify-content: flex-end; flex-wrap: wrap; font-size: .9rem; }
.footer__links a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2rem; padding-top: 1.25rem; font-size: .82rem; color: #64748b; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero__inner, .split, .contact__inner, .footer__inner { grid-template-columns: 1fr; }
  .hero__visual { order: 2; }
  .hub__stage, .feed { max-width: 340px; }
  .grid--3, .grid--4, .timeline, .strip__inner { grid-template-columns: repeat(2, 1fr); }
  .footer__links { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .9rem 1rem; border-top: 1px solid var(--line); }
  .nav .btn { margin: 1rem; border-radius: 12px; }
  .nav-toggle { display: block; }
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 3.5rem 0; }
  .grid--3, .grid--4, .timeline, .strip__inner, .form__row, .arch__clients { grid-template-columns: 1fr; }
  .arch__lines { grid-template-columns: 1fr; }
  .form { padding: 1.5rem; }
}

/* ---- Brand logo ---- */
.brand__logo { height: 38px; width: auto; }
.footer__logo { height: 64px; width: auto; background: #fff; padding: 6px 10px; border-radius: 10px; }

/* ---- Roles ---- */
.section--tight { padding: 3.5rem 0; }
.section__head--center { text-align: center; margin: 0 auto 2rem; }
.roles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.role { text-align: center; padding: 1.25rem .75rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.role span { font-size: 1.6rem; display: block; margin-bottom: .5rem; }
.role h4 { font-size: .95rem; }
.role p { font-size: .82rem; color: var(--muted); margin: 0; }

/* ---- Cryo tank mock ---- */
.tank { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.tank__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.tank__head span { font-size: .8rem; color: var(--muted); }
.tank__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
.tank__grid i, .tank__legend i { display: block; aspect-ratio: 1; border-radius: 50%; background: #eef1f6; border: 1px solid var(--line); }
.tank__grid i.is-embryo, .tank__legend i.is-embryo { background: var(--primary); border-color: var(--primary); }
.tank__grid i.is-oocyte, .tank__legend i.is-oocyte { background: #0f9aa0; border-color: #0f9aa0; }
.tank__grid i.is-sperm, .tank__legend i.is-sperm { background: var(--accent); border-color: var(--accent); }
.tank__legend { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; font-size: .8rem; color: var(--muted); }
.tank__legend span { display: inline-flex; align-items: center; gap: .4rem; }
.tank__legend i { width: 12px; height: 12px; }

/* ---- Contact details ---- */
.contact__details { display: grid; gap: .6rem; margin-top: 1.5rem; font-size: .95rem; }
.contact__details a, .contact__details div { display: inline-flex; align-items: center; gap: .6rem; color: #fff; }
.contact__details a:hover { text-decoration: underline; }
.contact__details span { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: .9rem; }

/* ---- Footer columns ---- */
.footer__inner { grid-template-columns: 1.6fr 1fr 1fr; }
.footer__col { display: grid; gap: .5rem; align-content: start; font-size: .9rem; }
.footer__col h4 { color: #fff; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .25rem; }
.footer__col a:hover { color: #fff; }

@media (max-width: 960px) { .roles { grid-template-columns: repeat(3, 1fr); } .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .roles { grid-template-columns: repeat(2, 1fr); } .footer__inner { grid-template-columns: 1fr; } .footer__links { display: none; } }

/* ---- Screenshot gallery: app window peeking out of the card ---- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.shot { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .25s; }
.shot:hover { transform: translateY(-3px); }
.shot__frame {
  position: relative; height: 290px; overflow: hidden; perspective: 1800px;
  background: radial-gradient(120% 90% at 0% 0%, #e6f1fa 0%, #f5f7fb 60%, #eef4f8 100%);
  user-select: none; -webkit-user-select: none;
}
.shot__window {
  position: absolute; left: 34px; top: 30px; width: 124%;
  background: #fff; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(11,42,74,.12);
  box-shadow: 0 30px 60px -10px rgba(11,42,74,.35), 0 2px 6px rgba(11,42,74,.08);
  transform: rotateX(4deg) rotateY(-6deg); transform-origin: top left; transition: transform .35s ease;
}
.shot:hover .shot__window { transform: rotateX(2deg) rotateY(-3deg); }
.shot__bar { height: 24px; background: var(--navy); display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.shot__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); }
.shot__window img { display: block; width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }
.shot__guard { position: absolute; inset: 0; z-index: 2; }
.shot figcaption { padding: 1.1rem 1.25rem 1.25rem; display: grid; gap: .2rem; border-top: 1px solid var(--line); }
.shot figcaption span { color: var(--muted); font-size: .9rem; }
@media (max-width: 960px) { .gallery { grid-template-columns: 1fr; } .shot__frame { height: 230px; } .shot__window { left: 20px; top: 20px; width: 130%; } }
