:root {
  --bg: oklch(96.8% 0.0035 55);
  --card: oklch(99.6% 0.0015 60);
  --subtle: oklch(94.4% 0.0045 50);
  --line: oklch(85.5% 0.006 45);
  --line2: oklch(78% 0.008 40);
  --tx: oklch(20% 0.008 28);
  --tx2: oklch(49% 0.0095 36);
  --soft: oklch(96% 0.011 22);
  --tint: oklch(93% 0.024 22);
  --br: #8A181A;
  --brh: #731416;
  --ac: #8A181A;
  --ok: oklch(47% 0.088 152);
  --ok-wash: oklch(94.5% 0.022 152);
  --warn: oklch(56% 0.115 72);
  --warn-wash: oklch(95.5% 0.028 78);
  --bad: oklch(46% 0.165 27);
  --bad-wash: oklch(95% 0.025 24);
  --shadow: 0 24px 60px -24px oklch(20% 0.02 25 / 0.14), 0 4px 16px -6px oklch(20% 0.015 25 / 0.06);
  --sans: "Noto Sans Arabic", system-ui, sans-serif;
  --serif: "Noto Naskh Arabic", "Noto Sans Arabic", serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

:root:not([data-theme="light"]) {
  color-scheme: light dark;
}

.brand-logo-dark {
  display: none;
}

.brand-logo-light {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: oklch(17.8% 0.0055 24);
    --card: oklch(21.8% 0.0065 24);
    --subtle: oklch(25.2% 0.007 24);
    --line: oklch(31.5% 0.0085 24);
    --line2: oklch(41% 0.01 24);
    --tx: oklch(94.5% 0.0045 42);
    --tx2: oklch(72% 0.008 36);
    --soft: oklch(25% 0.02 22);
    --tint: oklch(29% 0.04 23);
    --ac: oklch(70.5% 0.132 21.5);
    --ok: oklch(72% 0.12 152);
    --ok-wash: oklch(25.5% 0.032 152);
    --warn: oklch(78% 0.13 80);
    --warn-wash: oklch(27% 0.038 78);
    --bad: oklch(70% 0.16 25);
    --bad-wash: oklch(27% 0.048 24);
    --shadow: 0 28px 70px -20px oklch(0% 0 0 / 0.65), 0 0 0 1px oklch(100% 0 0 / 0.04);
  }

  :root:not([data-theme="light"]) .brand-logo-light {
    display: none;
  }

  :root:not([data-theme="light"]) .brand-logo-dark {
    display: block;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: oklch(17.8% 0.0055 24);
  --card: oklch(21.8% 0.0065 24);
  --subtle: oklch(25.2% 0.007 24);
  --line: oklch(31.5% 0.0085 24);
  --line2: oklch(41% 0.01 24);
  --tx: oklch(94.5% 0.0045 42);
  --tx2: oklch(72% 0.008 36);
  --soft: oklch(25% 0.02 22);
  --tint: oklch(29% 0.04 23);
  --ac: oklch(70.5% 0.132 21.5);
  --ok: oklch(72% 0.12 152);
  --ok-wash: oklch(25.5% 0.032 152);
  --warn: oklch(78% 0.13 80);
  --warn-wash: oklch(27% 0.038 78);
  --bad: oklch(70% 0.16 25);
  --bad-wash: oklch(27% 0.048 24);
  --shadow: 0 28px 70px -20px oklch(0% 0 0 / 0.65), 0 0 0 1px oklch(100% 0 0 / 0.04);
}

:root[data-theme="dark"] .brand-logo-light {
  display: none;
}

:root[data-theme="dark"] .brand-logo-dark {
  display: block;
}

html {
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 74px);
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 400 16px/1.8 var(--sans);
  transition: background 0.4s, color 0.4s;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
  z-index: 30;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background: radial-gradient(
    520px circle at var(--mx, 70%) var(--my, 15%),
    color-mix(in oklab, var(--ac) 11%, transparent),
    transparent 70%
  );
}

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

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

.w {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 22px;
}

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.32;
  margin: 0;
}

h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
}

#pg {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ac);
  transform: scaleX(0);
  transform-origin: right;
  z-index: 40;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

nav .w {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-inline-end: auto;
  font: 700 22px var(--serif);
  color: var(--ac);
}

.logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

nav a.l {
  font-size: 14.5px;
  color: var(--tx2);
  transition: color 0.2s;
}

nav a.l:hover {
  color: var(--tx);
}

@media (max-width: 900px) {
  nav a.l {
    display: none;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--br);
  background: var(--br);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font: 500 15px var(--sans);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.25s, translate 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.btn:hover {
  background: var(--brh);
  translate: 0 -2px;
  box-shadow: 0 10px 24px -10px color-mix(in oklab, var(--br) 65%, transparent);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  translate: -120% 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.3), transparent 70%);
  transition: translate 0.6s;
}

.btn:hover::after {
  translate: 120% 0;
}

.btn.g {
  background: var(--card);
  color: var(--tx);
  border-color: var(--line);
}

.btn.g:hover {
  background: var(--soft);
  border-color: var(--line2);
  box-shadow: none;
}

.btn.sm {
  padding: 8px 15px;
  font-size: 14px;
}

.btn-arr {
  width: 17px;
  height: 17px;
  transition: transform 0.25s ease;
}

.btn:hover .btn-arr {
  transform: translateX(-4px);
}

#th {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--tx);
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: grid;
  place-items: center;
  transition: rotate 0.5s, background 0.3s, border-color 0.25s;
}

#th:hover {
  background: var(--soft);
  border-color: var(--line2);
}

/* ==========================================================================
   Enhanced Hero Section
   ========================================================================== */

.hero-wrap {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: calc(100svh - 65px - env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
}

.hero-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to left, color-mix(in oklab, var(--line) 46%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--line) 46%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 88% 76% at 50% 35%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 88% 76% at 50% 35%, #000 35%, transparent 100%);
  pointer-events: none;
}

.hero-wrap::after {
  content: "";
  position: absolute;
  inset-inline-end: -8%;
  top: -12%;
  width: 620px;
  height: 620px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in oklab, var(--br) 13%, transparent) 0%,
    color-mix(in oklab, var(--ac) 5%, transparent) 42%,
    transparent 70%
  );
  filter: blur(18px);
  pointer-events: none;
}

.hero {
  width: 100%;
  padding: 40px 0 48px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 52px;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-wrap {
    min-height: calc(100svh - 65px - env(safe-area-inset-top, 0px));
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 36px 0 44px;
    gap: 36px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--ac) 28%, var(--line));
  background: color-mix(in oklab, var(--soft) 85%, var(--card));
  color: var(--tx);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  animation: up 0.7s both;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--br);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--br) 55%, transparent);
  animation: epulse 2.4s ease-out infinite;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.01em;
}

.hero h1 .hl {
  position: relative;
  display: inline-block;
  color: var(--ac);
}

.hero h1 .hl::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0.08em;
  height: 0.22em;
  background: color-mix(in oklab, var(--ac) 16%, transparent);
  border-radius: 4px;
  z-index: -1;
}

.hero-lead {
  color: var(--tx2);
  font-size: 17.5px;
  line-height: 1.85;
  max-width: 35em;
  margin: 22px 0 28px;
  animation: up 0.85s 0.45s both;
}

.hero .b {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  animation: up 0.85s 0.62s both;
}

.hero-demo-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--tx2);
  padding: 8px 6px;
  border-bottom: 1px dashed var(--line2);
  transition: color 0.2s, border-color 0.2s;
}

.hero-demo-link:hover {
  color: var(--ac);
  border-color: var(--ac);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  animation: up 0.85s 0.78s both;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--tx2);
}

.hero-proof svg {
  width: 16px;
  height: 16px;
  color: var(--ac);
  flex: none;
}

/* Animated Mizan Kufic Logo Hero Centerpiece */
.logo-stage-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: pop2 0.9s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.logo-stage {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 480 / 380;
  display: grid;
  place-items: center;
  padding: 38px 40px;
  border-radius: 18px;
  background: color-mix(in oklab, var(--card) 86%, transparent);
  border: 1px solid var(--line);
  border-top: 3px solid var(--br);
  box-shadow: var(--shadow);
  cursor: pointer;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.logo-stage:hover {
  border-color: color-mix(in oklab, var(--ac) 50%, var(--line));
}

.logo-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    280px circle at var(--px, 50%) var(--py, 50%),
    color-mix(in oklab, var(--ac) 16%, transparent),
    transparent 72%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.logo-stage:hover::before {
  opacity: 1;
}

.logo-glow {
  position: absolute;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in oklab, var(--ac) 20%, transparent) 0%,
    color-mix(in oklab, var(--br) 8%, transparent) 45%,
    transparent 74%
  );
  filter: blur(24px);
  pointer-events: none;
  animation: mzGlowBreath 6s ease-in-out infinite;
}

.stage-reticle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.stage-reticle .orb {
  fill: none;
  stroke: color-mix(in oklab, var(--ac) 22%, var(--line));
  stroke-width: 1;
  transform-box: view-box;
  transform-origin: 240px 190px;
}

.stage-reticle .orb-1 {
  stroke-dasharray: 4 8;
  animation: mzSpin 48s linear infinite;
}

.stage-reticle .orb-2 {
  stroke-dasharray: 2 10;
  opacity: 0.65;
  animation: mzSpinRev 34s linear infinite;
}

.stage-reticle .corner {
  fill: none;
  stroke: color-mix(in oklab, var(--ac) 45%, var(--line));
  stroke-width: 1.5;
  stroke-linecap: square;
}

.stage-reticle .axis {
  stroke: color-mix(in oklab, var(--ac) 30%, var(--line));
  stroke-width: 1.2;
}

.mizan-logo-svg {
  position: relative;
  z-index: 2;
  width: 86%;
  height: auto;
  display: block;
  color: var(--ac);
  filter: drop-shadow(0 12px 28px color-mix(in oklab, var(--br) 18%, transparent));
  animation: fl 6.5s 1.6s ease-in-out infinite;
}

:root[data-theme="dark"] .mizan-logo-svg {
  filter: drop-shadow(0 14px 32px color-mix(in oklab, var(--ac) 26%, transparent));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mizan-logo-svg {
    filter: drop-shadow(0 14px 32px color-mix(in oklab, var(--ac) 26%, transparent));
  }
}

/* Blueprint wireframe sketch draws first, then dissolves */
.mz-wire path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
}

.mizan-logo-svg.is-playing .mz-wire path {
  animation: mzWireDraw 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Individual Kufic geometric piece entrances + living idle rhythms */
.mz-p,
.mz-l {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.mizan-logo-svg.is-playing .mz-top {
  animation:
    mzFromTop 0.72s 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    mzBreathTop 6.5s 1.7s ease-in-out infinite;
}

.mizan-logo-svg.is-playing .mz-bot {
  animation:
    mzFromBot 0.72s 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    mzBreathBot 6.5s 1.7s ease-in-out infinite;
}

.mizan-logo-svg.is-playing .mz-myz {
  animation: mzFromRight 0.78s 0.36s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mizan-logo-svg.is-playing .mz-alif {
  transform-origin: center bottom;
  animation: mzGrowUp 0.7s 0.48s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mizan-logo-svg.is-playing .mz-noon {
  animation: mzFromLeft 0.76s 0.56s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mizan-logo-svg.is-playing .mz-zay-dot {
  animation:
    mzPopDot 0.65s 0.68s cubic-bezier(0.3, 1.5, 0.5, 1) forwards,
    mzDotFloat 4.2s 1.8s ease-in-out infinite;
}

.mz-dot-ring {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.mizan-logo-svg.is-playing .mz-dot-ring {
  animation: mzDotPulse 3.6s 1.6s ease-out infinite;
}

.mizan-logo-svg.is-playing .mz-yaa-bar {
  animation: mzSlideBar 0.6s 0.74s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mizan-logo-svg.is-playing .mz-noon-dot {
  animation: mzPopDot 0.6s 0.8s cubic-bezier(0.3, 1.5, 0.5, 1) forwards;
}

.mizan-logo-svg.is-playing .mz-l1 {
  animation: mzLetterIn 0.48s 0.86s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mizan-logo-svg.is-playing .mz-l2 {
  animation: mzLetterIn 0.48s 0.92s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mizan-logo-svg.is-playing .mz-l3 {
  animation: mzLetterIn 0.48s 0.98s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mizan-logo-svg.is-playing .mz-l4 {
  animation: mzLetterIn 0.48s 1.04s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mizan-logo-svg.is-playing .mz-l5 {
  animation: mzLetterIn 0.48s 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Specular light sweep clipped cleanly to the Kufic shapes */
.mizan-logo-svg.is-playing .mz-sheen-bar {
  animation: mzSheenSweep 5.6s 1.5s ease-in-out infinite;
}

.logo-stage-foot {
  position: absolute;
  inset-inline: 20px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--tx2);
}

.logo-stage-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.logo-stage-tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--br);
  display: inline-block;
}

.logo-stage-hint {
  opacity: 0.68;
  transition: opacity 0.25s, color 0.25s;
}

.logo-stage:hover .logo-stage-hint {
  opacity: 1;
  color: var(--ac);
}

/* ==========================================================================
   Stats, Marquee & Rest of Landing Page
   ========================================================================== */

.stats {
  border-block: 1px solid var(--line);
  background: var(--card);
}

.stats .w {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.stats div {
  padding: 20px 12px;
  text-align: center;
  border-inline-start: 1px solid var(--line);
  font-size: 13px;
  color: var(--tx2);
}

.stats div:first-child {
  border: 0;
}

.stats b {
  display: block;
  font: 700 28px var(--serif);
  color: var(--tx);
}

@media (max-width: 760px) {
  .stats .w {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats div:nth-child(4) {
    border-inline-start: 0;
  }
}

section {
  padding: 72px 0;
}

.sub {
  color: var(--tx2);
  max-width: 40em;
  margin: 10px 0 28px;
}

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.tabs button {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--tx2);
  padding: 10px 14px;
  font: 500 15px var(--sans);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.tabs button:hover {
  background: var(--soft);
}

.tabs button[aria-selected="true"] {
  color: var(--ac);
  border-color: var(--ac);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.c {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease, border-color 0.25s;
}

.c.rv {
  transition: opacity 0.8s ease, translate 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.25s ease, border-color 0.25s;
}

.c:hover {
  border-color: var(--ac);
}

.c::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    180px circle at var(--px, 50%) var(--py, 50%),
    color-mix(in oklab, var(--ac) 13%, transparent),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.c:hover::before {
  opacity: 1;
}

.c h3 {
  font-size: 17px;
  margin-bottom: 4px;
  color: var(--ac);
}

.c p {
  margin: 0;
  color: var(--tx2);
  font-size: 14.5px;
  line-height: 1.75;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: s;
  margin-top: 28px;
}

@media (max-width: 800px) {
  .flow {
    grid-template-columns: 1fr;
  }
}

.flow div {
  position: relative;
  padding: 18px 18px 18px 14px;
  border-top: 3px solid var(--line);
  background: var(--card);
  border-inline-end: 1px solid var(--line);
}

.flow div::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  top: -17px;
  inset-inline-start: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--br);
  color: #fff;
  display: grid;
  place-items: center;
  font: 700 14px var(--sans);
  scale: 0;
  transition: scale 0.45s cubic-bezier(0.3, 1.7, 0.5, 1);
}

.flow div::after {
  content: "";
  position: absolute;
  top: -3px;
  inset-inline: 0;
  height: 3px;
  background: var(--br);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.8s ease;
}

.flow.in div::after {
  transform: scaleX(1);
}

.flow.in div::before {
  scale: 1;
}

.flow div:nth-child(2)::after,
.flow div:nth-child(2)::before {
  transition-delay: 0.7s;
}

.flow div:nth-child(3)::after,
.flow div:nth-child(3)::before {
  transition-delay: 1.4s;
}

.flow div:nth-child(4)::after,
.flow div:nth-child(4)::before {
  transition-delay: 2.1s;
}

.flow h3 {
  font-size: 17px;
  margin-top: 10px;
}

.flow p {
  margin: 4px 0 0;
  color: var(--tx2);
  font-size: 14px;
}

.alt {
  background: var(--card);
  border-block: 1px solid var(--line);
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 760px) {
  .two {
    grid-template-columns: 1fr;
  }
}

.list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  font-size: 14.5px;
}

.list li {
  padding: 7px 0;
  border-top: 1px dashed var(--line);
  display: flex;
  gap: 10px;
}

.list li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 11px;
  border-radius: 50%;
  background: var(--ok);
}

.list.w2 li::before {
  background: var(--warn);
}

.pill {
  display: inline-block;
  font-size: 12.5px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--tx2);
  margin: 3px 0 0 4px;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

summary {
  cursor: pointer;
  font: 500 17px var(--sans);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

summary::after {
  content: "+";
  color: var(--ac);
  font-size: 22px;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

details p {
  color: var(--tx2);
  margin: 8px 0 0;
  max-width: 48em;
}

details[open] p {
  animation: dn 0.35s ease;
}

.cta {
  text-align: center;
  background: linear-gradient(120deg, var(--br), #4f0d0f, var(--br), #a82024);
  background-size: 300% 300%;
  animation: gl 10s ease-in-out infinite;
  color: #fff;
  border-radius: 14px;
  padding: 56px 20px;
}

.cta h2 {
  color: #fff;
}

.cta h2::after {
  background: #fff;
  margin-inline: auto;
}

.cta p {
  opacity: 0.9;
  margin: 12px auto 24px;
  max-width: 34em;
}

.cta .btn {
  background: #fff;
  color: var(--brh);
  border-color: #fff;
}

.cta .btn:hover {
  background: oklch(96% 0.01 25);
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.45);
}

footer {
  padding: 32px 0;
  color: var(--tx2);
  font-size: 14px;
  border-top: 1px solid var(--line);
  margin-top: 72px;
}

footer .w {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.hw {
  display: inline-block;
  animation: up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.rv {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.8s ease, translate 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rv.in {
  opacity: 1;
  translate: 0 0;
}

#cards .c {
  animation: pop 0.55s both;
}

#cards .c:nth-child(2) {
  animation-delay: 0.07s;
}

#cards .c:nth-child(3) {
  animation-delay: 0.14s;
}

#cards .c:nth-child(4) {
  animation-delay: 0.21s;
}

#cards .c:nth-child(5) {
  animation-delay: 0.28s;
}

#cards .c:nth-child(6) {
  animation-delay: 0.35s;
}

h2::after {
  content: "";
  display: block;
  height: 3px;
  width: 0;
  background: var(--ac);
  margin-top: 10px;
  transition: width 0.9s 0.3s;
}

h2.in::after {
  width: 64px;
}

.mq {
  overflow: hidden;
  direction: ltr;
  border-block: 1px solid var(--line);
  padding: 14px 0;
}

.tr {
  display: flex;
  width: max-content;
  animation: mq 45s linear infinite;
}

.mq:hover .tr {
  animation-play-state: paused;
}

.tr span {
  font: 700 22px var(--serif);
  color: var(--tx2);
  white-space: nowrap;
  padding: 0 20px;
}

.tr span::after {
  content: "\2696";
  margin-inline-start: 40px;
  color: var(--ac);
  font-size: 16px;
}

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
}

.link span {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 99px;
  padding: 6px 18px;
  font: 700 18px var(--serif);
}

.link i {
  flex: 0 1 180px;
  height: 2px;
  position: relative;
  background: repeating-linear-gradient(90deg, var(--ac) 0 8px, transparent 8px 16px);
  animation: dash 1s linear infinite;
}

.link i::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
  animation: trv 2.4s ease-in-out infinite alternate;
}

.ib {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--ac);
  margin-bottom: 10px;
  transition: rotate 0.4s, scale 0.4s, background 0.3s, color 0.3s;
}

.c:hover .ib,
.c:focus-visible .ib {
  rotate: -8deg;
  scale: 1.1;
  background: var(--br);
  color: #fff;
}

.ib.big {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin-bottom: 4px;
}

.ic path {
  stroke-dasharray: 1;
  animation: dr 1.1s ease 0.1s both;
}

.ig {
  fill: none;
  stroke: var(--ac);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stats .ic {
  display: block;
  margin: 0 auto 6px;
  color: var(--ac);
}

@media (hover: hover) {
  .c p,
  .flow p {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s, opacity 0.3s;
  }

  .c:hover p,
  .c:focus-within p,
  .flow div:hover p {
    max-height: 12em;
    opacity: 1;
  }
}

.vg {
  width: 100%;
  height: auto;
  display: block;
}

.vg .ln {
  stroke: var(--ac);
  stroke-width: 2;
  stroke-dasharray: 6 8;
  fill: none;
  animation: sd 1s linear infinite;
}

.vg .dot {
  fill: var(--ok);
}

.vg .nd {
  fill: var(--card);
  stroke: var(--ac);
  stroke-width: 2.5;
  animation: ndp 5s infinite;
}

.vg .tx {
  fill: var(--tx);
  font: 500 15px var(--sans);
}

#pipe {
  max-width: 820px;
  margin: 0 auto 28px;
}

.hub {
  max-width: 480px;
  margin: 6px auto 4px;
}

.hub .sp {
  stroke: var(--line);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  animation: sd 1.4s linear infinite;
}

.hub .nd2 {
  fill: var(--card);
  stroke-width: 2;
}

.hub .nd2.rd {
  stroke: var(--ok);
}

.hub .nd2.wr {
  stroke: var(--warn);
}

.hub .ig.rd {
  stroke: var(--ok);
}

.hub .ig.wr {
  stroke: var(--warn);
}

.hub .hb {
  fill: var(--br);
}

.hub .pls {
  fill: none;
  stroke: var(--ac);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: pr 3s ease-out infinite;
}

.nb {
  animation: bob 3s ease-in-out infinite alternate;
}

.lg {
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 14px;
  color: var(--tx2);
  margin-bottom: 24px;
}

.lg i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-inline-end: 8px;
  background: var(--ok);
}

.lg i.wr {
  background: var(--warn);
}

#mcp .list {
  display: none;
}

@media (hover: hover) {
  #mcp .c:hover .list {
    display: block;
  }
}

@media (hover: none) {
  #mcp .list {
    display: block;
  }
}

/* ==========================================================================
   Keyframes & Reduced Motion
   ========================================================================== */

@keyframes up {
  from {
    opacity: 0;
    translate: 0 24px;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    translate: 0 18px;
    scale: 0.95;
  }
}

@keyframes pop2 {
  from {
    opacity: 0;
    translate: -30px 20px;
    scale: 0.94;
  }
}

@keyframes fl {
  50% {
    translate: 0 -6px;
  }
}

@keyframes mq {
  to {
    translate: -50%;
  }
}

@keyframes dash {
  to {
    background-position: 16px 0;
  }
}

@keyframes trv {
  from {
    inset-inline-start: 0;
  }

  to {
    inset-inline-start: calc(100% - 10px);
  }
}

@keyframes gl {
  50% {
    background-position: 100% 50%;
  }
}

@keyframes dn {
  from {
    opacity: 0;
    translate: 0 -8px;
  }
}

@keyframes dr {
  from {
    stroke-dashoffset: 1;
  }
}

@keyframes sd {
  to {
    stroke-dashoffset: -28;
  }
}

@keyframes ndp {
  0%, 14% {
    fill: var(--soft);
    stroke: var(--ok);
  }

  30%, 100% {
    fill: var(--card);
    stroke: var(--ac);
  }
}

@keyframes pr {
  from {
    scale: 1;
    opacity: 0.6;
  }

  to {
    scale: 3;
    opacity: 0;
  }
}

@keyframes bob {
  to {
    translate: 0 -6px;
  }
}

@keyframes epulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in oklab, var(--br) 55%, transparent);
  }

  70% {
    box-shadow: 0 0 0 8px color-mix(in oklab, var(--br) 0%, transparent);
  }

  100% {
    box-shadow: 0 0 0 0 color-mix(in oklab, var(--br) 0%, transparent);
  }
}

@keyframes mzWireDraw {
  0% {
    stroke-dashoffset: 1;
    opacity: 0.75;
  }

  55% {
    stroke-dashoffset: 0;
    opacity: 0.55;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

@keyframes mzFromTop {
  from {
    opacity: 0;
    transform: translateY(-22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mzFromBot {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mzFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes mzFromLeft {
  from {
    opacity: 0;
    transform: translateX(-26px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes mzGrowUp {
  from {
    opacity: 0;
    transform: scaleY(0.15);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes mzPopDot {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }

  70% {
    opacity: 1;
    transform: scale(1.12);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes mzSlideBar {
  from {
    opacity: 0;
    transform: scaleX(0.2);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes mzLetterIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mzBreathTop {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes mzBreathBot {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(3px);
  }
}

@keyframes mzDotFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3.5px);
  }
}

@keyframes mzDotPulse {
  0% {
    opacity: 0.65;
    transform: scale(1);
  }

  65%, 100% {
    opacity: 0;
    transform: scale(2.15);
  }
}

@keyframes mzSheenSweep {
  0%, 58% {
    transform: translateX(0);
  }

  88%, 100% {
    transform: translateX(960px);
  }
}

@keyframes mzSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes mzSpinRev {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes mzGlowBreath {
  0%, 100% {
    opacity: 0.7;
    transform: scale(0.95);
  }

  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

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

  .mz-p,
  .mz-l {
    opacity: 1 !important;
  }

  .mz-wire,
  .mz-dot-ring,
  .mz-sheen-bar {
    display: none !important;
  }

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

