:root {
  --ink: #12263a;
  --ink-soft: #3d5268;
  --mist: #6b7f93;
  --paper: #f4f7fa;
  --paper-2: #ffffff;
  --line: #d7e0ea;
  --accent: #1f7a78;
  --accent-deep: #165e5c;
  --accent-soft: #e6f4f3;
  --sky: #e8f1f8;
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --scroll-fade: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #c8dde8;
}

.atmosphere__photo {
  position: absolute;
  inset: 0;
  background: url("/img/medical-bg.png") center 30% / cover no-repeat;
  opacity: calc(1 - (var(--scroll-fade) * 0.72));
  transform: scale(calc(1.06 + (var(--scroll-fade) * 0.04)));
  filter:
    saturate(1.15)
    contrast(1.12)
    brightness(calc(1.04 + (var(--scroll-fade) * 0.12)));
  transition: opacity 0.15s linear, filter 0.15s linear;
  will-change: opacity, filter, transform;
}

.atmosphere__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(244, 247, 250, 0.88) 0%, rgba(244, 247, 250, 0.55) 28%, rgba(244, 247, 250, 0.12) 58%, rgba(232, 244, 243, 0.08) 100%),
    linear-gradient(180deg, transparent 0%, transparent 42%, rgba(234, 242, 246, calc(0.45 + var(--scroll-fade) * 0.5)) 100%);
  opacity: calc(0.85 + (var(--scroll-fade) * 0.15));
}

.atmosphere__crosses {
  position: absolute;
  inset: 0;
  opacity: calc(0.28 * (1 - var(--scroll-fade) * 0.85));
  background-image:
    linear-gradient(rgba(22, 94, 92, 1) 0 0),
    linear-gradient(rgba(22, 94, 92, 1) 0 0);
  background-size: 22px 3px, 3px 22px;
  background-position: 0 0, 9.5px -9.5px;
  background-repeat: repeat;
  mask-image: radial-gradient(ellipse 80% 65% at 84% 16%, #000 15%, transparent 78%);
}

.atmosphere__ecg {
  position: absolute;
  right: -1%;
  top: 10%;
  width: min(74vw, 980px);
  height: 260px;
  color: rgba(18, 78, 76, 0.62);
  filter: drop-shadow(0 0 12px rgba(31, 122, 120, 0.25));
  opacity: calc(1 - var(--scroll-fade) * 0.9);
}

.atmosphere__ecg-line {
  stroke-width: 3.2;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: ecg-draw 2.8s ease-out 0.4s 1 forwards;
}

@keyframes ecg-draw {
  from { stroke-dashoffset: 1400; opacity: 0.35; }
  to { stroke-dashoffset: 0; opacity: 0.85; }
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  background: rgba(244, 247, 250, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(215, 224, 234, 0.85);
  transition: box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px rgba(18, 38, 58, 0.08);
}

.nav__brand {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.15;
}

.nav__mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.nav__sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mist);
}

.nav__links {
  display: none;
  gap: 1.6rem;
}

.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--accent);
}

.nav__cta {
  display: none;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav__cta:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 7.5rem 1.25rem 2.5rem;
  max-width: 1080px;
  margin: 0 auto;
  animation: rise 0.85s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--mist);
}

.hero__eyebrow a,
.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.hero__eyebrow a:hover,
.text-link:hover {
  color: var(--accent-deep);
}

.hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 13vw, 7.2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: var(--accent);
}

.hero__title {
  margin: 0.85rem 0 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.4vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.hero__lead {
  margin: 1.15rem 0 0;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero__notice {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 0.85rem 0.85rem 0;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(18, 38, 58, 0.05);
}

.hero__notice strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-weight: 700;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-deep);
}

.btn--ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: rgba(31, 122, 120, 0.45);
  color: var(--accent-deep);
}

.segment {
  max-width: 1080px;
  margin: 0 auto 1rem;
  padding: 0 1.25rem 1.5rem;
}

.segment__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(18, 38, 58, 0.05);
  backdrop-filter: blur(8px);
}

.segment__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.35rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.segment__icon {
  display: inline-flex;
  width: 2.1rem;
  height: 2.1rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.segment__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.section {
  padding: 3.5rem 1.25rem;
  max-width: 1080px;
  margin: 0 auto;
}

.panel {
  position: relative;
  z-index: 1;
}

.section__head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section__head p {
  margin: 0.7rem 0 0;
  color: var(--mist);
  font-size: 1.02rem;
}

.mission {
  border-top: 1px solid rgba(215, 224, 234, 0.9);
  background: rgba(244, 247, 250, calc(0.35 + var(--scroll-fade) * 0.45));
}

.mission__grid {
  display: grid;
  gap: 1.75rem;
}

.mission__grid h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.mission__grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.module-grid {
  display: grid;
  gap: 1rem;
}

.product--soon {
  opacity: 0.92;
  background: rgba(255, 255, 255, 0.72);
  cursor: default;
}

.product--soon:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(18, 38, 58, 0.05);
}

.product__tag--soon {
  background: #eef2f6;
  color: var(--ink-soft);
}

.product__go--muted {
  color: var(--mist);
  font-weight: 600;
}

.audience,
.process,
.trust,
.studio {
  border-top: 1px solid rgba(215, 224, 234, 0.9);
  background: rgba(244, 247, 250, calc(0.35 + var(--scroll-fade) * 0.45));
  border-radius: 0;
}

.audience__row {
  display: grid;
  gap: 1.75rem;
}

.audience__row h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.audience__row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.process__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.process__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(18, 38, 58, 0.04);
}

.process__num {
  display: inline-flex;
  width: 2.2rem;
  height: 2.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.process__step h3 {
  margin: 0.15rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.process__step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.product-section {
  background: rgba(255, 255, 255, calc(0.55 + var(--scroll-fade) * 0.35));
}

.product {
  display: block;
  max-width: 40rem;
  padding: 1.6rem 1.5rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--paper-2);
  box-shadow: 0 10px 30px rgba(18, 38, 58, 0.05);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.product:hover {
  border-color: rgba(31, 122, 120, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(18, 38, 58, 0.08);
}

.product__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.product__tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product__go {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
}

.product h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.product p {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
}

.product ul {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.product li {
  position: relative;
  padding-left: 1rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.product li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--accent);
}

.trust__grid {
  display: grid;
  gap: 1.75rem;
}

.trust__grid h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.trust__grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.contact-form {
  margin-top: 0.5rem;
  max-width: 40rem;
}

.contact-form__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .contact-form__grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-field--full {
    grid-column: 1 / -1;
  }
}

.contact-field {
  display: grid;
  gap: 0.4rem;
}

.contact-field span {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-field span em {
  font-style: normal;
  font-weight: 500;
  color: var(--ink-soft);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: rgba(31, 122, 120, 0.55);
  box-shadow: 0 0 0 3px rgba(31, 122, 120, 0.12);
}

.contact-field textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.contact-form__note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.contact-form__actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.contact-form__status {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.contact-form__status.is-ok {
  color: #1a6b4a;
}

.contact-form__status.is-err {
  color: #a33b3b;
}

.contact-form.is-sending .btn--primary {
  opacity: 0.7;
  pointer-events: none;
}

.cta {
  margin: 1rem auto 3rem;
  padding: 2.4rem 1.5rem;
  border-radius: 1.5rem;
  background:
    linear-gradient(145deg, rgba(31, 122, 120, 0.1), rgba(232, 241, 248, 0.9)),
    var(--paper-2);
  border: 1px solid var(--line);
  text-align: left;
}

.cta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.cta p {
  margin: 0.7rem 0 0;
  max-width: 36rem;
  color: var(--ink-soft);
}

.footer {
  margin-top: 1rem;
  background: #12263a;
  color: rgba(232, 240, 244, 0.78);
}

.footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
  display: grid;
  gap: 2rem;
}

.footer__logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.footer__mark {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.footer__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7fd4d0;
}

.footer__lead {
  margin: 0;
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.footer__lead .text-link {
  color: #9ee4e0;
}

.footer__studio {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 700;
  color: #9ee4e0;
}

.footer__studio:hover {
  color: #fff;
}

.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.footer__cols h4 {
  margin: 0 0 0.7rem;
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer__cols ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.footer__cols a {
  color: rgba(232, 240, 244, 0.78);
  font-size: 0.92rem;
}

.footer__cols a:hover {
  color: #fff;
}

.footer__copy {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: rgba(232, 240, 244, 0.55);
}

@media (min-width: 760px) {
  .nav {
    padding: 1rem 2rem;
  }

  .nav__links,
  .nav__cta {
    display: flex;
  }

  .hero,
  .section,
  .segment,
  .footer__inner,
  .footer__copy {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .cta {
    padding: 2.75rem 2.25rem;
  }

  .audience__row,
  .trust__grid,
  .process__list,
  .mission__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .module-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .module-grid .product {
    max-width: none;
  }

  .footer__inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.nav--static {
  position: relative;
}

.nav--static .nav__cta {
  display: inline-flex;
}

.legal-page {
  background: var(--paper);
}

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.legal__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mist);
}

.legal h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.legal__meta {
  margin: 0.6rem 0 0;
  color: var(--mist);
  font-size: 0.95rem;
}

.legal section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.legal h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.legal p,
.legal li {
  color: var(--ink-soft);
  line-height: 1.65;
}

.legal p {
  margin: 0 0 0.75rem;
}

.legal ul {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.2rem;
}

.legal__note {
  font-size: 0.9rem;
  color: var(--mist) !important;
}

@media (min-width: 760px) {
  .legal {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .atmosphere__ecg-line {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    opacity: 0.7;
  }

  .atmosphere__photo,
  .atmosphere__wash,
  .atmosphere__crosses,
  .atmosphere__ecg {
    transition: none !important;
  }
}
