/* Senaiy Lab landing — shared by / (ar, rtl) and /en (ltr).
   SolvFast design system, dark theme: liquid glass over a fixed mesh/aurora
   background, AI conic ring on the agent card, Senaiy bots, workflow motion.
   Logical properties only: no physical left/right anywhere in this file. */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "rlig" 1, "calt" 1;
}
html[lang="ar"] body { font-size: 1.03rem; }
[dir="rtl"] { letter-spacing: 0; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); color: var(--fg); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
img { max-width: 100%; }
a { color: var(--color-global); }

pre, code { font-family: var(--font-mono); }

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 24px;
  position: relative;
}

section { padding-block: 84px; position: relative; }
@media (max-width: 720px) { section { padding-block: 56px; } }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Fixed background: mesh + grain (rendered once, never repaints on scroll) ---------- */

.bg-fix {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.mesh-bg {
  background-color: var(--bg);
  background-image:
    radial-gradient(68% 64% at 10% -6%, hsl(280 75% 52% / 0.55), transparent 66%),
    radial-gradient(60% 58% at 92% -2%, hsl(14 92% 55% / 0.40), transparent 64%),
    radial-gradient(56% 58% at 60% 12%, hsl(325 70% 50% / 0.28), transparent 62%),
    radial-gradient(78% 70% at 50% 112%, hsl(200 95% 55% / 0.32), transparent 66%);
}
.grain {
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.08;
  mix-blend-mode: soft-light;
}

/* Aurora ambient layer — large low-opacity blobs drifting slowly (hero + CTA only) */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  width: 55vw;
  height: 55vw;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.5;
}
.aurora::before {
  inset-inline-start: -10%;
  top: -20%;
  background: radial-gradient(circle, hsl(265 64% 46% / 0.55), transparent 60%);
}
.aurora::after {
  inset-inline-end: -10%;
  bottom: -25%;
  background: radial-gradient(circle, hsl(193 99% 57% / 0.4), transparent 60%);
}
@media (prefers-reduced-motion: no-preference) {
  .aurora::before { animation: aurora-drift 34s ease-in-out infinite alternate; }
  .aurora::after  { animation: aurora-drift 40s ease-in-out infinite alternate-reverse; }
}
@keyframes aurora-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6%, 8%, 0) scale(1.12); }
}

/* Brand-gradient scroll progress bar */
.scroll-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 100%;
  block-size: 3px;
  z-index: 200;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 0;
  background-image: linear-gradient(90deg, hsl(265 70% 58%), hsl(193 99% 57%) 45%, hsl(168 84% 46%) 72%, hsl(14 99% 55%));
  pointer-events: none;
}
[dir='rtl'] .scroll-progress { transform-origin: 100% 0; }

/* ---------- Liquid glass surfaces (design-system port, dark theme) ---------- */

.glass {
  position: relative;
  isolation: isolate;
  border-radius: var(--lg-radius);
  background: hsl(215 30% 8% / var(--lg-tint));
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(calc(var(--lg-refraction) * 130%));
  backdrop-filter: blur(var(--lg-blur)) saturate(calc(var(--lg-refraction) * 130%));
  box-shadow:
    inset 0 1px 0 hsl(0 0% 100% / 0.3),
    inset 0 0 0 1px hsl(0 0% 100% / 0.09),
    inset 0 -1px 0 hsl(0 0% 100% / 0.06),
    var(--shadow-glass);
}
.glass-subtle {
  border-radius: var(--lg-radius);
  background: hsl(215 30% 8% / calc(var(--lg-tint) * 0.7));
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(calc(var(--lg-refraction) * 120%));
  backdrop-filter: blur(var(--lg-blur)) saturate(calc(var(--lg-refraction) * 120%));
  box-shadow:
    inset 0 1px 0 hsl(0 0% 100% / 0.18),
    inset 0 0 0 1px hsl(0 0% 100% / 0.06);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .glass-subtle { background: var(--card-dark); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .glass-subtle {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: var(--card-dark);
  }
}

/* ---------- AI gradient engine — animated conic ring (agent card only) ---------- */

@property --ai-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.ai-ring {
  position: relative;
  z-index: 0;
  border-radius: calc(var(--radius-card) + 2px);
  --ai-gradient: conic-gradient(from var(--ai-angle),
    #512195 0%, #25d0fe 22%, #11bf9d 42%, #cbfe00 60%, #fe4e18 80%, #512195 100%);
}
.ai-ring::before,
.ai-ring::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  background: var(--ai-gradient);
  z-index: -1;
}
.ai-ring::before {
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1.5px;
  opacity: 0.8;
}
.ai-ring::after {
  filter: blur(20px);
  opacity: 0.35;
}
@media (prefers-reduced-motion: no-preference) {
  .ai-ring { animation: ai-spin 14s linear infinite; }
  .ai-ring:hover { animation-duration: 4s; }
}
@keyframes ai-spin { to { --ai-angle: 360deg; } }
@supports not ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .ai-ring::before {
    -webkit-mask: none;
    mask: none;
    inset: 0;
    padding: 0;
    border: 1.5px solid transparent;
    background:
      linear-gradient(var(--card-dark), var(--card-dark)) padding-box,
      var(--ai-gradient) border-box;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ai-ring { --ai-angle: 135deg; }
}

/* Brand gradient text — the one flourish, tuned brighter for the dark mesh */
.text-gradient-brand {
  background-image: linear-gradient(100deg, hsl(265 85% 72%), hsl(193 99% 62%) 45%, hsl(168 84% 52%) 72%, hsl(14 99% 60%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 200ms ease;
}
.btn:hover { transform: translateY(-2px); }

/* Flame Orange: conversion buttons ONLY, max one per viewport */
.btn--cta { background: var(--color-cta); color: #fff; box-shadow: var(--glow-primary); }
.btn--cta:hover { box-shadow: 0 12px 36px -8px hsl(14 99% 55% / 0.65); }
.btn--brand { background: var(--color-brand); color: #fff; box-shadow: 0 8px 28px -10px hsl(265 64% 46% / 0.6); }
.btn--ghost-dark,
.btn--ghost-light {
  border-color: hsl(0 0% 100% / 0.28);
  color: #fff;
  background: hsl(0 0% 100% / 0.06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn--ghost-dark:hover, .btn--ghost-light:hover { box-shadow: var(--glow-info); }

:focus-visible { outline: 2px solid var(--color-global); outline-offset: 2px; }

/* ---------- Pricing embargo (DEV-02 / CR-11) ---------- */

[data-pricing-published='false'] .pricing__embargoed { display: none; }
[data-pricing-published='true']  .pricing__fallback  { display: none; }

/* ---------- Senaiy bots — eyes track the cursor (JS sets --eye-x/--eye-y), blink, float ---------- */

.bot { display: inline-block; line-height: 0; }
.bot svg { inline-size: 100%; block-size: auto; overflow: visible; }
.bot__pupil {
  transform: translate(var(--eye-x, 0px), var(--eye-y, 0px));
  will-change: transform;
}
.bot__lids { transform-origin: center 55%; }
@media (prefers-reduced-motion: no-preference) {
  .bot__lids { animation: bot-blink 5.2s infinite; }
  .bot--b2 .bot__lids { animation-delay: 1.4s; animation-duration: 6.1s; }
  .bot--b3 .bot__lids { animation-delay: 2.6s; animation-duration: 7.3s; }
  .bot--float { animation: bot-float 6s ease-in-out infinite; }
  .bot--float2 { animation: bot-float 7.5s ease-in-out .8s infinite; }
  .bot--float3 { animation: bot-float 8.5s ease-in-out 1.6s infinite; }
}
@keyframes bot-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95%, 97% { transform: scaleY(0.08); }
}
@keyframes bot-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-2deg); }
}

/* Hero mascot peeks from behind the agent card */
.hero__bot {
  position: absolute;
  inset-block-start: -74px;
  inset-inline-end: 26px;
  inline-size: 108px;
  z-index: -1;
  filter: drop-shadow(0 10px 24px hsl(265 64% 30% / 0.55));
}
@media (max-width: 960px) { .hero__bot { inline-size: 84px; inset-block-start: -58px; } }

/* Trust-strip trio */
.trust__bots {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 26px;
  margin-block-end: 18px;
}
.trust__bots .bot { inline-size: 64px; }
.trust__bots .bot:nth-child(2) { inline-size: 78px; }

/* CTA-band bot: bounces when the panel is hovered */
.cta-band__bot {
  position: absolute;
  inset-block-start: -46px;
  inset-inline-end: 48px;
  inline-size: 92px;
  filter: drop-shadow(0 10px 24px hsl(0 0% 0% / 0.45));
}
@media (prefers-reduced-motion: no-preference) {
  .cta-band__panel:hover .cta-band__bot { animation: bot-bounce 0.6s cubic-bezier(.32, 1.6, .5, 1); }
}
@keyframes bot-bounce {
  0% { transform: translateY(0) scale(1, 1); }
  35% { transform: translateY(-16px) scale(0.96, 1.06); }
  70% { transform: translateY(0) scale(1.05, 0.94); }
  100% { transform: translateY(0) scale(1, 1); }
}

/* ---------- LP-00 announcement ---------- */

.announce {
  padding-block: 10px;
  font-size: 0.95rem;
  border-radius: 0;
  color: var(--fg);
}
.announce .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.announce a { font-weight: 700; text-decoration: none; }
.announce__dismiss {
  border: 0;
  background: none;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted-fg);
  padding: 4px 8px;
}
.announce.is-dismissed { display: none; }

/* ---------- LP-01 navbar — floating glass bar ---------- */

.nav {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: hsl(215 30% 8% / 0.45);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(140%);
  backdrop-filter: blur(var(--lg-blur)) saturate(140%);
  transition: box-shadow 150ms ease, background 150ms ease;
}
.nav.is-scrolled {
  background: hsl(215 30% 8% / 0.66);
  box-shadow:
    inset 0 -1px 0 hsl(0 0% 100% / 0.08),
    0 10px 30px -12px hsl(0 0% 0% / 0.6);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 66px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--fg);
}
.nav__brand img { block-size: 34px; inline-size: 34px; }
.nav__links {
  display: flex;
  gap: 22px;
  margin-inline-start: auto;
}
.nav__links a {
  text-decoration: none;
  color: var(--muted-fg);
  font-weight: 700;
  transition: color 150ms ease;
}
.nav__links a:hover { color: var(--fg); }
.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__actions .btn { padding: 8px 20px; font-size: 0.95rem; }
.nav__console { text-decoration: none; font-weight: 700; color: var(--color-global); }
.nav__locale {
  text-decoration: none;
  font-weight: 700;
  color: var(--fg);
  border: 1px solid hsl(0 0% 100% / 0.25);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.85rem;
  background: hsl(0 0% 100% / 0.06);
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__console { display: none; }
}

/* ---------- LP-02 hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 104px 128px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
}
.hero__eyebrow {
  color: var(--color-global);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-block-end: 12px;
}
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.hero__subtitle {
  font-size: 1.12rem;
  color: var(--muted-fg);
  max-inline-size: 34em;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-block: 26px 22px; }
.hero__chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
}
.hero__chips li {
  border: 1px solid hsl(193 99% 57% / 0.4);
  color: var(--fg);
  background: hsl(193 99% 57% / 0.08);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-size: 0.9rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Agent-definition card + classification toggle (wrapped in .ai-ring) */

.hero__card-wrap { position: relative; }

.agent-card {
  margin: 0;
  background: hsl(207 60% 7% / 0.82);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border: 1.5px solid hsl(193 99% 57% / 0.5);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 250ms ease;
  box-shadow: 0 24px 70px hsl(0 0% 0% / 0.5);
}
.agent-card[data-state='secret'] { border-color: var(--color-sovereign); }

.agent-card__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: hsl(0 0% 100% / 0.06);
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.12);
  font-size: 0.85rem;
}
.agent-card__filename {
  font-family: var(--font-mono);
  color: hsl(0 0% 100% / 0.75);
}
.agent-card__toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}
.agent-card__toggle-label { color: hsl(0 0% 100% / 0.7); font-weight: 700; }
.agent-card__toggle {
  display: inline-flex;
  border: 1px solid hsl(0 0% 100% / 0.3);
  border-radius: var(--radius-pill);
  background: hsl(0 0% 0% / 0.3);
  padding: 2px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
}
.agent-card__opt {
  padding: 2px 12px;
  border-radius: var(--radius-pill);
  color: hsl(0 0% 100% / 0.6);
  font-weight: 700;
  transition: background 250ms ease, color 250ms ease, box-shadow 250ms ease;
}
/* liquid-glass "bubble" on the active option */
.agent-card[data-state='public'] .agent-card__opt[data-opt='public'],
.agent-card[data-state='secret'] .agent-card__opt[data-opt='secret'] {
  background:
    radial-gradient(120% 100% at 50% 0%, hsl(0 0% 100% / 0.55) 0%, hsl(0 0% 100% / 0.22) 42%, hsl(0 0% 100% / 0.06) 70%),
    linear-gradient(180deg, hsl(0 0% 100% / 0.18), hsl(0 0% 100% / 0) 60%);
  box-shadow:
    inset 0 1.5px 1px -0.5px hsl(0 0% 100% / 0.95),
    inset 0 -8px 14px -8px hsl(0 0% 100% / 0.75),
    inset 0 0 0 1px hsl(0 0% 100% / 0.45);
}
.agent-card[data-state='public'] .agent-card__opt[data-opt='public'] { color: var(--color-global); }
.agent-card[data-state='secret'] .agent-card__opt[data-opt='secret'] { color: var(--color-sovereign); }
.agent-card__copy {
  border: 0;
  background: none;
  color: hsl(0 0% 100% / 0.6);
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}
.agent-card__copy:hover { color: #fff; }

/* Code always LTR, start(=left in LTR block)-aligned, in both locales */
.agent-card pre {
  margin: 0;
  padding: 18px 20px 22px;
  direction: ltr;
  text-align: start;
  font-size: 0.82rem;
  line-height: 1.75;
  color: #DDE7F5;
  overflow-x: auto;
  tab-size: 2;
}
.agent-card .yaml-comment { color: hsl(0 0% 100% / 0.42); }
.agent-card .yaml-key { color: var(--color-global); }
.agent-card[data-state='secret'] .yaml-accent { color: var(--color-sovereign); }
.agent-card[data-state='public'] .yaml-accent { color: var(--color-global); }
.agent-card .is-hidden { display: none; }
.agent-card .line-enter { animation: lab-fade-in 250ms ease; }
@keyframes lab-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- LP-03 trust strip ---------- */

.trust { padding-block: 44px 28px; }
.trust p {
  text-align: center;
  color: var(--muted-fg);
  margin: 0;
}

/* ---------- LP-04 positioning strip ---------- */

.position .container { max-inline-size: 880px; }
.position h2 { font-size: clamp(1.8rem, 3.8vw, 2.5rem); }
.position p { font-size: 1.15rem; color: var(--muted-fg); margin: 0; }

/* ---------- LP-05 capabilities ---------- */

.capabilities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-block-start: 34px;
}
@media (max-width: 960px) { .capabilities__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .capabilities__grid { grid-template-columns: 1fr; } }

.cap-card {
  padding: 26px 24px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.cap-card:hover { transform: translateY(-4px); }
.cap-card h3 { color: var(--fg); }
.cap-card p { margin: 0; font-size: 0.98rem; color: var(--muted-fg); }
/* soft palette accent per card — 1px inner edge tint; Teal reserved for sovereignty */
.cap-card--brand { box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.3), inset 0 0 0 1px hsl(265 70% 60% / 0.35), var(--shadow-glass); }
.cap-card--brand:hover { box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.3), inset 0 0 0 1px hsl(265 70% 60% / 0.55), 0 18px 44px -14px hsl(265 64% 46% / 0.5); }
.cap-card--global { box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.3), inset 0 0 0 1px hsl(193 99% 57% / 0.3), var(--shadow-glass); }
.cap-card--global:hover { box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.3), inset 0 0 0 1px hsl(193 99% 57% / 0.5), 0 18px 44px -14px hsl(193 99% 57% / 0.4); }
.cap-card--dark { box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.3), inset 0 0 0 1px hsl(0 0% 100% / 0.12), var(--shadow-glass); }
.cap-card--dark:hover { box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.3), inset 0 0 0 1px hsl(0 0% 100% / 0.22), 0 18px 44px -14px hsl(0 0% 0% / 0.6); }

/* ---------- LP-06 sovereignty ---------- */

.sovereignty__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 960px) { .sovereignty__inner { grid-template-columns: 1fr; } }
.sovereignty__points { display: grid; gap: 18px; margin-block-start: 26px; }
.sov-point h3 { color: var(--color-global); margin-block-end: 4px; }
.sov-point p { margin: 0; color: var(--muted-fg); }

.sov-diagram { padding: 18px; }
.sov-diagram svg { display: block; inline-size: 100%; block-size: auto; }
.sov-diagram .d-node {
  fill: hsl(207 50% 10% / 0.7);
  stroke: hsl(0 0% 100% / 0.25);
  stroke-width: 1.5;
}
.sov-diagram .d-gate { stroke: var(--color-sovereign); fill: hsl(168 84% 41% / 0.10); }
.sov-diagram .d-tier {
  fill: hsl(193 99% 57% / 0.08);
  stroke: hsl(193 99% 57% / 0.45);
  stroke-width: 1;
}
.sov-diagram .d-tier--sov { fill: hsl(168 84% 41% / 0.16); stroke: var(--color-sovereign); stroke-width: 1.5; }
.sov-diagram .d-label { font-family: var(--font-sans); font-size: 13px; font-weight: 700; fill: var(--fg); }
.sov-diagram .d-label--tier { font-size: 11.5px; font-weight: 400; }
.sov-diagram .d-label--sov { fill: var(--color-sovereign); font-weight: 700; }
.sov-diagram .d-edge { stroke: hsl(0 0% 100% / 0.3); stroke-width: 1.5; fill: none; }
.sov-diagram .d-route { transition: stroke 200ms ease, stroke-width 200ms ease; }
.sov-diagram:hover .d-route,
.sov-diagram:focus-within .d-route { stroke: var(--color-sovereign); stroke-width: 2.5; }
.sov-diagram .d-packet { filter: drop-shadow(0 0 6px hsl(168 84% 50% / 0.9)); }

/* ---------- LP-07 ownership ---------- */

.ownership .container { max-inline-size: 880px; }
.ownership p { color: var(--muted-fg); }
.ownership__list { list-style: none; display: grid; gap: 12px; margin-block-start: 22px; }
.ownership__list li { padding-inline-start: 30px; position: relative; }
.ownership__list li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  color: var(--color-sovereign);
  font-weight: 800;
}

/* ---------- LP-08 path + workflow travel animation ---------- */

.path .container { max-inline-size: 940px; }
.path .container > p { color: var(--muted-fg); }

.workflow-track { margin-block: 26px 6px; }
.workflow-track svg { display: block; inline-size: 100%; block-size: auto; overflow: visible; }
.workflow-track .wf-line {
  stroke: hsl(0 0% 100% / 0.18);
  stroke-width: 2;
  fill: none;
}
.workflow-track .wf-flow {
  stroke: url(#wfFlowGrad);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 24 32;
}
@media (prefers-reduced-motion: no-preference) {
  .workflow-track .wf-flow { animation: wf-dash 2.2s linear infinite; }
}
@keyframes wf-dash { to { stroke-dashoffset: -56; } }
.workflow-track .wf-node {
  fill: hsl(207 50% 10% / 0.9);
  stroke: hsl(265 70% 60% / 0.6);
  stroke-width: 2;
}
.workflow-track .wf-node--last { stroke: var(--color-sovereign); }
.workflow-track .wf-num {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  fill: var(--fg);
}
@media (max-width: 720px) { .workflow-track { display: none; } }

.path__steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-block: 14px 30px;
}
@media (max-width: 820px) { .path__steps { grid-template-columns: 1fr; } }
.path__steps li {
  counter-increment: step;
  padding: 18px;
  font-weight: 700;
}
.path__steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  inline-size: 28px;
  block-size: 28px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  font-size: 0.9rem;
  margin-block-end: 10px;
}

/* ---------- LP-09 governance ---------- */

.governance { background: hsl(210 100% 15% / 0.35); }
.governance__intro { color: var(--muted-fg); max-inline-size: 42em; }
.governance__table { display: grid; margin-block-start: 28px; }
.gov-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 14px 18px;
  margin-block-end: 8px;
}
@media (max-width: 720px) { .gov-row { grid-template-columns: 1fr; gap: 4px; } }
.gov-row__what { font-weight: 700; }
.gov-row__arrow { color: var(--color-global); font-weight: 800; }
.gov-row__why { color: var(--muted-fg); }

/* ---------- LP-10 pricing ---------- */

.pricing .container { max-inline-size: 940px; }
.pricing__fallback {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-global);
}
.pricing__philosophy {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  margin-block: 20px;
}
.pricing__philosophy li {
  border: 1px solid hsl(265 70% 60% / 0.45);
  background: hsl(265 64% 46% / 0.12);
  border-radius: var(--radius-pill);
  padding: 4px 16px;
  font-weight: 700;
  font-size: 0.95rem;
}
.pricing__coin { font-weight: 700; }
.pricing h3 { margin-block-start: 34px; }
.price-table { inline-size: 100%; border-collapse: collapse; margin-block: 14px; }
.price-table th, .price-table td {
  padding: 12px 16px;
  text-align: start;
  border-block-end: 1px solid hsl(0 0% 100% / 0.10);
}
.price-table th { font-size: 0.9rem; color: var(--muted-fg); }
/* Teal = sovereignty: the In-Kingdom row and nothing else */
.price-table .row--sov {
  background: hsl(168 84% 41% / 0.14);
  border-inline-start: 3px solid var(--color-sovereign);
}
.price-table .row--sov td:first-child { font-weight: 800; }
.badge--sov {
  display: inline-block;
  background: var(--color-sovereign);
  color: var(--color-dark);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 1px 10px;
  margin-inline-start: 8px;
}
.pricing__note { font-size: 0.92rem; color: var(--muted-fg); }
.pricing__cta-row { margin-block-start: 30px; }
.price-table td[data-num], .price-table th[data-num] { font-family: var(--font-mono); font-size: 0.9rem; }

/* ---------- LP-11 FAQ ---------- */

.faq .container { max-inline-size: 820px; }
.faq__item { margin-block-end: 10px; overflow: hidden; }
.faq__item h3 { margin: 0; font-size: 1rem; }
.faq__q {
  inline-size: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--fg);
  cursor: pointer;
  text-align: start;
}
.faq__chevron { transition: transform 200ms ease; flex-shrink: 0; }
.faq__q[aria-expanded='true'] .faq__chevron { transform: rotate(180deg); }
.faq__panel { padding: 0 20px 18px; }
.faq__panel p { margin: 0; color: var(--muted-fg); }

/* ---------- LP-12 CTA band + footer ---------- */

.cta-band { padding-block: 84px; }
.cta-band__panel {
  padding: 56px 40px;
  text-align: center;
  position: relative;
}
.cta-band__panel p { color: var(--muted-fg); font-size: 1.1rem; }
.cta-band__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-block-start: 24px; }

.footer {
  background: hsl(203 74% 4% / 0.75);
  border-block-start: 1px solid hsl(0 0% 100% / 0.08);
  color: var(--muted-fg);
  padding-block: 56px 40px;
  font-size: 0.95rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 800;
  font-size: 1.1rem;
}
.footer__brand img { block-size: 32px; inline-size: 32px; }
.footer__col h3 { color: var(--fg); font-size: 0.95rem; margin-block-end: 12px; }
.footer__col ul { list-style: none; display: grid; gap: 8px; }
.footer__col a { color: var(--muted-fg); text-decoration: none; }
.footer__col a:hover { color: var(--fg); }
.footer__copyright {
  margin-block-start: 40px;
  padding-block-start: 20px;
  border-block-start: 1px solid hsl(0 0% 100% / 0.08);
  color: hsl(205 22% 68% / 0.7);
}

/* ---------- GlareHover (React Bits port, CSS-only) ---------- */

.glare-hover {
  position: relative;
  overflow: hidden;
  --gh-rgba: rgba(255, 255, 255, 0.10);
  --gh-angle: -35deg;
  --gh-duration: 700ms;
  --gh-size: 280%;
}
.glare-hover::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(var(--gh-angle),
    hsla(0,0%,0%,0) 60%, var(--gh-rgba) 70%, hsla(0,0%,0%,0), hsla(0,0%,0%,0) 100%);
  background-size: var(--gh-size) var(--gh-size), 100% 100%;
  background-repeat: no-repeat;
  background-position: -100% -100%, 0 0;
  transition: background-position var(--gh-duration) ease;
}
.glare-hover:hover::before,
.glare-hover:focus-within::before {
  background-position: 100% 100%, 0 0;
}
/* Mirror the sheen direction in RTL */
[dir='rtl'] .glare-hover { --gh-angle: 35deg; }
.glare-hover--light { --gh-rgba: rgba(255, 255, 255, 0.14); }
@media (prefers-reduced-motion: reduce) {
  .glare-hover::before { transition: none; }
}

/* ---------- Scroll-reveal (JS adds .is-visible; no-JS pages skip entirely) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 600ms ease, transform 600ms ease;
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .capabilities__grid .reveal:nth-child(2),
  .js .path__steps .reveal:nth-child(2) { transition-delay: 90ms; }
  .js .capabilities__grid .reveal:nth-child(3),
  .js .path__steps .reveal:nth-child(3) { transition-delay: 180ms; }
  .js .capabilities__grid .reveal:nth-child(4),
  .js .path__steps .reveal:nth-child(4) { transition-delay: 270ms; }
  .js .capabilities__grid .reveal:nth-child(5) { transition-delay: 360ms; }
  .js .capabilities__grid .reveal:nth-child(6) { transition-delay: 450ms; }
}

/* ---------- GradualBlur fallback ---------- */

@supports not (backdrop-filter: blur(1px)) {
  .gradual-blur { display: none; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .btn, .agent-card, .agent-card__opt, .faq__chevron, .sov-diagram .d-route, .cap-card { transition: none; }
  .agent-card .line-enter { animation: none; }
  .cap-card:hover { transform: none; }
}

/* ---------- No-JS degradation ---------- */

/* Policy line: visible statically without JS; with JS, main.js manages it from the
   default عام state. FAQ panels likewise stay open without JS. */
.js .agent-card__policy { display: none; }
.js .agent-card__policy.is-shown { display: inline; }

/* ---------- About-the-app strip (OAuth branding verification: explicit purpose + Limited Use disclosure) ---------- */

.about-app { padding-block: 8px 56px; }
.about-app .container { max-inline-size: 900px; }
.about-app__panel { padding: 24px 28px; font-size: 0.93rem; color: var(--muted-fg); }
.about-app__panel p { margin: 0; }
.about-app__panel strong { color: var(--fg); }
.about-app__panel a { color: var(--color-global); }
