/**
 * The public front door (index.html).
 *
 * One fixed stage holds the planet. The hero, the two scroll chapters, the
 * network explorer and the access section are windows onto it; the process
 * mining demo, the colour field and the capability index are opaque sheets
 * that slide over it. Colour comes from the theme tokens plus three brand
 * variables set by assets/landing/brand-live.js:
 *   --lp-brand / --lp-brand-ink   the tenant colour as a ground, and its ink
 *   --lp-accent                   the same colour made readable as text
 * Type: Geist for Latin, Geist Mono for figures and codes; Zain for Arabic
 * headings over IBM Plex Sans Arabic. Logical properties throughout, so
 * Arabic mirrors without a second sheet.
 */
:root {
  --lp-brand: #2563eb;
  --lp-brand-ink: #ffffff;
  --lp-accent: #60a5fa;
  --lp-accent-lg: #60a5fa;
  --lp-sans: 'Geist', var(--sans);
  --lp-head: 'Geist', var(--sans);
  --lp-mono: 'Geist Mono', var(--mono);
  --lp-soft: var(--ts);
  --lp-dim: var(--tt);
  --lp-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --lp-gutter: clamp(20px, 5vw, 72px);
}
[data-theme='light'] {
  --lp-accent: #2563eb;
  --lp-accent-lg: #2563eb;
}
[data-theme='dark'] {
  --lp-soft: #a9b8d0;
  --lp-dim: #7f8ea8;
}
[lang='ar'] {
  --lp-sans: 'IBM Plex Sans Arabic', var(--sans);
  --lp-head: 'Zain', 'IBM Plex Sans Arabic', var(--sans);
}
.lp {
  margin: 0;
  background: var(--s0);
  color: var(--tp);
  font-family: var(--lp-sans);
  overflow-x: hidden;
}
.lp code {
  font-family: var(--lp-mono);
  direction: ltr;
  unicode-bidi: isolate;
}
.lp a {
  color: inherit;
}
.lp-wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: var(--lp-gutter);
  box-sizing: border-box;
}

/* ── stage ───────────────────────────────────────────────────────────────── */
.lp-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.6s var(--lp-ease);
  background: radial-gradient(120% 90% at 78% 40%, rgba(37, 99, 235, 0.1), transparent 60%);
}
[data-theme='light'] .lp-stage {
  background: radial-gradient(110% 90% at 78% 38%, #ffffff, transparent 62%);
}
.lp-stage.planet-ready {
  opacity: 1;
}
.lp-stage.is-off {
  visibility: hidden;
}
main,
.lp-footer {
  position: relative;
  z-index: 2;
}

/* ── navigation ──────────────────────────────────────────────────────────── */
.lp-nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px var(--lp-gutter);
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s var(--lp-ease);
}
/* A signed-in visitor also gets the app's own bar (platform-nav.js, fixed at
   the top); the page nav sits below it instead of underneath it. */
body.has-platform-nav .lp-nav {
  inset-block-start: var(--bluedxp-platform-nav-h, 40px);
}
.lp-nav.is-stuck {
  padding-block: 10px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--border-med);
}
.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.lp-brand img {
  height: 34px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}
.lp-brand img:not([hidden]) + .lp-brand-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.lp-nav-links {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}
.lp-nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ts);
  transition: color 0.15s, background 0.15s;
}
.lp-nav-links a:hover {
  color: var(--tp);
  background: var(--border);
}
.lp-nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lp-tool,
.lp .theme-toggle.lp-tool {
  min-height: 40px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-med);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--tp);
  font: 500 0.84rem var(--lp-sans);
  cursor: pointer;
  justify-content: center;
}
#lp-lang[lang='en'] {
  font-family: 'Geist', var(--sans);
}
#lp-lang[lang='ar'] {
  font-family: 'IBM Plex Sans Arabic', var(--sans);
  font-size: 0.95rem;
}
.lp-tool:hover {
  border-color: var(--border-hi);
  background: var(--border);
}
.lp :focus-visible {
  outline: 2px solid var(--lp-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── buttons ─────────────────────────────────────────────────────────────── */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 500 1rem var(--lp-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--lp-ease), box-shadow 0.25s, background 0.2s, border-color 0.2s;
}
.lp-btn svg {
  transition: transform 0.25s var(--lp-ease);
}
[dir='rtl'] .lp-btn svg {
  transform: scaleX(-1);
}
.lp-btn:hover {
  transform: translateY(-2px);
}
.lp-btn:hover svg {
  transform: translateX(4px);
}
[dir='rtl'] .lp-btn:hover svg {
  transform: scaleX(-1) translateX(4px);
}
.lp a.lp-btn-primary,
.lp-btn-primary {
  background: var(--lp-brand);
  color: var(--lp-brand-ink);
  box-shadow: 0 10px 30px -10px var(--lp-brand);
}
.lp-btn-primary:hover {
  box-shadow: 0 16px 40px -10px var(--lp-brand);
}
.lp-btn-ghost {
  border-color: var(--border-hi);
  background: var(--glass);
  color: var(--tp);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.lp-btn-ghost:hover {
  border-color: var(--tp);
}
.lp-btn-quiet {
  padding-inline: 8px;
  color: var(--ts);
  text-decoration: underline;
  text-decoration-color: var(--border-hi);
  text-underline-offset: 6px;
}
.lp-btn-quiet:hover {
  color: var(--tp);
  text-decoration-color: var(--lp-accent);
}
.lp-btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.88rem;
}

/* ── hero ────────────────────────────────────────────────────────────────── */
.lp-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 120px 96px;
  box-sizing: border-box;
}
.lp-hero-copy {
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.lp-hero-copy > * {
  pointer-events: auto;
}
.lp-live {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
  font: 400 0.9rem var(--lp-sans);
  color: var(--ts);
}
#lp-clock {
  font-family: var(--lp-mono);
  color: var(--tp);
  font-variant-numeric: tabular-nums;
}
.lp-live-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--tt);
}
.lp-hero h1 {
  margin: 0 0 28px;
  max-width: 12ch;
  font: 600 clamp(2.9rem, 8.2vw, 7.4rem) / 0.96 var(--lp-head);
  letter-spacing: -0.05em;
  color: var(--tp-bright);
}
[lang='ar'] .lp-hero h1 {
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.16;
  font-size: clamp(3.1rem, 8.6vw, 7.6rem);
}
.lp-line {
  display: block;
  overflow: hidden;
  padding-block: 0.06em 0.14em;
  margin-block: -0.06em -0.14em;
}
.lp-line > * {
  display: inline-block;
}
.lp h1 em,
.lp h2 em,
.lp-field-close em {
  position: relative;
  font-style: normal;
  color: var(--lp-accent-lg);
}
.lp-stroke {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0.02em;
  width: 100%;
  height: 0.16em;
  overflow: visible;
}
.lp-stroke path {
  fill: none;
  stroke: var(--lp-brand);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 320;
  stroke-dashoffset: 0;
}
.lp-sub {
  max-width: 34rem;
  margin: 0 0 36px;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--ts);
}
[data-theme='dark'] .lp-sub {
  color: #a9b8d0;
}
.lp-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.lp-cta-center {
  justify-content: center;
}
.lp-note {
  margin: 28px 0 0;
  font-size: 0.86rem;
  color: var(--tt);
}
.lp-pad {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 46%;
  z-index: 1;
  cursor: grab;
  touch-action: pan-y;
}
.lp-pad.is-dragging {
  cursor: grabbing;
}
.lp-cue {
  position: absolute;
  inset-block-end: 28px;
  inset-inline-start: var(--lp-gutter);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font: 500 0.92rem var(--lp-sans);
  text-decoration: none;
  color: var(--ts);
}
.lp-cue i {
  position: relative;
  width: 56px;
  height: 1px;
  background: var(--border-hi);
  overflow: hidden;
}
.lp-cue i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lp-brand);
  transform: translateX(-100%);
  animation: lp-cue 2.2s var(--lp-ease) infinite;
}
[dir='rtl'] .lp-cue i::after {
  animation-name: lp-cue-rtl;
  transform: translateX(100%);
}
@keyframes lp-cue {
  to { transform: translateX(100%); }
}
@keyframes lp-cue-rtl {
  to { transform: translateX(-100%); }
}

/* ── entrance choreography (only once the script says the copy is ready) ── */
.lp-js .lp-nav,
.lp-js .lp-live,
.lp-js .lp-sub,
.lp-js .lp-cta,
.lp-js .lp-note,
.lp-js .lp-cue {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--lp-ease), transform 0.9s var(--lp-ease), background 0.3s, box-shadow 0.3s, padding 0.3s;
  animation: lp-safety 0.01s 3.5s forwards;
}
.lp-js .lp-nav {
  transform: translateY(-14px);
}
.lp-js .lp-line > * {
  transform: translateY(112%);
  transition: transform 1.1s var(--lp-ease);
  animation: lp-safety 0.01s 3.5s forwards;
}
.lp-js .lp-stroke path {
  stroke-dashoffset: 320;
  transition: stroke-dashoffset 1.1s var(--lp-ease) 1s;
  animation: lp-safety 0.01s 3.5s forwards;
}
.lp-in .lp-nav,
.lp-in .lp-live,
.lp-in .lp-sub,
.lp-in .lp-cta,
.lp-in .lp-note,
.lp-in .lp-cue {
  opacity: 1;
  transform: none;
  animation: none;
}
.lp-in .lp-line > * {
  transform: none;
  animation: none;
}
.lp-in .lp-stroke path {
  stroke-dashoffset: 0;
  animation: none;
}
.lp-in .lp-live { transition-delay: 0.1s; }
.lp-in .lp-line:nth-child(1) > * { transition-delay: 0.2s; }
.lp-in .lp-line:nth-child(2) > * { transition-delay: 0.34s; }
.lp-in .lp-sub { transition-delay: 0.7s; }
.lp-in .lp-cta { transition-delay: 0.85s; }
.lp-in .lp-note { transition-delay: 1.05s; }
.lp-in .lp-cue { transition-delay: 1.3s; }
@keyframes lp-safety {
  to { opacity: 1; transform: none; stroke-dashoffset: 0; }
}

/* ── the journey ─────────────────────────────────────────────────────────── */
.lp-journey {
  position: relative;
}
.lp-journey::before {
  content: '';
  position: sticky;
  inset-block-start: 0;
  display: block;
  height: 100vh;
  height: 100svh;
  margin-block-end: -100vh;
  margin-block-end: -100svh;
  pointer-events: none;
  background: linear-gradient(90deg, var(--s0) 0%, color-mix(in srgb, var(--s0) 86%, transparent) 30%, transparent 60%);
}
[dir='rtl'] .lp-journey::before {
  background: linear-gradient(270deg, var(--s0) 0%, color-mix(in srgb, var(--s0) 86%, transparent) 30%, transparent 60%);
}
.lp-rail {
  position: sticky;
  inset-block-start: 0;
  height: 100vh;
  height: 100svh;
  margin-block-end: -100vh;
  margin-block-end: -100svh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-inline-end: var(--lp-gutter);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}
.lp-in-journey .lp-rail {
  opacity: 1;
}
.lp-rail ol {
  list-style: none;
  margin: 0;
  padding: 20px 20px 20px 24px;
  display: grid;
  gap: 16px;
  border-radius: 20px;
  border: 1px solid var(--border-med);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}
.lp-rail li {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font: 500 0.84rem var(--lp-sans);
  color: var(--tt);
  transition: color 0.4s;
}
.lp-rail li::after {
  content: '';
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.5;
  transition: width 0.5s var(--lp-ease), background 0.4s, opacity 0.4s;
}
.lp-rail li.is-done {
  color: var(--ts);
}
.lp-rail li.is-on {
  color: var(--tp-bright);
}
.lp-rail li.is-on::after {
  width: 44px;
  background: var(--lp-brand);
  opacity: 1;
}
.lp-step {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 31rem;
  box-sizing: border-box;
  padding-block: 12vh;
}
.lp-step-intro {
  max-width: 40rem;
  min-height: 80vh;
}
.lp-eyebrow {
  margin: 0 0 16px;
  font: 500 1rem var(--lp-sans);
  color: var(--lp-accent);
}
.lp h2 {
  margin: 0 0 20px;
  font: 600 clamp(2.2rem, 5vw, 4.3rem) / 1.03 var(--lp-head);
  letter-spacing: -0.042em;
  color: var(--tp-bright);
}
.lp h3 {
  font-family: var(--lp-head);
}
[lang='ar'] .lp h2 {
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  font-size: clamp(2.5rem, 5.6vw, 4.8rem);
}
[lang='ar'] .lp h3 {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}
.lp-lead {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--ts);
}
.lp-fine {
  margin: 18px 0 0;
  max-width: 36rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--lp-dim);
}
.lp-tag {
  margin: 0 0 12px;
  font: 500 1rem var(--lp-sans);
  color: var(--lp-accent);
}
.lp-step h3 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--tp-bright);
}
[lang='ar'] .lp-step h3 {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
}
.lp-step > p:not([class]) {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ts);
}
[data-theme='dark'] .lp-step > p:not([class]),
[data-theme='dark'] .lp-lead {
  color: #a9b8d0;
}
.lp-ports {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lp-ports li {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-med);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.95rem;
}
.lp-ports code {
  font-size: 0.74rem;
  color: var(--lp-dim);
}
.lp-js .lp-step[data-step] > *,
.lp-js .lp-beat > *,
.lp-js .lp-step-intro > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--lp-ease), transform 0.9s var(--lp-ease);
}
.lp-js .lp-step.is-in > * {
  opacity: 1;
  transform: none;
}
.lp-step.is-in > *:nth-child(2) { transition-delay: 0.06s; }
.lp-step.is-in > *:nth-child(3) { transition-delay: 0.12s; }
.lp-step.is-in > *:nth-child(4) { transition-delay: 0.18s; }

/* ── the colour field ────────────────────────────────────────────────────── */
.lp-field {
  position: relative;
  overflow: hidden;
  padding-block: clamp(96px, 16vw, 200px) clamp(88px, 13vw, 170px);
  background: var(--lp-brand);
  color: var(--lp-brand-ink);
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .lp-field {
      animation: lp-wipe linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
    @keyframes lp-wipe {
      from { clip-path: inset(22% 9% 0 9% round 72px 72px 0 0); }
      to { clip-path: inset(0 0 0 0 round 0); }
    }
    .lp-field-title {
      animation: lp-rise linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 38%;
    }
    @keyframes lp-rise {
      from { letter-spacing: 0.02em; transform: translateY(60px); opacity: 0.2; }
      to { letter-spacing: -0.045em; transform: none; opacity: 1; }
    }
    [lang='ar'] .lp-field-title {
      animation-name: lp-rise-ar;
    }
    @keyframes lp-rise-ar {
      from { transform: translateY(60px); opacity: 0.2; }
      to { transform: none; opacity: 1; }
    }
  }
}
.lp-field .lp-eyebrow {
  color: inherit;
  opacity: 0.75;
}
.lp .lp-field-title {
  max-width: 14ch;
  margin: 0 0 clamp(48px, 7vw, 96px);
  font-size: clamp(2.8rem, 9vw, 8.2rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  color: inherit;
}
[lang='ar'] .lp .lp-field-title {
  line-height: 1.16;
  letter-spacing: 0;
  font-size: clamp(3rem, 9vw, 8rem);
}
.lp-marquee {
  position: absolute;
  inset-block-start: clamp(18px, 3vw, 40px);
  inset-inline: 0;
  display: flex;
  width: max-content;
  opacity: 0.3;
  animation: lp-marquee 60s linear infinite;
  font: 500 clamp(1.5rem, 2.8vw, 2.4rem) / 1.2 var(--lp-head);
  letter-spacing: -0.03em;
  white-space: nowrap;
  pointer-events: none;
}
[dir='rtl'] .lp-marquee {
  animation-name: lp-marquee-rtl;
  letter-spacing: 0;
}
.lp-marquee div {
  display: flex;
}
.lp-marquee span {
  padding-inline: 28px;
}
.lp-marquee span::after {
  content: '';
  display: inline-block;
  width: 0.3em;
  height: 0.3em;
  margin-inline-start: 56px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
}
@keyframes lp-marquee {
  to { transform: translateX(-50%); }
}
@keyframes lp-marquee-rtl {
  to { transform: translateX(50%); }
}
.lp-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 64px);
}
.lp-trio article {
  padding-block-start: 22px;
  border-block-start: 2px solid currentColor;
}
.lp-trio h3 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.lp-trio p {
  margin: 0;
  max-width: 28ch;
  font-size: 1.08rem;
  line-height: 1.55;
  opacity: 0.86;
}
.lp-field-close {
  margin: clamp(56px, 8vw, 110px) 0 0;
  font: 600 clamp(2rem, 5.4vw, 4.8rem) / 1 var(--lp-head);
  letter-spacing: -0.045em;
}
[lang='ar'] .lp-field-close {
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}
.lp-field-close em {
  color: inherit;
  opacity: 0.72;
}
.lp-js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--lp-ease), transform 1s var(--lp-ease);
}
.lp-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.lp-trio article:nth-child(2) { transition-delay: 0.12s; }
.lp-trio article:nth-child(3) { transition-delay: 0.24s; }

/* ── shared: chips ───────────────────────────────────────────────────────── */
.lp-chip {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-med);
  background: transparent;
  color: var(--lp-soft);
  font: 500 0.88rem var(--lp-sans);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.lp-chip:hover {
  color: var(--tp);
  border-color: var(--border-hi);
}
.lp-chip.is-on {
  color: var(--lp-brand-ink);
  border-color: var(--lp-brand);
  background: var(--lp-brand);
}

/* ── process mining ──────────────────────────────────────────────────────── */
.lp-mining {
  --m-ok: var(--lp-accent);
  --m-miss: var(--red);
  --m-extra: var(--teal);
  --m-order: var(--amber);
  position: relative;
  padding-block: clamp(88px, 12vw, 160px);
  background: var(--s1);
}
[data-theme='light'] .lp-mining {
  --m-miss: #dc2626;
  --m-extra: #0e7490;
  --m-order: #b45309;
}
.lp-mining h2 {
  max-width: 19ch;
}
.lp-mine {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-block-start: clamp(36px, 5vw, 64px);
}
.lp-mine-map,
.lp-mine-side {
  padding: clamp(20px, 2.6vw, 34px);
  border-radius: 24px;
  border: 1px solid var(--border-med);
  background: var(--s0);
}
[data-theme='light'] .lp-mine-map,
[data-theme='light'] .lp-mine-side {
  background: #ffffff;
}
.lp-mine-cap {
  margin: 0 0 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--lp-soft);
}
.lp-mine-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  padding-inline-start: 18px;
}
.lp-mine-steps::before {
  content: '';
  position: absolute;
  inset-block: 20px;
  inset-inline-start: 24px;
  width: 2px;
  background: var(--border-med);
}
.lp-mine-steps > li {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 40px;
  font-size: 0.98rem;
  color: var(--lp-soft);
  transition: color 0.3s;
}
.lp-mine-node {
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid var(--border-hi);
  background: var(--s0);
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--lp-ease);
}
[data-theme='light'] .lp-mine-node {
  background: #ffffff;
}
.lp-mine-stat {
  font: 400 0.8rem var(--lp-mono);
  color: var(--lp-dim);
  white-space: nowrap;
}
[lang='ar'] .lp-mine-stat {
  font-family: var(--lp-sans);
}
.lp-mine-steps > .is-matched {
  color: var(--tp);
}
.lp-mine-steps > .is-matched .lp-mine-node {
  border-color: var(--m-ok);
  background: var(--m-ok);
}
.lp-mine-steps > .is-missing .lp-mine-name {
  text-decoration: line-through;
  text-decoration-color: var(--m-miss);
}
.lp-mine-steps > .is-missing .lp-mine-node {
  border-style: dashed;
  border-color: var(--m-miss);
}
.lp-mine-steps > .is-missing .lp-mine-stat {
  color: var(--m-miss);
}
.lp-mine-steps > .is-order .lp-mine-node {
  border-color: var(--m-order);
  background: var(--m-order);
  transform: scale(1.25);
}
.lp-mine-steps > .is-order .lp-mine-stat {
  color: var(--m-order);
}
.lp-mine-steps > .lp-mine-token {
  position: absolute;
  inset-block-start: -13px;
  inset-inline-start: 12px;
  display: block;
  width: 26px;
  height: 26px;
  min-height: 0;
  border-radius: 50%;
  border: 2px solid var(--m-ok);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--m-ok) 18%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s var(--lp-ease), opacity 0.3s;
}
.lp-mine-steps > .lp-mine-token.is-on {
  opacity: 1;
}
.lp-mine-steps > .lp-mine-jump {
  position: absolute;
  inset-inline-start: 0;
  display: block;
  width: 16px;
  min-height: 0;
  box-sizing: border-box;
  border: 2px solid var(--m-order);
  border-inline-end: 0;
  border-start-start-radius: 10px;
  border-end-start-radius: 10px;
  pointer-events: none;
}
.lp-mine-side {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  align-items: center;
  gap: 0 clamp(18px, 2.4vw, 32px);
}
.lp-mine-side > * {
  grid-column: 1 / -1;
}
.lp-mine-cases {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-end: 28px;
}
.lp-mine-side > .lp-mine-score {
  grid-column: 1;
  position: relative;
  width: clamp(120px, 12vw, 156px);
  aspect-ratio: 1;
}
.lp-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.lp-ring circle {
  fill: none;
  stroke: var(--border-med);
  stroke-width: 8;
}
#lp-ring-arc {
  stroke: var(--m-ok);
  stroke-linecap: round;
  stroke-dasharray: 0 100;
  transition: stroke-dasharray 0.4s var(--lp-ease);
}
.lp-ring-num {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: baseline;
  justify-content: center;
  direction: ltr;
  color: var(--tp-bright);
}
.lp-ring-num b {
  font: 600 clamp(2rem, 3vw, 2.7rem) / 1 var(--lp-head);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.lp-ring-num span {
  font-size: 1rem;
  color: var(--lp-soft);
}
.lp-ring-num small {
  flex-basis: 100%;
  margin-block-start: 4px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--lp-soft);
}
.lp-mine-side > .lp-mine-tiles {
  grid-column: 2;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.lp-mine-tiles dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--lp-soft);
}
.lp-mine-tiles dt::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--m-ok);
}
.lp-mine-tiles div:nth-child(2) dt::before { background: var(--m-miss); }
.lp-mine-tiles div:nth-child(3) dt::before { background: var(--m-extra); }
.lp-mine-tiles div:nth-child(4) dt::before { background: var(--m-order); }
.lp-mine-tiles dd {
  margin: 2px 0 0;
  font: 600 1.7rem / 1.1 var(--lp-head);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--tp-bright);
}
.lp-mine-extra {
  margin-block-start: 26px;
  padding-block-start: 18px;
  border-block-start: 1px solid var(--border-med);
}
.lp-mine-extra .lp-mine-cap {
  margin-block-end: 8px;
}
.lp-mine-extra ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lp-mine-extra li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-block: 6px;
  color: var(--tp);
  animation: lp-pop 0.5s var(--lp-ease);
}
.lp-mine-extra li span::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-inline-end: 10px;
  border-radius: 50%;
  background: var(--m-extra);
}
.lp-mine-extra time {
  font: 400 0.8rem var(--lp-mono);
  color: var(--lp-dim);
}
@keyframes lp-pop {
  from { opacity: 0; transform: translateY(8px); }
}
.lp-mine-side > .lp-fine {
  margin-block-start: 24px;
}

/* ── the network explorer: a panel over the planet ───────────────────────── */
.lp-explore {
  position: relative;
  min-height: 190vh;
  padding-block: 12vh 30vh;
  box-sizing: border-box;
}
.lp-explore-panel {
  position: sticky;
  inset-block-start: 11vh;
  display: flex;
  flex-direction: column;
  width: min(450px, calc(100% - 2 * var(--lp-gutter)));
  max-height: 82vh;
  overflow-y: auto;
  scrollbar-width: thin;
  margin-inline-start: var(--lp-gutter);
  padding: 26px;
  box-sizing: border-box;
  border-radius: 24px;
  border: 1px solid var(--border-med);
  background: color-mix(in srgb, var(--s0) 82%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
}
[data-theme='light'] .lp-explore-panel {
  background: rgba(255, 255, 255, 0.84);
}
.lp-explore-panel .lp-eyebrow {
  margin-block-end: 8px;
  font-size: 0.92rem;
}
.lp .lp-explore-panel h2 {
  margin-block-end: 16px;
  font-size: clamp(1.35rem, 1.9vw, 1.6rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
[lang='ar'] .lp .lp-explore-panel h2 {
  letter-spacing: 0;
  font-size: clamp(1.6rem, 2.2vw, 1.9rem);
}
.lp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block-end: 12px;
}
.lp-tabs .lp-chip {
  min-height: 36px;
  padding: 0 14px;
}
.lp-list {
  flex: 0 0 auto;
  height: clamp(132px, 22vh, 210px);
  margin: 0 -8px;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.lp-list-head {
  padding: 12px 12px 4px;
  font-size: 0.78rem;
  color: var(--lp-dim);
}
.lp-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--lp-soft);
  font: 400 0.96rem var(--lp-sans);
  text-align: start;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lp-item:hover {
  background: var(--border);
  color: var(--tp);
}
.lp-item.is-on {
  background: color-mix(in srgb, var(--lp-brand) 16%, transparent);
  color: var(--tp-bright);
  font-weight: 500;
}
.lp-item code {
  flex: none;
  font-size: 0.74rem;
  color: var(--lp-dim);
}
.lp-detail {
  margin-block-start: 14px;
  padding-block-start: 16px;
  border-block-start: 1px solid var(--border-med);
}
.lp-detail h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--tp-bright);
}
[lang='ar'] .lp-detail h3 {
  font-size: 1.45rem;
}
.lp-legs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.84rem;
  color: var(--tp);
}
.lp-legs span {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-hi);
}
.lp-legs i {
  width: 18px;
  height: 1px;
  background: var(--border-hi);
}
.lp-facts {
  margin: 0;
}
.lp-facts div {
  display: grid;
  grid-template-columns: minmax(104px, 36%) minmax(0, 1fr);
  gap: 12px;
  padding-block: 5px;
  font-size: 0.88rem;
}
.lp-facts div + div {
  border-block-start: 1px solid var(--border);
}
.lp-facts dt {
  color: var(--lp-soft);
}
.lp-facts dd {
  margin: 0;
  color: var(--tp);
}
.lp-facts .lp-code {
  font-family: var(--lp-mono);
  font-size: 0.84rem;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}
[dir='rtl'] .lp-facts .lp-code {
  text-align: end;
}
.lp-detail-note {
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: var(--lp-dim);
}
.lp-explore-panel .lp-fine {
  margin-block-start: 14px;
  font-size: 0.76rem;
}

/* ── the rest of the operation: an index, not a feature grid ─────────────── */
.lp-caps {
  position: relative;
  padding-block: clamp(88px, 12vw, 160px) clamp(56px, 8vw, 100px);
  background: var(--s1);
}
.lp-caps-list {
  list-style: none;
  margin: clamp(36px, 5vw, 64px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3.4vw, 48px) clamp(20px, 3vw, 40px);
}
.lp-caps-list li {
  padding-block-start: 18px;
  border-block-start: 1px solid var(--border-hi);
}
.lp-caps-list h3 {
  margin: 0 0 8px;
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--tp-bright);
}
[lang='ar'] .lp-caps-list h3 {
  font-size: 1.4rem;
}
.lp-caps-list p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--lp-soft);
}
.lp-caps-list li:nth-child(4n + 2) { transition-delay: 0.06s; }
.lp-caps-list li:nth-child(4n + 3) { transition-delay: 0.12s; }
.lp-caps-list li:nth-child(4n + 4) { transition-delay: 0.18s; }

/* ── access ──────────────────────────────────────────────────────────────── */
.lp-access {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  box-sizing: border-box;
  padding-block: clamp(110px, 16vh, 190px) 46vh;
  text-align: center;
  background: linear-gradient(180deg, var(--s1) 0%, color-mix(in srgb, var(--s0) 70%, transparent) 26%, transparent 52%);
}
.lp .lp-access h2 {
  font-size: clamp(2.8rem, 8vw, 7rem);
  letter-spacing: -0.05em;
}
[lang='ar'] .lp .lp-access h2 {
  letter-spacing: 0;
}
.lp-access .lp-lead {
  margin: 0 auto 36px;
}
.lp-js .lp-access h2,
.lp-js .lp-mining h2,
.lp-js .lp-caps h2,
.lp-js .lp-mine {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--lp-ease), transform 1s var(--lp-ease);
}
.lp-js .lp-access h2.is-in,
.lp-js .lp-mining h2.is-in,
.lp-js .lp-caps h2.is-in,
.lp-js .lp-mine.is-in {
  opacity: 1;
  transform: none;
}
.lp-footer {
  padding-block: 28px;
  background: var(--s0);
  border-block-start: 1px solid var(--border-med);
  font-size: 0.86rem;
  color: var(--tt);
}
.lp-footer .lp-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.lp-credit {
  font-size: 0.8rem;
}
.lp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.lp-footer a {
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.lp-footer a:hover {
  color: var(--tp);
}

/* ── narrow screens ──────────────────────────────────────────────────────── */
@media (max-width: 979px) {
  .lp-nav-links {
    display: none;
  }
  .lp-nav-tools {
    margin-inline-start: auto;
  }
  .lp-hero {
    align-items: flex-start;
    padding-block: 104px 30vh;
  }
  .lp-note {
    display: none;
  }
  .lp-pad {
    inset-block: auto 0;
    inset-inline: 0;
    width: auto;
    height: 24vh;
  }
  .lp-cue {
    display: none;
  }
  .lp-journey::before,
  [dir='rtl'] .lp-journey::before {
    background: linear-gradient(0deg, var(--s0) 0%, color-mix(in srgb, var(--s0) 90%, transparent) 38%, transparent 66%);
  }
  .lp-rail {
    align-items: flex-start;
    justify-content: center;
    padding: 84px 0 0;
  }
  .lp-rail ol {
    grid-auto-flow: column;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
  }
  .lp-rail li {
    font-size: 0;
    gap: 0;
  }
  .lp-rail li::after,
  .lp-rail li.is-on::after {
    width: 26px;
    height: 3px;
  }
  .lp-step {
    justify-content: flex-end;
    padding-block: 30vh 9vh;
  }
  .lp-step-intro {
    justify-content: center;
    padding-block: 12vh;
  }
  .lp-trio {
    grid-template-columns: 1fr;
  }
  .lp-mine {
    grid-template-columns: minmax(0, 1fr);
  }
  .lp-mine-side {
    order: -1;
  }
  .lp-explore {
    min-height: 200vh;
    padding-block: 42vh 30vh;
  }
  .lp-explore-panel {
    inset-block-start: 42vh;
    width: auto;
    max-height: 56vh;
    margin-inline: 12px;
    padding: 18px;
    border-radius: 20px;
  }
  .lp-explore-panel .lp-eyebrow,
  .lp-explore-panel .lp-fine {
    display: none;
  }
  .lp .lp-explore-panel h2 {
    margin-block-end: 12px;
    font-size: 1.3rem;
  }
  .lp-list {
    height: 15vh;
  }
  .lp-caps-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .lp-tool,
  .lp .theme-toggle.lp-tool {
    padding: 0 10px;
  }
  .lp-btn {
    flex: 1 1 100%;
  }
  .lp-btn-sm,
  .lp-btn-quiet {
    flex: 0 0 auto;
  }
  .lp-live {
    font-size: 0.82rem;
    gap: 8px;
  }
  .lp-mine-side > .lp-mine-score,
  .lp-mine-side > .lp-mine-tiles {
    grid-column: 1 / -1;
  }
  .lp-mine-side > .lp-mine-tiles {
    margin-block-start: 22px;
  }
  .lp-caps-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── reduced motion: everything is simply there ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .lp-js .lp-nav,
  .lp-js .lp-live,
  .lp-js .lp-sub,
  .lp-js .lp-cta,
  .lp-js .lp-note,
  .lp-js .lp-cue,
  .lp-js .lp-line > *,
  .lp-js .lp-step[data-step] > *,
  .lp-js .lp-step-intro > *,
  .lp-js [data-reveal],
  .lp-js .lp-beat > *,
  .lp-js .lp-access h2,
  .lp-js .lp-mining h2,
  .lp-js .lp-caps h2,
  .lp-js .lp-mine {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
  .lp-js .lp-stroke path {
    stroke-dashoffset: 0;
    transition: none;
  }
  .lp-marquee,
  .lp-cue i::after,
  .lp-mine-extra li {
    animation: none;
  }
  .lp-mine-steps > .lp-mine-token,
  #lp-ring-arc {
    transition: none;
  }
  .lp-stage {
    transition: none;
  }
  .lp-btn,
  .lp-btn svg {
    transition: none;
  }
}
