/**
 * OSUS.AI — Experience Layer
 * Award-grade interaction details. Loaded after foundation.css.
 * All motion is disabled automatically under prefers-reduced-motion.
 */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --panel: #14141c;
  --panel-border: rgba(227, 197, 104, 0.28);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ---------- Header behaviour ---------- */
.main-header {
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.main-header.is-scrolled {
  background: rgba(8, 8, 13, 0.92) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* ---------- Reading progress ---------- */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 99998;
  background: linear-gradient(90deg, #F3DFA0, #D4AF37, #E58CAC);
  box-shadow: 0 0 14px rgba(227, 197, 104, 0.6);
  pointer-events: none;
}

/* ---------- Back to top ---------- */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 88px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--gold);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s var(--ease-out);
  z-index: 99996;
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--gold); color: #0A0A0F; }

/* ---------- Command palette ---------- */
.cmd-overlay {
  position: fixed;
  inset: 0;
  z-index: 100010;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 20px 20px;
  background: rgba(4, 4, 8, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.cmd-overlay.is-open { opacity: 1; visibility: visible; }
.cmd-dialog {
  width: min(680px, 100%);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform: translateY(-14px) scale(0.985);
  transition: transform 0.28s var(--ease-out);
}
.cmd-overlay.is-open .cmd-dialog { transform: none; }
.cmd-input {
  width: 100%;
  padding: 20px 24px;
  border: 0;
  border-bottom: 1px solid var(--panel-border);
  background: transparent;
  color: var(--light);
  font-size: 1.05rem;
  outline: none;
}
.cmd-input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.cmd-input::placeholder { color: var(--gray); }
.cmd-results { max-height: 52vh; overflow-y: auto; padding: 10px; }
.cmd-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--light);
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.cmd-item:hover, .cmd-item.is-active {
  background: rgba(227, 197, 104, 0.12);
  border-color: var(--panel-border);
}
.cmd-item i { color: var(--gold); width: 20px; text-align: center; }
.cmd-item small { margin-left: auto; color: var(--gray); }
.cmd-hint {
  padding: 10px 24px 16px;
  font-size: 0.75rem;
  color: var(--gray);
  border-top: 1px solid var(--panel-border);
}

/* ---------- Focus mode (AAA contrast / low distraction) ---------- */
html.focus-mode .arabic-pattern-bg,
html.focus-mode .hero-section::before,
html.focus-mode .hero-design-pattern,
html.focus-mode .geometric-pattern { display: none !important; }
html.focus-mode body { background: #050508 !important; }
html.focus-mode p, html.focus-mode li, html.focus-mode td, html.focus-mode th {
  color: #FFFFFF !important;
}
.focus-toggle {
  min-height: 44px;
  min-width: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
}

/* ---------- Agent launcher + panel ---------- */
.agent-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100000;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #E3C568;
  background: linear-gradient(135deg, #F3DFA0, #D4AF37);
  color: #0A0A0F !important;
  font-weight: 800;
  font-size: 0.875rem;
  cursor: pointer;
  box-shadow: 0 12px 36px rgba(227, 197, 104, 0.3);
  text-decoration: none;
}
.agent-launcher:hover { filter: brightness(1.08); }
.agent-launcher i { font-size: 1.05rem; }

.agent-panel {
  position: fixed;
  right: 20px;
  bottom: 84px;
  width: min(430px, calc(100vw - 40px));
  max-height: min(76vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.65);
  z-index: 100001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.98);
  transition: all 0.3s var(--ease-out);
  overflow: hidden;
}
.agent-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.agent-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--panel-border);
}
.agent-head strong { font-family: var(--font-display); font-size: 1.15rem; }
.agent-head .agent-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--emerald); box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.15);
}
.agent-head button {
  margin-left: auto;
  min-width: 40px; min-height: 40px;
  background: transparent; border: 0; color: var(--gray); cursor: pointer;
}
.agent-log {
  padding: 18px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.agent-msg {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.agent-msg.user { background: rgba(227, 197, 104, 0.14); border-color: var(--panel-border); }
.agent-msg.step { border-left: 3px solid var(--gold); }
.agent-msg.approval { border-left: 3px solid var(--warning); }
.agent-msg.result { border-left: 3px solid var(--emerald); }
.agent-msg small {
  display: block; color: var(--gray); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px;
}
.agent-actions { display: flex; gap: 10px; margin-top: 6px; }
.agent-actions button {
  flex: 1; min-height: 42px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--gold); background: var(--gold); color: #0A0A0F; font-weight: 700;
}
.agent-actions button.ghost { background: transparent; color: var(--gold); }

/* Provider settings (BYOK) */
.agent-settings {
  margin: 0 14px 8px;
  padding: 12px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 8px;
  font-size: 0.78rem;
}
.agent-settings label { display: grid; gap: 4px; color: var(--gray); }
.agent-settings select, .agent-settings input {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: #0d0d13;
  color: var(--light);
  padding: 0 10px;
}
.agent-settings .as-note { color: var(--gray); line-height: 1.5; }
.agent-settings .as-note i { color: var(--warning); margin-right: 6px; }
.agent-settings .as-clear {
  justify-self: start;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--panel-border);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
}
.agent-settings .as-clear:hover { background: rgba(227, 197, 104, 0.12); }
.agent-form {
  display: flex; gap: 8px; padding: 14px;
  border-top: 1px solid var(--panel-border);
}
.agent-form input {
  flex: 1; min-height: 44px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--panel-border); background: #0d0d13; color: var(--light);
}
.agent-form button {
  min-width: 48px; min-height: 44px; border-radius: 12px;
  border: 0; background: var(--gold); color: #0A0A0F; cursor: pointer;
}

/* ---------- Inline sample charts ---------- */
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 160px;
  padding: 16px;
}
.mini-bar {
  flex: 1;
  background: linear-gradient(180deg, #F3DFA0, #D4AF37);
  border-radius: 8px 8px 4px 4px;
  min-height: 12px;
  transition: height 0.6s var(--ease-out);
}
.mini-caption { text-align: center; color: var(--gray); font-size: 0.78rem; padding: 8px; }
.chart-loading { text-align: center; color: var(--gray); padding: 24px; }
.chart-loading i { color: var(--gold); margin-bottom: 10px; }

/* Live search suggestions: honour both .show and .active states */
.search-suggestions.show, .search-suggestions.active { display: block !important; }

/* ---------- Landing: verified scarcity and differentiation ---------- */
.evidence-note {
  width: 100%;
  margin-top: 14px !important;
  font-size: 0.74rem;
  color: var(--gray);
}
.evidence-note a { color: var(--gold-light); text-decoration: underline; }
.novelty-band { padding: 28px 0 34px; border-block: 1px solid rgba(227, 197, 104, 0.18); background: rgba(10, 10, 15, 0.72); }
.scarcity-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  padding: 16px 20px;
  border: 1px solid rgba(227, 197, 104, 0.3);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(227, 197, 104, 0.12), rgba(139, 21, 56, 0.08));
  font-size: 0.86rem;
}
.scarcity-strip span { color: var(--aaa-muted); }
.scarcity-strip i { color: var(--gold); margin-right: 8px; }
.scarcity-strip strong { color: var(--gold-light); }
.novelty-copy { max-width: 900px; margin-top: 28px; }
.novelty-copy .kicker { color: var(--gold); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; }
.novelty-copy h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 10px 0 12px; }
.novelty-copy p { color: var(--aaa-muted); line-height: 1.7; }
.novelty-confidence { border-left: 3px solid var(--warning); padding-left: 16px; font-size: 0.88rem; }
.novelty-confidence a { color: var(--gold-light); text-decoration: underline; }

/* ---------- Breadcrumb ---------- */
.breadcrumb-strip {
  border-bottom: 1px solid rgba(227, 197, 104, 0.12);
  background: rgba(10, 10, 15, 0.6);
}
.breadcrumb-strip .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 42px;
  padding-block: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--gray);
}
.breadcrumb-strip a { color: var(--gray); text-decoration: none; }
.breadcrumb-strip a:hover { color: var(--gold) !important; }
.breadcrumb-strip i { color: var(--gold-dark); font-size: 0.7rem; }
.breadcrumb-strip [aria-current='page'] { color: var(--gold-light); }

/* ---------- Editorial details ---------- */
.section-header h2::before {
  content: '';
  display: block;
  width: 46px;
  height: 2px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.card, .product-card, .model-card, .feature-card, .value-card, .ai-tool-card,
.pricing-card, .plan-card, .contractor-card {
  transition: transform 0.45s var(--ease-out), border-color 0.45s ease, box-shadow 0.45s ease !important;
}
.card:hover, .product-card:hover, .model-card:hover, .feature-card:hover,
.value-card:hover, .ai-tool-card:hover, .pricing-card:hover, .plan-card:hover,
.contractor-card:hover {
  transform: translateY(-6px);
  border-color: rgba(227, 197, 104, 0.55) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.main-footer a {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease-out), color 0.3s ease;
}
.main-footer a:hover { background-size: 100% 1px; color: var(--gold) !important; }
::selection { background: var(--gold); color: #0A0A0F; }

/* Fine grain gives dark surfaces a printed, premium feel */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 99994;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(circle, rgba(227, 197, 104, 0.16), transparent 68%);
  transition: opacity 0.4s ease;
  transform: translate3d(calc(var(--gx, -1000px) - 50%), calc(var(--gy, -1000px) - 50%), 0);
  will-change: transform, opacity;
}
.cursor-glow.is-active { opacity: 1; }

/* ---------- Page transition ---------- */
.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 100009;
  background: #0A0A0F;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.page-wipe.is-active { opacity: 0.82; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .cmd-dialog, .agent-panel, .back-top, .page-wipe, .main-header, .team-detail { transition: none !important; }
  .team-detail.is-swapping { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
  .agent-launcher { padding: 0 14px; font-size: 0.8rem; }
  .agent-panel { right: 12px; bottom: 78px; width: calc(100vw - 24px); }
  .back-top { right: 16px; bottom: 84px; }
}

.demo-disclaimer { padding: 12px 16px; border-left: 3px solid var(--warning); background: rgba(255,255,255,.03); color: var(--gray); font-size: .82rem; margin-bottom: 18px; }
.demo-disclaimer i { color: var(--warning); margin-right: 8px; }
.global-demo-disclaimer { max-width: 1100px; margin: 16px auto 0; text-align: center; border-left: 0; border-top: 1px solid rgba(227,197,104,.18); padding-top: 12px; }

/* Landing page: bounded-agent team explorer */
.team-flow-section { padding: 88px 0 72px; border-top: 1px solid rgba(227,197,104,.14); border-bottom: 1px solid rgba(227,197,104,.14); background: radial-gradient(circle at 85% 15%, rgba(227,197,104,.08), transparent 45%), #0B0B11; }
.team-flow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 26px 0 20px; }
.team-node { display: flex; flex-direction: column; gap: 4px; min-height: 116px; padding: 16px; text-align: left; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.025); color: var(--light); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.team-node:hover, .team-node:focus-visible { border-color: var(--node, var(--gold)); transform: translateY(-2px); outline: none; }
.team-node[aria-pressed="true"] { border-color: var(--node, var(--gold)); background: rgba(227,197,104,.09); box-shadow: inset 0 0 0 1px rgba(227,197,104,.12); }
.team-node .team-index { color: var(--node, var(--gold)); font-family: var(--font-display); font-size: 1.4rem; line-height: 1; }
.team-node strong { font-size: 1rem; }
.team-node small { color: var(--gray); font-size: .76rem; }
.team-detail { min-height: 168px; padding: 24px; border: 1px solid rgba(227,197,104,.26); border-radius: 16px; background: rgba(255,255,255,.02); transition: opacity .18s ease, transform .18s ease; }
.team-detail.is-swapping { opacity: 0; transform: translateY(4px); }
.team-detail h3 { margin: 0 0 6px; font-family: var(--font-display); color: var(--gold-light); font-size: 1.5rem; }
.team-detail > p { margin: 0 0 16px; color: var(--aaa-muted); }
.team-detail dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 24px; margin: 0; }
.team-detail dt { color: var(--gold); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.team-detail dd { margin: 0; color: var(--aaa-muted); font-size: .86rem; }
.team-proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 22px; }
.team-proof a { display: block; padding: 16px; border-radius: 12px; border: 1px solid rgba(227,197,104,.2); background: rgba(255,255,255,.02); text-decoration: none; transition: border-color .2s, background .2s; }
.team-proof a:hover, .team-proof a:focus-visible { border-color: var(--gold); background: rgba(227,197,104,.07); outline: none; }
.team-proof strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--gold); line-height: 1; }
.team-proof span { color: var(--gray); font-size: .76rem; }
@media (max-width: 620px) { .team-flow-section { padding: 64px 0; } }

/* Submission pack: sticky contents and artifact map */
.pack-toc { position: sticky; top: 64px; z-index: 40; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; background: rgba(10,10,15,.93); border-bottom: 1px solid rgba(227,197,104,.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); scrollbar-width: thin; }
.pack-toc a { flex: 0 0 auto; padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(227,197,104,.2); color: var(--gray); font-size: .76rem; text-decoration: none; white-space: nowrap; transition: color .2s, border-color .2s, background .2s; }
.pack-toc a:hover, .pack-toc a:focus-visible { color: var(--gold-light); border-color: var(--gold); outline: none; }
.pack-toc a.is-active { color: var(--gold); border-color: var(--gold); background: rgba(227,197,104,.12); }
.artifact-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 18px; }
.artifact-node { display: block; padding: 18px; border: 1px solid rgba(227,197,104,.24); border-radius: 14px; background: rgba(255,255,255,.02); text-decoration: none; transition: border-color .2s, background .2s, transform .2s; }
.artifact-node:hover, .artifact-node:focus-visible { border-color: var(--gold); background: rgba(227,197,104,.07); transform: translateY(-2px); outline: none; }
.artifact-node i { color: var(--gold); display: block; margin-bottom: 10px; }
.artifact-node strong { display: block; color: var(--gold-light); font-size: .96rem; margin-bottom: 4px; }
.artifact-node span { color: var(--gray); font-size: .78rem; line-height: 1.5; }
.nav-soon { display: inline-flex; align-items: center; gap: 8px; color: var(--gray); opacity: .72; cursor: default; }
.nav-soon small { color: var(--gold); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; }

/* Image polish: stable loading surface and restrained card hover */
/* Dubai luxury cues: sand, pearl and a restrained geometric motif */
:root { --dubai-sand: #E8D8B0; --dubai-pearl: #F5EFE2; --dubai-emerald: #0E3B34; }
.global-bar, .studio-hero::before, .agent-hero::before { background-image: url(../images/dubai-geometry.svg); background-repeat: repeat; background-size: 170px 170px; }
.global-bar { background-color: #07070C; }

/* Global bilingual navigation shell */
.global-bar { position: sticky; top: 0; z-index: 1002; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 42px; padding: 0 clamp(14px, 4vw, 48px); background-color: #07070C; border-bottom: 1px solid rgba(227,197,104,.24); font-size: .76rem; }
.global-bar .gb-brand { color: var(--gold); font-family: var(--font-display); font-size: 1rem; font-weight: 700; text-decoration: none; letter-spacing: .04em; white-space: nowrap; }
.gb-welcome, .ar-welcome { display: none; color: var(--dubai-pearl); font-size: .8rem; white-space: nowrap; }
html[lang="ar"] .gb-welcome { display: inline; }
html[lang="ar"] .ar-welcome { display: block; margin-bottom: 12px; font-family: 'Noto Sans Arabic', Tahoma, sans-serif; font-size: 1rem; color: var(--gold-light); }
.global-bar .gb-links { display: flex; align-items: center; gap: clamp(8px, 2vw, 20px); overflow-x: auto; scrollbar-width: none; }
.global-bar .gb-links::-webkit-scrollbar { display: none; }
.global-bar a:not(.gb-brand) { color: var(--gray); text-decoration: none; white-space: nowrap; }
.global-bar a:not(.gb-brand):hover, .global-bar a:not(.gb-brand):focus-visible { color: var(--gold-light); outline: none; }
.gb-lang { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid rgba(227,197,104,.3); border-radius: 999px; }
.gb-cta { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold-light) !important; font-weight: 800; text-decoration: none; white-space: nowrap; }
.gb-cta:hover, .gb-cta:focus-visible { background: rgba(227,197,104,.14); outline: none; }
.gb-lang button { min-width: 38px; min-height: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--gray); font-size: .7rem; font-weight: 800; cursor: pointer; }
.gb-lang button.is-active { background: var(--gold); color: #0A0A0F; }
body.has-global-bar .main-header, body.has-global-bar .under-global-bar { top: 42px; }
body.has-global-bar .under-global-bar { height: calc(100vh - 42px); }
.global-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-top: 14px; margin-top: 14px; border-top: 1px solid rgba(227,197,104,.16); }
.global-footer-links strong { color: var(--gold-light); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.global-footer-links a { color: var(--gray); font-size: .76rem; text-decoration: none; }
.global-footer-links a:hover, .global-footer-links a:focus-visible { color: var(--gold-light); outline: none; }
html[lang="ar"] body { font-family: 'Noto Sans Arabic', Tahoma, Arial, sans-serif; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] .hero-title { font-family: 'Noto Sans Arabic', Tahoma, Arial, sans-serif; letter-spacing: 0; }
html[dir="rtl"] .global-bar, html[dir="rtl"] .global-footer-links { direction: rtl; }
html[dir="rtl"] .read-progress { left: auto; right: 0; transform-origin: right; }
html[dir="rtl"] .back-top, html[dir="rtl"] .agent-launcher, html[dir="rtl"] .agent-panel { right: auto; left: 24px; }
html[dir="rtl"] .back-top { left: 20px; }
html[dir="rtl"] .elim li, html[dir="rtl"] .note, html[dir="rtl"] .studio-summary { border-left: 0; border-right: 3px solid var(--gold); padding-left: 16px; padding-right: 16px; }
html[dir="rtl"] .studio-summary { padding-left: 20px; padding-right: 20px; }
html[dir="rtl"] [style*="text-align: left"] { text-align: right !important; }
html[dir="rtl"] .studio-hero .container { text-align: right; }
html[dir="rtl"] .studio-option { text-align: right; }
html[lang="ar"] .eyebrow, html[lang="ar"] .kicker, html[lang="ar"] .competition-tag { text-transform: none !important; }
html[lang="ar"] h1, html[lang="ar"] .hero-title { line-height: 1.35 !important; }
@media (max-width: 620px) { .global-bar .gb-links { gap: 12px; } .global-bar .gb-brand { font-size: .9rem; } }

img { background-color: #15151E; }
.bnpl-text-logo { display: inline-flex; align-items: center; justify-content: center; min-width: 92px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.05); color: var(--gold-light); font-weight: 800; font-size: .95rem; letter-spacing: -.02em; }

/* Project Studio: guided brief, comparison slider, deliverables */
.studio-hero { padding: 76px 0 36px; position: relative; overflow: hidden; }
.studio-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 15% 20%, rgba(227,197,104,.14), transparent 45%), radial-gradient(circle at 85% 70%, rgba(139,21,56,.14), transparent 50%); pointer-events: none; }
.studio-hero .container { position: relative; z-index: 1; }
.studio-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 24px 0 18px; }
.studio-step { display: none; padding: 22px; border: 1px solid rgba(227,197,104,.24); border-radius: 16px; background: rgba(255,255,255,.02); }
.studio-step.is-active { display: block; animation: studioStepIn .28s var(--ease-out) both; }
@keyframes studioStepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .studio-step.is-active { animation: none; } }
.studio-step h3 { margin: 0 0 6px; color: var(--gold-light); font-size: 1.1rem; }
.studio-step p { margin: 0 0 16px; color: var(--gray); font-size: .84rem; }
.studio-options { display: flex; flex-wrap: wrap; gap: 10px; }
.studio-option { padding: 11px 16px; border-radius: 10px; border: 1px solid rgba(227,197,104,.3); background: rgba(255,255,255,.02); color: var(--light); cursor: pointer; transition: background .2s, border-color .2s; }
.studio-option:hover, .studio-option:focus-visible { border-color: var(--gold); outline: none; }
.studio-option.is-selected { background: rgba(227,197,104,.16); border-color: var(--gold); color: var(--gold-light); }
.studio-summary { padding: 16px 20px; border-left: 3px solid var(--gold); background: rgba(227,197,104,.07); border-radius: 0 12px 12px 0; color: var(--aaa-muted); font-size: .9rem; }
.studio-summary strong { color: var(--gold-light); }
.studio-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.compare { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid rgba(227,197,104,.25); aspect-ratio: 16 / 9; background: #111119; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .compare-after { clip-path: inset(0 0 0 50%); transition: clip-path .1s linear; }
.compare-label { position: absolute; top: 14px; padding: 6px 11px; border-radius: 999px; background: rgba(6,6,10,.78); color: var(--gold-light); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.compare-label.before { left: 14px; }
.compare-label.after { right: 14px; }
.compare input[type="range"] { position: absolute; inset: auto 0 12px; width: calc(100% - 32px); margin: 0 16px; accent-color: var(--gold); cursor: ew-resize; }
.deliver-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 18px; }
.deliver-card { padding: 20px; border: 1px solid rgba(227,197,104,.22); border-radius: 14px; background: rgba(255,255,255,.02); text-decoration: none; display: block; transition: border-color .2s, background .2s; }
.deliver-card:hover, .deliver-card:focus-visible { border-color: var(--gold); background: rgba(227,197,104,.06); outline: none; }
.deliver-card i { color: var(--gold); font-size: 1.3rem; }
.deliver-card strong { display: block; color: var(--gold-light); margin: 10px 0 4px; }
.deliver-card span { color: var(--gray); font-size: .8rem; }
@media (prefers-reduced-motion: reduce) { .compare .compare-after { transition: none; } }
.model-card img, .product-card img, .feature-card img, .developer-card img { transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .45s ease; }
.model-card:hover img, .product-card:hover img, .feature-card:hover img, .developer-card:hover img { transform: scale(1.045); filter: saturate(1.06); }
@media (prefers-reduced-motion: reduce) { .model-card img, .product-card img, .feature-card img, .developer-card img { transition: none; } .model-card:hover img, .product-card:hover img, .feature-card:hover img, .developer-card:hover img { transform: none; } }

/* Verified scarcity context, added above the site header */
.competition-strip { position: relative; z-index: 45; background: #07070C; border-top: 1px solid rgba(227,197,104,.3); border-bottom: 1px solid rgba(227,197,104,.16); color: var(--dubai-pearl); font-size: .7rem; font-weight: 700; letter-spacing: .02em; }
.competition-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; padding: 8px 0; }
.competition-strip .competition-tag { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.competition-strip .competition-footnote { color: var(--gray); font-weight: 500; }
.competition-strip a { color: var(--gold-light); font-weight: 800; text-decoration: underline; }

@keyframes heroDrift { from { transform: translate(0,0) scale(1); } to { transform: translate(-3%,2%) scale(1.08); } }
.agent-hero::before { animation: heroDrift 18s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .agent-hero::before { animation: none; } }

/* Mobile containment: stop decorative and desktop-only layouts forcing horizontal scroll */
html, body { max-width: 100%; overflow-x: hidden; }
@media (max-width: 820px) {
  .container, main, section, .api-content, .results-area, .register-info, .register-form { min-width: 0 !important; max-width: 100% !important; }
  .api-content pre, .code-content pre, pre { max-width: 100%; overflow-x: auto; }
  .search-bar, .search-bar form { width: 100%; max-width: 100%; }
  .search-bar input { min-width: 0; width: 100%; }
  .search-btn { position: static !important; right: auto !important; }
  .results-actions, .filters-bar, .stats-row, .page-header, .sidebar-tabs { flex-wrap: wrap !important; min-width: 0 !important; }
  .stat-card, .stat-mini { min-width: 0 !important; flex: 1 1 140px !important; }
  .sidebar, #sidebar, .admin-sidebar { display: none !important; }
  .planner-sidebar { position: static !important; width: 100% !important; max-height: none !important; overflow: visible !important; }
  .admin-main, .main-content, .account-main, .results-area, .api-content { margin-left: 0 !important; width: 100% !important; }
  table { display: block; overflow-x: auto; max-width: 100%; }
}

/* Keep hero decoration from competing with the message */
.hero-section .arabic-pattern-bg,
.hero-section::before,
.hero-section::after { opacity: 0.42 !important; }

.landing-elim { list-style:none; padding:0; margin:16px 0; display:grid; gap:9px; max-width:880px; }
.landing-elim li { padding:12px 16px; border-left:3px solid var(--danger); background:rgba(255,255,255,.03); border-radius:8px; color:var(--aaa-muted); }
.landing-elim i { color:var(--danger); margin-right:10px; }
