/* PropData Dubai — customer site. Brand: PropTechUSA.ai (Inter / JetBrains Mono, deep navy, mint, red CTA).
   Dataset identity: registered-sale statistics = mint (AED/m²), community index = gold (AED/ft²). */
:root {
  --ink: #020915;
  --ink-2: #06101f;
  --ink-3: #0b1a30;
  --ink-4: #12253f;
  --line: rgba(196, 214, 238, .10);
  --line-2: rgba(196, 214, 238, .18);
  --text: #eaf0f8;
  --muted: #9aabc1;
  --dim: #7d8fa8;
  --mint: #6ee7b7;
  --mint-ink: #05251c;
  --gold: #f0c674;
  --gold-2: #e0a94a;
  --red: #dc2626;
  --red-2: #b91c1c;
  --paper: #f6f4ef;
  --paper-2: #ece8df;
  --paper-line: #ddd6c8;
  --paper-text: #0b1526;
  --paper-muted: #4f5d72;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 16px/1.6 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
* { scrollbar-width: thin; scrollbar-color: rgba(154, 171, 193, .35) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(154, 171, 193, .3); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
html { scrollbar-color: rgba(154, 171, 193, .35) var(--ink); }
a { color: inherit; }
button { font: inherit; color: inherit; }
code, pre, .mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.paper :focus-visible { outline-color: #047857; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--mint); color: var(--mint-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(2, 9, 21, .84); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; position: relative; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand svg { width: 30px; height: 32px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name b { font-weight: 700; letter-spacing: -.01em; font-size: 16px; }
.brand-name span { font: 500 10px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; gap: 4px; margin: 0 0 0 auto; list-style: none; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-cta { flex: none; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 68px; max-height: calc(100vh - 68px); overflow-y: auto; flex-direction: column; gap: 0; padding: 8px var(--gutter) 18px; background: #020915; box-shadow: 0 30px 40px -10px rgba(0,0,0,.6); border-bottom: 1px solid var(--line); margin: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links .m-only { display: block; padding-top: 14px; }
  .nav-links .m-only a { border: 0; text-align: center; padding: 0 20px; color: #fff; border-radius: 12px; display: flex; }
  .nav .nav-cta { display: none; }
}
@media (min-width: 901px) { .nav-links .m-only { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px; border-radius: 12px; font-weight: 600; font-size: 15px; letter-spacing: -.005em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-buy { background: var(--red); color: #fff; box-shadow: 0 10px 30px -12px rgba(220, 38, 38, .8); }
.btn-buy:hover { background: var(--red-2); }
.btn-mint { background: var(--mint); color: var(--mint-ink); }
.btn-mint:hover { background: #8ef0c8; }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: rgba(196, 214, 238, .35); background: rgba(255, 255, 255, .06); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-4); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

/* ---------- typography ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(110, 231, 183, .55); } 70% { box-shadow: 0 0 0 10px rgba(110, 231, 183, 0); } 100% { box-shadow: 0 0 0 0 rgba(110, 231, 183, 0); } }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.025em; line-height: 1.06; font-weight: 650; }
h1 { font-size: clamp(40px, 6.2vw, 76px); letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 4.2vw, 50px); }
h3 { font-size: 20px; letter-spacing: -.015em; line-height: 1.25; font-weight: 620; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); line-height: 1.55; max-width: 640px; margin: 0; }
.section { padding: clamp(72px, 10vw, 124px) 0; position: relative; }
.section-head { display: grid; gap: 18px; max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }
.paper { background: var(--paper); color: var(--paper-text); }
.paper .eyebrow, .paper .lede { color: var(--paper-muted); }
.unit { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--mono); padding: 6px 9px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; }
.unit::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.unit-m2 { color: var(--mint); background: rgba(110, 231, 183, .1); border: 1px solid rgba(110, 231, 183, .28); }
.unit-ft2 { color: var(--gold); background: rgba(240, 198, 116, .1); border: 1px solid rgba(240, 198, 116, .3); }
.paper .unit-m2 { color: #047857; background: #d9f6ea; border-color: #a7e8cd; }
.paper .unit-ft2 { color: #84540a; background: #fbeccb; border-color: #efd093; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(44px, 7vw, 88px) 0 clamp(56px, 7vw, 88px); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 1000px; z-index: -1; background:
  radial-gradient(620px 400px at 80% 34%, rgba(240, 198, 116, .17), transparent 70%),
  radial-gradient(520px 360px at 14% 8%, rgba(110, 231, 183, .10), transparent 70%),
  linear-gradient(180deg, #04122a 0%, var(--ink) 78%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--gold) 0%, #ffe3a8 45%, var(--mint) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin: 22px 0 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 18px 0 0; font-size: 13.5px; color: var(--dim); }
.hero-note code { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.fresh { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: clamp(44px, 6vw, 72px) 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fresh div { background: rgba(6, 16, 31, .92); padding: 18px 20px; }
.fresh dt { font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.fresh dd { margin: 6px 0 0; font-weight: 620; font-size: 18px; letter-spacing: -.01em; }
.fresh dd small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 2px; }

/* skyline (hero data visual: real 2025 medians) */
.skyline-card { position: relative; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(18, 37, 63, .7), rgba(6, 16, 31, .92)); box-shadow: var(--shadow); overflow: hidden; }
.skyline-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); font: 500 11.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.skyline-head b { color: var(--text); font-weight: 600; }
.skyline { padding: 20px 14px 6px; min-height: 300px; }
@media (max-width: 460px) { .sky-bar text { font-size: 9px; } .sky-bar text.val { font-size: 9.5px; } .skyline-head { font-size: 10.5px; } }
.skyline svg { width: 100%; height: auto; overflow: visible; }
.sky-bar { transition: opacity .2s; cursor: default; outline: none; }
.sky-bar .body { fill: url(#towerGrad); }
.sky-bar .win { fill: rgba(240, 198, 116, .55); }
.sky-bar .cap { fill: var(--gold); }
.sky-bar text { fill: var(--dim); font: 500 10px var(--mono); }
.sky-bar text.val { fill: var(--text); font-weight: 600; font-size: 11px; }
.skyline svg.hovering .sky-bar { opacity: .4; }
.skyline svg.hovering .sky-bar.on { opacity: 1; }
.sky-grow { transform-origin: 50% 100%; transform-box: fill-box; animation: grow 1.1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.skyline-foot { display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; padding: 12px 18px 15px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }
.skyline-foot code { color: var(--muted); font-size: 11.5px; }
.sky-readout { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 18px 4px; min-height: 52px; }
.sky-readout b { font-size: clamp(17px, 4.6vw, 22px); white-space: nowrap; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sky-readout span { font-size: 13px; color: var(--muted); text-align: right; }

/* ---------- datasets ---------- */
.ds-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ds { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.ds::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; }
.ds.m2::before { background: linear-gradient(90deg, #10b981, var(--mint)); }
.ds.ft2::before { background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.ds-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ds-contract { font: 500 12px var(--mono); color: var(--paper-muted); }
.ds h3 { font-size: clamp(22px, 2.4vw, 28px); }
.ds p { margin: 0; color: var(--paper-muted); }
.ds dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 18px; margin: 0; font-size: 14.5px; border-top: 1px solid var(--paper-line); padding-top: 18px; }
.ds dt { color: var(--paper-muted); font: 500 11.5px/2 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.ds dd { margin: 0; font-weight: 500; }
.not-comparable { margin-top: 20px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: var(--paper-2); border: 1px dashed #c9bfa9; color: var(--paper-muted); font-size: 14.5px; }
.not-comparable svg { width: 22px; height: 22px; flex: none; color: #84540a; margin-top: 1px; }
.not-comparable b { color: var(--paper-text); }

/* ---------- explorer ---------- */
.explorer { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.tabs { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--ink-3); border: 1px solid var(--line); gap: 4px; flex-wrap: wrap; max-width: 100%; }
.tab { border: 0; background: transparent; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 9px; min-height: 42px; }
.tab[aria-selected="true"] { background: var(--ink-4); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.tab .swatch { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.panel { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(11, 26, 48, .55); overflow: hidden; }
.panel[hidden] { display: none; }
.controls { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.select { appearance: none; -webkit-appearance: none; min-height: 42px; min-width: 250px; max-width: 100%; padding: 0 40px 0 14px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--ink-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%239aabc1' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--text); font: 500 14.5px var(--sans); cursor: pointer; }
.select option { background: var(--ink-2); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 11px; padding: 3px; background: var(--ink-2); }
.seg button { border: 0; background: transparent; padding: 0 13px; min-height: 34px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink-4); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); margin: 0; }
.stat { padding: 18px 20px; border-right: 1px solid var(--line); min-width: 0; }
.stat:last-child { border-right: 0; }
.stat dt { font: 500 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.stat dd { margin: 8px 0 0; font-size: clamp(20px, 2.2vw, 26px); font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat dd small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 3px; }
.chart-wrap { position: relative; padding: 16px 10px 4px 2px; }
.chart { width: 100%; height: 340px; display: block; touch-action: pan-y; }
.chart .grid line { stroke: var(--line); }
.chart .axis text { fill: var(--dim); font: 500 11px var(--mono); }
.chart .band { opacity: .17; }
.chart .line { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.chart .bars rect { opacity: .3; }
.chart .cursor { stroke: rgba(196, 214, 238, .35); stroke-dasharray: 3 4; }
.chart .dot { stroke: var(--ink); stroke-width: 2.5; }
.chart .prov { stroke-dasharray: 4 5; }
.chart-draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.2s cubic-bezier(.3, .7, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tip { position: absolute; pointer-events: none; z-index: 3; min-width: 196px; padding: 12px 14px; border-radius: 12px; background: rgba(2, 9, 21, .97); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -18px #000; font-size: 13px; line-height: 1.5; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; }
.tip.show { opacity: 1; transform: none; }
.tip b { display: block; font-size: 15px; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.tip span { display: block; color: var(--muted); font: 12px var(--mono); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 4px 20px 16px; font-size: 12.5px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 18px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.panel-foot { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); background: rgba(2, 9, 21, .35); }
.panel-foot code { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.basis { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge { font: 600 11px/1 var(--mono); padding: 5px 8px; border-radius: 6px; background: rgba(110, 231, 183, .12); color: var(--mint); border: 1px solid rgba(110, 231, 183, .25); }
.badge.warn { background: rgba(240, 198, 116, .12); color: var(--gold); border-color: rgba(240, 198, 116, .28); }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 12.5px; }
.linkbtn:hover { color: var(--text); }
.table-wrap { overflow: auto; border-top: 1px solid var(--line); max-height: 360px; }
.table-wrap[hidden] { display: none; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 9px 16px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data th { position: sticky; top: 0; background: var(--ink-3); font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.projects { padding: 18px 20px 20px; border-top: 1px solid var(--line); }
.projects h3 { font-size: 15px; margin-bottom: 4px; }
.projects p { margin: 0 0 14px; font-size: 13px; color: var(--dim); }
.hbar { display: grid; grid-template-columns: minmax(110px, 210px) minmax(0, 1fr) max-content; gap: 6px 12px; align-items: center; font-size: 13px; padding: 5px 0; }
.hbar .track { display: block; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.hbar .fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #10b981, var(--mint)); }
.hbar .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.hbar .v { font-variant-numeric: tabular-nums; font-weight: 600; }
.hbar .v small { color: var(--dim); font-weight: 400; }
.sample-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13px; color: var(--dim); max-width: 860px; }
.sample-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--muted); }

/* ---------- playground ---------- */
.pg { display: grid; grid-template-columns: 300px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-2); }
.pg-side { border-right: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 4px; background: rgba(11, 26, 48, .5); }
.ep { display: grid; gap: 4px; text-align: left; padding: 12px 14px; border-radius: 11px; border: 1px solid transparent; background: transparent; cursor: pointer; }
.ep:hover { background: rgba(255, 255, 255, .03); }
.ep[aria-selected="true"] { background: var(--ink-4); border-color: var(--line-2); }
.ep code { font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }
.ep code .get { color: var(--mint); font-weight: 700; margin-right: 6px; }
.ep span { font-size: 12.5px; color: var(--muted); }
.pg-main { min-width: 0; display: flex; flex-direction: column; }
.pg-req { padding: 16px 18px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; min-width: 0; }
.pg-url { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 11px; background: var(--ink); border: 1px solid var(--line-2); font: 13px var(--mono); overflow-x: auto; white-space: nowrap; }
.pg-url .get { color: var(--mint); font-weight: 700; }
.pg-url .host { color: var(--dim); }
.pg-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pg-row p { margin: 0; font-size: 13.5px; color: var(--muted); }
.lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--ink); border: 1px solid var(--line); }
.lang button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; font: 600 12.5px var(--sans); color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink-4); color: var(--text); }
.codebox { position: relative; min-width: 0; }
.code { margin: 0; padding: 16px 18px; background: var(--ink); border-radius: 12px; border: 1px solid var(--line); font: 12.8px/1.65 var(--mono); color: #c8d4e6; overflow-x: auto; white-space: pre; tab-size: 2; }
.code .c { color: #6f819b; }
.code .s { color: var(--mint); }
.code .k { color: #8fb3ff; }
.code .n { color: var(--gold); }
.code .b { color: #f0a3c2; }
.copy { position: absolute; top: 9px; right: 9px; border: 1px solid var(--line-2); background: var(--ink-3); color: var(--muted); border-radius: 8px; padding: 5px 10px; font: 600 12px var(--sans); cursor: pointer; }
.copy:hover { color: var(--text); }
.pg-resp { flex: 1; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.pg-resp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.status { font: 700 12px var(--mono); color: var(--mint); background: rgba(110, 231, 183, .1); border: 1px solid rgba(110, 231, 183, .25); padding: 4px 8px; border-radius: 6px; margin-right: 8px; }
.fixture-tag { font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(240, 198, 116, .35); background: rgba(240, 198, 116, .08); padding: 4px 8px; border-radius: 6px; }
.pg-resp pre { margin: 0; border: 0; border-radius: 0; max-height: 540px; overflow: auto; flex: 1; }

/* ---------- use cases ---------- */
.uc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.uc { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.uc .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--paper-2); color: var(--paper-text); }
.uc .ico svg { width: 21px; height: 21px; }
.uc p { margin: 0; color: var(--paper-muted); font-size: 14.5px; }
.uc ul { margin: auto 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--paper-line); display: grid; gap: 7px; font-size: 13px; }
.uc li { display: flex; gap: 8px; color: var(--paper-text); }
.uc li code { font-size: 12px; color: #047857; overflow-wrap: anywhere; }

/* ---------- trust ---------- */
.trust-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); background: rgba(11, 26, 48, .5); min-width: 0; }
.card + .card { margin-top: 20px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; font-size: 14.5px; color: var(--muted); }
.steps li::before { counter-increment: s; content: counter(s); width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--ink-4); color: var(--text); font: 600 13px var(--mono); }
.steps b { color: var(--text); font-weight: 600; }
.basis-list { display: grid; margin: 16px 0 0; }
.basis-list div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.basis-list code { color: var(--mint); font-size: 12.5px; overflow-wrap: anywhere; }
.no-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.no-list li { display: flex; gap: 12px; font-size: 14.5px; color: var(--muted); }
.no-list svg { width: 18px; height: 18px; flex: none; color: var(--dim); margin-top: 3px; }
.attr { margin-top: 18px; display: grid; gap: 12px; }
.attr blockquote { margin: 0; padding: 14px 16px; border-left: 3px solid var(--mint); background: rgba(2, 9, 21, .5); border-radius: 0 10px 10px 0; font-size: 13.5px; color: var(--muted); }
.attr blockquote.g { border-left-color: var(--gold); }
.attr blockquote b { display: block; color: var(--text); font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1000px; }
.plan { position: relative; background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 36px); display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.plan.pro { background: var(--ink); color: var(--text); border-color: var(--ink); box-shadow: 0 40px 80px -40px rgba(2, 9, 21, .7); }
.plan .tag { position: absolute; top: 22px; right: 22px; font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 6px 9px; border-radius: 7px; background: rgba(240, 198, 116, .14); color: var(--gold); border: 1px solid rgba(240, 198, 116, .3); }
.plan h3 { font-size: 22px; }
.plan .for { margin: 6px 0 0; color: var(--paper-muted); font-size: 14.5px; }
.plan.pro .for { color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-size: clamp(46px, 5vw, 58px); letter-spacing: -.04em; font-weight: 700; line-height: 1; }
.price span { color: var(--paper-muted); font-size: 15px; }
.plan.pro .price span { color: var(--muted); }
.quota { font: 600 14px var(--mono); padding: 11px 13px; border-radius: 10px; background: var(--paper-2); }
.plan.pro .quota { background: var(--ink-3); }
.feat { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; font-size: 14.5px; }
.feat li { display: flex; gap: 11px; align-items: flex-start; }
.feat svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: #059669; }
.plan.pro .feat svg { color: var(--mint); }
.feat li.off { color: var(--paper-muted); }
.plan.pro .feat li.off { color: var(--dim); }
.feat li.off svg { color: #a8a29e; }
.plan .btn { margin-top: auto; min-height: 54px; font-size: 16px; white-space: normal; text-align: center; }
.secure { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; color: var(--paper-muted); margin-top: -8px; text-align: center; }
.plan.pro .secure { color: var(--dim); }
.secure svg { width: 13px; height: 13px; flex: none; }
.after { margin-top: 28px; max-width: 1000px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--paper-line); border: 1px solid var(--paper-line); border-radius: var(--radius-lg); overflow: hidden; }
.after > div { background: #fff; padding: 20px; }
.after .n { font: 600 12px var(--mono); color: var(--paper-muted); }
.after h4 { margin: 8px 0 6px; font-size: 15.5px; letter-spacing: -.01em; line-height: 1.3; }
.after p { margin: 0; font-size: 13.5px; color: var(--paper-muted); }
.pricing-notes { margin: 18px 0 0; max-width: 1000px; font-size: 13px; color: var(--paper-muted); }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 16.5px; letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 24px/1 var(--sans); color: var(--muted); transition: transform .2s; flex: none; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 20px; color: var(--muted); font-size: 15px; max-width: 680px; }
details p code { font-size: 13px; color: var(--text); }
.support-card { margin-top: 26px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(11, 26, 48, .5); }
.support-card h3 { font-size: 17px; }
.support-card p { margin: 6px 0 14px; color: var(--muted); font-size: 14.5px; }

/* ---------- final cta / footer ---------- */
.final { text-align: center; padding: clamp(72px, 10vw, 120px) 0; background: radial-gradient(700px 300px at 50% 0%, rgba(240, 198, 116, .14), transparent 70%), var(--ink); border-top: 1px solid var(--line); }
.final h2 { max-width: 780px; margin: 0 auto; }
.final .lede { margin: 18px auto 30px; }
.final .hero-ctas { justify-content: center; }
footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 13.5px; color: var(--dim); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot-grid p { margin: 12px 0 0; max-width: 340px; }
.foot-grid h4, .foot-grid .foot-h { margin: 0 0 12px; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--text); }
.legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 12.5px; line-height: 1.6; }
.legal p { margin: 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--mint); color: var(--mint-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; z-index: 80; transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- docs page ---------- */
.docs-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding: clamp(40px, 6vw, 72px) 0 96px; }
.toc { position: sticky; top: 92px; align-self: start; display: grid; gap: 2px; font-size: 14px; }
.toc b { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 14px 0 6px; }
.toc b:first-child { margin-top: 0; }
.toc a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.toc a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.doc { min-width: 0; max-width: 860px; }
.doc section { padding-top: 12px; margin-bottom: 52px; }
.doc h1 { font-size: clamp(36px, 5vw, 54px); }
.doc h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.doc h3 { font-size: 18px; margin: 28px 0 10px; }
.doc p, .doc li { color: var(--muted); font-size: 15.5px; }
.doc p code, .doc li code, .doc td code { font-size: 13px; color: var(--text); background: rgba(255, 255, 255, .06); padding: 2px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.doc a { color: var(--mint); }
.doc .codebox { margin: 14px 0 18px; }
.ptable-wrap { overflow-x: auto; margin: 12px 0 18px; border: 1px solid var(--line); border-radius: 12px; }
table.ptable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.ptable th, .ptable td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.ptable tr:last-child td { border-bottom: 0; }
.ptable th { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); background: rgba(11, 26, 48, .6); }
.ptable td:first-child { color: var(--text); white-space: nowrap; }
.endpoint { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 18px 0 26px; background: rgba(11, 26, 48, .45); }
.endpoint h3 { margin: 0 0 6px; font: 600 15px var(--mono); letter-spacing: 0; overflow-wrap: anywhere; }
.endpoint h3 .get { color: var(--mint); margin-right: 8px; }
.callout { border: 1px solid rgba(240, 198, 116, .3); background: rgba(240, 198, 116, .07); border-radius: 12px; padding: 14px 16px; margin: 14px 0 18px; font-size: 14.5px; color: var(--muted); }
.callout b { color: var(--gold); }
.callout.mint { border-color: rgba(110, 231, 183, .3); background: rgba(110, 231, 183, .06); }
.callout.mint b { color: var(--mint); }
.docs-hero { padding: clamp(48px, 7vw, 80px) 0 clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--line); background: radial-gradient(600px 300px at 85% 0%, rgba(110, 231, 183, .09), transparent 70%); }
.docs-hero .lede { margin-top: 16px; }
.docs-hero .hero-ctas { margin-top: 26px; }

/* ---------- welcome page ---------- */
.welcome { padding: clamp(56px, 8vw, 104px) 0; }
.welcome .card { max-width: 760px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .uc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .after { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-grid, .trust-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .pg { grid-template-columns: minmax(0, 1fr); }
  .pg-side { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; }
  .ep { flex: none; width: 230px; scroll-snap-align: start; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .docs-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
  .toc b { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .ds-grid, .plans { grid-template-columns: minmax(0, 1fr); }
  .fresh { grid-template-columns: minmax(0, 1fr); }
  .basis-list div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .chart { height: 270px; }
  .select { min-width: 0; width: 100%; }
  .controls .field { flex: 1 1 100%; }
  .controls .seg { display: flex; }
  .controls .seg button { flex: 1; }
  .skyline { min-height: 0; }
}
@media (max-width: 560px) {
  .uc-grid, .after, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hbar { grid-template-columns: minmax(0, 1fr) max-content; }
  .hbar .track { grid-column: 1 / -1; grid-row: 2; }
  .stat { padding: 14px 16px; }
  .controls { padding: 16px; }
  .tab { padding: 10px 12px; font-size: 13.5px; flex: 1 1 auto; justify-content: center; }
  .tabs { display: flex; }
  .ds dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ds dd { margin-bottom: 10px; }
  .toc { grid-template-columns: minmax(0, 1fr); }
  .plan .tag { position: static; align-self: flex-start; }
}

/* ---------- photo hero (v2) ---------- */
.hero-photo { min-height: min(860px, 100svh); display: flex; align-items: stretch; padding: 0; background: var(--ink); }
.hero-photo::before, .hero-photo::after { display: none; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; animation: heroZoom 18s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-photo .hero-bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(2, 9, 21, .92) 0%, rgba(2, 9, 21, .78) 34%, rgba(2, 9, 21, .28) 62%, rgba(2, 9, 21, .12) 100%),
  linear-gradient(180deg, rgba(2, 9, 21, .55) 0%, rgba(2, 9, 21, 0) 22%, rgba(2, 9, 21, 0) 60%, rgba(2, 9, 21, .96) 100%); }
.hero-inner { display: flex; flex-direction: column; justify-content: flex-end; padding-top: clamp(72px, 12vh, 140px); padding-bottom: clamp(28px, 5vh, 48px); width: 100%; }
.hero-copy { max-width: 640px; }
.hero-copy h1 { margin-top: 20px; text-shadow: 0 2px 30px rgba(2, 9, 21, .45); }
.hero-sub { margin: 18px 0 0; font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; letter-spacing: -.01em; color: #fff; }
.hero-photo .lede { margin: 12px 0 30px; color: #c9d5e5; }
.hero-photo .hero-note { color: #a9b8cc; }
.hero-photo .fresh { margin-top: clamp(36px, 7vh, 64px); background: rgba(196, 214, 238, .14); border-color: rgba(196, 214, 238, .18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hero-photo .fresh div { background: rgba(2, 9, 21, .62); }
.btn-glass { color: #fff; border-color: rgba(255, 255, 255, .42); background: rgba(2, 9, 21, .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .7); }
@media (max-width: 640px) {
  .hero-bg img { object-position: 50% 30%; }
  .hero-photo .hero-bg::after { background: linear-gradient(180deg, rgba(2, 9, 21, .55) 0%, rgba(2, 9, 21, .35) 30%, rgba(2, 9, 21, .82) 58%, rgba(2, 9, 21, .97) 100%); }
  .hero-photo { min-height: 0; }
  .hero-inner { padding-top: 46vh; }
}

/* language pill */
.lang-pill { display: inline-flex; align-items: center; gap: 2px; padding: 4px 4px 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(2, 9, 21, .55); flex: none; }
.lang-pill svg { width: 16px; height: 16px; color: var(--muted); margin-inline-end: 4px; }
.lang-pill a { padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; line-height: 1.2; }
.lang-pill a[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--sans); font-size: 14px; }
.lang-pill a[aria-current="true"] { background: var(--mint); color: var(--mint-ink); }
.lang-pill a:not([aria-current="true"]):hover { color: var(--text); }
@media (max-width: 900px) { .nav .lang-pill { margin-inline-start: auto; order: 2; } .nav .menu-btn { order: 3; margin: 0; } }
@media (max-width: 380px) { .lang-pill svg { display: none; } .lang-pill { padding-left: 4px; } }
.nav-links .m-lang { display: none; }

/* explorer head with skyline */
.explore-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(28px, 4vw, 56px); align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.explore-head .section-head { margin-bottom: 0; }
@media (max-width: 960px) { .explore-head { grid-template-columns: minmax(0, 1fr); } }

/* final cta photo */
.final-photo { position: relative; overflow: hidden; isolation: isolate; }
.final-bg { position: absolute; inset: 0; z-index: -1; }
.final-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.final-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 9, 21, .9) 0%, rgba(2, 9, 21, .62) 45%, rgba(2, 9, 21, .9) 100%); }

/* ---------- Arabic / RTL ---------- */
html[lang="ar"] body { font-family: "IBM Plex Sans Arabic", var(--sans); line-height: 1.75; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
html[lang="ar"] .eyebrow, html[lang="ar"] .stat dt, html[lang="ar"] .field > span, html[lang="ar"] .fresh dt, html[lang="ar"] .ds dt, html[lang="ar"] .after .n, html[lang="ar"] .foot-grid .foot-h, html[lang="ar"] .skyline-head { font-family: "IBM Plex Sans Arabic", var(--sans); letter-spacing: 0; text-transform: none; font-size: 13px; }
html[lang="ar"] .brand-name span { font-family: var(--mono); }
[dir="rtl"] .nav-links { margin: 0 auto 0 0; }
[dir="rtl"] .hero-photo .hero-bg::after { background:
  linear-gradient(270deg, rgba(2, 9, 21, .92) 0%, rgba(2, 9, 21, .78) 34%, rgba(2, 9, 21, .28) 62%, rgba(2, 9, 21, .12) 100%),
  linear-gradient(180deg, rgba(2, 9, 21, .55) 0%, rgba(2, 9, 21, 0) 22%, rgba(2, 9, 21, 0) 60%, rgba(2, 9, 21, .96) 100%); }
@media (max-width: 640px) { [dir="rtl"] .hero-photo .hero-bg::after { background: linear-gradient(180deg, rgba(2, 9, 21, .55) 0%, rgba(2, 9, 21, .35) 30%, rgba(2, 9, 21, .82) 58%, rgba(2, 9, 21, .97) 100%); } }
[dir="rtl"] .btn svg use[href="#i-arrow"], [dir="rtl"] .btn svg { transform: scaleX(-1); }
[dir="rtl"] .lang-pill { padding: 4px 10px 4px 4px; }
[dir="rtl"] .chart-wrap, [dir="rtl"] .skyline, [dir="rtl"] .code, [dir="rtl"] .pg-url, [dir="rtl"] .table-wrap, [dir="rtl"] code, [dir="rtl"] .ds-contract, [dir="rtl"] .quota, [dir="rtl"] .panel-foot code { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .code, [dir="rtl"] .pg-url { text-align: left; }
[dir="rtl"] .copy { right: auto; left: 9px; }
[dir="rtl"] .tip { direction: rtl; text-align: right; }
[dir="rtl"] .attr blockquote { border-left: 0; border-right: 3px solid var(--mint); border-radius: 10px 0 0 10px; direction: ltr; text-align: left; }
[dir="rtl"] .attr blockquote.g { border-right-color: var(--gold); }
[dir="rtl"] .plan .tag { right: auto; left: 22px; }
[dir="rtl"] .skip { left: auto; right: 12px; }
[dir="rtl"] .ep { text-align: right; }
[dir="rtl"] .basis-list div, [dir="rtl"] .steps li { text-align: right; }
[dir="rtl"] .select { padding: 0 14px 0 40px; background-position: left 14px center; }
[dir="rtl"] table.data th, [dir="rtl"] table.data td { text-align: right; }

/* ---------- activation page ---------- */
.act-page { min-height: calc(100svh - 68px); padding: clamp(40px, 7vw, 88px) 0 96px; background: radial-gradient(640px 300px at 80% 0%, rgba(110, 231, 183, .08), transparent 70%), var(--ink); }
.act-wrap { max-width: 760px; display: grid; gap: 20px; }
.act-card { border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: rgba(11, 26, 48, .6); padding: clamp(22px, 4vw, 36px); display: grid; gap: 14px; }
.act-title { font-size: clamp(26px, 4vw, 38px); }
.act-card h2 { font-size: 20px; }
.act-body { margin: 0; color: var(--muted); font-size: 16px; }
.act-field { display: grid; gap: 7px; }
.act-field span { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
html[lang="ar"] .act-field span { font-family: "IBM Plex Sans Arabic", var(--sans); letter-spacing: 0; text-transform: none; font-size: 13px; }
.act-field input { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink-2); color: var(--text); font: 500 16px var(--sans); }
.act-field input:focus { outline: 2px solid var(--mint); outline-offset: 2px; }
.act-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.act-msg { margin: 0; font-size: 14px; color: var(--gold); min-height: 1em; }
.act-ok { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: clamp(22px, 3.4vw, 30px); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; color: var(--text); }
.act-ok svg { width: 30px; height: 30px; flex: none; color: var(--mint); margin-top: 2px; }
.act-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 6px 0; }
.act-meta div { background: var(--ink-2); padding: 14px 16px; }
.act-meta dt { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
html[lang="ar"] .act-meta dt { font-family: "IBM Plex Sans Arabic", var(--sans); letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.act-meta dd { margin: 6px 0 0; font-weight: 650; font-size: 17px; }
.act-key-label { font: 600 13px var(--sans); color: var(--muted); }
.act-key { display: flex; gap: 8px; align-items: center; }
.act-key input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(110, 231, 183, .4); background: var(--ink); color: var(--mint); font: 500 14px var(--mono); }
.act-warn { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(240, 198, 116, .08); border: 1px solid rgba(240, 198, 116, .3); color: var(--gold); font-size: 14px; }
.act-sub { font-size: 16px !important; margin-top: 8px; }
.act-links { margin-top: 6px; }
.act-note { margin: 0; font-size: 13.5px; color: var(--dim); }
@media (max-width: 640px) { .act-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } .act-key { flex-wrap: wrap; } .act-key input { flex-basis: 100%; } }
.act-card .codebox .code { padding-top: 44px; }

/* ---------- positioning v3 ---------- */
.hero-proof { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 22px 0 0; padding: 0; }
.hero-proof li { display: grid; gap: 2px; }
.hero-proof b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.hero-proof span { font-size: 13px; color: #b6c4d6; }
.value { background: var(--ink-2); border-top: 1px solid var(--line); }
.value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.value-card { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(18, 37, 63, .55), rgba(6, 16, 31, .6)); padding: 24px; display: grid; gap: 10px; align-content: start; }
.value-card h3 { font-size: 18px; }
.value-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.value-n { font: 600 12px var(--mono); color: var(--gold); letter-spacing: .1em; }
.build-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 22px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.build-list > div { background: rgba(6, 16, 31, .85); padding: 20px; }
.build-list h3 { font-size: 15.5px; margin-bottom: 6px; }
.build-list p { margin: 0; font-size: 13.5px; color: var(--muted); }
@media (max-width: 1080px) { .value-grid, .build-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .value-grid, .build-list { grid-template-columns: minmax(0, 1fr); } .hero-proof b { font-size: 22px; } }
@media (max-width: 900px) { .nav { gap: 12px; } }
@media (max-width: 480px) {
  .lang-pill svg { display: none; }
  .lang-pill { padding: 3px; }
  .lang-pill a { padding: 5px 9px; }
  .brand-name span { display: none; }
  .hero-copy .eyebrow { font-size: 10.5px; letter-spacing: .1em; }
}
.nav, .nav > * { min-width: 0; }
@media (max-width: 560px) { .hero-ctas .btn { white-space: normal; text-align: center; } }
.eyebrow > span:first-child { flex: none; }

/* ---------- product families (generated from data/capabilities.json) ---------- */
.products { background: var(--paper); color: var(--paper-text); }
.products .eyebrow, .products .lede { color: var(--paper-muted); }
.fam-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fam { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--paper-line); }
.fam h3 { font-size: 20px; }
.fam > p { margin: 0; color: var(--paper-muted); font-size: 14.5px; }
.fam-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.fam-badge { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; }
html[lang="ar"] .fam-badge { font-family: "IBM Plex Sans Arabic", var(--sans); letter-spacing: 0; text-transform: none; font-size: 12px; }
.fam-badge.is-live { background: #d9f6ea; color: #047857; border: 1px solid #a7e8cd; }
.fam-badge.is-live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #10b981; margin-inline-end: 6px; vertical-align: 1px; }
.fam-badge.is-dev { background: var(--paper-2); color: var(--paper-muted); border: 1px solid var(--paper-line); }
.fam-unit { font: 600 11.5px var(--mono); color: var(--paper-muted); }
.fam-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.fam-points li { display: flex; gap: 8px; }
.fam-points li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 2px; background: #10b981; }
.fam-dev .fam-points li::before { background: #b9b2a3; }
.fam-dev { background: rgba(255, 255, 255, .55); border-style: dashed; }
.fam-dev h3, .fam-dev .fam-points { color: var(--paper-muted); }
.fam-note { margin: 0; font-size: 13px; color: var(--paper-muted); padding: 10px 12px; border-radius: 10px; background: var(--paper-2); }
.fam-devnote { margin: auto 0 0; font-size: 13px; font-weight: 600; color: var(--paper-muted); }
.fam-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--paper-line); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.fam-eps { display: flex; flex-wrap: wrap; gap: 6px; }
.fam-eps code { font-size: 11.5px; color: #047857; background: #effaf5; padding: 3px 6px; border-radius: 6px; }
.fam-cta { font-weight: 600; font-size: 14px; color: #047857; text-decoration: none; white-space: nowrap; }
.fam-cta:hover { text-decoration: underline; }
@media (max-width: 1080px) { .fam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .fam-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- comparison view ---------- */
.compare { padding: 16px 20px 8px; display: grid; gap: 6px; }
.cmp { display: grid; grid-template-columns: minmax(120px, 230px) minmax(0, 1fr) 96px; gap: 12px; align-items: center; font-size: 13.5px; padding: 3px 0; }
.cmp .nm { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp .tr { display: block; height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.cmp .fl { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #4f7cff, #8fb3ff); }
.cmp .fl.neg { background: linear-gradient(90deg, #f87171, #fca5a5); }
.cmp .vl { font-variant-numeric: tabular-nums; font-weight: 600; text-align: end; direction: ltr; }
.cmp.is-sel .nm { color: var(--text); font-weight: 600; }
@media (max-width: 560px) { .cmp { grid-template-columns: minmax(0, 1fr) max-content; } .cmp .tr { grid-column: 1 / -1; grid-row: 2; } }
.attr blockquote.o { border-left-color: #f4a261; }
[dir="rtl"] .attr blockquote.o { border-right-color: #f4a261; }
.projects-table { max-height: 460px; }
.pct { display: inline-flex; align-items: center; gap: 8px; min-width: 120px; }
.pct .tr { display: block; width: 70px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.pct .fl { display: block; height: 100%; background: linear-gradient(90deg, #f4a261, #ffd29a); }
.pct .fl.done { background: linear-gradient(90deg, #10b981, var(--mint)); }
table.data td.nm-cell { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.hero-proof b span { font-size: inherit; color: inherit; }
@media (min-width: 1200px) { .fam-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
