:root {
  --blue-950: #082b55;
  --blue-800: #064b93;
  --blue-650: #0b68bd;
  --cyan-600: #13b7ba;
  --cyan-500: #1ed1c0;
  --green-500: #3fcf80;
  --ink: #14202b;
  --muted: #5b6a78;
  --line: #d8e6ef;
  --soft: #eefbf8;
  --panel: #ffffff;
  --wash: #f7fbfd;
  --shadow: 0 24px 60px rgba(8, 43, 85, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: #fff;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(216, 230, 239, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  width: 178px;
  flex: 0 0 auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.main-nav a:hover {
  color: var(--blue-800);
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-950);
  font-size: 0.98rem;
  font-weight: 750;
  white-space: nowrap;
}

.nav-phone span {
  color: var(--blue-800);
  font-size: 1.04rem;
}

.nav-phone:hover {
  color: var(--blue-800);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 750;
  white-space: nowrap;
}

.nav-cta {
  color: #fff;
  background: var(--blue-800);
  box-shadow: 0 10px 24px rgba(6, 75, 147, 0.2);
}

.section-band {
  background:
    linear-gradient(135deg, rgba(238, 251, 248, 0.95), rgba(255, 255, 255, 0.88) 52%, rgba(232, 244, 252, 0.85)),
    #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(46px, 7vw, 96px) clamp(18px, 5vw, 76px) clamp(34px, 5vw, 62px);
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan-600);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  color: var(--blue-950);
  font-size: clamp(2.5rem, 5.6vw, 5.65rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.legal-page h1 {
  max-width: none;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: 1.04;
}

h2 {
  margin-bottom: 16px;
  color: var(--blue-950);
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--blue-950);
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero-text {
  max-width: 690px;
  color: #354758;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
}

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

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-800), var(--cyan-600));
  box-shadow: 0 18px 36px rgba(6, 75, 147, 0.24);
}

.button.secondary {
  color: var(--blue-800);
  background: #fff;
  border: 1px solid var(--line);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.trust-strip span,
.partner-list span {
  padding: 9px 12px;
  color: var(--blue-950);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(19, 183, 186, 0.26);
  border-radius: 6px;
  font-weight: 750;
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  min-height: 650px;
}

.device-cloud {
  position: relative;
  height: 570px;
}

.device {
  position: absolute;
  filter: drop-shadow(0 28px 32px rgba(8, 43, 85, 0.2));
  transition: transform 220ms ease, filter 220ms ease;
  transform-origin: center bottom;
}

.hero-visual:hover .device {
  transform: scale(0.9);
  filter: drop-shadow(0 16px 22px rgba(8, 43, 85, 0.16));
}

.device-one {
  right: 8%;
  bottom: 0;
  width: min(46vw, 330px);
}

.device-two {
  left: 0;
  top: 26px;
  width: min(30vw, 250px);
}

.device-three {
  right: 0;
  top: 26px;
  width: min(34vw, 300px);
}

.flow-panel {
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 10px;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(216, 230, 239, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.flow-node {
  padding: 11px 12px;
  color: var(--blue-950);
  background: #f8fcfd;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.flow-node.active {
  color: #fff;
  background: var(--blue-800);
}

.flow-node.final {
  color: #fff;
  background: var(--cyan-600);
}

.flow-line {
  height: 2px;
  background: linear-gradient(90deg, var(--blue-650), var(--cyan-600));
}

.problem-solution,
.builder-section,
.device-section,
.partner-section,
.contact,
.site-footer {
  padding: clamp(56px, 7vw, 104px) clamp(18px, 5vw, 76px);
}

.section-intro {
  max-width: 760px;
}

.section-intro.centered {
  max-width: 860px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-intro p,
.builder-copy p,
.partner-section p,
.contact-panel p {
  color: var(--muted);
  font-size: 1.06rem;
}

.split-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.split-points > div,
.feature-grid article,
.audience-grid article {
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(8, 43, 85, 0.08);
}

.tile-explainer img {
  width: 100%;
  margin-bottom: 20px;
  border: 1px solid rgba(19, 183, 186, 0.35);
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(8, 43, 85, 0.1);
}

.phoropter-animation {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}

.workflow-demo h3 {
  margin-bottom: 14px;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.investigation-stage,
.technical-stage {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #f7fffb, #eefbf8);
  border: 1px solid rgba(19, 183, 186, 0.36);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.investigation-stage {
  aspect-ratio: 1797 / 1140;
  width: 65%;
  margin: 0 auto;
}

.ga-tile,
.selection-dialog img {
  width: 100%;
  height: 100%;
}

.ga-tile {
  object-fit: fill;
}

.selection-dialog img {
  object-fit: contain;
  background: #fff;
}

.demo-led {
  position: absolute;
  right: 6.9%;
  top: 24.4%;
  width: 7.1%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 33% 28%, #eafff1 0 12%, #4fe58c 13% 42%, #0a9f4f 72%);
  box-shadow: 0 0 22px rgba(38, 209, 108, 0.62);
  animation: ledPulse 1s infinite ease-in-out, ledReceiveBurst 15s infinite;
}

.demo-status {
  position: absolute;
  z-index: 2;
  overflow: hidden;
  height: 11.8%;
  padding: 0.9% 1.1%;
  background: rgba(255, 252, 245, 0.95);
  border: 1px solid rgba(212, 202, 174, 0.9);
  border-radius: 7px;
  box-shadow: 0 8px 18px rgba(8, 43, 85, 0.12);
}

.demo-status b,
.demo-status span {
  display: block;
}

.demo-status b {
  color: #102a2a;
  font-size: clamp(0.56rem, 0.9vw, 0.98rem);
  line-height: 1.05;
}

.demo-status span {
  color: #5a5f62;
  font-size: clamp(0.52rem, 0.82vw, 0.9rem);
  line-height: 1.08;
}

.demo-status-ais {
  left: 4.35%;
  bottom: 20.9%;
  width: 19%;
}

.demo-status-device {
  left: 24%;
  bottom: 20.9%;
  width: 19%;
}

.state-received,
.state-device-received {
  position: absolute;
  left: 5.8%;
  right: 5.8%;
  top: 43%;
  opacity: 0;
}

.state-wait {
  animation: aisWait 15s infinite;
}

.state-received {
  animation: aisReceived 15s infinite;
}

.state-device-wait {
  animation: deviceWait 15s infinite;
}

.state-device-received {
  animation: deviceReceived 15s infinite;
}

.selection-dialog {
  position: absolute;
  inset: 4.5%;
  z-index: 5;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(8, 43, 85, 0.24);
  opacity: 0;
  transform: scale(0.985);
  pointer-events: none;
  animation: selectionWindow 15s infinite;
}

.button-click {
  position: absolute;
  left: 46.6%;
  bottom: 1.6%;
  width: 21.2%;
  height: 5.7%;
  border: 3px solid rgba(11, 104, 189, 0);
  border-radius: 4px;
  animation: phoropterButtonClick 15s infinite;
}

.button-click::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(19, 183, 186, 0.35);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  animation: clickRipple 15s infinite;
}

.technical-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 65%;
  margin: 0 auto;
  padding: clamp(16px, 2.4vw, 28px);
  aspect-ratio: 1460 / 935;
}

.tech-screen,
.parser-screen {
  position: relative;
  overflow: hidden;
  padding: 18px;
  color: #dff9f5;
  background: linear-gradient(145deg, #092c43, #0d5664);
  border: 1px solid rgba(30, 209, 192, 0.36);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.tech-screen {
  animation: sourceScreensMerge 26s infinite;
}

.patient-screen {
  animation-name: patientScreenMerge;
}

.device-screen {
  animation-name: deviceScreenMerge;
}

.tech-screen b,
.parser-screen strong {
  display: block;
  margin-bottom: 12px;
  color: #8ff2df;
  font-size: 0.95rem;
}

.tech-screen pre,
.parser-screen pre {
  height: calc(100% - 34px);
  margin: 0;
  overflow: hidden;
  color: #f2fffd;
  font: 600 clamp(0.68rem, 1vw, 0.92rem) / 1.38 Consolas, "Courier New", monospace;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  text-shadow: none;
  white-space: pre-wrap;
}

.tech-screen pre {
  clip-path: inset(0 0 100% 0);
}

.patient-screen pre {
  animation: patientTextBuild 26s infinite steps(28, end);
}

.device-screen pre {
  animation: deviceTextBuild 26s infinite steps(28, end);
}

.parser-screen {
  position: absolute;
  inset: clamp(16px, 2.4vw, 28px);
  z-index: 3;
  opacity: 0;
  transform: scale(0.94);
  animation: parserScreen 26s infinite;
}

.parser-screen strong {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  text-align: center;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
}

.parser-screen pre {
  position: relative;
  z-index: 2;
  max-width: 760px;
  height: auto;
  margin: 18px auto 0;
  padding: 18px;
  background: rgba(2, 20, 28, 0.58);
  border: 1px solid rgba(143, 242, 223, 0.28);
  border-radius: 8px;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  animation: exportTextBuild 26s infinite steps(14, end);
}

.hourglass {
  position: absolute;
  left: 50%;
  top: 18%;
  width: 96px;
  height: 140px;
  opacity: 0;
  transform: translateX(-50%);
  border-top: 9px solid #8ff2df;
  border-bottom: 9px solid #8ff2df;
  filter: drop-shadow(0 0 18px rgba(143, 242, 223, 0.22));
  animation: hourglassVisible 26s infinite;
}

.hourglass::before,
.hourglass::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 58px;
  border: 5px solid rgba(143, 242, 223, 0.78);
}

.hourglass::before {
  top: 5px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.hourglass::after {
  bottom: 5px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.sand {
  position: absolute;
  left: 50%;
  background: #ffe657;
  transform: translateX(-50%);
}

.sand-top {
  top: 18px;
  width: 48px;
  height: 38px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  animation: sandTopDrain 26s infinite linear;
}

.sand-stream {
  top: 61px;
  width: 5px;
  height: 55px;
  border-radius: 999px;
  animation: sandStream 26s infinite;
}

.sand-bottom {
  bottom: 18px;
  width: 16px;
  height: 16px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  animation: sandBottomFill 26s infinite linear;
}

@keyframes ledPulse {
  0%, 100% { filter: brightness(0.75); }
  50% { filter: brightness(1.18); }
}

@keyframes ledReceiveBurst {
  0%, 68%, 76%, 100% { background: radial-gradient(circle at 33% 28%, #eafff1 0 12%, #4fe58c 13% 42%, #0a9f4f 72%); }
  69%, 71%, 73% { background: radial-gradient(circle at 33% 28%, #ffffff 0 20%, #fff05a 21% 55%, #20d879 78%); }
  70%, 72%, 74% { background: radial-gradient(circle at 33% 28%, #ffffff 0 20%, #fff59d 21% 55%, #ffffff 76%); }
}

@keyframes aisWait {
  0%, 19% { opacity: 1; }
  20%, 100% { opacity: 0; }
}

@keyframes aisReceived {
  0%, 19% { opacity: 0; }
  20%, 100% { opacity: 1; }
}

@keyframes deviceWait {
  0%, 68% { opacity: 1; }
  69%, 100% { opacity: 0; }
}

@keyframes deviceReceived {
  0%, 68% { opacity: 0; }
  69%, 100% { opacity: 1; }
}

@keyframes selectionWindow {
  0%, 19% { opacity: 0; transform: scale(0.985); }
  23%, 48% { opacity: 1; transform: scale(1); }
  52%, 100% { opacity: 0; transform: scale(0.985); }
}

@keyframes phoropterButtonClick {
  0%, 40%, 100% { border-color: rgba(11, 104, 189, 0); background: transparent; }
  42%, 46% { border-color: rgba(11, 104, 189, 0.92); background: rgba(19, 183, 186, 0.13); }
}

@keyframes clickRipple {
  0%, 41%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  43% { opacity: 1; transform: translate(-50%, -50%) scale(1.8); }
  47% { opacity: 0; transform: translate(-50%, -50%) scale(3.2); }
}

@keyframes patientTextBuild {
  0%, 8% { clip-path: inset(0 0 100% 0); }
  20%, 52% { clip-path: inset(0 0 0 0); }
  65%, 100% { clip-path: inset(0 0 100% 0); }
}

@keyframes deviceTextBuild {
  0%, 20% { clip-path: inset(0 0 100% 0); }
  33%, 52% { clip-path: inset(0 0 0 0); }
  65%, 100% { clip-path: inset(0 0 100% 0); }
}

@keyframes patientScreenMerge {
  0%, 43% { opacity: 1; transform: translateX(0) scale(1); }
  50%, 58% { opacity: 0.5; transform: translateX(26%) scale(0.98); }
  63%, 100% { opacity: 0; transform: translateX(32%) scale(0.94); }
}

@keyframes deviceScreenMerge {
  0%, 43% { opacity: 1; transform: translateX(0) scale(1); }
  50%, 58% { opacity: 0.5; transform: translateX(-26%) scale(0.98); }
  63%, 100% { opacity: 0; transform: translateX(-32%) scale(0.94); }
}

@keyframes parserScreen {
  0%, 52% { opacity: 0; transform: scale(0.94); }
  57%, 99% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.94); }
}

@keyframes hourglassVisible {
  0%, 57% { opacity: 0; transform: translateX(-50%) rotate(0deg); }
  58%, 70% { opacity: 1; transform: translateX(-50%) rotate(0deg); }
  72%, 75% { opacity: 1; transform: translateX(-50%) rotate(180deg); }
  79%, 100% { opacity: 0; transform: translateX(-50%) rotate(180deg); }
}

@keyframes sandTopDrain {
  0%, 58% { transform: translateX(-50%) scaleY(1); transform-origin: center top; }
  70%, 100% { transform: translateX(-50%) scaleY(0.08); transform-origin: center top; }
}

@keyframes sandStream {
  0%, 58%, 72%, 100% { opacity: 0; }
  59%, 70% { opacity: 1; }
}

@keyframes sandBottomFill {
  0%, 58% { width: 16px; height: 16px; }
  70%, 100% { width: 58px; height: 34px; }
}

@keyframes exportTextBuild {
  0%, 68% { opacity: 0; clip-path: inset(0 0 100% 0); }
  69.2%, 100% { opacity: 1; clip-path: inset(0 0 0 0); }
}

.compact {
  padding: clamp(56px, 7vw, 96px) clamp(18px, 5vw, 76px);
}

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

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-800), var(--cyan-600));
  border-radius: 7px;
  font-weight: 900;
}

.feature-grid p,
.audience-grid p,
.split-points p,
.workflow-steps p,
.device-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.builder-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(440px, 1.18fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.document-transfer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(56px, 7vw, 104px) clamp(18px, 5vw, 76px);
  background: #fff;
}

.screenshot-frame {
  width: 81.25%;
  margin: 0 auto;
  padding: 8px;
  background: linear-gradient(145deg, #ffffff, #eefbf8);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.screenshot-frame img {
  width: 100%;
  border: 1px solid rgba(19, 183, 186, 0.28);
  border-radius: 6px;
}

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

.check-list li {
  position: relative;
  padding-left: 30px;
  color: #2f4658;
  font-weight: 650;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  content: "✓";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #fff;
  background: var(--green-500);
  border-radius: 50%;
  font-size: 0.82rem;
}

.app-mockup {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mock-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 18px;
  background: #f5fbfd;
  border-bottom: 1px solid var(--line);
}

.mock-topbar span {
  width: 10px;
  height: 10px;
  background: var(--line);
  border-radius: 50%;
}

.mock-topbar strong {
  margin-left: 10px;
  color: var(--blue-950);
}

.mock-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 18px 0;
}

.mock-tabs span {
  padding: 9px 12px;
  color: var(--muted);
  background: #f8fcfd;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  font-weight: 750;
  font-size: 0.88rem;
}

.mock-tabs .selected {
  color: #fff;
  background: var(--blue-800);
  border-color: var(--blue-800);
}

.builder-screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  background: linear-gradient(135deg, #f9fdfd, #effbf8);
}

.builder-screen {
  min-height: 245px;
  padding: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(8, 43, 85, 0.08);
}

.builder-screen h3 {
  margin-bottom: 12px;
  padding-bottom: 9px;
  color: var(--blue-950);
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

.builder-screen pre {
  height: 182px;
  margin: 0;
  overflow: auto;
  color: #173040;
  font: 650 0.72rem / 1.38 Consolas, "Courier New", monospace;
  white-space: pre-wrap;
}

.builder-screen.ais-view {
  grid-column: 1 / -1;
  min-height: 210px;
}

.builder-screen.ais-view pre {
  height: 132px;
  color: var(--blue-950);
  font-size: 0.86rem;
}

.mock-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
  padding: 28px 22px;
  background: linear-gradient(135deg, #f9fdfd, #effbf8);
}

.mock-panel {
  min-height: 190px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mock-panel small {
  display: block;
  margin-bottom: 18px;
  color: var(--cyan-600);
  font-weight: 850;
  text-transform: uppercase;
}

.mock-panel b {
  display: block;
  margin-bottom: 12px;
  color: var(--blue-950);
  font-size: 1.25rem;
}

.mock-arrow {
  align-self: center;
  color: var(--cyan-600);
  font-size: 2.5rem;
  font-weight: 900;
}

.mock-console {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 22px 20px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.mock-console span {
  padding: 7px 10px;
  color: var(--muted);
  background: #f8fcfd;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 750;
}

.mock-console .ok {
  color: #fff;
  background: var(--green-500);
  border-color: var(--green-500);
}

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

.workflow-steps div {
  min-height: 210px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(216, 230, 239, 0.95);
  border-radius: 8px;
}

.workflow-steps span {
  display: block;
  margin-bottom: 28px;
  color: var(--cyan-600);
  font-weight: 900;
}

.workflow-steps b {
  display: block;
  margin-bottom: 10px;
  color: var(--blue-950);
  font-size: 1.15rem;
}

.device-section {
  background: #fff;
}

.device-section .section-intro {
  margin-bottom: 30px;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(315px, auto);
  gap: 16px;
}

.device-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 22px;
  background: linear-gradient(145deg, #ffffff, #f1fbfa);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(8, 43, 85, 0.08);
}

.device-card img {
  align-self: center;
  width: 100%;
  height: 205px;
  margin-bottom: 18px;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(8, 43, 85, 0.13));
  transition: transform 220ms ease, filter 220ms ease;
}

.device-card:hover img {
  transform: scale(0.9);
  filter: drop-shadow(0 8px 14px rgba(8, 43, 85, 0.1));
}

.device-card.tall {
  grid-row: span 2;
}

.device-card.tall img {
  height: 520px;
}

.device-card.wide {
  grid-column: span 2;
}

.document-card img {
  width: 72%;
}

.document-card {
  grid-column: auto;
  width: auto;
  justify-self: stretch;
}

.audience-grid {
  max-width: 1280px;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.audience-grid article:last-child {
  grid-column: 1 / -1;
  width: calc((100% - 16px) / 2);
  justify-self: center;
}

.partner-section {
  display: block;
  max-width: 980px;
  margin: 0 auto;
}

.partner-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.partner-list span {
  display: grid;
  place-items: center;
  min-height: 82px;
  text-align: center;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(26px, 5vw, 48px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-actions {
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin-top: 0;
}

.contact-actions .button.primary {
  width: min(100%, 420px);
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: var(--blue-950);
  font-size: 1.34rem;
  font-weight: 800;
}

.legal-section {
  padding: clamp(56px, 7vw, 92px) clamp(18px, 5vw, 76px);
}

.legal-page {
  min-height: calc(100vh - 78px);
}

.legal-panel {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 46px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(8, 43, 85, 0.08);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.legal-grid > div,
.legal-copy {
  padding: 22px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-copy {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.legal-copy h3 {
  margin-top: 16px;
}

.legal-copy h3:first-child {
  margin-top: 0;
}

.legal-panel p {
  color: var(--muted);
}

.legal-panel a {
  color: var(--blue-800);
  font-weight: 800;
}

.download-panel {
  max-width: 820px;
  padding: clamp(24px, 4vw, 42px);
  color: var(--muted);
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.download-panel h3 {
  margin: 0 0 10px;
  color: var(--blue-950);
  font-size: 1.35rem;
}

.download-panel p:last-child {
  margin-bottom: 0;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
  color: var(--muted);
  background: var(--blue-950);
}

.site-footer,
.site-footer a {
  color: #fff;
}

.site-footer div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.05rem;
}

.footer-logo {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  object-fit: contain;
}

.site-footer p {
  margin: 0;
  color: #fff;
  font-weight: 400;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.08rem;
  font-weight: 400;
  white-space: nowrap;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 6px;
  font-weight: 400;
}

.footer-legal a:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1100px) {
  .hero,
  .builder-section,
  .document-transfer,
  .partner-section,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 560px;
  }

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

  .workflow-steps,
  .device-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-card,
  .audience-grid article:last-child {
    grid-column: 1 / -1;
    width: calc((100% - 16px) / 2);
    justify-self: center;
  }

  .contact-actions {
    justify-content: center;
  }
}

@media (max-width: 780px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
    gap: 14px;
  }

  .brand {
    width: 152px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
  }

  .nav-cta {
    margin-left: auto;
  }

  .nav-phone {
    margin-left: auto;
    font-size: 0.92rem;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-visual {
    min-height: 480px;
  }

  .device-cloud {
    height: 410px;
  }

  .device-one {
    width: min(68vw, 270px);
  }

  .device-two {
    width: min(42vw, 190px);
  }

  .device-three {
    width: min(46vw, 220px);
  }

  .flow-panel {
    grid-template-columns: 1fr;
  }

  .flow-line {
    width: 2px;
    height: 18px;
    justify-self: center;
  }

  .split-points,
  .feature-grid,
  .audience-grid,
  .workflow-steps,
  .device-grid,
  .partner-list,
  .legal-grid,
  .builder-screens,
  .mock-body {
    grid-template-columns: 1fr;
  }

  .builder-screen.ais-view {
    grid-column: auto;
  }

  .device-card.wide {
    grid-column: auto;
  }

  .document-card,
  .audience-grid article:last-child {
    grid-column: auto;
    width: auto;
  }

  .screenshot-frame {
    width: 100%;
  }

  .device-card.tall {
    grid-row: auto;
  }

  .device-card.tall img,
  .device-card img {
    height: 240px;
  }

  .mock-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .investigation-stage,
  .technical-stage {
    min-height: 360px;
  }

  .investigation-stage {
    width: 100%;
  }

  .technical-stage {
    width: 100%;
    gap: 10px;
    padding: 12px;
  }

  .demo-status {
    padding: 7px 9px;
  }

  .state-received,
  .state-device-received {
    left: 9px;
    right: 9px;
    top: 34px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

}

@media (max-width: 520px) {
  h1 {
    font-size: 2.32rem;
  }

  h2 {
    font-size: 1.82rem;
  }

  .nav-phone,
  .nav-cta,
  .button {
    width: 100%;
  }

  .nav-phone {
    justify-content: center;
  }

  .main-nav {
    font-size: 0.88rem;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .mock-tabs {
    flex-wrap: wrap;
  }

  .investigation-stage,
  .technical-stage {
    min-height: 300px;
  }

  .investigation-stage {
    width: 100%;
  }

  .technical-stage {
    width: 100%;
    aspect-ratio: auto;
    min-height: 420px;
  }

  .tech-screen pre,
  .parser-screen pre {
    font-size: 0.56rem;
  }
}
