@font-face {
  font-family: "Alexandria";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/alexandria-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
  font-family: "Alexandria";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/alexandria-latin.woff2") format("woff2");
  unicode-range: U+0000-024F, U+2000-206F, U+20A0-20CF, U+2100-214F, U+2190-21FF, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-arabic-400-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-arabic-400-latin.woff2") format("woff2");
  unicode-range: U+0000-024F, U+2000-206F, U+20A0-20CF, U+2100-214F, U+2190-21FF, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-arabic-500-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-arabic-500-latin.woff2") format("woff2");
  unicode-range: U+0000-024F, U+2000-206F, U+20A0-20CF, U+2100-214F, U+2190-21FF, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-arabic-600-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-arabic-600-latin.woff2") format("woff2");
  unicode-range: U+0000-024F, U+2000-206F, U+20A0-20CF, U+2100-214F, U+2190-21FF, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --ink-950: #050b11;
  --ink-900: #071018;
  --ink-850: #0a151f;
  --ink-800: #0d1a26;
  --ink-750: #122231;
  --ink-700: #172a3a;
  --paper: #f3f7fa;
  --muted: #a9bac8;
  --muted-2: #7890a2;
  --cyan: #54d8ee;
  --cyan-soft: #173b48;
  --amber: #f4a340;
  --amber-soft: #402b18;
  --green: #68d3a1;
  --green-soft: #183c31;
  --red: #ef6d73;
  --red-soft: #3d1d25;
  --violet: #a99bf4;
  --line: rgba(174, 205, 224, 0.13);
  --line-strong: rgba(174, 205, 224, 0.24);
  --shadow-soft: 0 32px 80px rgba(0, 5, 10, 0.2);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink-950);
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(43, 102, 126, 0.13), transparent 28rem),
    linear-gradient(180deg, var(--ink-950) 0%, var(--ink-900) 18%, #08131c 100%);
  color: var(--paper);
  font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(84, 216, 238, 0.16);
}

main,
section,
header,
footer {
  max-width: 100%;
  min-width: 0;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  content: "";
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}

::selection {
  color: var(--paper);
  background: rgba(84, 216, 238, 0.32);
}

a,
button,
input,
select {
  touch-action: manipulation;
}

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

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

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

h1,
h2,
h3 {
  font-family: "Alexandria", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  text-wrap: balance;
}

h1,
h2 {
  letter-spacing: -0.045em;
}

h1 em,
h2 em {
  color: var(--amber);
  font-style: normal;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  right: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-950);
  transform: translateY(-150%);
}

.skip-link:is(:focus, :focus-visible) {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  z-index: 15;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transform: scaleX(0);
  transform-origin: left center;
  animation: story-progress 1ms linear both;
  animation-timeline: scroll(root block);
}

@keyframes story-progress {
  to {
    transform: scaleX(1);
  }
}

.section-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.section-pad {
  padding-block: clamp(68px, 8vw, 108px);
  scroll-margin-top: 92px;
}

.story-nav {
  position: sticky;
  z-index: 12;
  top: max(12px, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(1180px, calc(100% - 48px));
  height: 62px;
  margin: 12px auto -74px;
  padding: 7px 9px 7px 16px;
  border: 1px solid rgba(197, 221, 236, 0.16);
  border-radius: 999px;
  background: rgba(7, 16, 24, 0.82);
  box-shadow: 0 18px 50px rgba(0, 4, 8, 0.22), inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding-inline: 7px 12px;
  font-family: "Alexandria", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--ink-950);
  background: var(--amber);
  place-items: center;
}

.brand-mark svg {
  width: 21px;
}

.story-links {
  display: flex;
  min-width: 0;
  flex: 1;
  justify-content: center;
  gap: 4px;
}

.story-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 380ms var(--ease-out), background-color 380ms var(--ease-out), transform 380ms var(--ease-out);
}

.story-links a::after {
  position: absolute;
  right: 14px;
  bottom: 5px;
  left: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--amber);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: center;
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}

.story-links a:hover,
.story-links a.is-active {
  color: var(--paper);
  background: rgba(244, 163, 64, 0.1);
}

.story-links a:hover::after,
.story-links a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.story-links a:active {
  transform: scale(0.97);
}

.nav-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  color: #191107;
  background: var(--amber);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 380ms var(--ease-out), transform 380ms var(--ease-out);
}

.nav-cta:hover {
  background: #ffb65c;
  transform: translateY(-1px);
}

.nav-cta:active {
  transform: scale(0.97);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(860px, 100dvh);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding-top: 142px;
  padding-bottom: 68px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 80px 4% 28px;
  border-radius: 48px;
  background:
    radial-gradient(circle at 50% 24%, rgba(84, 216, 238, 0.09), transparent 25rem),
    linear-gradient(rgba(84, 216, 238, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 216, 238, 0.028) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  content: "";
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 76%, transparent);
}

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

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 20px;
  padding: 6px 12px;
  border: 1px solid rgba(244, 163, 64, 0.23);
  border-radius: 999px;
  color: #ffc67f;
  background: rgba(244, 163, 64, 0.07);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.eyebrow-ai {
  border-color: rgba(84, 216, 238, 0.23);
  color: #9eeaf6;
  background: rgba(84, 216, 238, 0.07);
}

.eyebrow-human {
  color: #ffc67f;
}

.eyebrow-code {
  border-color: rgba(104, 211, 161, 0.24);
  color: #a4edc9;
  background: rgba(104, 211, 161, 0.07);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(244, 163, 64, 0.1);
}

.product-kicker {
  margin-bottom: 14px;
  color: var(--muted-2);
  font-family: "Alexandria", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto 24px;
  font-size: clamp(50px, 6vw, 80px);
  font-weight: 600;
  line-height: 1.18;
}

.hero-lede {
  max-width: 820px;
  margin: 0 auto 30px;
  color: #c3d0d9;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.9;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 7px 8px 7px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: color 460ms var(--ease-spring), background-color 460ms var(--ease-spring), border-color 460ms var(--ease-spring), transform 460ms var(--ease-spring);
}

.button-primary {
  color: #1c1207;
  background: var(--amber);
}

.button-primary:hover {
  background: #ffb862;
  transform: translateY(-2px);
}

.button-secondary {
  padding-inline: 20px;
  border-color: rgba(197, 221, 236, 0.19);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.035);
}

.button-secondary:hover {
  border-color: rgba(197, 221, 236, 0.38);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.button:active {
  transform: scale(0.98);
}

.button-icon {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(7, 16, 24, 0.13);
  place-items: center;
  transition: transform 520ms var(--ease-spring), background-color 520ms var(--ease-spring);
}

.button:hover .button-icon {
  background: rgba(7, 16, 24, 0.19);
  transform: translate(-2px, 2px) scale(1.05);
}

.scope-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  justify-content: center;
  max-width: 780px;
  margin: 24px auto 0;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.75;
}

.scope-note svg {
  width: 19px;
  min-width: 19px;
  margin-top: 3px;
  color: var(--green);
}

.hero-visual {
  position: relative;
}

.visual-shell {
  padding: 8px;
  border: 1px solid rgba(181, 211, 228, 0.13);
  border-radius: 38px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow-soft), inset 0 1px rgba(255, 255, 255, 0.06);
  transform: perspective(1000px) rotateY(3deg) rotateX(1deg);
}

.visual-core {
  border: 1px solid rgba(189, 217, 232, 0.13);
  border-radius: 30px;
  background: linear-gradient(160deg, #122433, #0a151f 72%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.hero-console {
  padding: clamp(18px, 3vw, 30px);
}

.console-head,
.match-title,
.console-footer,
.human-chip,
.balance-chip {
  display: flex;
  align-items: center;
}

.console-head {
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.micro-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.console-head strong {
  display: block;
  font-family: "Alexandria", sans-serif;
  font-size: 15px;
}

.live-pill,
.ai-badge,
.match-state,
.state-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}

.live-pill {
  color: #9ce7c4;
  background: rgba(104, 211, 161, 0.09);
}

.live-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.document-stream {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-block: 24px 38px;
}

.document-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.document-card:first-child {
  transform: translateY(8px) rotate(1deg);
}

.document-card:nth-child(2) {
  transform: translateY(-3px) rotate(-1deg);
}

.doc-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 11px;
  color: var(--cyan);
  background: var(--cyan-soft);
  place-items: center;
}

.decision-card .doc-icon {
  color: var(--amber);
  background: var(--amber-soft);
}

.doc-icon svg {
  width: 20px;
}

.document-card span:last-child {
  min-width: 0;
}

.document-card b,
.document-card small {
  display: block;
}

.document-card b {
  font-size: 12px;
}

.document-card small {
  color: var(--muted-2);
  font-size: 10px;
}

.ai-junction {
  position: absolute;
  right: 50%;
  bottom: 7px;
  display: grid;
  width: 190px;
  transform: translateX(50%);
  place-items: center;
}

.ai-junction span {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(84, 216, 238, 0.28);
  border-radius: 50%;
  color: var(--cyan);
  background: #102632;
  box-shadow: 0 0 28px rgba(84, 216, 238, 0.12);
  font-family: "Alexandria", sans-serif;
  font-size: 10px;
  place-items: center;
}

.ai-junction svg {
  width: 160px;
  color: rgba(84, 216, 238, 0.3);
}

.match-card {
  padding: 15px;
  border: 1px solid rgba(84, 216, 238, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(84, 216, 238, 0.075), rgba(255, 255, 255, 0.025));
}

.match-title {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ai-badge {
  color: #9eeaf6;
  background: rgba(84, 216, 238, 0.1);
}

.match-state {
  color: #9ce7c4;
  background: rgba(104, 211, 161, 0.08);
}

.match-state i {
  font-style: normal;
}

.match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 11px;
}

.match-row b {
  color: var(--paper);
}

.match-row.warning b {
  color: #ffc67f;
}

.console-footer {
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
}

.human-chip,
.balance-chip {
  gap: 9px;
  min-width: 0;
}

.avatar {
  display: grid;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #1b1106;
  background: var(--amber);
  font-size: 11px;
  font-weight: 700;
  place-items: center;
}

.human-chip small,
.human-chip b,
.balance-chip small,
.balance-chip b {
  display: block;
}

.human-chip small,
.balance-chip small {
  color: var(--muted-2);
  font-size: 9px;
}

.human-chip b,
.balance-chip b {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.balance-chip {
  text-align: left;
}

.balance-chip b span {
  color: var(--muted);
}

.balance-chip b em {
  color: var(--green);
  font-style: normal;
}

.visual-caption {
  display: flex;
  gap: 12px;
  max-width: 540px;
  margin: 18px 20px 0 0;
  color: var(--muted-2);
  font-size: 12px;
}

.visual-caption span {
  color: var(--amber);
  font-family: "Alexandria", sans-serif;
  font-variant-numeric: tabular-nums;
}

.section-intro,
.solution-heading {
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-intro .eyebrow,
.solution-heading .eyebrow,
.trust-heading .eyebrow,
.hero-copy .eyebrow {
  margin-inline: auto;
}

.section-intro h2,
.solution-heading h2,
.trust-heading h2,
.feedback-copy h2,
.closing h2 {
  margin-bottom: 20px;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 600;
  line-height: 1.2;
}

.section-intro h2,
.solution-heading h2,
.trust-heading h2 {
  max-width: 900px;
  margin-inline: auto;
}

.section-intro p,
.solution-heading p,
.trust-heading p,
.feedback-copy > p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.story-transition {
  display: flex;
  width: fit-content;
  max-width: 760px;
  align-items: center;
  gap: 10px;
  margin: 0 auto 28px;
  color: #c7d5de;
  font-size: 13px;
  text-align: center;
}

.story-transition span {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--amber);
  background: rgba(244, 163, 64, 0.08);
  font-size: 9px;
  font-weight: 600;
}

.problem {
  position: relative;
}

.problem::before {
  position: absolute;
  z-index: -1;
  top: 10%;
  right: 0;
  left: 0;
  height: 70%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(14, 33, 46, 0.42), transparent);
}

.source-map {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 22px;
}

.source-orbit,
.source-detail {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.source-orbit {
  position: relative;
  display: grid;
  min-height: 520px;
  grid-template-columns: repeat(3, 1fr);
  align-content: space-between;
  gap: 16px;
  padding: 28px;
  overflow: hidden;
  background:
    linear-gradient(rgba(84, 216, 238, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 216, 238, 0.025) 1px, transparent 1px),
    #09141e;
  background-size: 32px 32px;
}

.source-orbit::after {
  position: absolute;
  inset: 20% 27%;
  border: 1px dashed rgba(239, 109, 115, 0.21);
  border-radius: 50%;
  content: "";
}

.source-node {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(185, 213, 228, 0.11);
  border-radius: 18px;
  color: var(--muted);
  background: #0f1d29;
  cursor: pointer;
  transition: color 480ms var(--ease-out), background-color 480ms var(--ease-out), border-color 480ms var(--ease-out), transform 480ms var(--ease-spring);
}

.source-node:nth-child(2n) {
  background: #111c28;
}

.source-node svg {
  width: 22px;
  flex: 0 0 auto;
}

.source-node span {
  font-size: 13px;
  font-weight: 600;
}

.source-node:hover,
.source-node.is-active {
  border-color: rgba(239, 109, 115, 0.46);
  color: var(--paper);
  background: #211923;
  transform: translateY(-3px);
}

.source-center {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 50%;
  display: grid;
  width: 130px;
  height: 130px;
  align-content: center;
  border: 1px solid rgba(239, 109, 115, 0.24);
  border-radius: 50%;
  background: radial-gradient(circle, #211720 0%, #0b151f 70%);
  box-shadow: 0 0 0 12px rgba(239, 109, 115, 0.025);
  text-align: center;
  transform: translate(50%, -50%);
}

.source-center span {
  color: var(--muted-2);
  font-size: 11px;
}

.source-center strong {
  color: #ff9ca1;
  font-family: "Alexandria", sans-serif;
  font-size: 14px;
}

.source-center i {
  position: absolute;
  bottom: 22px;
  right: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  transform: translateX(50%);
}

.source-detail {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  justify-content: center;
  padding: 38px;
  background: linear-gradient(165deg, #162433, #101924);
}

.source-detail h3 {
  margin-bottom: 16px;
  font-size: 26px;
}

.source-detail p {
  color: var(--muted);
  font-size: 15px;
}

.disconnect-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: #ff9ca1;
  font-size: 11px;
}

.disconnect-line span {
  position: relative;
  width: 38px;
  height: 1px;
  overflow: hidden;
  background: rgba(239, 109, 115, 0.22);
}

.disconnect-line span::after {
  position: absolute;
  top: -1px;
  right: 45%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  content: "";
}

.problem-thesis {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 34px;
  margin-top: 24px;
  padding: 34px 38px;
  border-right: 3px solid var(--amber);
  border-radius: 3px var(--radius-lg) var(--radius-lg) 3px;
  background: linear-gradient(90deg, rgba(244, 163, 64, 0.025), rgba(244, 163, 64, 0.09));
}

.thesis-index {
  color: var(--amber);
  font-family: "Alexandria", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.problem-thesis p {
  margin: 0;
  font-family: "Alexandria", sans-serif;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.65;
}

.losses {
  background: #0a141d;
}

.loss-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.loss-card {
  position: relative;
  min-width: 0;
  min-height: 280px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--paper);
  background: #111e29;
  text-align: right;
  cursor: pointer;
  transition: border-color 520ms var(--ease-out), background-color 520ms var(--ease-out), transform 520ms var(--ease-spring);
}

.loss-card::after {
  position: absolute;
  bottom: -60px;
  left: -50px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 109, 115, 0.12), transparent 70%);
  content: "";
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-spring);
}

.loss-card:hover,
.loss-card[aria-pressed="true"] {
  border-color: rgba(239, 109, 115, 0.37);
  background: #1b1b25;
  transform: translateY(-5px);
}

.loss-card:hover::after,
.loss-card[aria-pressed="true"]::after {
  opacity: 1;
  transform: scale(1);
}

.loss-time,
.loss-delay {
  grid-column: span 7;
}

.loss-diff,
.loss-scale {
  grid-column: span 5;
}

.loss-balance,
.loss-repeat {
  grid-column: span 6;
}

.loss-diff {
  background: #191b27;
}

.loss-balance {
  background: #0f2228;
}

.loss-repeat {
  background: #15212c;
}

.loss-delay {
  background: #241920;
}

.loss-scale {
  background: #171d2b;
}

.loss-icon {
  position: absolute;
  top: 22px;
  left: 24px;
  color: rgba(255, 255, 255, 0.12);
  font-family: "Alexandria", sans-serif;
  font-size: 38px;
  font-variant-numeric: tabular-nums;
}

.loss-tag {
  display: inline-flex;
  margin-bottom: 36px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffabb0;
  background: rgba(239, 109, 115, 0.08);
  font-size: 10px;
  font-weight: 600;
}

.loss-heading {
  display: block;
  max-width: 420px;
  margin-bottom: 14px;
  font-family: "Alexandria", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  font-size: clamp(20px, 2.2vw, 29px);
  font-weight: 600;
  line-height: 1.45;
  text-wrap: balance;
}

.loss-copy {
  display: block;
  max-width: 510px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.loss-reveal {
  display: block;
  color: #ffbdc0;
  font-size: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}

.loss-card:hover .loss-reveal,
.loss-card[aria-pressed="true"] .loss-reveal,
.loss-card:focus-visible .loss-reveal {
  opacity: 1;
  transform: translateY(0);
}

.solution {
  position: relative;
  background: linear-gradient(180deg, #0b1721, #09141c);
}

.solution-heading {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.solution-heading .eyebrow {
  margin-inline: auto;
}

.solution-heading p {
  margin-inline: auto;
}

.logic-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.logic-flow > i {
  color: var(--muted-2);
  font-style: normal;
}

.flow-node {
  position: relative;
  display: grid;
  width: 176px;
  min-height: 188px;
  align-content: center;
  justify-items: center;
  padding: 24px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #101e29;
  text-align: center;
}

.flow-node:nth-of-type(2n) {
  transform: translateY(18px);
}

.flow-node > span {
  position: absolute;
  top: 12px;
  right: 14px;
  color: var(--muted-2);
  font-family: "Alexandria", sans-serif;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.flow-node svg {
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  color: var(--muted);
}

.flow-node b,
.flow-node small {
  display: block;
}

.flow-node b {
  margin-bottom: 5px;
  font-family: "Alexandria", sans-serif;
  font-size: 13px;
}

.flow-node small {
  color: var(--muted-2);
  font-size: 10px;
}

.flow-ai {
  border-color: rgba(84, 216, 238, 0.24);
  background: #102630;
}

.flow-ai svg {
  color: var(--cyan);
}

.flow-human {
  border-color: rgba(244, 163, 64, 0.24);
  background: #241f1a;
}

.flow-human svg {
  color: var(--amber);
}

.flow-code {
  border-color: rgba(104, 211, 161, 0.21);
  background: #12271f;
}

.flow-code svg {
  color: var(--green);
}

.roles-manifest {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  margin-top: 58px;
  padding: 28px 34px;
  border: 1px solid rgba(244, 163, 64, 0.19);
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(244, 163, 64, 0.035), rgba(84, 216, 238, 0.035));
}

.roles-manifest > span {
  color: var(--amber);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.roles-manifest p {
  margin: 0;
  font-family: "Alexandria", sans-serif;
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.65;
}

.roles-manifest strong:first-child {
  color: var(--cyan);
}

.roles-manifest strong:nth-child(2) {
  color: var(--green);
}

.roles-manifest strong:last-child {
  color: var(--amber);
}

.workflow {
  background: #071119;
}

.workflow-instruction {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px auto;
  color: #c5d5df;
  font-size: 13px;
  font-weight: 600;
}

.workflow-instruction span {
  display: grid;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(244, 163, 64, 0.24);
  border-radius: 50%;
  color: var(--amber);
  background: rgba(244, 163, 64, 0.07);
  place-items: center;
}

.workflow-layout {
  display: grid;
  grid-template-columns: 165px minmax(0, 0.95fr) minmax(320px, 0.8fr);
  align-items: start;
  gap: 18px;
}

.step-rail {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 5px;
  max-height: calc(100dvh - 116px);
  padding: 8px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: #0b1720;
  scrollbar-width: thin;
}

.step-rail button {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 30px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted-2);
  background: transparent;
  text-align: right;
  cursor: pointer;
  transition: color 360ms var(--ease-out), background-color 360ms var(--ease-out), border-color 360ms var(--ease-out), transform 360ms var(--ease-spring);
}

.step-rail button:hover {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.045);
}

.step-rail button.is-active {
  color: var(--paper);
  border-color: rgba(244, 163, 64, 0.42);
  background: linear-gradient(90deg, rgba(244, 163, 64, 0.04), rgba(244, 163, 64, 0.15));
  box-shadow: inset -3px 0 var(--amber);
}

.step-rail button.is-active::after {
  position: absolute;
  left: 10px;
  color: var(--amber);
  content: "←";
  font-size: 12px;
}

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

.step-rail button:active {
  transform: scale(0.98);
}

.step-rail button span:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: "Alexandria", sans-serif;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  place-items: center;
}

.step-rail button.is-active span:first-child {
  border-color: transparent;
  color: #191107;
  background: var(--amber);
}

.step-rail button span:last-child {
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-rail button.is-active span:last-child {
  font-weight: 700;
}

.step-story,
.step-preview {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.step-story {
  min-height: 620px;
  padding: clamp(28px, 4vw, 46px);
  background: linear-gradient(160deg, #132432, #0e1b26);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

.step-counter {
  margin-bottom: 25px;
  color: var(--amber);
  font-family: "Alexandria", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  font-variant-numeric: tabular-nums;
}

.step-owner {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #9eeaf6;
  background: rgba(84, 216, 238, 0.08);
  font-size: 10px;
  font-weight: 600;
}

.step-owner[data-owner="human"] {
  color: #ffc67f;
  background: rgba(244, 163, 64, 0.08);
}

.step-owner[data-owner="code"] {
  color: #a4edc9;
  background: rgba(104, 211, 161, 0.08);
}

.step-story h3 {
  margin-bottom: 18px;
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.3;
}

.step-summary {
  color: var(--muted);
  font-size: 17px;
}

.step-columns {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 14px;
  margin-top: 30px;
}

.step-columns > div {
  padding: 20px;
  border: 1px solid rgba(186, 215, 230, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.step-columns > div > span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.step-columns ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-columns li {
  position: relative;
  padding-right: 16px;
  color: #c6d3dc;
  font-size: 13px;
}

.step-columns li::before {
  position: absolute;
  top: 12px;
  right: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  content: "";
}

.step-result {
  border-color: rgba(104, 211, 161, 0.14) !important;
  background: rgba(104, 211, 161, 0.035) !important;
}

.step-result p {
  margin: 0;
  color: #aee7ca;
  font-size: 13px;
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
}

.step-nav-button {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  place-items: center;
  transition: border-color 360ms var(--ease-out), background-color 360ms var(--ease-out), transform 360ms var(--ease-spring);
}

.step-nav-button:hover:not(:disabled) {
  border-color: rgba(244, 163, 64, 0.35);
  background: rgba(244, 163, 64, 0.08);
  transform: scale(1.05);
}

.step-nav-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.step-cta {
  color: #ffc67f;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.step-preview {
  position: sticky;
  top: 96px;
  min-height: 650px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.preview-core {
  display: flex;
  min-height: 632px;
  flex-direction: column;
  padding: 25px;
  border: 1px solid rgba(190, 218, 233, 0.11);
  border-radius: 25px;
  background: linear-gradient(165deg, #102330, #0a151e);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.preview-header span {
  color: var(--muted-2);
  font-size: 10px;
}

.preview-header b {
  font-family: "Alexandria", sans-serif;
  font-size: 11px;
}

.preview-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 30px auto 18px;
  border: 1px solid rgba(84, 216, 238, 0.23);
  border-radius: 18px;
  color: var(--cyan);
  background: var(--cyan-soft);
  place-items: center;
}

.preview-icon svg {
  width: 28px;
}

.preview-core h4 {
  margin: 0 0 22px;
  font-family: "Alexandria", sans-serif;
  font-size: 18px;
  text-align: center;
}

.preview-form {
  display: grid;
  gap: 10px;
}

.preview-field {
  padding: 11px 13px;
  border: 1px solid rgba(185, 213, 228, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.preview-field span,
.preview-field b {
  display: block;
}

.preview-field span {
  margin-bottom: 2px;
  color: var(--muted-2);
  font-size: 9px;
}

.preview-field b {
  font-size: 11px;
}

.preview-field.is-ai {
  border-color: rgba(84, 216, 238, 0.2);
  background: rgba(84, 216, 238, 0.045);
}

.preview-meter {
  margin-top: auto;
  padding-top: 24px;
}

.preview-meter-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 9px;
}

.preview-meter-head b {
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.preview-meter-track {
  height: 7px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.preview-meter-track i {
  display: block;
  width: var(--meter, 60%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transform-origin: right center;
}

.matching {
  background: linear-gradient(180deg, #09161f, #0b1720);
}

.match-lab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px minmax(0, 1fr);
  align-items: stretch;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.025);
}

.comparison-panel {
  padding: 27px;
  border: 1px solid rgba(188, 216, 231, 0.11);
  border-radius: 27px;
  background: #101f2b;
}

.decision-panel {
  background: #171e28;
}

.comparison-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.comparison-panel header span {
  color: var(--muted-2);
  font-size: 10px;
}

.comparison-panel header b {
  font-family: "Alexandria", sans-serif;
  font-size: 13px;
}

.compare-row {
  display: grid;
  width: 100%;
  min-height: 72px;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.055);
  color: var(--paper);
  background: transparent;
  text-align: right;
  cursor: pointer;
  transition: color 360ms var(--ease-out), background-color 360ms var(--ease-out), border-color 360ms var(--ease-out), transform 360ms var(--ease-spring);
}

.compare-row:first-of-type {
  border-top-color: transparent;
}

.compare-row span {
  color: var(--muted-2);
  font-size: 10px;
}

.compare-row b {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.compare-row em {
  grid-column: 2;
  color: var(--muted-2);
  font-size: 9px;
  font-style: normal;
}

.compare-row:hover,
.compare-row.is-active {
  border-color: rgba(84, 216, 238, 0.25);
  border-radius: 13px;
  background: rgba(84, 216, 238, 0.055);
  transform: translateX(-2px);
}

.decision-panel .compare-row:hover,
.decision-panel .compare-row.is-active {
  border-color: rgba(244, 163, 64, 0.27);
  background: rgba(244, 163, 64, 0.055);
}

.match-bridge {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ai-orb {
  display: grid;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(84, 216, 238, 0.28);
  border-radius: 50%;
  color: var(--cyan);
  background: #102733;
  box-shadow: 0 0 40px rgba(84, 216, 238, 0.1);
  font-family: "Alexandria", sans-serif;
  font-size: 11px;
  place-items: center;
}

.bridge-line {
  width: 100%;
  height: 1px;
  margin: 20px 0;
  background: linear-gradient(90deg, rgba(244, 163, 64, 0.45), rgba(84, 216, 238, 0.5));
}

.bridge-line i {
  display: block;
  width: 7px;
  height: 7px;
  margin: -3px auto 0;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 7px rgba(84, 216, 238, 0.08);
}

.reason-card {
  width: 100%;
  text-align: center;
}

.state-pill {
  margin-inline: auto;
}

.state-match {
  color: #a4edc9;
  background: rgba(104, 211, 161, 0.1);
}

.state-verify {
  color: #ffc67f;
  background: rgba(244, 163, 64, 0.1);
}

.reason-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.decision-balance-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  margin-top: 20px;
}

.human-decision,
.balance-demo {
  min-width: 0;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.human-decision {
  border-color: rgba(244, 163, 64, 0.16);
  background: linear-gradient(155deg, #241f1a, #141a22);
}

.balance-demo {
  border-color: rgba(104, 211, 161, 0.15);
  background: linear-gradient(155deg, #10231d, #101b24);
}

.human-decision header h3,
.balance-demo header h3 {
  margin-bottom: 10px;
  font-size: clamp(25px, 3vw, 36px);
}

.human-decision header p,
.balance-demo header p {
  color: var(--muted);
  font-size: 14px;
}

.decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 28px;
}

.decision-actions button {
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid rgba(244, 163, 64, 0.15);
  border-radius: 999px;
  color: #d4c8bb;
  background: rgba(244, 163, 64, 0.035);
  font-size: 11px;
  cursor: pointer;
  transition: color 360ms var(--ease-out), background-color 360ms var(--ease-out), border-color 360ms var(--ease-out), transform 360ms var(--ease-spring);
}

.decision-actions button:hover,
.decision-actions button[aria-pressed="true"] {
  border-color: rgba(244, 163, 64, 0.4);
  color: #1b1106;
  background: var(--amber);
}

.decision-actions button:active {
  transform: scale(0.97);
}

.decision-output {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(244, 163, 64, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.decision-output > span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #1a1107;
  background: var(--amber);
  font-weight: 700;
  place-items: center;
}

.decision-output small,
.decision-output b,
.decision-output p {
  display: block;
}

.decision-output small {
  color: var(--muted-2);
  font-size: 9px;
}

.decision-output b {
  margin: 2px 0 4px;
  font-size: 12px;
}

.decision-output p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.undo-button {
  min-height: 44px;
  margin-top: 15px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid rgba(244, 163, 64, 0.3);
  color: #ffc67f;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
  transition: color 320ms var(--ease-out), border-color 320ms var(--ease-out);
}

.undo-button:hover {
  border-color: var(--amber);
  color: #ffe0b9;
}

.balance-equation {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 30px 0 25px;
}

.balance-equation > div {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(185, 216, 230, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.balance-equation > i {
  color: var(--muted-2);
  font-style: normal;
}

.balance-equation small,
.balance-equation strong,
.balance-equation span {
  display: block;
}

.balance-equation small {
  color: var(--muted-2);
  font-size: 9px;
}

.balance-equation strong {
  margin: 3px 0;
  font-family: "Alexandria", sans-serif;
  font-size: 31px;
  font-variant-numeric: tabular-nums;
}

.balance-equation span {
  color: var(--muted);
  font-size: 10px;
}

.balance-equation .reserved strong {
  color: var(--amber);
}

.balance-equation .remaining {
  border-color: rgba(104, 211, 161, 0.22);
  background: rgba(104, 211, 161, 0.055);
}

.balance-equation .remaining strong {
  color: var(--green);
}

.balance-demo > label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
}

.range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 12px;
  align-items: center;
}

input[type="range"] {
  width: 100%;
  height: 44px;
  accent-color: var(--green);
  cursor: pointer;
}

.range-row input[type="number"] {
  width: 76px;
  height: 46px;
  border: 1px solid rgba(104, 211, 161, 0.22);
  border-radius: 13px;
  color: var(--paper);
  background: #0d201a;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.balance-warning {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(239, 109, 115, 0.2);
  border-radius: 12px;
  color: #ffb2b6;
  background: rgba(239, 109, 115, 0.06);
  font-size: 11px;
}

.balance-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 10px;
}

.balance-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.balance-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.balance-legend span:last-child i {
  background: var(--violet);
}

.prototype-note {
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.7;
}

.value {
  background: #0a141d;
}

.value-list {
  border-top: 1px solid var(--line);
}

.value-list article {
  display: grid;
  grid-template-columns: 120px minmax(220px, 0.7fr) minmax(280px, 1fr);
  align-items: baseline;
  gap: 24px;
  padding: 25px 6px;
  border-bottom: 1px solid var(--line);
  transition: background-color 420ms var(--ease-out), transform 420ms var(--ease-spring);
}

.value-list article:hover {
  background: rgba(255, 255, 255, 0.025);
  transform: translateX(-5px);
}

.value-list span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.value-list h3 {
  margin: 0;
  font-size: 21px;
}

.value-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.responsibility {
  background: linear-gradient(90deg, #081822 0 50%, #171712 50% 100%);
}

.responsibility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.responsibility-grid article {
  min-width: 0;
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.ai-side {
  border-color: rgba(84, 216, 238, 0.17) !important;
  background: linear-gradient(150deg, #102b37, #0e1b25);
}

.human-side {
  border-color: rgba(244, 163, 64, 0.18) !important;
  background: linear-gradient(150deg, #2a241b, #171a20);
}

.role-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.role-heading > span {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border: 1px solid rgba(84, 216, 238, 0.28);
  border-radius: 17px;
  color: var(--cyan);
  background: rgba(84, 216, 238, 0.07);
  font-family: "Alexandria", sans-serif;
  font-size: 11px;
  place-items: center;
}

.human-side .role-heading > span {
  border-color: rgba(244, 163, 64, 0.28);
  color: var(--amber);
  background: rgba(244, 163, 64, 0.07);
}

.role-heading small {
  color: var(--muted-2);
  font-size: 10px;
}

.role-heading h3 {
  margin: 3px 0 0;
  font-size: clamp(21px, 2.5vw, 30px);
}

.responsibility-grid ul,
.trust-list,
.feedback-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feedback-questions {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid rgba(185, 214, 229, 0.11);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
}

.feedback-questions h3 {
  margin-bottom: 12px;
  font-size: 15px;
}

.feedback-questions ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 16px;
}

.feedback-questions li {
  position: relative;
  padding-right: 13px;
  color: var(--muted);
  font-size: 11px;
}

.feedback-questions li::before {
  position: absolute;
  top: 10px;
  right: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  content: "";
}

.responsibility-grid ul {
  display: grid;
  gap: 4px;
}

.responsibility-grid li {
  position: relative;
  padding: 14px 22px 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  color: #c7d4dc;
  font-size: 14px;
}

.responsibility-grid li::before {
  position: absolute;
  top: 23px;
  right: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  content: "";
}

.human-side li::before {
  background: var(--amber);
}

.trust {
  background: #11151a;
}

.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.trust-heading {
  position: relative;
  top: auto;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.trust-heading p {
  margin-inline: auto;
}

.trust-list {
  display: grid;
  width: min(920px, 100%);
  gap: 10px;
  margin-inline: auto;
}

.trust-list li {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  border: 1px solid rgba(193, 217, 231, 0.1);
  border-radius: 18px;
  color: #ced9e0;
  background: #171d23;
  font-size: 14px;
}

.trust-list li:nth-child(2n) {
  background: #1a1c21;
}

.trust-list span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #ffabb0;
  background: rgba(239, 109, 115, 0.08);
  font-size: 16px;
  place-items: center;
}

.audience {
  background: #09141d;
}

.audience-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.audience-track article {
  min-width: 0;
  min-height: 310px;
  padding: 28px;
  border-left: 1px solid var(--line);
  background: #101d27;
}

.audience-track article:nth-child(2n) {
  background: #141e29;
}

.audience-track article:last-child {
  border-left: 0;
}

.audience-track span {
  display: block;
  margin-bottom: 90px;
  color: var(--amber);
  font-family: "Alexandria", sans-serif;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.audience-track h3 {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.55;
}

.audience-track p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.feedback {
  background:
    radial-gradient(circle at 20% 20%, rgba(84, 216, 238, 0.09), transparent 28rem),
    #0b1720;
}

.feedback-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
}

.feedback-copy > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.feedback-copy > ul > li {
  padding: 6px 11px;
  border: 1px solid rgba(104, 211, 161, 0.15);
  border-radius: 999px;
  color: #a4edc9;
  background: rgba(104, 211, 161, 0.045);
  font-size: 11px;
}

.interest-form {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow-soft), inset 0 1px rgba(255, 255, 255, 0.04);
}

.interest-form > * {
  margin-inline: 26px;
}

.form-head {
  margin: 0 0 22px;
  padding: 30px 26px 22px;
  border-radius: 26px 26px 18px 18px;
  background: linear-gradient(145deg, #172b39, #101d27);
}

.form-head h3 {
  margin-bottom: 8px;
  font-size: 28px;
}

.form-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: #c7d5de;
  font-size: 12px;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid rgba(185, 214, 229, 0.14);
  border-radius: 14px;
  color: var(--paper);
  background-color: #0b1720;
  transition: border-color 320ms var(--ease-out), background-color 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}

.field input::placeholder {
  color: #607788;
}

.field-error {
  display: block;
  min-height: 21px;
  padding-top: 3px;
  color: #ffabb0;
  font-size: 10px;
}

.field.has-error input,
.field.has-error select {
  border-color: rgba(239, 109, 115, 0.46);
  background-color: rgba(239, 109, 115, 0.035);
}

.form-submit {
  width: calc(100% - 52px);
  margin-top: 4px;
  border: 0;
}

.feedback-link {
  display: block;
  min-height: 44px;
  padding-block: 10px;
  margin-block: 15px 0;
  color: #bfeef5;
  font-size: 12px;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: rgba(84, 216, 238, 0.25);
  text-underline-offset: 5px;
  transition: color 320ms var(--ease-out), text-decoration-color 320ms var(--ease-out);
}

.feedback-link:hover {
  color: var(--paper);
  text-decoration-color: var(--cyan);
}

.form-note {
  margin-block: 14px 22px;
  color: var(--muted-2);
  font-size: 9px;
  text-align: center;
}

.form-success {
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid rgba(104, 211, 161, 0.2);
  border-radius: 16px;
  background: rgba(104, 211, 161, 0.055);
}

.form-success:not([hidden]) {
  display: flex;
}

.form-success > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #0d1b16;
  background: var(--green);
  place-items: center;
}

.form-success b,
.form-success p {
  display: block;
}

.form-success b {
  font-size: 11px;
}

.form-success p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.closing {
  padding-bottom: 72px;
  background: #071018;
}

.closing-inner {
  padding: clamp(46px, 8vw, 90px);
  border: 1px solid rgba(244, 163, 64, 0.17);
  border-radius: 40px;
  background:
    radial-gradient(circle at 0% 100%, rgba(244, 163, 64, 0.12), transparent 32rem),
    linear-gradient(145deg, #162432, #0c1720);
  text-align: center;
}

.closing-inner > p:first-child {
  margin-bottom: 18px;
  color: var(--amber);
  font-family: "Alexandria", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.closing h2 {
  max-width: 900px;
  margin-inline: auto;
}

.closing .hero-actions {
  justify-content: center;
  margin-top: 30px;
}

.legal-footer {
  max-width: 780px;
  margin: 30px auto 0;
  color: var(--muted-2);
  font-size: 11px;
}

footer {
  padding-block: 26px;
  border-top: 1px solid var(--line);
  background: var(--ink-950);
}

footer .section-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted-2);
  font-size: 11px;
}

footer p {
  margin: 0;
}

footer a {
  min-height: 44px;
  padding: 9px 0;
  color: var(--muted);
  transition: color 320ms var(--ease-out);
}

footer a:hover {
  color: var(--paper);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.button:focus-visible,
.nav-cta:focus-visible {
  outline-color: var(--paper);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 820ms var(--ease-out), transform 820ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .story-nav {
    gap: 10px;
  }

  .brand > span:last-child,
  .nav-cta {
    display: none;
  }

  .story-links {
    justify-content: space-between;
  }

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

  .workflow-layout {
    grid-template-columns: 135px minmax(0, 1fr);
  }

  .step-preview {
    position: relative;
    top: auto;
    grid-column: 2;
    min-height: auto;
  }

  .preview-core {
    min-height: 500px;
  }

  .match-lab {
    grid-template-columns: 1fr 140px 1fr;
  }

  .audience-track {
    grid-template-columns: repeat(3, 1fr);
  }

  .audience-track article:nth-child(3) {
    border-left: 0;
  }

  .audience-track article:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .section-shell {
    width: min(100% - 32px, 720px);
  }

  .section-pad {
    padding-block: 67px;
  }

  .story-nav {
    top: max(8px, env(safe-area-inset-top));
    width: calc(100% - 20px);
    height: 58px;
    margin-top: 8px;
    margin-bottom: -66px;
    padding: 5px 6px;
    overflow: hidden;
  }

  .brand {
    padding-inline: 3px;
  }

  .story-links {
    max-width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .story-links::-webkit-scrollbar {
    display: none;
  }

  .story-links a {
    padding-inline: 10px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 122px;
    padding-bottom: 58px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .visual-shell {
    transform: none;
  }

  .source-map,
  .workflow-layout,
  .match-lab,
  .decision-balance-grid,
  .responsibility-grid,
  .feedback-shell,
  .trust-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .source-detail,
  .trust-heading {
    position: relative;
    top: auto;
  }

  .source-orbit {
    min-height: 500px;
  }

  .loss-time,
  .loss-diff,
  .loss-balance,
  .loss-repeat,
  .loss-delay,
  .loss-scale {
    grid-column: span 6;
  }

  .logic-flow {
    display: grid;
    grid-template-columns: 1fr 32px 1fr;
  }

  .logic-flow > i {
    text-align: center;
  }

  .flow-node {
    width: 100%;
  }

  .flow-node:nth-of-type(2n) {
    transform: none;
  }

  .flow-node:last-child {
    grid-column: 2 / 4;
  }

  .roles-manifest {
    grid-template-columns: 1fr;
  }

  .step-rail {
    position: relative;
    top: auto;
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
  }

  .step-rail button {
    min-width: 130px;
    scroll-snap-align: start;
  }

  .step-preview {
    grid-column: 1;
  }

  .step-story {
    min-height: auto;
  }

  .match-bridge {
    min-height: 210px;
  }

  .bridge-line {
    width: 1px;
    height: 42px;
    background: linear-gradient(180deg, rgba(84, 216, 238, 0.5), rgba(244, 163, 64, 0.45));
  }

  .bridge-line i {
    margin: 17px 0 0 -3px;
  }

  .responsibility {
    background: #09151e;
  }

  .source-orbit,
  .source-detail,
  .step-story,
  .step-preview,
  .preview-core,
  .comparison-panel,
  .human-decision,
  .balance-demo,
  .responsibility-grid article,
  .feedback-copy,
  .interest-form,
  .closing-inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-copy,
  .section-intro,
  .solution-heading,
  .step-story,
  .comparison-panel,
  .human-decision,
  .balance-demo,
  .responsibility-grid article,
  .feedback-shell,
  .closing-inner {
    overflow-wrap: anywhere;
  }

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

  .audience-track article,
  .audience-track article:nth-child(3) {
    border-left: 1px solid var(--line);
  }

  .audience-track article:nth-child(2n) {
    border-left: 0;
  }

  .audience-track article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .section-shell {
    width: calc(100% - 28px);
  }

  .section-pad {
    padding-block: 54px;
  }

  .story-nav {
    width: calc(100% - 16px);
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .story-links a {
    min-height: 44px;
    font-size: 12px;
  }

  .hero {
    padding-top: 116px;
    padding-bottom: 52px;
  }

  .hero h1 {
    font-size: clamp(39px, 12vw, 53px);
  }

  .hero-lede,
  .section-intro p,
  .solution-heading p,
  .trust-heading p,
  .feedback-copy > p {
    font-size: 16px;
  }

  .scope-note {
    align-items: flex-start;
    text-align: right;
  }

  .story-transition {
    align-items: center;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 22px;
  }

  .workflow-instruction {
    width: 100%;
    margin-bottom: 12px;
  }

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

  .button {
    justify-content: space-between;
  }

  .hero-console {
    padding: 16px;
  }

  .console-head {
    align-items: flex-start;
  }

  .live-pill {
    max-width: 100px;
    white-space: normal;
  }

  .document-stream {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 48px;
  }

  .document-card:first-child,
  .document-card:nth-child(2) {
    transform: none;
  }

  .ai-junction {
    bottom: 3px;
  }

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

  .balance-chip {
    width: 100%;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .section-intro,
  .solution-heading {
    margin-bottom: 32px;
  }

  .section-intro h2,
  .solution-heading h2,
  .trust-heading h2,
  .feedback-copy h2,
  .closing h2 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .source-orbit {
    min-height: 650px;
    grid-template-columns: 1fr 1fr;
    padding: 16px;
  }

  .source-node {
    min-height: 82px;
    flex-direction: column;
    gap: 5px;
  }

  .source-node span {
    font-size: 11px;
  }

  .source-node:last-of-type {
    grid-column: 1 / 3;
  }

  .source-center {
    width: 112px;
    height: 112px;
  }

  .source-detail {
    min-height: 0;
    padding: 28px;
  }

  .problem-thesis {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 26px;
  }

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

  .loss-time,
  .loss-diff,
  .loss-balance,
  .loss-repeat,
  .loss-delay,
  .loss-scale {
    grid-column: 1;
  }

  .loss-card {
    min-height: 270px;
  }

  .loss-reveal {
    opacity: 1;
    transform: none;
  }

  .logic-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .logic-flow > i {
    transform: rotate(-90deg);
  }

  .flow-node,
  .flow-node:last-child {
    grid-column: 1;
    min-height: 150px;
  }

  .roles-manifest {
    margin-top: 34px;
    padding: 24px;
  }

  .step-story,
  .human-decision,
  .balance-demo,
  .comparison-panel {
    padding: 24px;
  }

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

  .step-actions {
    align-items: flex-end;
  }

  .preview-core {
    min-height: 460px;
  }

  .compare-row {
    grid-template-columns: 75px minmax(0, 1fr);
  }

  .balance-equation {
    grid-template-columns: minmax(0, 1fr);
  }

  .balance-equation > i {
    text-align: center;
  }

  .balance-equation > i:first-of-type::before {
    content: "الكمية المحجوزة تُخصم من المتاح";
    color: var(--muted-2);
    font-size: 9px;
  }

  .value-list article {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-block: 22px;
  }

  .responsibility-grid article {
    padding: 26px;
  }

  .role-heading {
    align-items: flex-start;
  }

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

  .audience-track article,
  .audience-track article:nth-child(2n),
  .audience-track article:nth-child(3) {
    min-height: 230px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .audience-track article:first-child {
    border-top: 0;
  }

  .audience-track span {
    margin-bottom: 48px;
  }

  .feedback-shell {
    gap: 48px;
  }

  .feedback-questions ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .interest-form > * {
    margin-inline: 18px;
  }

  .form-head {
    margin-inline: 0;
    padding: 26px 20px 20px;
  }

  .form-submit {
    width: calc(100% - 36px);
  }

  .closing-inner {
    padding: 42px 24px;
    border-radius: 30px;
  }

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

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
