:root {
  color-scheme: dark;
  --bg: #050a12;
  --panel: rgba(15, 24, 42, 0.78);
  --panel-strong: rgba(18, 29, 51, 0.94);
  --line: rgba(126, 164, 214, 0.18);
  --text: #f3f7fb;
  --muted: #9baabe;
  --quiet: #6e7f98;
  --cyan: #26d9ff;
  --blue: #4d8cff;
  --violet: #9c67ff;
  --mint: #79f2c8;
  --rose: #ff6f9f;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  --page: min(100% - clamp(28px, 6vw, 96px), 1320px);
  --content: min(100% - clamp(32px, 9vw, 180px), 1180px);
  --narrow: min(100% - clamp(36px, 12vw, 260px), 980px);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 16% 20%, rgba(38, 217, 255, 0.12), transparent 31rem),
    radial-gradient(circle at 82% 10%, rgba(156, 103, 255, 0.12), transparent 28rem),
    linear-gradient(180deg, #050811 0%, #08111d 48%, #050a12 100%);
  color: var(--text);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#signalCanvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, 1440px);
  margin: 18px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(119, 164, 221, 0.16);
  border-radius: var(--radius);
  background: rgba(5, 10, 18, 0.62);
  backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  transition: transform 450ms ease, background 450ms ease, border-color 450ms ease;
}

.site-header.scrolled {
  background: rgba(5, 10, 18, 0.88);
  border-color: rgba(38, 217, 255, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand sup {
  font-size: 0.45em;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(38, 217, 255, 0.42);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(38, 217, 255, 0.18), rgba(156, 103, 255, 0.18));
  box-shadow: 0 0 28px rgba(38, 217, 255, 0.22);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span::before,
.brand-mark span::after {
  content: "";
  position: absolute;
  background: var(--cyan);
  border-radius: 2px;
}

.brand-mark::before {
  width: 16px;
  height: 5px;
}

.brand-mark::after {
  width: 5px;
  height: 16px;
}

.brand-mark span::before {
  width: 7px;
  height: 5px;
  left: 6px;
  top: 8px;
}

.brand-mark span::after {
  width: 7px;
  height: 5px;
  right: 6px;
  bottom: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
}

.site-nav a {
  position: relative;
  transition: color 220ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.section {
  position: relative;
  width: var(--content);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 124px) 0;
}

.hero {
  width: var(--page);
  min-height: clamp(760px, 100vh, 980px);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
  padding-top: 130px;
}

.hero-orbit {
  position: absolute;
  inset: 12% 58% auto auto;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(38, 217, 255, 0.12);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38, 217, 255, 0.12), transparent 62%);
  filter: blur(0.2px);
  pointer-events: none;
  animation: orbitDrift 16s ease-in-out infinite alternate;
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #73ddff;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.eyebrow {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.eyebrow span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.2rem, 3.8vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h1 strong {
  display: block;
  background: linear-gradient(100deg, var(--cyan), var(--blue) 48%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(1.28rem, 1.7vw, 2rem);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  font-size: 0.86rem;
  line-height: 1.25;
}

p,
li,
small {
  color: var(--muted);
  line-height: 1.52;
  font-weight: 300;
  font-size: 0.86rem;
}

.hero-copy p {
  max-width: 620px;
  font-size: clamp(0.88rem, 0.92vw, 0.98rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 800;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: translateX(-120%);
}

.button:hover {
  transform: translateY(-3px);
}

.button:hover::before {
  animation: sheen 850ms ease;
}

.primary {
  background: linear-gradient(110deg, var(--cyan), var(--violet));
  color: #04101b;
}

.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.hero-visual {
  position: relative;
  aspect-ratio: 1.22;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(125, 183, 255, 0.22);
  box-shadow: var(--shadow), 0 0 90px rgba(38, 217, 255, 0.18);
  transform-style: preserve-3d;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 10, 18, 0.25), transparent 42%),
    linear-gradient(180deg, transparent, rgba(5, 10, 18, 0.28));
  pointer-events: none;
}

.hero-visual img {
  object-position: 54% center;
}

.vitals-panel {
  position: absolute;
  right: 26px;
  top: 26px;
  z-index: 2;
  display: grid;
  grid-template-columns: auto auto;
  gap: 0 8px;
  align-items: end;
  padding: 12px 14px;
  border: 1px solid rgba(38, 217, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(4, 12, 22, 0.62);
  backdrop-filter: blur(16px);
}

.vitals-panel span {
  grid-column: 1 / -1;
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 900;
}

.vitals-panel strong {
  font-size: 1.6rem;
  line-height: 1;
}

.vitals-panel small {
  color: var(--mint);
}

.pulse-ring {
  position: absolute;
  right: 78px;
  bottom: 72px;
  width: 100px;
  height: 100px;
  z-index: 2;
  border: 1px solid rgba(38, 217, 255, 0.4);
  border-radius: 50%;
  animation: pulse 2.8s ease-in-out infinite;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 44px;
  width: 22px;
  height: 38px;
  border: 1px solid rgba(154, 177, 209, 0.34);
  border-radius: 999px;
}

.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--cyan);
  transform: translateX(-50%);
  animation: scrollDot 1.6s ease infinite;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: var(--content);
  margin: 0 auto;
  border-block: 1px solid var(--line);
  background: var(--line);
}

.metric {
  min-height: 128px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  background: rgba(7, 14, 25, 0.74);
  text-align: center;
}

.metric strong {
  font-size: clamp(1.3rem, 2.2vw, 2.2rem);
  line-height: 1;
  background: linear-gradient(100deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric span {
  color: var(--muted);
  font-weight: 300;
  font-size: 0.76rem;
}

.section-heading {
  max-width: 700px;
  min-width: 0;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading p {
  font-size: 0.86rem;
}

.feature-grid,
.scale-grid,
.compliance-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.flow-card,
.compliance-card {
  position: relative;
  min-height: 188px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease;
}

.feature-card::before,
.flow-card::before,
.compliance-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(38, 217, 255, 0.24), transparent 42%, rgba(156, 103, 255, 0.18));
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}

.feature-card:hover,
.flow-card:hover,
.compliance-card:hover {
  transform: translateY(-7px);
  border-color: rgba(38, 217, 255, 0.35);
}

.feature-card:hover::before,
.flow-card:hover::before,
.compliance-card:hover::before {
  opacity: 1;
}

.feature-card > *,
.flow-card > *,
.compliance-card > * {
  position: relative;
  z-index: 1;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(38, 217, 255, 0.18), rgba(156, 103, 255, 0.24));
  color: var(--cyan);
}

.icon::before {
  font-weight: 900;
  font-size: 0.95rem;
}

.heart::before { content: "♡"; }
.wave::before { content: "⌁"; }
.thermo::before { content: "▯"; }
.scale::before { content: "⚖"; }
.screen::before { content: "▱"; }
.alert::before { content: "!"; }
.hospital::before { content: "▥"; }
.community::before { content: "◌"; }
.shield::before { content: "◇"; }
.ribbon::before { content: "♙"; }
.document::before { content: "□"; }
.check::before { content: "✓"; }
.lock::before { content: "▣"; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: clamp(36px, 6vw, 78px);
}

.split.reverse {
  grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1fr);
}

.media-frame {
  position: relative;
  min-height: 360px;
  border: 1px solid rgba(125, 183, 255, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel-strong);
  box-shadow: var(--shadow), 0 0 60px rgba(38, 217, 255, 0.1);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5, 10, 18, 0.24));
}

.copy-block {
  max-width: 560px;
  min-width: 0;
}

.copy-block p {
  font-size: 0.86rem;
}

.tick-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.tick-list li {
  position: relative;
  padding-left: 26px;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

.flow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.flow-track::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(38, 217, 255, 0.25), transparent);
}

.flow-card {
  min-height: 170px;
  text-align: center;
}

.flow-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #07111f;
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: 0 0 28px rgba(38, 217, 255, 0.24);
}

blockquote {
  margin: 24px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
  font-size: 0.84rem;
}

.spectrum img {
  object-position: center;
}

.alert-section .media-frame {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.alert-section .media-frame img {
  object-position: center top;
}

.devices img {
  object-position: 58% center;
}

.engagement .media-frame img {
  object-position: center;
}

#virtual-ward .media-frame img {
  object-position: center;
}

.scale-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card.compact {
  min-height: 154px;
}

.compliance-grid {
  grid-template-columns: repeat(5, 1fr);
}

.compliance-card {
  min-height: 146px;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
}

.compliance-card .icon {
  margin-bottom: 18px;
}

.compliance-card strong {
  margin-bottom: 6px;
  font-size: 0.86rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) 0.8fr 1fr;
  gap: clamp(32px, 6vw, 100px);
  width: var(--content);
  margin: 0 auto;
  padding: 64px 0 28px;
  border-top: 1px solid var(--line);
}

.site-footer h2 {
  margin-bottom: 18px;
  font-size: 0.82rem;
}

.site-footer a,
.site-footer p,
.footer-bottom {
  color: var(--muted);
  font-weight: 300;
  font-size: 0.8rem;
}

.site-footer a {
  display: block;
  margin: 9px 0;
  transition: color 220ms ease;
}

.site-footer a:hover {
  color: var(--cyan);
}

.footer-brand {
  margin-bottom: 20px;
  color: var(--text);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.footer-bottom span:last-child {
  display: flex;
  gap: 28px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 750ms ease, transform 750ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero .reveal {
  opacity: 1;
  transform: translateY(0);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes sheen {
  to {
    opacity: 1;
    transform: translateX(120%);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.8;
  }
}

@keyframes scrollDot {
  0% {
    transform: translate(-50%, 0);
    opacity: 0;
  }
  35%,
  75% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 15px);
    opacity: 0;
  }
}

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

@keyframes orbitDrift {
  from {
    transform: translate3d(-18px, 12px, 0) rotate(0deg);
    opacity: 0.35;
  }
  to {
    transform: translate3d(24px, -18px, 0) rotate(12deg);
    opacity: 0.68;
  }
}

@media (max-width: 1100px) {
  .hero,
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .media-frame {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }

  .copy-block {
    max-width: 720px;
  }

  .feature-grid,
  .scale-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-track,
  .compliance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-track::before {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    width: min(100% - 24px, 720px);
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 82px;
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(5, 10, 18, 0.96);
    backdrop-filter: blur(18px);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .site-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px;
  }

  .section {
    width: min(100% - 28px, 720px);
    padding: 74px 0;
  }

  .hero {
    width: min(100% - 28px, 720px);
    min-height: auto;
    padding-top: 118px;
  }

  h1 {
    font-size: clamp(1.9rem, 8vw, 2.45rem);
    line-height: 1;
    margin-bottom: 20px;
  }

  h2 {
    font-size: clamp(1.22rem, 5.6vw, 1.7rem);
  }

  .hero-copy p {
    font-size: 0.84rem;
    max-width: 34ch;
  }

  .hero-actions {
    display: grid;
  }

  .metrics,
  .feature-grid,
  .scale-grid,
  .flow-track,
  .compliance-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 112px;
  }

  .feature-card,
  .flow-card {
    min-height: auto;
    padding: 22px;
  }

  .footer-bottom {
    display: grid;
  }

  .scroll-cue {
    display: none;
  }

  .vitals-panel {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  #signalCanvas {
    display: none;
  }
}
