/* =========================================================================
   منصة الاتحاد · Federation Platform — Crown Prince Camel Festival
   Concept 03 · "Stripe/Linear for a sport governing body"
   Pure CSS, static comp. Arabic-first, RTL.
   ========================================================================= */

/* ---- Tokens --------------------------------------------------------------*/
:root {
  /* Brand gradient spine — deep teal → amber (distinct from concept 01) */
  --grad-orange: #C8962B;
  --grad-coral:  #0E7C78;
  --grad-pink:   #0A5A57;
  --brand-spine: linear-gradient(105deg, #C8962B 0%, #0E7C78 52%, #0A5A57 100%);
  --brand-spine-soft: linear-gradient(105deg, rgba(200,150,43,.12), rgba(14,124,120,.12) 52%, rgba(10,90,87,.12));

  /* Surfaces */
  --bg:        #FFFFFF;
  --bg-warm:   #FAF7F2;
  --bg-warm-2: #F6F0E7;
  --line:      #F0E7DA;
  --line-2:    #E7DCCB;

  /* Text */
  --ink:        #241C16;
  --ink-2:      #4F463D;
  --ink-3:      #7E746A;
  --ink-onbrand:#FFFFFF;

  /* Semantic */
  --verify:     #1F9D6B;
  --verify-bg:  #E9F7F0;

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(36,28,22,.05), 0 1px 1px rgba(36,28,22,.04);
  --sh-2: 0 6px 18px rgba(36,28,22,.07), 0 2px 6px rgba(36,28,22,.05);
  --sh-3: 0 24px 60px rgba(36,28,22,.13), 0 8px 22px rgba(36,28,22,.08);
  --sh-brand: 0 18px 48px rgba(14,124,120,.22), 0 6px 16px rgba(200,150,43,.18);

  /* Type scale (modular ~1.22) */
  --t-12: .75rem;
  --t-13: .8125rem;
  --t-14: .875rem;
  --t-15: .9375rem;
  --t-16: 1rem;
  --t-18: 1.125rem;
  --t-21: 1.3125rem;
  --t-26: 1.625rem;
  --t-32: 2rem;
  --t-42: 2.625rem;
  --t-56: 3.5rem;
  --t-72: 4.5rem;

  /* Rhythm */
  --gut: clamp(20px, 4vw, 56px);
  --maxw: 1180px;

  --mono: "Noto Kufi Arabic", "SF Mono", ui-monospace, Menlo, monospace;
  --sans: "Noto Kufi Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

/* ---- Reset ---------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: var(--t-16);
  line-height: 1.7;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.18; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--grad-pink);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

/* Mono digits / IDs */
.mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: -.02em; }

/* Gradient text */
.grad-text {
  background: var(--brand-spine);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--t-13); font-weight: 600; color: var(--ink-3);
  letter-spacing: .02em;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: var(--brand-spine);
}

.section-num {
  font-family: var(--mono); font-size: var(--t-13); color: var(--grad-coral);
  font-weight: 500;
}

/* ============================ HEADER ===================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 1.5rem;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.brand .brand-name { font-weight: 700; font-size: var(--t-16); }
.brand .brand-sub { font-size: var(--t-12); color: var(--ink-3); font-weight: 500; }

.nav-links { display: flex; gap: 1.4rem; margin-inline-start: 1rem; }
.nav-links a { font-size: var(--t-14); color: var(--ink-2); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

.nav-actions { margin-inline-start: auto; display: flex; align-items: center; gap: .75rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: var(--t-14);
  padding: .62rem 1.15rem; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); }
.btn-outline { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink-3); box-shadow: var(--sh-1); }
.btn-primary { background: var(--brand-spine); color: var(--ink-onbrand); box-shadow: var(--sh-brand); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-lg { padding: .85rem 1.6rem; font-size: var(--t-16); }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn-primary:hover { transform: none; }
}

/* ============================ HERO ======================================= */
.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px) clamp(60px, 8vw, 120px);
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(14,124,120,.10), transparent 60%),
    radial-gradient(900px 480px at 4% 8%, rgba(200,150,43,.08), transparent 55%),
    var(--bg);
  overflow: hidden;
}
/* faint grid motif */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to left, rgba(36,28,22,.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(36,28,22,.022) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(700px 460px at 50% 30%, #000, transparent 75%);
          mask-image: radial-gradient(700px 460px at 50% 30%, #000, transparent 75%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  background: #fff; border: 1px solid var(--line-2);
  border-radius: var(--r-pill); padding: .4rem .85rem;
  font-size: var(--t-13); color: var(--ink-2); font-weight: 600;
  box-shadow: var(--sh-1); margin-bottom: 1.4rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-spine); }

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, var(--t-56));
  line-height: 1.08; letter-spacing: -.02em;
  margin-bottom: 1.1rem;
}
.hero h1 .grad-text { display: inline; }
.hero-lede {
  font-size: clamp(var(--t-16), 2.2vw, var(--t-21));
  color: var(--ink-2); margin-bottom: 1.8rem; max-width: 46ch;
}

/* visual-only search bar */
.search-bar {
  display: flex; align-items: center; gap: .75rem;
  background: #fff; border: 1px solid var(--line-2);
  border-radius: var(--r-pill); padding: .55rem .65rem .55rem 1.1rem;
  box-shadow: var(--sh-2); max-width: 480px;
}
.search-bar .ico { color: var(--ink-3); flex-shrink: 0; }
.search-bar .ph { color: var(--ink-3); font-size: var(--t-15, .95rem); flex: 1; }
.search-bar .btn { padding: .6rem 1.1rem; }
.search-meta {
  margin-top: .9rem; font-size: var(--t-13); color: var(--ink-2);
  display: flex; gap: 1.1rem; flex-wrap: wrap;
}
.search-meta b { color: var(--ink); font-weight: 600; }

/* hero stat ribbon */
.hero-stats {
  margin-top: 2.2rem; display: flex; gap: 2rem; flex-wrap: wrap;
}
.hero-stats .st { display: flex; flex-direction: column; }
.hero-stats .st b { font-size: var(--t-26); font-weight: 700; letter-spacing: -.02em; }
.hero-stats .st span { font-size: var(--t-13); color: var(--ink-3); }

/* ---- Hero passport stage ---- */
.hero-stage { position: relative; min-height: 500px; overflow: visible; }
/* Clip peek overflow only at narrow widths where the stage is full-width */
@media (max-width: 980px) {
  .hero-stage { overflow: hidden; min-height: 440px; padding-inline: 16px; }
  .peek-1 { inset-inline-start: 4px; }
  .peek-2 { inset-inline-end: 4px; }
  .peek-3 { inset-inline-end: 10px; }
}

/* peeking app screens — deliberately subordinate to the passport card */
.app-peek {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-1); overflow: hidden;
  opacity: .52;
}
.app-peek .peek-bar {
  height: 30px; background: var(--bg-warm); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 5px; padding-inline: 12px;
}
.app-peek .peek-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.app-peek .peek-body { padding: 14px; }
.peek-row { height: 9px; border-radius: 4px; background: var(--bg-warm-2); margin-bottom: 9px; }
.peek-row.s { width: 55%; } .peek-row.m { width: 78%; } .peek-row.l { width: 92%; }
.peek-row.brand { background: var(--brand-spine-soft); width: 40%; height: 14px; }

.peek-1 { top: 6px; inset-inline-start: -14px; width: 190px; transform: rotate(-5deg) scale(.88); }
.peek-2 { bottom: 8px; inset-inline-end: -10px; width: 200px; transform: rotate(4deg) scale(.88); }
.peek-3 { display: none; }

/* mini bloodline node screen */
.peek-tree { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; }
.peek-tree .nd { width: 26px; height: 26px; border-radius: 8px; background: var(--bg-warm-2); }
.peek-tree .nd.hl { background: var(--brand-spine); }

/* ---- The passport card (signature object) — THE WOW OBJECT ---- */
.passport {
  position: relative; z-index: 4;
  width: min(420px, 100%); margin-inline: auto;
  background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--sh-3), 0 0 0 3px rgba(14,124,120,.10);
  border: 1px solid rgba(14,124,120,.18);
  overflow: hidden;
}
/* gradient edge — the signature passport-card edge */
.passport::before {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0;
  width: 6px; background: var(--brand-spine);
}
.passport-top {
  display: flex; gap: 14px; padding: 18px 20px 14px;
  align-items: center; border-bottom: 1px solid var(--line);
}
.passport-photo {
  width: 78px; height: 78px; border-radius: var(--r-md); object-fit: cover;
  flex-shrink: 0; border: 1px solid var(--line);
}
.passport-id .ptitle { display: flex; align-items: baseline; gap: .5rem; }
.passport-id .pname { font-size: var(--t-26); font-weight: 700; }
.passport-id .pbreed {
  font-size: var(--t-12); font-weight: 600; color: var(--ink-2);
  background: var(--bg-warm-2); padding: .15rem .55rem; border-radius: var(--r-pill);
}
.passport-id .pchip { font-size: var(--t-12); color: var(--ink-2); margin-top: .35rem; }
.passport-id .pchip b { color: var(--ink); }

.verified-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--verify-bg); color: var(--verify);
  border: 1px solid rgba(31,157,107,.25);
  border-radius: var(--r-pill); padding: .3rem .6rem;
  font-size: var(--t-12); font-weight: 600; margin-top: .55rem;
}
.verified-badge .vhash { font-family: var(--mono); font-size: var(--t-12); opacity: .85; }
.verified-badge svg { flex-shrink: 0; }

.passport-body { padding: 16px 20px 20px; }
.passport-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.pstat {
  background: var(--bg-warm); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 12px;
}
.pstat .v { font-family: var(--mono); font-size: var(--t-18); font-weight: 600; letter-spacing: -.03em; }
.pstat .k { font-size: var(--t-12); color: var(--ink-2); }

/* sparkline panel */
.spark-panel {
  background: var(--bg-warm); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px;
}
.spark-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.spark-head .lbl { font-size: var(--t-12); color: var(--ink-2); }
.spark-head .lbl b { color: var(--ink); font-family: var(--mono); }
.spark-svg { width: 100%; height: 46px; display: block; }

.concept-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--t-12); color: var(--ink-2);
  border: 1px dashed var(--line-2); border-radius: var(--r-pill);
  padding: .2rem .6rem; margin-top: 14px;
}
.concept-tag::before { content: "◇"; color: var(--grad-coral); }

/* ============================ LOGO STRIP ================================= */
.cred-strip {
  border-block: 1px solid var(--line); background: var(--bg-warm);
}
.cred-strip .wrap {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.6rem);
  flex-wrap: wrap; padding-block: 18px;
}
.cred-strip .lead { font-size: var(--t-13); color: var(--ink-3); font-weight: 600; }
.cred-strip .item {
  display: flex; align-items: baseline; gap: .45rem; font-size: var(--t-14); color: var(--ink-2);
}
.cred-strip .item b { font-family: var(--mono); color: var(--ink); font-weight: 600; }

/* ============================ SECTION SCAFFOLD =========================== */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-warm { background: var(--bg-warm); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head .kicker { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.section-head h2 {
  font-size: clamp(var(--t-32), 4.4vw, var(--t-42)); letter-spacing: -.025em;
  margin-bottom: .9rem;
}
.section-head p { font-size: var(--t-18); color: var(--ink-2); max-width: 60ch; }

/* ============================ PASSPORT ANATOMY (2) ====================== */
.anatomy { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.anatomy-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-2); overflow: hidden; position: relative;
}
.anatomy-card::before {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 5px;
  background: var(--brand-spine);
}
.anatomy-card .ahead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--bg-warm);
}
.anatomy-card .ahead .t { font-weight: 700; }
.anatomy-card .ahead .mono { font-size: var(--t-12); color: var(--ink-2); }
.anatomy-list { padding: 6px 8px; }
.alist-row {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: var(--r-sm); transition: background .15s ease;
}
.alist-row + .alist-row { border-top: 1px solid var(--line); }
.alist-row:hover { background: var(--bg-warm); }
.alist-row .ai {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--brand-spine-soft); color: var(--grad-coral); flex-shrink: 0;
}
.alist-row .ax .at { font-weight: 600; font-size: var(--t-15, .95rem); }
.alist-row .ax .ad { font-size: var(--t-13); color: var(--ink-3); }
.alist-row .av { font-family: var(--mono); font-size: var(--t-13); color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .alist-row { transition: none; } }

.anatomy-aside { display: flex; flex-direction: column; gap: 18px; }
.feature-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px; box-shadow: var(--sh-1);
}
.feature-tile .fi {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--bg-warm-2); margin-bottom: 12px;
}
.feature-tile h4 { font-size: var(--t-18); margin-bottom: .35rem; }
.feature-tile p { font-size: var(--t-14); color: var(--ink-2); }

/* ============================ BLOODLINE TREE (3) ======================== */
.tree-frame {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-2); padding: clamp(22px, 3.5vw, 40px);
  position: relative; overflow: hidden;
}
.tree-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(36,28,22,.04) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  opacity: .6;
}
.tree-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(14px, 2.5vw, 34px);
  align-items: center;
}
.tree-col { display: flex; flex-direction: column; gap: 16px; }
.tree-col .col-label {
  font-size: var(--t-12); color: var(--ink-3); font-weight: 600; text-align: center;
  margin-bottom: 2px;
}
.gen-node {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: 12px 14px; box-shadow: var(--sh-1); position: relative;
}
.gen-node.subject { border-color: transparent; box-shadow: var(--sh-brand); }
.gen-node.subject::before {
  content: ""; position: absolute; inset: -1px; border-radius: var(--r-md); padding: 1px;
  background: var(--brand-spine);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.gen-node .gn-top { display: flex; align-items: center; gap: 10px; }
.gen-node .gn-photo {
  width: 38px; height: 38px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line);
}
.gen-node .gn-name { font-weight: 700; font-size: var(--t-16); }
.gen-node .gn-breed { font-size: var(--t-12); color: var(--ink-2); }
.gen-node .gn-tele {
  margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap;
}
.tele-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--mono); font-size: var(--t-12); color: var(--ink-2);
  background: var(--bg-warm); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: .18rem .55rem;
}
.tele-chip .tk { color: var(--ink-3); font-family: var(--sans); }
.gen-node .gn-mini { margin-top: 8px; }
.gn-mini svg { width: 100%; height: 26px; display: block; }

.tree-col.gen2 .gen-node, .tree-col.gen3 .gen-node { padding: 10px 12px; }
.tree-col.gen3 .gen-node .gn-name { font-size: var(--t-14); }

.tree-legend {
  display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 22px;
  font-size: var(--t-13); color: var(--ink-3);
}
.tree-legend .lg { display: flex; align-items: center; gap: .45rem; }
.tree-legend .lg i { width: 12px; height: 12px; border-radius: 4px; }

/* ============================ MARKETPLACE (4) =========================== */
.market { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.market-econ { display: flex; flex-direction: column; gap: 18px; }
.econ-stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px 24px; box-shadow: var(--sh-1); position: relative; overflow: hidden;
}
.econ-stat.hero-stat::after {
  content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 5px; background: var(--brand-spine);
}
.econ-stat .ev { font-size: clamp(var(--t-32), 4vw, var(--t-42)); font-weight: 700; letter-spacing: -.03em; }
.econ-stat .ek { font-size: var(--t-14); color: var(--ink-2); margin-top: .25rem; }
.econ-stat .en { font-size: var(--t-12); color: var(--ink-3); margin-top: .4rem; }

/* marketplace listing card */
.listing {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); overflow: hidden;
}
.listing-media { position: relative; }
.listing-media img { width: 100%; height: 230px; object-fit: cover; }
.listing-media .lm-overlay {
  position: absolute; inset-inline: 12px; bottom: 12px;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.listing-media .lm-cat {
  background: rgba(36,28,22,.62); color: #fff; backdrop-filter: blur(6px);
  border-radius: var(--r-pill); padding: .3rem .8rem; font-size: var(--t-12); font-weight: 600;
}
.listing-media .lm-verify {
  background: rgba(255,255,255,.92); color: var(--verify);
  border-radius: var(--r-pill); padding: .3rem .7rem; font-size: var(--t-12); font-weight: 700;
  display: inline-flex; align-items: center; gap: .35rem;
}
.listing-body { padding: 20px 22px 22px; }
.listing-body .lh { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.listing-body .lname { font-size: var(--t-26); font-weight: 700; }
.listing-body .lsub { font-size: var(--t-13); color: var(--ink-3); }
.listing-body .lprice { text-align: end; }
.listing-body .lprice .pv { font-size: var(--t-21); font-weight: 700; font-family: var(--mono); letter-spacing: -.02em; }
.listing-body .lprice .pk { font-size: var(--t-12); color: var(--ink-3); }

.credential {
  margin-top: 18px; background: var(--bg-warm); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 16px;
}
.credential .ch { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.credential .ch .ct { font-size: var(--t-13); font-weight: 700; color: var(--ink); }
.credential-rows { display: grid; gap: 8px; }
.cred-line { display: flex; justify-content: space-between; align-items: center; font-size: var(--t-13); }
.cred-line .ck { color: var(--ink-2); }
.cred-line .cv { font-family: var(--mono); color: var(--ink); }
.cred-foot {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2);
  display: flex; align-items: center; gap: .5rem; font-size: var(--t-12); color: var(--verify); font-weight: 600;
}
.cred-foot .vhash { font-family: var(--mono); color: var(--ink-3); margin-inline-start: auto; }

.listing-actions { margin-top: 18px; display: flex; gap: 10px; }
.listing-actions .btn { flex: 1; }

/* ============================ OWNER PORTAL (5) ========================== */
.portal { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
.portal-points { display: flex; flex-direction: column; gap: 14px; }
.portal-point {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-1);
}
.portal-point .pi {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--brand-spine-soft); color: var(--grad-coral); flex-shrink: 0; font-weight: 700;
  font-family: var(--mono); font-size: var(--t-14);
}
.portal-point h4 { font-size: var(--t-16); margin-bottom: .2rem; }
.portal-point p { font-size: var(--t-14); color: var(--ink-2); }

/* dashboard panel */
.dashboard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); overflow: hidden;
}
.dash-top {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px;
  border-bottom: 1px solid var(--line); background: var(--bg-warm);
}
.dash-top .da {
  width: 34px; height: 34px; border-radius: 9px; background: var(--brand-spine);
  display: grid; place-items: center; color: #fff; font-weight: 700;
}
.dash-top .dt .dtt { font-weight: 700; font-size: var(--t-15, .95rem); }
.dash-top .dt .dts { font-size: var(--t-12); color: var(--ink-3); }
.dash-top .dtag {
  margin-inline-start: auto; font-size: var(--t-12); font-weight: 600; color: var(--verify);
  background: var(--verify-bg); border-radius: var(--r-pill); padding: .25rem .7rem;
}
.dash-kpis {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.dash-kpi { padding: 16px 20px; }
.dash-kpi + .dash-kpi { border-inline-start: 1px solid var(--line); }
.dash-kpi .kv { font-size: var(--t-26); font-weight: 700; letter-spacing: -.02em; font-family: var(--mono); }
.dash-kpi .kk { font-size: var(--t-12); color: var(--ink-3); }

/* beautiful data table */
.dash-table { width: 100%; border-collapse: collapse; font-size: var(--t-14); }
.dash-table thead th {
  text-align: start; font-size: var(--t-12); color: var(--ink-3); font-weight: 600;
  padding: 12px 20px; border-bottom: 1px solid var(--line); background: #fff;
}
.dash-table tbody td { padding: 13px 20px; border-bottom: 1px solid var(--line); }
.dash-table tbody tr:last-child td { border-bottom: 0; }
.dash-table tbody tr:hover { background: var(--bg-warm); }
.dash-table .c-name { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.dash-table .c-name .tdot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-spine); flex-shrink: 0; }
.dash-table .num { font-family: var(--mono); letter-spacing: -.02em; }
.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: var(--t-12); font-weight: 600; border-radius: var(--r-pill); padding: .2rem .6rem;
}
.pill.win { background: var(--verify-bg); color: var(--verify); }
.pill.reg { background: var(--bg-warm-2); color: var(--ink-2); }
.pill.draw { background: rgba(229,75,124,.10); color: var(--grad-pink); }

/* ============================ FRANCHISE STANDARD (6) =================== */
.std-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.std-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.std-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px; box-shadow: var(--sh-1);
}
.std-card .si {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-spine-soft); color: var(--grad-coral); margin-bottom: 14px;
}
.std-card h4 { font-size: var(--t-18); margin-bottom: .4rem; }
.std-card p { font-size: var(--t-14); color: var(--ink-2); }

/* GCC adoption map-ish panel */
.std-panel {
  background: var(--ink); color: #fff; border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 44px); position: relative; overflow: hidden;
  box-shadow: var(--sh-3);
}
.std-panel::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% -10%, rgba(14,124,120,.35), transparent 60%),
              radial-gradient(500px 280px at 0% 110%, rgba(200,150,43,.28), transparent 60%);
}
.std-panel > * { position: relative; z-index: 1; }
.std-panel .sp-eyebrow { font-size: var(--t-13); color: rgba(255,255,255,.7); font-weight: 600; }
.std-panel h3 { font-size: var(--t-26); margin: .6rem 0 1.4rem; }
.std-nodes { display: grid; gap: 12px; }
.std-node {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md); padding: 12px 16px;
}
.std-node .sn-flag {
  width: 38px; height: 38px; border-radius: 8px; background: var(--brand-spine);
  display: grid; place-items: center; font-size: 10px; font-weight: 700; flex-shrink: 0;
  overflow: hidden; text-align: center; line-height: 1.1; padding: 2px;
}
.std-node .sn-name { font-weight: 600; }
.std-node .sn-status { margin-inline-start: auto; font-size: var(--t-12); color: rgba(255,255,255,.65); font-family: var(--mono); }
.std-node.live .sn-status { color: #6FE0AC; }

/* ============================ CTA ====================================== */
.cta { padding-block: clamp(60px, 8vw, 110px); }
.cta-card {
  background: var(--brand-spine); border-radius: var(--r-lg);
  padding: clamp(36px, 6vw, 72px); text-align: center; color: #fff;
  position: relative; overflow: hidden; box-shadow: var(--sh-brand);
}
.cta-card::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 24px 24px; opacity: .5;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(var(--t-32), 4.6vw, var(--t-42)); margin-bottom: 1rem; letter-spacing: -.02em; }
.cta-card p { font-size: var(--t-18); color: rgba(255,255,255,.92); max-width: 52ch; margin-inline: auto; margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta .btn-white { background: #fff; color: var(--ink); }
.cta .btn-white:hover { transform: translateY(-1px); }
.cta .btn-clear { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }

/* ============================ FOOTER =================================== */
.site-footer { background: var(--bg-warm); border-top: 1px solid var(--line); padding-block: clamp(40px, 5vw, 64px) 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.foot-brand img { height: 56px; width: auto; margin-bottom: 14px; }
.foot-brand p { font-size: var(--t-14); color: var(--ink-2); max-width: 34ch; }
.foot-built {
  margin-top: 16px; font-size: var(--t-13); color: var(--ink-3);
  display: inline-flex; align-items: center; gap: .5rem;
}
.foot-built b { color: var(--ink); font-weight: 600; }
.foot-col h5 { font-size: var(--t-13); color: var(--ink-3); text-transform: none; margin-bottom: 14px; font-weight: 600; }
.foot-col a { display: block; font-size: var(--t-14); color: var(--ink-2); padding: 5px 0; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom {
  margin-top: clamp(34px, 4vw, 52px); padding-top: 22px; border-top: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: var(--t-13); color: var(--ink-3);
}
.foot-bottom .concept-tag { margin: 0; }

/* ============================ RESPONSIVE =============================== */
@media (max-width: 980px) {
  .hero-grid, .anatomy, .market, .portal, .std-grid { grid-template-columns: 1fr; }
  .hero-stage { order: -1; min-height: 420px; margin-bottom: 1rem; }
  .nav-links { display: none; }
  .tree-grid { grid-template-columns: 1fr; gap: 14px; }
  .tree-col.gen2, .tree-col.gen3 { flex-direction: row; flex-wrap: wrap; }
  .tree-col.gen2 .gen-node, .tree-col.gen3 .gen-node { flex: 1 1 160px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .std-cards { grid-template-columns: 1fr; }
  .dash-kpis { grid-template-columns: 1fr; }
  .dash-kpi + .dash-kpi { border-inline-start: 0; border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.2rem; }
  .passport-stats { grid-template-columns: repeat(3, 1fr); }
  .dash-table thead { display: none; }
  .dash-table tbody td { padding: 8px 16px; }
}
