/*
 * dentixo.ir front page.
 *
 * Colours are the product's own: the slate primary tones (#acc7ff, #d7e2ff),
 * the violet tertiary (#d0c0e1) and the category teal/sand used for
 * treatments in the app. Fonts are the visitor's system UI fonts: the CSP
 * allows fonts only from this origin, and the app's Persian face is bundled
 * by the Angular build under a hashed name this page can't reference.
 */
:root {
  --bg: #060912;
  --bg-2: #0a0f1d;
  --surface: rgb(255 255 255 / 0.035);
  --surface-2: rgb(255 255 255 / 0.06);
  --border: rgb(255 255 255 / 0.08);
  --border-strong: rgb(255 255 255 / 0.14);
  --text: #e9eefb;
  --muted: #98a3bf;
  --faint: #7d88a6;
  --brand: #acc7ff;
  --brand-soft: #d7e2ff;
  --brand-deep: #435e91;
  --violet: #d0c0e1;
  --teal: #8fd6c9;
  --sand: #e6cf9b;
  --sky: #a9d6ee;
  --warn: #f4c47a;
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1200px;
  --gutter: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font:
    ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'Noto Sans Arabic', 'Vazirmatn', Tahoma, sans-serif;
  color-scheme: dark;
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
}
/* An angle CSS can animate, for the rotating CTA border. */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (max-width: 720px) {
  html {
    scroll-padding-top: 120px;
  }
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

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

::selection {
  background: rgba(172, 199, 255, 0.35);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--brand);
  color: #0b1530;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease);
}
.skip:focus {
  transform: none;
}

/* Scroll progress, driven by landing.js through --p (0–1). */
.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--violet), var(--teal));
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

.gradient-text {
  background: linear-gradient(
    100deg,
    var(--brand-soft),
    var(--brand) 30%,
    var(--violet) 60%,
    var(--teal) 90%
  );
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: shimmer 8s ease-in-out infinite alternate;
}

@keyframes shimmer {
  to {
    background-position: 100% 0;
  }
}
/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  --mx: 0px;
  --my: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 15px/1 var(--font);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transform: translate(var(--mx), var(--my));
  transition:
    transform 300ms var(--ease),
    background-color 200ms,
    border-color 200ms,
    box-shadow 300ms var(--ease);
}
.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 300ms var(--ease);
}
.btn:hover .icon {
  transform: translateX(3px);
}
.btn--sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}
.btn--lg {
  min-height: 56px;
  padding: 0 30px;
  font-size: 16px;
}
.btn--primary {
  background: linear-gradient(135deg, var(--brand-soft), var(--brand) 55%, #c9b8e6);
  color: #0b1530;
  box-shadow:
    0 10px 30px -10px rgba(172, 199, 255, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
/* A sheen that sweeps across on hover. */
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 700ms var(--ease);
}
.btn--primary:hover {
  box-shadow:
    0 16px 40px -12px rgba(172, 199, 255, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn--primary:hover::after {
  transform: translateX(120%);
}
.btn--ghost {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  border-color: rgba(172, 199, 255, 0.45);
  background: rgba(172, 199, 255, 0.08);
}

/* ── Navigation ──────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-block: 14px;
  transition:
    padding 300ms var(--ease),
    background-color 300ms,
    border-color 300ms,
    backdrop-filter 300ms;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-block: 10px;
  border-bottom-color: var(--border);
  background: rgba(6, 9, 18, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav nav {
  margin-inline-start: auto;
}
.nav__links {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 200ms,
    background-color 200ms;
}
.nav__links a:hover {
  color: var(--text);
  background: var(--surface-2);
}
@media (max-width: 720px) {
  .nav__inner {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .nav nav {
    order: 3;
    width: 100%;
    margin-inline-start: 0;
  }
  .nav__links {
    justify-content: center;
  }
  .nav__links a {
    padding: 6px 12px;
    font-size: 13px;
  }
  .nav .motion-toggle {
    margin-inline-start: auto;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand__mark {
  width: 30px;
  height: 30px;
  color: var(--brand);
}

/* The mark draws itself once on load. */
.nav .brand__mark .mark__tooth {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.6s 200ms var(--ease) forwards;
}

.nav .brand__mark .mark__spark {
  transform-origin: 39px 13.8px;
  transform: scale(0) rotate(-90deg);
  animation: pop 700ms 1.3s var(--ease-spring) forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes pop {
  to {
    transform: none;
  }
}
/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: 160px 40px;
  overflow: hidden;
}
@media (max-width: 640px) {
  .hero {
    padding-block-start: 150px;
  }
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
/* Faint engineering grid, fading out from the headline. */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000, transparent 75%);
}
/* Follows the pointer — set by landing.js. */
.hero__glow {
  position: absolute;
  width: 640px;
  height: 640px;
  left: calc(50% - 320px);
  top: calc(30% - 320px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(172, 199, 255, 0.13), transparent 65%);
  transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0);
  transition: transform 600ms var(--ease);
  will-change: transform;
}
.hero__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__pill {
  animation: rise 900ms var(--ease) both;
}
.hero__title {
  max-width: 15ch;
  margin-top: 28px;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero__lead {
  max-width: 640px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  animation: rise 900ms 750ms var(--ease) both;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  animation: rise 900ms 900ms var(--ease) both;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--faint);
  font-size: 13px;
  list-style: none;
  animation: rise 900ms 1050ms var(--ease) both;
}
.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__facts li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}
.hero__stage {
  margin-top: 72px;
  perspective: 1800px;
}

/* Headline words rise out of a blur, one after another. */
.word {
  display: inline-block;
  padding-bottom: 0.08em;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(0.45em) rotate(3deg);
  animation: word-in 1s calc(150ms + var(--i) * 75ms) var(--ease) forwards;
}

.word.gradient-text {
  animation:
    word-in 1s calc(150ms + var(--i) * 75ms) var(--ease) forwards,
    shimmer 8s 1.5s ease-in-out infinite alternate;
}

@keyframes word-in {
  to {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--brand-soft);
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}
.pill__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}
.pill__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--teal);
  animation: ping 2s ease-out infinite;
}

@keyframes ping {
  to {
    opacity: 0;
    transform: scale(3);
  }
}
/* Three slow colour fields behind everything. */
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 24s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) {
  width: 46vw;
  height: 46vw;
  max-width: 680px;
  max-height: 680px;
  top: -12%;
  left: 8%;
  background: #2a4678;
}
.aurora span:nth-child(2) {
  width: 38vw;
  height: 38vw;
  max-width: 560px;
  max-height: 560px;
  top: 4%;
  right: 4%;
  background: #4d425d;
  animation-duration: 28s;
  animation-delay: -9s;
}
.aurora span:nth-child(3) {
  width: 30vw;
  height: 30vw;
  max-width: 460px;
  max-height: 460px;
  top: 42%;
  left: 36%;
  background: #12403a;
  opacity: 0.45;
  animation-duration: 32s;
  animation-delay: -16s;
}

@keyframes drift {
  50% {
    transform: translate(6%, 8%) scale(1.12);
  }
  100% {
    transform: translate(-5%, -4%) scale(0.92);
  }
}
/* ── Hero product drawing ────────────────────────────────────────────── */
.stage {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  max-width: 1080px;
  margin-inline: auto;
  transform-style: preserve-3d;
  animation: stage-in 1.6s 600ms var(--ease) both;
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: rotateX(28deg) translateY(80px) scale(0.92);
  }
}
.mock {
  position: relative;
  container-type: inline-size;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, #0f1628, #0b111f);
  box-shadow:
    0 50px 120px -30px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 30px 90px -40px rgba(172, 199, 255, 0.35);
  overflow: hidden;
  transform: rotateX(calc(10deg + var(--ry))) rotateY(var(--rx));
  transition: transform 500ms var(--ease);
}
/* Light catching the glass. */
.mock::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.07), transparent 40%);
  pointer-events: none;
}
.mock__chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}
.mock__chrome > span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.mock__url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline: auto;
  padding: 5px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--faint);
  font-size: 12px;
}
.mock__url .icon {
  width: 12px;
  height: 12px;
  color: var(--teal);
}
/* Everything inside scales with the drawing's own width. */
.mock__app {
  display: grid;
  grid-template-columns: 17% 1fr;
  font-size: clamp(7px, 1.25cqw, 14px);
  line-height: 1.5;
  text-align: right;
}
.mock__side {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  padding: 1.4em 1em;
  border-inline-start: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.mock__side i {
  padding: 0.55em 0.9em;
  border-radius: 0.8em;
  color: var(--muted);
  font-style: normal;
  white-space: nowrap;
}
.mock__side i.is-active {
  background: rgba(172, 199, 255, 0.14);
  color: var(--brand-soft);
  font-weight: 600;
}
.mock__brand {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 1em;
  padding-inline: 0.6em;
  color: var(--brand);
  font-size: 1.15em;
}
.mock__brand svg {
  width: 1.8em;
  height: 1.8em;
}
.mock__brand b {
  color: var(--text);
}
.mock__main {
  padding: 1.6em 1.8em;
}
.mock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4em;
}
.mock__head small {
  display: block;
  color: var(--faint);
}
.mock__hello {
  font-size: 1.7em;
}
.mock__btn {
  padding: 0.6em 1.2em;
  border-radius: 999px;
  background: var(--brand);
  color: #0b1530;
  font-weight: 600;
}
.mock__tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9em;
  margin-bottom: 1em;
}
.mock__tile {
  padding: 1em 1.2em;
  border: 1px solid var(--border);
  border-radius: 1em;
  background: var(--surface);
}
.mock__tile b {
  display: block;
  font-size: 1.9em;
  line-height: 1.2;
}
.mock__tile small {
  color: var(--muted);
}
.mock__tile--warn {
  border-color: rgba(244, 196, 122, 0.35);
  background: rgba(244, 196, 122, 0.08);
}
.mock__tile--warn b {
  color: var(--warn);
}
.mock__panels {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 0.9em;
}
.mock__card {
  padding: 1.1em 1.2em;
  border: 1px solid var(--border);
  border-radius: 1em;
  background: var(--surface);
}
.mock__card > small {
  display: block;
  color: var(--faint);
}
.mock__time {
  font-size: 2em;
  line-height: 1.2;
}
.mock__date {
  margin-bottom: 0.8em;
  padding-bottom: 0.7em;
  border-bottom: 1px solid var(--border);
}
.mock__cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25em;
  text-align: center;
  font-size: 0.85em;
}
.mock__cal-grid span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--muted);
}
.mock__cal-grid .is-head {
  color: var(--faint);
}
.mock__cal-grid .is-friday {
  color: #f2a5a5;
}
.mock__cal-grid .is-today {
  background: var(--brand);
  color: #0b1530;
  font-weight: 700;
  box-shadow: 0 0 0 0 rgba(172, 199, 255, 0.6);
  animation: today 2.4s 2.6s ease-out infinite;
}
.mock__bars {
  display: flex;
  align-items: flex-end;
  gap: 0.45em;
  height: 9em;
  margin-top: 1em;
}
.mock__bars span {
  flex: 1;
  height: var(--h);
  border-radius: 0.4em 0.4em 0.15em 0.15em;
  background: linear-gradient(180deg, var(--brand), rgba(172, 199, 255, 0.2));
  transform-origin: bottom;
  animation: grow 1.2s calc(1600ms + var(--i) * 60ms) var(--ease) both;
}
.mock__list b {
  display: block;
  margin-bottom: 0.6em;
}
.mock__list p {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding-block: 0.55em;
  border-top: 1px solid var(--border);
}
.mock__list p i {
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--sky));
  opacity: 0.7;
}
.mock__list p span {
  flex: 1;
  height: 0.55em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}
.mock__list p em {
  width: 2.6em;
  height: 0.55em;
  border-radius: 999px;
  background: rgba(143, 214, 201, 0.35);
}

@keyframes grow {
  from {
    transform: scaleY(0);
  }
}
@keyframes today {
  70%,
  100% {
    box-shadow: 0 0 0 0.9em rgba(172, 199, 255, 0);
  }
}
/* Cards that hover in front of the drawing, each on its own z-plane. */
.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: rgba(14, 21, 38, 0.78);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(14px) saturate(150%);
  font-size: 14px;
  line-height: 1.35;
}
.float b {
  display: block;
  font-weight: 600;
}
.float small {
  color: var(--muted);
  font-size: 12px;
}
.float__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
}
.float__icon--teal {
  background: rgba(143, 214, 201, 0.16);
  color: var(--teal);
}
.float__icon--sand {
  background: rgba(230, 207, 155, 0.16);
  color: var(--sand);
}
.float--a {
  top: 26%;
  left: -4%;
  transform: translateZ(80px);
  animation:
    float-in 1s 2.1s var(--ease) both,
    bob 6s 3.1s ease-in-out infinite;
}
.float--b {
  bottom: 12%;
  right: -3%;
  transform: translateZ(120px);
  animation:
    float-in 1s 2.4s var(--ease) both,
    bob 7s 3.4s ease-in-out infinite reverse;
}
.float--c {
  top: -5%;
  right: 9%;
  padding: 14px;
  border-radius: 20px;
  transform: translateZ(60px);
  animation:
    float-in 1s 2.7s var(--ease) both,
    bob 8s 3.7s ease-in-out infinite;
}
.float__mark {
  width: 34px;
  height: 34px;
  color: var(--brand);
}
@media (max-width: 760px) {
  .float--a {
    left: 2%;
    top: auto;
    bottom: -7%;
  }
  .float--b,
  .float--c {
    display: none;
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    translate: 0 24px;
    scale: 0.9;
  }
}
@keyframes bob {
  50% {
    translate: 0 -12px;
  }
}
/* ── Ticker ──────────────────────────────────────────────────────────── */
.ticker {
  display: flex;
  margin-top: 72px;
  padding-block: 22px;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker:hover .ticker__track {
  animation-play-state: paused;
}
.ticker__track {
  display: flex;
  flex: 0 0 auto;
  gap: 48px;
  margin: 0;
  padding: 0 24px;
  list-style: none;
  animation: marquee 40s linear infinite;
}
.ticker__track li {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.ticker__track li::after {
  content: '\2726';
  color: var(--brand);
  font-size: 11px;
  opacity: 0.6;
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}
/* ── Sections ────────────────────────────────────────────────────────── */
.section {
  position: relative;
  padding-block: 128px;
}
@media (max-width: 640px) {
  .section {
    padding-block: 88px;
  }
}
.section__head {
  max-width: 680px;
  margin-bottom: 56px;
}
.section__head h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 720;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.section__head p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
}

/* Scroll reveal. Hidden only once landing.js has marked the page, so the
   content is never lost when scripts don't run. */
.js [data-reveal] {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(32px);
  transition:
    opacity 900ms var(--ease),
    filter 900ms var(--ease),
    transform 900ms var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.js [data-reveal].is-visible {
  opacity: 1;
  filter: none;
  transform: none;
}

/* ── Bento ───────────────────────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .bento {
    grid-template-columns: 1fr;
  }
}

.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(
      500px circle at var(--mx) var(--my),
      rgba(172, 199, 255, 0.07),
      transparent 45%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}
/* A border that lights up under the pointer. */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(
    360px circle at var(--mx) var(--my),
    rgba(172, 199, 255, 0.65),
    transparent 45%
  );
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 400ms;
  pointer-events: none;
}
.card:hover::before {
  opacity: 1;
}
.card--wide {
  grid-column: span 4;
  flex-direction: row;
  align-items: center;
  gap: 32px;
}
.card--full {
  grid-column: 1/-1;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}
@media (max-width: 1000px) {
  .card {
    grid-column: span 1;
  }
  .card--wide,
  .card--full {
    grid-column: 1/-1;
  }
}
@media (max-width: 760px) {
  .card--wide,
  .card--full {
    flex-direction: column;
    align-items: stretch;
  }
}
.card__text {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 12px;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(172, 199, 255, 0.18), rgba(208, 192, 225, 0.08));
  color: var(--brand);
}
.card h3 {
  margin-top: 8px;
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.viz {
  margin-top: auto;
}

/* Patient rows sliding in. */
.viz--patients {
  display: grid;
  flex: 1 1 0;
  gap: 10px;
  margin: 0;
  min-width: 0;
  width: 100%;
}
.viz--patients .viz__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(30px);
  opacity: 0;
  transition:
    transform 800ms var(--ease),
    opacity 800ms var(--ease);
  transition-delay: calc(200ms + var(--i) * 120ms);
}
.viz--patients .viz__row i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c);
  opacity: 0.8;
}
.viz--patients .viz__row span {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}
.viz--patients .viz__row em {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(172, 199, 255, 0.1);
  color: var(--brand-soft);
  font-size: 12px;
  font-style: normal;
}
.viz--patients .viz__row--flag {
  border-color: rgba(244, 196, 122, 0.35);
}
.viz--patients .viz__row--flag em {
  background: rgba(244, 196, 122, 0.14);
  color: var(--warn);
}

.is-visible .viz--patients .viz__row,
html:not(.js) .viz--patients .viz__row {
  transform: none;
  opacity: 1;
}

/* A case travelling the lab board. */
.viz--lab .lab__track {
  position: relative;
  height: 6px;
  margin: 18px 6px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sand), var(--brand), var(--teal));
  opacity: 0.85;
}
.viz--lab .lab__track::before,
.viz--lab .lab__track::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  translate: 0 -50%;
  background: var(--bg-2);
  border: 2px solid var(--brand);
}
.viz--lab .lab__track::before {
  left: -6px;
  border-color: var(--sand);
}
.viz--lab .lab__track::after {
  right: -6px;
  border-color: var(--teal);
}
.viz--lab .lab__dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  translate: -50% -50%;
  background: white;
  box-shadow:
    0 0 0 4px rgba(172, 199, 255, 0.25),
    0 0 18px rgba(172, 199, 255, 0.9);
  animation: travel 6s var(--ease) infinite;
}
.viz--lab .lab__stops {
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-size: 12px;
}

@keyframes travel {
  0%,
  12% {
    left: 0;
  }
  40%,
  55% {
    left: 50%;
  }
  85%,
  100% {
    left: 100%;
  }
}
/* A month with two follow-ups that pulse. */
.viz--cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.viz--cal span {
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}
.viz--cal span:nth-child(7n) {
  background: rgba(242, 165, 165, 0.12);
}
.viz--cal span.is-due {
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(143, 214, 201, 0.6);
  animation: due 2.2s ease-out infinite;
}
.viz--cal span.is-due ~ .is-due {
  animation-delay: 1.1s;
}

@keyframes due {
  70%,
  100% {
    box-shadow: 0 0 0 10px rgba(143, 214, 201, 0);
  }
}
/* A register entry whose name no longer matches. */
.viz--register {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
}
.viz--register .reg__no {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.viz--register .reg__warn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(244, 196, 122, 0.14);
  color: var(--warn);
  font-size: 12px;
  font-weight: 600;
  animation: nudge 3s ease-in-out infinite;
}
.viz--register .reg__warn .icon {
  width: 14px;
  height: 14px;
}

@keyframes nudge {
  0%,
  80%,
  100% {
    transform: none;
  }
  84% {
    transform: translateX(-3px);
  }
  88% {
    transform: translateX(3px);
  }
  92% {
    transform: translateX(-2px);
  }
}
/* The twelve Shamsi months rolling past. */
.viz--months {
  height: 52px;
  overflow: hidden;
  mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}
.viz--months .months__reel {
  display: flex;
  flex-direction: column;
  animation: reel 24s steps(12) infinite;
}
.viz--months .months__reel span {
  height: 52px;
  line-height: 52px;
  font-size: 1.7rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--brand-soft), var(--violet));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

@keyframes reel {
  to {
    transform: translateY(calc(-52px * 12));
  }
}
/* The trend line draws itself when its card arrives. */
.viz--chart {
  flex: 1.3 1 0;
  width: 100%;
  min-width: 0;
  margin: 0;
}
.viz--chart svg {
  width: 100%;
  height: 180px;
  overflow: visible;
}
.viz--chart .chart__line {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px rgba(172, 199, 255, 0.7));
  transition: stroke-dashoffset 2.2s 300ms var(--ease);
}
.viz--chart .chart__area {
  opacity: 0;
  transition: opacity 1.2s 1.4s var(--ease);
}

.is-visible .viz--chart .chart__line,
html:not(.js) .viz--chart .chart__line {
  stroke-dashoffset: 0;
}
.is-visible .viz--chart .chart__area,
html:not(.js) .viz--chart .chart__area {
  opacity: 1;
}

/* ── Workflow ────────────────────────────────────────────────────────── */
.workflow__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .workflow__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.workflow__head {
  position: sticky;
  top: 140px;
}
@media (max-width: 900px) {
  .workflow__head {
    position: static;
  }
}

.steps {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* The rail fills as the section scrolls past (--progress, from landing.js). */
.steps__rail {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 27px;
  width: 2px;
  border-radius: 2px;
  background: var(--border);
}
.steps__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(var(--brand), var(--violet), var(--teal));
  transform: scaleY(var(--progress, 0));
  transform-origin: top;
  box-shadow: 0 0 12px rgba(172, 199, 255, 0.6);
}

.step {
  position: relative;
  display: flex;
  gap: 22px;
  padding: 22px 24px 22px 0;
  opacity: 0.4;
  transition: opacity 500ms var(--ease);
}
.step.is-active {
  opacity: 1;
}
.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition:
    color 400ms,
    border-color 400ms,
    box-shadow 400ms,
    transform 500ms var(--ease-spring);
}
.step.is-active .step__num {
  border-color: rgba(172, 199, 255, 0.6);
  color: var(--brand-soft);
  box-shadow: 0 0 30px -6px rgba(172, 199, 255, 0.6);
  transform: scale(1.06);
}
.step h3 {
  margin-top: 4px;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.step p {
  margin-top: 6px;
  color: var(--muted);
}

html:not(.js) .step {
  opacity: 1;
}

/* ── Trust ───────────────────────────────────────────────────────────── */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  list-style: none;
}
@media (max-width: 900px) {
  .trust {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .trust {
    grid-template-columns: 1fr;
  }
}
.trust li {
  padding: 32px 28px;
  background: var(--bg);
  transition: background-color 300ms;
}
.trust li:hover {
  background: #0b1120;
}
.trust li .icon {
  width: 26px;
  height: 26px;
  color: var(--brand);
  transition: transform 500ms var(--ease-spring);
}
.trust li:hover .icon {
  transform: scale(1.15) rotate(-6deg);
}
.trust li h3 {
  margin-top: 18px;
  font-size: 1.08rem;
  font-weight: 650;
}
.trust li p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── Call to action ──────────────────────────────────────────────────── */
.cta-wrap {
  padding-block-start: 32px;
}

.cta {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 88px 24px;
  overflow: hidden;
  border-radius: 32px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(172, 199, 255, 0.16), transparent 70%),
    linear-gradient(180deg, #0d1426, #080c18);
}
/* A slowly rotating light around the edge. */
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--angle),
    transparent 0 60%,
    var(--brand) 75%,
    var(--violet) 85%,
    transparent 100%
  );
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  animation: spin 8s linear infinite;
}
.cta::after {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: -2;
  border-radius: inherit;
  border: 1px solid var(--border);
}
.cta h2 {
  max-width: 16ch;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.cta p {
  color: var(--muted);
  font-size: 1.08rem;
}
.cta .btn {
  margin-top: 12px;
}
.cta__mark {
  width: 56px;
  height: 56px;
  color: var(--brand);
  filter: drop-shadow(0 0 24px rgba(172, 199, 255, 0.6));
  animation: bob 6s ease-in-out infinite;
}

@keyframes spin {
  to {
    --angle: 360deg;
  }
}
/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
  padding-block: 48px;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
}
.footer__fa {
  color: var(--muted);
  font-size: 14px;
}
.footer__copy {
  margin-inline-start: auto;
  color: var(--faint);
  font-size: 13px;
}
@media (max-width: 640px) {
  .footer__copy {
    margin-inline-start: 0;
  }
}

/* ── Pause control ───────────────────────────────────────────────────── */
/* Shown by landing.js; it stops every looping animation on the page. */
.motion-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition:
    color 200ms,
    border-color 200ms,
    background-color 200ms;
}
.motion-toggle[hidden] {
  display: none;
}
.motion-toggle:hover {
  border-color: rgba(172, 199, 255, 0.45);
  color: var(--text);
}
.motion-toggle .icon {
  width: 16px;
  height: 16px;
}
.motion-toggle[aria-pressed='true'] .icon--pause,
.motion-toggle[aria-pressed='false'] .icon--play {
  display: none;
}

/* Only the loops stop: an entrance paused at its first frame would leave
   the headline and the drawing invisible. */
.motion-paused .aurora span,
.motion-paused .pill__dot::after,
.motion-paused .gradient-text,
.motion-paused .mock__cal-grid .is-today,
.motion-paused .ticker__track,
.motion-paused .lab__dot,
.motion-paused .viz--cal .is-due,
.motion-paused .reg__warn,
.motion-paused .months__reel,
.motion-paused .cta::before,
.motion-paused .cta__mark {
  animation-play-state: paused;
}
/* These run an entrance first, then a loop: let the entrance finish. */
.motion-paused .word.gradient-text,
.motion-paused .float {
  animation-play-state: running, paused;
}

/* ── Reduced motion: everything in place, nothing moving ─────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .word,
  .js [data-reveal],
  .viz--patients .viz__row,
  .step {
    opacity: 1;
    filter: none;
    transform: none;
  }
  .nav .brand__mark .mark__tooth,
  .viz--chart .chart__line {
    stroke-dashoffset: 0;
  }
  .nav .brand__mark .mark__spark {
    transform: none;
  }
  .viz--chart .chart__area {
    opacity: 1;
  }
}
