:root {
  color-scheme: light;
  --bg: #f6fdff;
  --bg-soft: rgba(67, 196, 224, 0.07);
  --bg-card: rgba(255, 255, 255, 0.8);
  --line: rgba(22, 143, 184, 0.17);
  --line-strong: rgba(22, 143, 184, 0.32);
  --text: #123b56;
  --muted: #58778a;
  --muted-strong: #284f68;
  --accent: #168fb8;
  --accent-2: #57bde8;
  --accent-3: #33bda8;
  --accent-soft: rgba(47, 181, 216, 0.15);
  --shadow: 0 28px 80px rgba(39, 122, 151, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --display: "Space Grotesk", "Inter", sans-serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 10% 8%, rgba(104, 220, 239, 0.26), transparent 34%),
    radial-gradient(ellipse at 88% 14%, rgba(123, 197, 239, 0.23), transparent 31%),
    radial-gradient(ellipse at 50% 82%, rgba(109, 227, 207, 0.14), transparent 34%),
    linear-gradient(180deg, #fbfeff 0%, #f3fbfd 48%, #f9fefe 100%);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 14% at 25% 28%, transparent 61%, rgba(30, 164, 199, 0.08) 62%, transparent 65%),
    radial-gradient(ellipse 70% 16% at 78% 62%, transparent 61%, rgba(39, 189, 178, 0.07) 62%, transparent 65%);
}

a {
  color: inherit;
}

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

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 253, 254, 0.88));
  backdrop-filter: blur(22px) saturate(165%);
  box-shadow:
    0 18px 60px rgba(36, 119, 147, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 0.98rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--display);
}

.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(20, 123, 154, 0.16));
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  color: rgba(18, 59, 86, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 180ms ease, transform 180ms ease;
  font-family: var(--mono);
}

.nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

main {
  display: grid;
  gap: 20px;
  padding-top: 20px;
}

.hero,
.section {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(225, 247, 252, 0.86)),
    rgba(239, 251, 254, 0.8);
  background-size: 165% 165%, 100% 100%;
  box-shadow:
    0 24px 80px rgba(31, 116, 147, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(160%);
  animation: water-surface 24s ease-in-out infinite alternate;
}

.hero::before,
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(57, 194, 225, 0.2), transparent 36%),
    radial-gradient(ellipse at 95% 12%, rgba(73, 168, 229, 0.17), transparent 33%),
    linear-gradient(108deg, transparent 0 35%, rgba(255, 255, 255, 0.82) 46%, rgba(64, 191, 222, 0.1) 52%, transparent 62%);
  background-size: 135% 135%, 140% 140%, 180% 100%;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
  transform: scale(1.06);
  animation: water-refraction 20s ease-in-out infinite alternate;
  will-change: background-position, opacity;
}

.hero::after,
.section::after {
  content: "";
  position: absolute;
  inset: -38%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 48% 44%, transparent 0 38%, rgba(255, 255, 255, 0.24) 41%, transparent 47%),
    linear-gradient(112deg, transparent 39%, rgba(255, 255, 255, 0.08) 43%, rgba(255, 255, 255, 0.72) 49%, rgba(151, 231, 244, 0.12) 54%, transparent 61%);
  background-size: 58% 70%, 100% 100%;
  filter: blur(9px);
  mix-blend-mode: soft-light;
  opacity: 0;
  transform: translate3d(-18%, -10%, 0) rotate(-2deg);
  animation: sunlight-caustic 15s cubic-bezier(0.45, 0, 0.2, 1) infinite;
  will-change: transform, opacity;
}

main > section:nth-of-type(2n) {
  animation-delay: -8s;
}

main > section:nth-of-type(2n)::before {
  animation-delay: -6s;
}

main > section:nth-of-type(2n)::after {
  animation-delay: -7.5s;
}

.hero > *,
.section > * {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
  gap: clamp(32px, 4vw, 56px);
  padding: clamp(24px, 4vw, 42px);
  align-items: center;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.hero-copy h1 {
  font-size: clamp(2.55rem, 4.65vw, 4.5rem);
  max-width: 12ch;
  margin-top: 14px;
  text-wrap: balance;
  text-shadow: 0 10px 34px rgba(32, 126, 156, 0.1);
}

.hero-copy {
  min-width: 0;
}

.hero-promise {
  margin: 18px 0 0;
  max-width: 46ch;
  color: var(--muted-strong);
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--mono);
}

.lede,
.section-copy,
.feature-card p,
.workflow-step p,
.contact-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.hero-copy .lede {
  margin: 22px 0 0;
  max-width: 62ch;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  font-family: var(--mono);
  position: relative;
  overflow: hidden;
}

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

.button-primary {
  color: #073248;
  background: linear-gradient(135deg, #79e5ec, #77c7f0);
  border: 1px solid rgba(22, 143, 184, 0.22);
  box-shadow: 0 12px 30px rgba(30, 148, 184, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 0;
  align-content: center;
  justify-items: center;
  align-self: stretch;
  perspective: 1200px;
}

.hero-card,
.feature-card,
.workflow-step,
.proof-item,
.contact-card {
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.92), rgba(241, 251, 253, 0.78));
  border-radius: var(--radius-lg);
  box-shadow:
    0 18px 44px rgba(39, 121, 151, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.hero-card {
  position: relative;
  padding: 26px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at top left, rgba(115, 247, 255, 0.16), transparent 36%),
    radial-gradient(circle at top right, rgba(139, 123, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(18, 22, 36, 0.94), rgba(7, 9, 16, 0.96));
  transform: rotateX(2deg);
  animation: float-panel 10s ease-in-out infinite alternate;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: calc(var(--radius-lg) - 6px);
  border: 1px solid rgba(115, 247, 255, 0.08);
  pointer-events: none;
}

.card-label,
.feature-kicker,
.proof-item span,
.workflow-step span {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--mono);
}

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

.card-grid div {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-grid strong {
  font-size: 2rem;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1;
}

.card-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: clamp(24px, 4vw, 40px);
  scroll-margin-top: 112px;
}

#demo {
  scroll-margin-top: 112px;
}

.section-split {
  display: grid;
  gap: 22px;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  text-wrap: balance;
  color: var(--text);
}

.fit-section,
.transformation,
.qualification {
  display: grid;
  gap: clamp(26px, 3.5vw, 42px);
}

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

.fit-card {
  min-height: 142px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.fit-card strong {
  font: 600 1.35rem/1.1 var(--display);
  letter-spacing: -0.035em;
}

.fit-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.flow-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
}

.flow-state {
  min-height: 280px;
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.flow-before {
  background: linear-gradient(150deg, rgba(239, 247, 249, 0.9), rgba(255, 255, 255, 0.8));
}

.flow-after {
  background:
    radial-gradient(circle at 85% 5%, rgba(104, 220, 239, 0.25), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(221, 248, 251, 0.82));
  border-color: var(--line-strong);
  box-shadow: 0 20px 50px rgba(35, 145, 176, 0.12);
}

.state-label,
.outcome-grid span,
.diagnosis-grid span,
.ai-observation > span {
  color: var(--accent);
  font: 700 0.68rem/1.2 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.flow-state > strong {
  max-width: 24ch;
  font: 600 clamp(1.25rem, 2vw, 1.65rem)/1.2 var(--display);
  letter-spacing: -0.035em;
}

.tool-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tool-cloud span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(88, 119, 138, 0.18);
  color: var(--muted-strong);
  font: 500 0.78rem/1 var(--mono);
}

.flow-switch {
  display: grid;
  place-items: center;
}

.flow-switch span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #083f56;
  background: linear-gradient(135deg, #8be9ed, #77c7f0);
  box-shadow: 0 12px 28px rgba(30, 148, 184, 0.2);
  font-size: 1.35rem;
}

.flow-line {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.flow-line span {
  color: var(--text);
  font: 600 0.72rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.flow-line i {
  height: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
}

.client-journey {
  position: relative;
  margin: 0;
  padding: clamp(22px, 3vw, 32px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 0%, rgba(75, 205, 231, 0.22), transparent 34%),
    radial-gradient(circle at 90% 100%, rgba(78, 204, 191, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(218, 246, 251, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 20px 54px rgba(36, 130, 158, 0.1);
}

.client-journey::after {
  content: "";
  position: absolute;
  inset: -50% -20%;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.52) 49%, transparent 58%);
  opacity: 0.4;
  transform: translateX(-38%);
  animation: journey-shimmer 9s ease-in-out infinite;
}

.client-journey figcaption {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 20px;
}

.client-journey figcaption > strong {
  color: var(--muted-strong);
  font: 600 clamp(1rem, 1.8vw, 1.3rem)/1.3 var(--display);
  letter-spacing: -0.025em;
  text-align: right;
}

.journey-track {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 190px;
  margin-top: 16px;
  padding: 58px 10px 0;
}

.journey-rail {
  position: absolute;
  top: 82px;
  left: 12.5%;
  right: 12.5%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(44, 137, 169, 0.14);
  box-shadow: inset 0 1px 2px rgba(22, 91, 120, 0.12), 0 0 16px rgba(67, 188, 217, 0.14);
}

.journey-rail span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #56d3e2, #38add5 55%, #42c5ae);
  box-shadow: 0 0 18px rgba(48, 183, 207, 0.62);
  transform: scaleX(0);
  transform-origin: left center;
  animation: journey-fill 12s ease-in-out infinite;
}

.journey-client {
  position: absolute;
  top: 26px;
  left: calc(12.5% - 27px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px 7px 7px;
  border-radius: 999px;
  color: #083f56;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(22, 116, 148, 0.2), 0 0 0 1px rgba(44, 167, 199, 0.15);
  animation: client-through-flow 12s ease-in-out infinite;
}

.journey-client::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 7px);
  width: 2px;
  height: 14px;
  background: linear-gradient(#35b9d4, transparent);
}

.journey-client b {
  font: 700 0.68rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.client-avatar {
  position: relative;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #64dce7, #269bc6);
}

.client-avatar::before,
.client-avatar i {
  content: "";
  display: block;
  background: white;
}

.client-avatar::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateY(-3px);
}

.client-avatar i {
  position: absolute;
  bottom: 6px;
  width: 13px;
  height: 6px;
  border-radius: 8px 8px 5px 5px;
}

.journey-stage {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 15px;
  text-align: center;
}

.journey-node {
  position: relative;
  z-index: 3;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted-strong);
  background: rgba(248, 254, 255, 0.96);
  box-shadow: 0 0 0 7px rgba(218, 246, 250, 0.92), 0 8px 22px rgba(25, 120, 151, 0.12);
  animation: journey-node-active 12s ease-in-out infinite;
}

.journey-stage:nth-of-type(4) .journey-node { animation-delay: 3s; }
.journey-stage:nth-of-type(5) .journey-node { animation-delay: 6s; }
.journey-stage:nth-of-type(6) .journey-node { animation-delay: 9s; }

.journey-node i {
  font: 700 0.72rem/1 var(--mono);
  font-style: normal;
}

.journey-stage div {
  display: grid;
  gap: 5px;
}

.journey-stage strong {
  color: var(--text);
  font: 650 1.05rem/1.1 var(--display);
  letter-spacing: -0.025em;
}

.journey-stage small {
  color: var(--muted);
  font-size: 0.78rem;
}

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

.outcome-grid article {
  min-height: 126px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  border-top: 2px solid rgba(22, 143, 184, 0.35);
  background: rgba(255, 255, 255, 0.55);
}

.outcome-grid strong {
  font: 600 1.05rem/1.25 var(--display);
  letter-spacing: -0.02em;
}

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

.benefit-pill {
  padding: 16px 18px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(210, 243, 248, 0.58)),
    rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 26px rgba(46, 132, 158, 0.07);
}

.feature-grid,
.workflow-grid {
  display: grid;
  gap: 16px;
}

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

.feature-card,
.workflow-step {
  padding: 22px;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.feature-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.feature-card:hover,
.workflow-step:hover,
.proof-item:hover,
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 143, 184, 0.32);
  box-shadow:
    0 24px 60px rgba(31, 113, 142, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.78),
    0 0 34px rgba(72, 190, 215, 0.12);
}

.feature-card h3,
.workflow-step h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.55rem;
}

.feature-card p,
.workflow-step p {
  margin: 0;
}

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

.workflow {
  display: grid;
  gap: clamp(30px, 3.5vw, 46px);
}

.workflow-step {
  display: grid;
  align-content: start;
  gap: 10px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.8), rgba(211, 244, 249, 0.66)),
    rgba(239, 252, 253, 0.82);
}

.workflow-step span {
  color: var(--muted-strong);
}

.intelligence-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.intelligence-card {
  min-height: 460px;
  padding: clamp(24px, 3.5vw, 38px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.intelligence-card h2 {
  margin: 18px 0 0;
  font: 700 clamp(2rem, 3.7vw, 3.35rem)/0.98 var(--display);
  letter-spacing: -0.055em;
}

.ai-card {
  background:
    radial-gradient(circle at 85% 10%, rgba(100, 218, 236, 0.28), transparent 34%),
    linear-gradient(145deg, #f9feff, #e4f8fb);
}

.crm-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(242, 250, 252, 0.9));
}

.crm-card > p:not(.eyebrow) {
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.capability-list {
  margin: auto 0 0;
  padding: 30px 0 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.capability-list li {
  padding: 13px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted-strong);
  font-weight: 600;
}

.capability-list li span {
  color: var(--accent);
  font: 500 0.7rem/1 var(--mono);
}

.role-map {
  margin-top: auto;
  padding-top: 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.role-map > span {
  min-height: 96px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font: 600 1.05rem/1.2 var(--display);
}

.role-map small {
  color: var(--muted);
  font: 400 0.72rem/1.3 var(--mono);
}

.role-map b {
  color: var(--accent);
  font-size: 1.25rem;
}

.section-video {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
}

.demo-video-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone {
  justify-self: center;
  width: 100%;
}

.phone-shell {
  position: relative;
  width: min(380px, 100%);
  border-radius: 42px;
  border: 1px solid rgba(22, 143, 184, 0.3);
  background:
    radial-gradient(circle at top, rgba(115, 247, 255, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(12, 18, 32, 0.98), rgba(3, 5, 10, 0.98));
  box-shadow:
    0 34px 80px rgba(29, 101, 126, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 50px rgba(67, 190, 218, 0.16),
    inset 0 0 14px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transform: translateZ(0);
  animation: float-phone 12s ease-in-out infinite alternate;
}

.phone-shell::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 34px;
  border: 1px solid rgba(115, 247, 255, 0.08);
  pointer-events: none;
  z-index: 2;
}

.phone-shell::after {
  content: "ClientFlow™ demo";
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 3;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(3, 5, 10, 0.62);
  color: #eef6ff;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--mono);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  width: 112px;
  height: 28px;
  background: rgba(0, 0, 0, 0.94);
  border-radius: 0 0 16px 16px;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.phone-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  filter: saturate(1.15) contrast(1.04);
}

.volume-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(3, 5, 10, 0.56);
  border: 1px solid rgba(115, 247, 255, 0.18);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 24px rgba(115, 247, 255, 0.08);
}

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

.proof-item {
  padding: 22px;
  display: grid;
  gap: 10px;
}

.proof-item strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.3;
}

.contact {
  display: grid;
  gap: 24px;
}

.contact-card {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.contact-card p {
  margin: 0;
  max-width: 70ch;
}

.qualification-card {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 0%, rgba(91, 211, 229, 0.2), transparent 34%),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 60px rgba(31, 113, 142, 0.1);
}

.review-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 34px;
}

.review-progress span {
  height: 4px;
  border-radius: 999px;
  background: rgba(22, 143, 184, 0.12);
  transition: background 180ms ease;
}

.review-progress span.is-active {
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
}

.review-step {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  animation: review-in 240ms ease both;
}

.review-step legend {
  grid-column: 1 / -1;
  margin-bottom: 6px;
  padding: 0;
  font: 600 clamp(1.45rem, 2.8vw, 2rem)/1.1 var(--display);
  letter-spacing: -0.035em;
}

.review-step label {
  display: grid;
  gap: 9px;
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 600;
}

.review-step input,
.review-step select,
.review-step textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font: 400 1rem/1.45 var(--sans);
  resize: vertical;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.review-step input:focus,
.review-step select:focus,
.review-step textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(22, 143, 184, 0.1);
}

.review-step > .button,
.review-actions {
  grid-column: 1 / -1;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.submission-status {
  grid-column: 1 / -1;
  min-height: 1.2em;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.submission-status.is-error {
  color: #a23d4d;
}

.result-saved {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.review-step > .button {
  justify-self: start;
  margin-top: 4px;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.form-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.review-result {
  animation: review-in 280ms ease both;
}

.review-result h3 {
  margin: 16px 0 28px;
  font: 700 clamp(2rem, 4vw, 3.4rem)/1 var(--display);
  letter-spacing: -0.055em;
}

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

.diagnosis-grid article {
  min-height: 150px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.diagnosis-grid strong {
  font: 600 1.08rem/1.3 var(--display);
  letter-spacing: -0.025em;
}

.ai-observation {
  margin-top: 12px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(112, 225, 235, 0.17), rgba(98, 194, 235, 0.1));
}

.ai-observation p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.5;
}

@keyframes review-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes water-surface {
  0% {
    background-position: 18% 10%, 0 0;
  }
  48% {
    background-position: 55% 42%, 0 0;
  }
  100% {
    background-position: 84% 68%, 0 0;
  }
}

@keyframes water-refraction {
  0% {
    background-position: 0% 0%, 100% 10%, -30% 0%;
    opacity: 0.68;
  }
  50% {
    background-position: 32% 24%, 72% 36%, 42% 0%;
    opacity: 0.96;
  }
  100% {
    background-position: 60% 42%, 42% 58%, 116% 0%;
    opacity: 0.76;
  }
}

@keyframes sunlight-caustic {
  0%, 12% {
    opacity: 0;
    transform: translate3d(-22%, -12%, 0) rotate(-2deg);
  }
  27% {
    opacity: 0.42;
  }
  54% {
    opacity: 0.2;
  }
  72%, 100% {
    opacity: 0;
    transform: translate3d(22%, 12%, 0) rotate(2deg);
  }
}

@keyframes client-through-flow {
  0%, 8% { left: calc(12.5% - 27px); transform: translateY(0) scale(1); }
  25% { left: calc(37.5% - 27px); transform: translateY(-4px) scale(1.03); }
  50% { left: calc(62.5% - 27px); transform: translateY(0) scale(1); }
  75%, 92% { left: calc(87.5% - 27px); transform: translateY(-4px) scale(1.03); }
  100% { left: calc(87.5% - 27px); transform: translateY(0) scale(1); }
}

@keyframes journey-fill {
  0%, 8% { transform: scaleX(0); }
  25% { transform: scaleX(0.34); }
  50% { transform: scaleX(0.67); }
  75%, 100% { transform: scaleX(1); }
}

@keyframes client-through-flow-mobile {
  0%, 8% { top: 15px; transform: translateY(0) scale(1); }
  25% { top: calc(33.333% - 9px); transform: translateY(-2px) scale(1.03); }
  50% { top: calc(66.666% - 28px); transform: translateY(0) scale(1); }
  75%, 92% { top: calc(100% - 55px); transform: translateY(-2px) scale(1.03); }
  100% { top: calc(100% - 55px); transform: translateY(0) scale(1); }
}

@keyframes journey-fill-mobile {
  0%, 8% { transform: scaleY(0); }
  25% { transform: scaleY(0.34); }
  50% { transform: scaleY(0.67); }
  75%, 100% { transform: scaleY(1); }
}

@keyframes journey-node-active {
  0%, 14% {
    color: #083f56;
    background: #ffffff;
    box-shadow: 0 0 0 8px rgba(76, 211, 224, 0.23), 0 0 26px rgba(48, 181, 207, 0.42);
    transform: scale(1.08);
  }
  25%, 100% {
    color: var(--muted-strong);
    background: rgba(248, 254, 255, 0.96);
    box-shadow: 0 0 0 7px rgba(218, 246, 250, 0.92), 0 8px 22px rgba(25, 120, 151, 0.12);
    transform: scale(1);
  }
}

@keyframes journey-shimmer {
  0%, 18% { opacity: 0; transform: translateX(-38%); }
  42% { opacity: 0.42; }
  72%, 100% { opacity: 0; transform: translateX(38%); }
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 4px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  font-family: var(--mono);
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(115, 247, 255, 0.18);
}

.site-footer a:hover {
  border-bottom-color: rgba(115, 247, 255, 0.72);
}

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

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

}

@keyframes float-panel {
  0% {
    transform: rotateX(2deg) translateY(0);
  }
  100% {
    transform: rotateX(2deg) translateY(-8px);
  }
}

@keyframes float-phone {
  0% {
    transform: translateY(0) rotate(0.25deg);
  }
  100% {
    transform: translateY(-10px) rotate(-0.35deg);
  }
}

@media (max-width: 860px) {
  .hero,
  .section-video {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    justify-items: center;
  }

  .feature-grid,
  .workflow-grid,
  .proof,
  .fit-grid,
  .outcome-grid,
  .intelligence-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .flow-switch {
    min-height: 44px;
  }

  .flow-switch span {
    transform: rotate(90deg);
  }

  .benefit-strip {
    grid-template-columns: 1fr;
  }

  .client-journey figcaption {
    display: grid;
    justify-content: start;
  }

  .client-journey figcaption > strong {
    text-align: left;
  }

  .journey-track {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 420px;
    padding: 0;
    margin-top: 24px;
  }

  .journey-rail {
    top: 26px;
    right: auto;
    bottom: 26px;
    left: 76px;
    width: 5px;
    height: auto;
  }

  .journey-rail span {
    transform: scaleY(0);
    transform-origin: center top;
    animation-name: journey-fill-mobile;
  }

  .journey-client {
    top: 15px;
    left: 58px;
    padding: 4px;
    animation-name: client-through-flow-mobile;
  }

  .journey-client::after {
    display: none;
  }

  .journey-client b {
    display: none;
  }

  .journey-stage {
    grid-template-columns: 52px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    align-content: center;
    gap: 18px;
    min-height: 90px;
    padding-left: 52px;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100%, calc(100% - 18px));
    padding-top: 10px;
  }

  .topbar {
    position: static;
    justify-content: flex-start;
    border-radius: 24px;
    padding: 14px 16px;
  }

  .nav {
    display: none;
  }

  .hero,
  .section {
    border-radius: 24px;
  }

  .hero {
    padding: 20px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.15rem, 10.2vw, 3rem);
    line-height: 0.96;
    overflow-wrap: anywhere;
  }

  .hero-promise {
    font-size: 1.05rem;
  }

  .section,
  #demo {
    scroll-margin-top: 12px;
  }

  .card-grid,
  .feature-grid,
  .workflow-grid,
  .proof,
  .fit-grid,
  .outcome-grid,
  .intelligence-section,
  .diagnosis-grid,
  .review-step {
    grid-template-columns: 1fr;
  }

  .flow-line {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .flow-line i {
    width: 2px;
    height: 18px;
    margin-left: 16px;
  }

  .intelligence-card {
    min-height: auto;
  }

  .capability-list,
  .role-map {
    margin-top: 28px;
  }

  .role-map {
    grid-template-columns: 1fr;
  }

  .role-map b {
    justify-self: center;
  }

  .ai-observation {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .hero-phone {
    justify-self: center;
  }

  .phone-shell {
    width: min(300px, 100%);
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    justify-content: center;
    text-align: center;
  }

  .benefit-strip {
    grid-template-columns: 1fr;
  }
}

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

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

  .journey-rail span {
    transform: scaleX(1);
  }

  .journey-client {
    left: calc(87.5% - 27px);
  }
}

@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .journey-rail span {
    transform: scaleY(1);
  }

  .journey-client {
    top: calc(100% - 55px);
    left: 58px;
  }
}
