/* ============================================================
   LATECH SOLUTION — Remote Health Monitoring
   Premium redesign · HealthTech aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* Color system — 6 ramps + neutrals */
  --primary-50:  #eef4ff;
  --primary-100: #d9e6ff;
  --primary-200: #bcd3ff;
  --primary-300: #8eb5ff;
  --primary-400: #598cff;
  --primary-500: #2f64f5;
  --primary-600: #1a47e0;
  --primary-700: #1638b8;
  --primary-800: #182f8f;
  --primary-900: #181B4F;

  --accent-50:  #e6f7ff;
  --accent-100: #c2ecff;
  --accent-200: #8dd9ff;
  --accent-300: #54c2ff;
  --accent-400: #20a8ff;
  --accent-500: #089AEA;
  --accent-600: #0780c8;
  --accent-700: #066a9e;

  --success-500: #10b981;
  --success-600: #059669;
  --warning-500: #f59e0b;
  --warning-600: #d97706;
  --error-500:   #ef4444;
  --error-600:   #dc2626;

  --neutral-0:   #ffffff;
  --neutral-50:  #f7f9fc;
  --neutral-100: #eef2f7;
  --neutral-200: #dde4ee;
  --neutral-300: #c4cedd;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;

  /* Semantic tokens */
  --bg: #f4f8fc;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #64748b;
  --accent: var(--accent-500);
  --accent-soft: rgba(8, 154, 234, 0.10);
  --accent-alt: var(--primary-900);
  --accent-hover: var(--accent-600);

  /* Shadows */
  --shadow-xl: 0 32px 64px -16px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.14);
  --shadow-md: 0 16px 32px -8px rgba(15, 23, 42, 0.10);
  --shadow-sm: 0 8px 24px -6px rgba(15, 23, 42, 0.08);
  --shadow-xs: 0 2px 8px -2px rgba(15, 23, 42, 0.06);

  /* Radii */
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  --shell: min(1240px, calc(100vw - 48px));
  --header-height: 80px;
  --ease: 400ms cubic-bezier(0.22, 1, 0.36, 1);
  --ease-fast: 200ms cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  padding-top: var(--header-space, 0px);
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(8, 154, 234, 0.10), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 5%, rgba(47, 100, 245, 0.08), transparent 45%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(8, 154, 234, 0.05), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f0f6fc 40%, #f8fafc 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: var(--accent-500);
  color: #fff;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

/* ============================================================
   Skip link & scroll progress
   ============================================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--primary-900);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: top var(--ease-fast);
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 1200;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-900) 0%, var(--accent-500) 50%, var(--accent-400) 100%);
  box-shadow: 0 0 16px rgba(8, 154, 234, 0.5);
  transition: width 80ms linear;
}

main section[id] {
  scroll-margin-top: calc(var(--header-space, 88px) + 18px);
}

/* ============================================================
   Scroll-to-top button
   ============================================================ */

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 1050;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-900), var(--accent-500));
  color: #fff;
  box-shadow: 0 12px 32px rgba(8, 154, 234, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.92);
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease), box-shadow var(--ease);
  cursor: pointer;
  contain: layout paint;
}

.scroll-top span {
  font-size: 1.35rem;
  line-height: 1;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top:hover,
.scroll-top:focus-visible {
  box-shadow: 0 16px 40px rgba(8, 154, 234, 0.4);
  transform: translateY(-3px) scale(1.05);
}

/* ============================================================
   Page backdrop
   ============================================================ */

.page-backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.page-backdrop__grid,
.page-backdrop__noise {
  position: absolute;
  inset: 0;
}

.page-backdrop__grid {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 75%);
}

.page-backdrop__noise {
  opacity: 0.4;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.3) 0 1px, transparent 1px),
    radial-gradient(circle at 35% 80%, rgba(255, 255, 255, 0.3) 0 1px, transparent 1px);
  background-size: 160px 160px;
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1100;
  padding: 12px 0;
  transition: transform var(--ease);
}

.site-header.is-scrolled {
  transform: translateY(0);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.site-header.is-scrolled .site-header__inner {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 1 auto;
  min-width: 0;
  transition: transform var(--ease-fast);
}

.brand:hover {
  transform: scale(1.02);
}

.brand__logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 12px rgba(8, 154, 234, 0.2));
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.brand__caption {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--ease-fast), background-color var(--ease-fast), transform var(--ease-fast);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(8, 154, 234, 0.08);
}

.site-nav a.is-active {
  color: var(--accent-600);
}

.site-nav__cta {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--accent-500) 100%) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(8, 154, 234, 0.25);
}

.site-nav__cta:hover {
  background: linear-gradient(135deg, var(--primary-800) 0%, var(--accent-600) 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(8, 154, 234, 0.35);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.language-switcher a {
  min-width: 42px;
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all var(--ease-fast);
}

.language-switcher a:hover {
  color: var(--text);
}

.language-switcher a.is-active {
  background: var(--primary-900);
  color: #fff;
}

.language-switcher--nav {
  margin-left: 6px;
}

.language-switcher--footer {
  justify-self: start;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 154, 234, 0.08);
  cursor: pointer;
  transition: background-color var(--ease-fast);
}

.nav-toggle:hover {
  background: rgba(8, 154, 234, 0.14);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ============================================================
   Section shells
   ============================================================ */

.section-shell {
  position: relative;
  padding: 112px 0;
}

.section-shell--tight-top {
  padding-top: 40px;
}

.section-shell--contact {
  padding-bottom: 96px;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding-top: 56px;
  padding-bottom: 92px;
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: 48px;
  align-items: center;
}

.hero__layout > *,
.hero__copy,
.section-heading,
.contact-main,
.panel,
.story-card,
.docs-workspace {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 0 0 18px;
  color: var(--accent-600);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.hero__title,
.section-heading h2,
.contact-main h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--neutral-900);
}

.section-heading h2,
.contact-main h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.hero__lead,
.section-heading p,
.panel__lead,
.contact-main p,
.site-footer__legal p,
.site-footer__brand p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.06rem;
  line-height: 1.6;
}

.hero__lead {
  max-width: 640px;
  margin-top: 24px;
}

.hero__actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* ============================================================
   Buttons
   ============================================================ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  min-height: 50px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: transform var(--ease-fast), box-shadow var(--ease), background-color var(--ease), color var(--ease);
}

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

.button:active {
  transform: translateY(0);
}

.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.button--primary {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--accent-500) 100%);
  color: #fff;
  box-shadow: 0 12px 32px rgba(8, 154, 234, 0.28);
}

.button--primary:hover {
  box-shadow: 0 16px 40px rgba(8, 154, 234, 0.38);
  background: linear-gradient(135deg, var(--primary-800) 0%, var(--accent-600) 100%);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(8px);
}

.button--ghost:hover {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.2);
  box-shadow: var(--shadow-sm);
}

.button--wide {
  width: 100%;
}

/* ============================================================
   Interactive cards (spotlight)
   ============================================================ */

.interactive-card {
  position: relative;
  overflow: hidden;
}

.interactive-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 200px at var(--spotlight-x, 50%) var(--spotlight-y, 50%), rgba(8, 154, 234, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity var(--ease);
  pointer-events: none;
}

.interactive-card:hover::before {
  opacity: 1;
}

.interactive-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(8, 154, 234, 0.3), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--ease);
  pointer-events: none;
}

.interactive-card:hover::after {
  opacity: 1;
}

/* ============================================================
   Cards — shared base
   ============================================================ */

.overview-card,
.audience-card,
.product-card,
.feature-card,
.stack-card,
.docs-card,
.contact-card {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.overview-card:hover,
.audience-card:hover,
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(8, 154, 234, 0.2);
}

.contact-card__label,
.overview-card__index,
.docs-card__type,
.fact-card__label {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   Hero stage / visual
   ============================================================ */

.hero-stage {
  position: relative;
  min-height: 640px;
}

.hero-stage__panel {
  position: relative;
  height: 100%;
  min-height: 640px;
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(238, 244, 251, 0.75) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.hero-stage__screen {
  position: absolute;
  inset: 40px 40px 172px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-stage__screen--title {
  inset: 28px;
  background: #edf6fc;
}

.hero-stage__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-stage__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0) 60%, rgba(15, 23, 42, 0.15) 100%),
    linear-gradient(135deg, rgba(8, 154, 234, 0.1), transparent 45%);
}

.hero-stage__screen--product {
  background: #05070d;
}

.hero-stage__screen--product img {
  object-fit: contain;
  background: #05070d;
}

.hero-stage__screen--title img {
  object-fit: cover;
}

.hero-stage__floating {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 6px;
  min-width: 190px;
  max-width: 260px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  transition: transform var(--ease), box-shadow var(--ease);
}

.hero-stage__floating strong {
  color: var(--text);
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  font-weight: 700;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.float-card__eyebrow {
  color: var(--accent-600);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-stage__floating--left {
  top: 42px;
  left: 36px;
}

.hero-stage__floating--right {
  top: 112px;
  right: 34px;
}

.hero-stage__floating--bottom {
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  min-width: 230px;
}

.hero-stage__orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(8, 154, 234, 0.16);
  pointer-events: none;
}

.hero-stage__orbit--blue {
  inset: auto -6% -26% auto;
  width: 380px;
  height: 380px;
  animation: orbit 16s linear infinite;
}

.hero-stage__orbit--red {
  inset: -16% auto auto -12%;
  width: 220px;
  height: 220px;
  border-color: rgba(24, 27, 79, 0.16);
  animation: orbitReverse 12s linear infinite;
}

/* ============================================================
   Signal strip (marquee)
   ============================================================ */

.signal-strip {
  position: relative;
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.signal-strip__viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.signal-strip__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.signal-strip__track span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(8, 154, 234, 0.08);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================================
   Section heading
   ============================================================ */

.section-heading {
  display: grid;
  gap: 18px;
  max-width: 860px;
  margin-bottom: 40px;
}

.section-heading--docs {
  grid-template-columns: minmax(0, 0.9fr) minmax(220px, 0.42fr);
  align-items: center;
  gap: 32px;
  max-width: none;
}

.section-heading__content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.documentation-certificate {
  justify-self: end;
  min-width: 220px;
}

/* ============================================================
   Overview grid
   ============================================================ */

.overview-grid,
.product-grid,
.fact-grid,
.stack-grid,
.contact-side {
  display: grid;
  gap: 20px;
}

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

.overview-grid--six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-card__index {
  display: inline-flex;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.overview-card h3,
.audience-card h3,
.product-card h3,
.feature-card h4,
.stack-card h3,
.docs-panel h3,
.contact-card a,
.contact-card strong,
.panel h3,
.panel h2,
.fact-card__value,
.story-card h2,
.story-card h3,
.legal-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.24rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--neutral-900);
}

.overview-card p,
.audience-card p,
.product-card p,
.feature-card p,
.stack-card p,
.docs-panel p,
.panel p,
.story-card p,
.legal-card p,
.detail-list li,
.docs-card p,
.footer-callout p,
.aside-note p,
.offer-note p {
  margin: 0;
  color: var(--text-soft);
}

/* ============================================================
   Audience grid
   ============================================================ */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.audience-card {
  display: grid;
  align-content: end;
  min-height: 180px;
  background:
    radial-gradient(circle at top right, rgba(8, 154, 234, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.74);
}

.audience-card h3 {
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  overflow-wrap: anywhere;
}

/* ============================================================
   Split & workflow layouts
   ============================================================ */

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 36px;
  align-items: start;
}

.workflow-layout {
  display: grid;
  gap: 28px;
}

.workflow-figure {
  margin: 0;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #05070d, #0a1428);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.workflow-figure img {
  width: 100%;
  border-radius: 20px;
}

/* ============================================================
   Security panel
   ============================================================ */

.security-panel {
  display: grid;
  gap: 28px;
  background:
    radial-gradient(circle at top right, rgba(8, 154, 234, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.76));
}

.section-heading--inside {
  margin-bottom: 0;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.feature-list li {
  position: relative;
  min-height: 68px;
  padding: 18px 18px 18px 46px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-soft);
  font-weight: 600;
  transition: transform var(--ease-fast), box-shadow var(--ease-fast), border-color var(--ease-fast);
}

.feature-list li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(8, 154, 234, 0.2);
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-500);
  box-shadow: 0 0 0 6px rgba(8, 154, 234, 0.12);
}

.disclaimer-note {
  padding: 16px 18px;
  border-left: 3px solid var(--accent-500);
  border-radius: 0 16px 16px 0;
  background: rgba(8, 154, 234, 0.06);
  font-size: 0.92rem;
  color: var(--text-soft);
}

/* ============================================================
   Product grid
   ============================================================ */

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.product-card {
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 100%;
  padding: 28px;
  border-color: color-mix(in srgb, var(--tone) 18%, white);
  background:
    radial-gradient(circle at top right, var(--tone-soft), transparent 34%),
    rgba(255, 255, 255, 0.74);
}

.product-card__top,
.story-card__head,
.docs-panel__top,
.panel__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 18px;
}

.product-card__code,
.docs-tab.is-active,
.story-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--tone-soft);
  color: var(--tone);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex: 0 0 auto;
}

.product-card__visual {
  position: relative;
  min-height: 220px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(233, 240, 250, 0.82)), var(--tone-soft);
}

.product-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.registry-note {
  align-self: start;
  padding: 12px 14px;
  border-left: 3px solid var(--tone, var(--accent));
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  line-height: 1.55;
}

.product-card__visual--wave,
.product-card__visual--grid {
  display: grid;
  place-items: center;
  padding: 24px;
}

.product-card__visual--wave {
  display: block;
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(9, 17, 31, 0.96), rgba(22, 41, 72, 0.92)),
    var(--tone-soft);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.mini-grid span {
  display: grid;
  place-items: center;
  min-height: 68px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-weight: 700;
  text-align: center;
}

.product-card ul,
.detail-list,
.story-card ul,
.docs-card ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.product-card__actions,
.docs-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.text-link {
  color: var(--tone, var(--accent));
  font-weight: 700;
}

.story-stack {
  display: grid;
  gap: 32px;
}

/* ============================================================
   Story card (AI / ECG section)
   ============================================================ */

.story-card {
  position: relative;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--tone) 18%, white);
  background:
    radial-gradient(circle at top right, var(--tone-soft), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.75));
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.story-card--ai {
  --tone: var(--accent-500);
  --tone-soft: rgba(8, 154, 234, 0.12);
}

.story-card__head {
  margin-bottom: 24px;
}

.story-card__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: stretch;
}

.story-card__copy {
  display: grid;
  align-content: start;
  gap: 18px;
}

.story-card__visual {
  position: relative;
  min-height: 440px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.story-card__feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.feature-card {
  min-height: 100%;
  border-color: color-mix(in srgb, var(--tone) 18%, white);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--tone-soft) 80%, white), transparent 40%),
    rgba(255, 255, 255, 0.8);
}

.feature-card h4 {
  margin-bottom: 10px;
}

.story-mzr {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
  height: 100%;
}

.story-mzr__hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(8, 17, 36, 0.96), rgba(17, 40, 72, 0.92));
}

.story-mzr__hero img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  opacity: 0.92;
}

.story-mzr__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 60% 40%, rgba(8, 154, 234, 0.24), transparent 30%),
    radial-gradient(circle at 40% 48%, rgba(24, 27, 79, 0.18), transparent 46%);
}

.story-mzr__process {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.story-mzr__process img {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

/* ============================================================
   ECG monitor
   ============================================================ */

.ecg-monitor {
  position: relative;
  height: 100%;
  min-height: 392px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  padding: 24px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(9, 17, 31, 0.98), rgba(16, 31, 56, 0.94) 58%, rgba(28, 44, 70, 0.96));
  color: #dce9ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 24px 48px rgba(9, 17, 31, 0.4);
  contain: layout paint;
}

.ecg-monitor--compact {
  min-height: 210px;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
}

.ecg-monitor__header,
.ecg-monitor__caption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(220, 233, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 600;
}

.ecg-monitor__caption {
  color: #d9e9ff;
  font-size: 0.9rem;
  font-weight: 700;
}

.ecg-monitor__caption strong {
  line-height: 1.2;
  text-align: right;
}

.ecg-monitor--compact .ecg-monitor__header {
  font-size: 0.72rem;
}

.ecg-monitor__screen {
  position: relative;
  min-height: 222px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(106, 200, 255, 0.16);
  background:
    linear-gradient(rgba(8, 154, 234, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 154, 234, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(106, 200, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(106, 200, 255, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 18, 34, 0.48), rgba(18, 37, 65, 0.2));
  background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px, auto;
  box-shadow: inset 0 0 34px rgba(3, 10, 24, 0.38);
}

.ecg-monitor--compact .ecg-monitor__screen {
  min-height: 96px;
  border-radius: 14px;
}

.ecg-monitor__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ecg-monitor__trace {
  fill: none;
  stroke: #6ac8ff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1900;
  stroke-dashoffset: 1900;
  filter: drop-shadow(0 0 14px rgba(106, 200, 255, 0.62));
  animation: ecgDraw 5.8s linear infinite;
  will-change: stroke-dashoffset, opacity;
}

.ecg-monitor--compact .ecg-monitor__trace {
  stroke-width: 5;
}

.ecg-monitor__trace--back {
  opacity: 0.28;
  stroke-width: 3;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  filter: none;
  animation: none;
}

.ecg-monitor__trace--alert {
  stroke: #ff6b7a;
  stroke-width: 6;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 16px rgba(255, 107, 122, 0.8));
  animation: ecgFinding 5.8s ease-in-out infinite;
  will-change: opacity;
}

.ecg-monitor__marker {
  animation: ecgFinding 5.8s ease-in-out infinite;
  will-change: opacity;
}

.ecg-monitor__marker-ring {
  fill: rgba(255, 107, 122, 0.16);
  stroke: rgba(255, 107, 122, 0.68);
  stroke-width: 2;
  transform-origin: 596px 70px;
  animation: ecgMarkerPulse 1.6s ease-in-out infinite;
}

.ecg-monitor__marker-dot {
  fill: #ff6b7a;
  filter: drop-shadow(0 0 14px rgba(255, 107, 122, 0.82));
}

.ecg-monitor__scanner {
  stroke: rgba(255, 255, 255, 0.74);
  stroke-width: 2;
  filter: drop-shadow(0 0 12px rgba(106, 200, 255, 0.65));
  animation: ecgScanner 2.9s linear infinite;
  will-change: transform;
}

.ecg-monitor__analysis {
  position: relative;
  --analysis-padding-y: 10px;
  --analysis-open-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: var(--analysis-open-height);
  min-height: var(--analysis-open-height);
  min-width: 0;
  max-width: 100%;
  padding: var(--analysis-padding-y) 14px;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(255, 107, 122, 0.16), rgba(255, 107, 122, 0.06)),
    rgba(255, 255, 255, 0.05);
  color: #fff0f2;
  box-shadow: inset 0 0 0 1px rgba(255, 107, 122, 0.2);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-5px) scale(0.98);
  pointer-events: none;
  animation:
    ecgAnalysisReveal 5.8s ease-in-out infinite,
    ecgAnalysisGlow 5.8s ease-in-out infinite;
  will-change: opacity, transform, box-shadow, background-color;
}

.ecg-monitor__analysis::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0 32%, rgba(255, 255, 255, 0.28) 48%, transparent 64% 100%);
  opacity: 0;
  transform: translateX(-70%);
  animation: ecgAnalysisSweep 5.8s ease-in-out infinite;
  pointer-events: none;
}

.ecg-monitor__analysis-code {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
}

.ecg-monitor__analysis small,
.ecg-monitor__stats small {
  color: rgba(220, 233, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ecg-monitor__analysis strong {
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 107, 122, 0.22);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.ecg-monitor__analysis > span:last-child {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 100%;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  overflow-wrap: normal;
  animation: ecgAnalysisText 5.8s ease-in-out infinite;
}

.ecg-monitor--compact .ecg-monitor__analysis {
  --analysis-padding-y: 7px;
  --analysis-open-height: 40px;
  padding-right: 9px;
  padding-left: 9px;
  border-radius: 12px;
  gap: 8px;
}

.ecg-monitor--compact .ecg-monitor__analysis small {
  font-size: 0.56rem;
}

.ecg-monitor--compact .ecg-monitor__analysis strong {
  font-size: 0.62rem;
}

.ecg-monitor--compact .ecg-monitor__analysis > span:last-child {
  font-size: 0.68rem;
}

.ecg-monitor__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ecg-monitor__stats span {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.ecg-monitor__stats strong {
  font-size: 1.18rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.story-ksmd {
  height: 100%;
  display: grid;
  gap: 22px;
  align-content: center;
}

.archive-map {
  position: relative;
  min-height: 320px;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(242, 248, 255, 0.95), rgba(224, 237, 246, 0.82));
  overflow: hidden;
}

.archive-map__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ca3a5 0%, #1573ff 100%);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 40px rgba(12, 163, 165, 0.22);
}

.archive-map__node {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 118px;
  min-height: 62px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.archive-map__node::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 1px;
  background: rgba(15, 23, 42, 0.2);
}

.archive-map__node--top {
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
}

.archive-map__node--top::after {
  bottom: -32px;
  left: 50%;
  width: 1px;
  height: 32px;
  transform: translateX(-50%);
}

.archive-map__node--left {
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
}

.archive-map__node--left::after {
  right: -56px;
  top: 50%;
}

.archive-map__node--right {
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
}

.archive-map__node--right::after {
  left: -56px;
  top: 50%;
}

.archive-map__node--bottom {
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
}

.archive-map__node--bottom::after {
  top: -32px;
  left: 50%;
  width: 1px;
  height: 32px;
  transform: translateX(-50%);
}

.archive-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.archive-pill-group span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(12, 163, 165, 0.08);
  color: var(--text);
  font-weight: 600;
}

/* ============================================================
   Reveal animations
   ============================================================ */

body.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
}

body.reveal-ready [data-reveal="left"] {
  transform: translateX(32px);
}

body.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================================
   Keyframes
   ============================================================ */

@keyframes orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbitReverse {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes ecgDraw {
  0% { stroke-dashoffset: 1900; opacity: 0.42; }
  12% { opacity: 1; }
  82%, 100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes ecgScanner {
  from { transform: translateX(0); }
  to { transform: translateX(720px); }
}

@keyframes ecgFinding {
  0%, 38%, 100% { opacity: 0; }
  46%, 78% { opacity: 1; }
}

@keyframes ecgMarkerPulse {
  0%, 100% { transform: scale(0.82); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes ecgAnalysisReveal {
  0%, 38%, 100% { opacity: 0; transform: translateY(-5px) scale(0.98); }
  46%, 78% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ecgAnalysisGlow {
  0%, 38%, 100% { background-color: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 107, 122, 0.2); }
  46%, 78% { background-color: rgba(255, 107, 122, 0.13); box-shadow: inset 0 0 0 1px rgba(255, 107, 122, 0.54), 0 0 24px rgba(255, 107, 122, 0.2); }
}

@keyframes ecgAnalysisSweep {
  0%, 42%, 100% { opacity: 0; transform: translateX(-70%); }
  50% { opacity: 1; }
  74% { opacity: 0; transform: translateX(70%); }
}

@keyframes ecgAnalysisText {
  0%, 38%, 100% { color: rgba(255, 240, 242, 0.82); }
  46%, 78% { color: #fff; text-shadow: 0 0 14px rgba(255, 107, 122, 0.42); }
}

/* ============================================================
   Pricing & panels
   ============================================================ */

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(300px, 0.76fr);
  gap: 22px;
  margin-top: 24px;
}

.pricing-layout--lead {
  align-items: start;
}

.panel {
  position: relative;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.84);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.74));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}

.panel--primary {
  background:
    radial-gradient(circle at top right, rgba(8, 154, 234, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.74));
}

.panel--accent {
  background:
    radial-gradient(circle at top right, rgba(24, 27, 79, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.74));
}

.panel--sticky {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.fact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
  margin-bottom: 24px;
}

.fact-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 640px;
}

.data-table--compact {
  min-width: 0;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.data-table th {
  background: linear-gradient(135deg, var(--primary-900), var(--accent-500));
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:nth-child(even):not(.category-row) td {
  background: rgba(241, 246, 252, 0.86);
}

.data-table tbody tr:hover td {
  background: rgba(8, 154, 234, 0.05);
}

.data-table td:last-child,
.data-table th:last-child {
  text-align: right;
}

.data-table--services td:nth-child(3),
.data-table--services th:nth-child(3) {
  text-align: center;
}

.data-table--services th:first-child,
.data-table--services tbody tr:not(.category-row) td:first-child {
  text-align: center;
}

.data-table--services th:last-child,
.data-table--services tbody tr:not(.category-row) td:last-child {
  white-space: nowrap;
}

.data-table--compact th,
.data-table--compact td {
  padding: 16px;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.category-row td {
  background: linear-gradient(90deg, rgba(8, 154, 234, 0.12), rgba(24, 27, 79, 0.08)) !important;
  color: var(--text);
  font-weight: 700;
}

.panel__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: stretch;
  margin-top: 22px;
}

.footer-callout,
.aside-note,
.offer-note {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.footer-callout {
  flex: 1 1 320px;
}

.footer-callout strong {
  font-size: 0.98rem;
}

.detail-list {
  margin-top: 20px;
}

.docs-workspace {
  display: grid;
  gap: 22px;
}

.docs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.docs-tab {
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-soft);
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease), transform var(--ease);
}

.docs-tab:hover {
  transform: translateY(-1px);
}

.docs-panel {
  display: grid;
  gap: 24px;
}

.docs-panel__top {
  align-items: center;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.docs-card {
  display: grid;
  gap: 14px;
  min-height: 100%;
}

.docs-card__title {
  font-size: 1.06rem;
  font-weight: 700;
}

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

.stack-card {
  display: grid;
  gap: 16px;
}

.stack-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(8, 154, 234, 0.08);
  color: var(--accent-600);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   Contact
   ============================================================ */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.legal-hero {
  padding-bottom: 58px;
}

.legal-hero__layout {
  display: grid;
  max-width: 880px;
}

.legal-updated {
  margin: 22px 0 0;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.legal-layout {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.legal-card {
  display: grid;
  gap: 14px;
}

.legal-card h2 {
  color: var(--text);
}

.contact-main {
  background:
    radial-gradient(circle at top right, rgba(8, 154, 234, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78));
}

.contact-side {
  grid-template-columns: 1fr;
}

.contact-card a {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-600);
  transition: color var(--ease-fast);
}

.contact-card a:hover {
  color: var(--accent-700);
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  padding: 0 0 36px;
}

.site-footer__layout {
  display: grid;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, var(--neutral-900) 0%, var(--primary-900) 100%);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.site-footer__layout::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 154, 234, 0.15), transparent 70%);
  pointer-events: none;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.site-footer__logo {
  width: 48px;
  height: 48px;
  filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(8, 154, 234, 0.3));
}

.site-footer__brand strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.site-footer__brand p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background-color var(--ease-fast), transform var(--ease-fast);
}

.site-footer__links a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.site-footer__legal {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.site-footer__brand p,
.site-footer__legal p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.site-footer__legal p {
  font-size: 0.84rem;
  line-height: 1.5;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1180px) {
  .hero__layout,
  .story-card__layout,
  .split-layout,
  .pricing-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 580px;
  }

  .hero-stage__panel {
    min-height: 580px;
  }

  .product-grid,
  .stack-grid,
  .audience-grid,
  .feature-list--columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .story-card__feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel--sticky {
    position: relative;
    top: auto;
  }
}

@media (max-width: 960px) {
  .site-header__inner {
    border-radius: 28px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 24px;
    right: 24px;
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
  }

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

  .site-nav a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .site-nav .language-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-left: 0;
  }

  .brand__caption {
    white-space: normal;
  }

  .hero {
    padding-top: 32px;
  }

  .fact-grid,
  .docs-grid,
  .overview-grid--six {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stage__screen {
    inset: 24px 24px 190px;
  }

  .hero-stage__screen--title {
    inset: 24px;
  }

  .hero-stage__floating {
    min-width: 170px;
    max-width: 230px;
    padding: 13px 15px;
  }

  .hero-stage__floating--left {
    top: 34px;
    left: 30px;
  }

  .hero-stage__floating--right {
    top: 96px;
    right: 30px;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(1280px, calc(100vw - 24px));
    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 16px;
  }

  .site-header {
    padding: 8px 0;
  }

  .site-header__inner {
    gap: 12px;
    padding: 12px 14px;
  }

  .scroll-top {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
  }

  .page-backdrop__noise {
    display: none;
  }

  .hero-stage__orbit {
    display: none;
  }

  .brand {
    flex: 1 1 auto;
    max-width: calc(100% - 56px);
  }

  .nav-toggle {
    flex: 0 0 48px;
  }

  .brand__name {
    font-size: 0.86rem;
    line-height: 1.2;
  }

  .brand__caption {
    font-size: 0.7rem;
  }

  .section-shell {
    padding: 72px 0;
  }

  .hero {
    padding-top: 24px;
    padding-bottom: 56px;
  }

  .section-heading--docs {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .documentation-certificate {
    justify-self: start;
    width: 100%;
    min-width: 0;
  }

  body.reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .eyebrow {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  .eyebrow::before {
    display: block;
    margin-bottom: 8px;
  }

  .hero__title,
  .section-heading h2,
  .contact-main h2 {
    font-size: 2rem;
    line-height: 1.06;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }

  .hero__lead,
  .section-heading p,
  .panel__lead,
  .contact-main p {
    font-size: 0.98rem;
  }

  .product-grid,
  .stack-grid,
  .fact-grid,
  .docs-grid,
  .story-card__feature-grid,
  .audience-grid,
  .feature-list--columns,
  .overview-grid--six {
    grid-template-columns: 1fr;
  }

  .story-card,
  .panel,
  .docs-workspace,
  .legal-card {
    padding: 20px;
  }

  .story-card__visual {
    min-height: 380px;
    padding: 14px;
  }

  .ecg-monitor {
    min-height: 340px;
    padding: 16px;
  }

  .ecg-monitor--compact {
    min-height: 220px;
    padding: 12px;
  }

  .ecg-monitor__screen {
    min-height: 180px;
  }

  .ecg-monitor--compact .ecg-monitor__screen {
    min-height: 96px;
  }

  .ecg-monitor--compact .ecg-monitor__analysis {
    --analysis-open-height: 56px;
    --analysis-padding-y: 8px;
  }

  .ecg-monitor__header {
    align-items: flex-start;
    font-size: 0.8rem;
  }

  .ecg-monitor__stats {
    grid-template-columns: 1fr;
  }

  .ecg-monitor__analysis {
    display: grid;
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 6px;
    overflow: hidden;
  }

  .ecg-monitor__analysis-code {
    white-space: normal;
  }

  .ecg-monitor__analysis > span:last-child {
    text-align: left;
  }

  .archive-map {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
    padding: 16px;
  }

  .archive-map__hub,
  .archive-map__node {
    position: relative;
    inset: auto;
    transform: none;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 64px;
    border-radius: 16px;
  }

  .archive-map__hub {
    order: -1;
    min-height: 78px;
    border-radius: 20px;
  }

  .archive-map__node::after {
    display: none;
  }

  .archive-pill-group {
    justify-content: center;
  }

  .hero-stage {
    min-height: auto;
  }

  .hero-stage__panel {
    display: grid;
    gap: 12px;
    min-height: auto;
    padding: 16px;
  }

  .hero-stage__screen {
    position: relative;
    inset: auto;
    min-height: 280px;
  }

  .hero-stage__floating {
    position: relative;
    inset: auto;
    min-width: 0;
    max-width: none;
    padding: 12px 14px;
    transform: none !important;
  }

  .hero-stage__floating--bottom {
    transform: none;
  }

  .data-table {
    min-width: 0;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tbody {
    display: grid;
    gap: 12px;
    padding: 12px;
  }

  .responsive-table tbody tr {
    display: block;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
  }

  .responsive-table tbody tr.category-row {
    background: transparent;
    border: 0;
  }

  .responsive-table tbody tr td {
    display: block;
    padding: 12px 14px;
    border: 0;
    text-align: left !important;
    background: transparent !important;
  }

  .responsive-table tbody tr td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .responsive-table tbody tr td + td {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }

  .responsive-table tbody tr.category-row td {
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(8, 154, 234, 0.12), rgba(24, 27, 79, 0.08)) !important;
  }

  .responsive-table tbody tr.category-row td::before {
    display: none;
  }

  .contact-actions,
  .hero__actions,
  .product-card__actions,
  .docs-panel__actions,
  .panel__footer {
    flex-direction: column;
  }

  .contact-actions .button,
  .hero__actions .button,
  .product-card__actions .button,
  .docs-panel__actions .button,
  .panel__footer .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  :root {
    --shell: min(1280px, calc(100vw - 20px));
  }

  .site-header__inner {
    padding: 12px;
  }

  .brand {
    gap: 10px;
    max-width: calc(100% - 50px);
  }

  .brand__logo {
    width: 40px;
    height: 40px;
  }

  .brand__caption {
    display: none;
  }

  .nav-toggle {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .scroll-top {
    width: 44px;
    height: 44px;
  }

  .ecg-monitor__analysis {
    gap: 8px;
    padding: 8px 10px;
  }

  .hero__title,
  .section-heading h2,
  .contact-main h2 {
    font-size: 2.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .ecg-monitor__trace {
    stroke-dashoffset: 0;
  }

  .ecg-monitor__trace--alert,
  .ecg-monitor__marker {
    opacity: 1;
  }

  .ecg-monitor__analysis {
    opacity: 1;
    transform: none;
  }
}
