/* ════════════════════════════════════════════════════════════
   HERO (dark)
   ════════════════════════════════════════════════════════════ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy-975); color: #fff;
  padding: 96px 0 0;
  margin-top: -69px; padding-top: 165px; /* slide under the translucent header */
}
.hero::after { /* top glow */
  content: ""; position: absolute; z-index: -1; left: 50%; top: -260px; width: 1300px; height: 760px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(43,115,168,.55), transparent),
    radial-gradient(closest-side at 70% 60%, rgba(45,212,191,.16), transparent);
  filter: blur(10px); pointer-events: none;
}
.hero.grid-bg::before {
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 25%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 55% at 50% 25%, #000 10%, transparent 75%);
}
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { color: #fff; max-width: 900px; margin-bottom: 24px; }
.hero h1 .serif { color: var(--teal-300); }
.hero .lede { color: rgba(255,255,255,.68); max-width: 620px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }

.hero-chip {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 30px;
  padding: 5px 14px 5px 5px; border-radius: 100px; font-size: 13px; color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  transition: background .2s, border-color .2s;
}
.hero-chip:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); color: #fff; }
.hero-chip .tag { padding: 3px 10px; border-radius: 100px; background: rgba(45,212,191,.14); color: var(--teal-300); font-weight: 600; font-size: 12px; }
.hero-chip .icon { width: 14px; height: 14px; opacity: .7; }

.hero-meta { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; font-size: 13px; color: rgba(255,255,255,.5); }
.hero-meta li { display: flex; align-items: center; gap: 8px; margin: 0; }
.hero-meta .icon { width: 15px; height: 15px; color: var(--teal-300); }

.hero-stage { position: relative; margin-top: 72px; }
.stage { position: relative; max-width: 1120px; margin: 0 auto; }
.stage::before { /* glow under the window */
  content: ""; position: absolute; left: 8%; right: 8%; top: 12%; bottom: -10%; z-index: -1;
  background: radial-gradient(closest-side, rgba(43,115,168,.55), transparent); filter: blur(40px);
}
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 220px; background: linear-gradient(to bottom, transparent, var(--bg)); z-index: 3; pointer-events: none; }
.hero-floor { height: 1px; }
.stage .app-window { border-radius: 14px 14px 0 0; border-bottom: none; }
.js .stage .app-window { animation: rise 1.1s var(--ease) .1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.985); } to { opacity: 1; transform: none; } }

.stage-card {
  position: absolute; z-index: 4; background: rgba(255,255,255,.97); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-xl); padding: 14px 16px; color: var(--text);
  backdrop-filter: blur(8px);
}
.js .stage-card { animation: floatin .9s var(--ease) both; }
.stage-card.s1 { left: -44px; top: 250px; width: 250px; animation-delay: .55s; }
.stage-card.s2 { right: -40px; top: 96px; width: 236px; animation-delay: .75s; }
@keyframes floatin { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.stage-card .k { font-size: 11px; color: var(--text-faint); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.stage-card .k .icon { width: 13px; height: 13px; color: var(--teal-600); }
.stage-card .v { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--ink-950); }
.stage-card .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.stage-card .row .mono { font-size: 11.5px; color: var(--ink-900); }
.stage-card .qr-row { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.stage-card .qr-row svg { width: 46px; height: 46px; flex: none; }
.stage-card .qr-row .t { font-size: 10.5px; color: var(--text-faint); line-height: 1.4; }

@media (max-width: 1240px) { .stage-card.s1 { left: -12px; } .stage-card.s2 { right: -12px; } }
@media (max-width: 1000px) { .stage-card { display: none; } }
@media (max-width: 720px) {
  .hero { padding-top: 128px; }
  .hero-meta { gap: 10px 18px; }
  .hero-stage { margin-top: 48px; }
}

/* ════════════════════════════════════════════════════════════
   APP WINDOW + MOCK UI SYSTEM (shared by hero, explorer, module pages)
   ════════════════════════════════════════════════════════════ */
.app-window {
  position: relative; background: var(--surface); border: 1px solid rgba(20,17,14,.1); border-radius: 14px;
  box-shadow: var(--shadow-xl); overflow: hidden; color: var(--text); text-align: left;
  font-size: 12.5px; line-height: 1.45;
  container: aw / inline-size;
}
.on-dark .app-window { border-color: rgba(255,255,255,.14); box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 50px 120px -30px rgba(0,0,0,.7); }
.aw-bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--ink-50); }
.aw-dots { display: flex; gap: 6px; }
.aw-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-300); display: block; }
.aw-search { flex: 1; max-width: 360px; margin: 0 auto; height: 28px; border-radius: 7px; border: 1px solid var(--border); background: #fff; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--text-faint); font-size: 12px; }
.aw-search .icon { width: 13px; height: 13px; }
.aw-search kbd { margin-left: auto; font-family: var(--font-mono); font-size: 10px; border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; color: var(--text-faint); }
.aw-user { display: flex; align-items: center; gap: 8px; }
.aw-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--navy-100); color: var(--navy-800); display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.aw-bell { width: 16px; height: 16px; color: var(--text-faint); }

.aw-body { display: grid; grid-template-columns: 196px 1fr; min-height: 420px; }
.aw-side { border-right: 1px solid var(--border); padding: 12px 10px; background: var(--ink-50); }
.aw-brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 12px; font-weight: 650; font-size: 13px; font-family: var(--font-display); }
.aw-brand img { width: 20px; height: 20px; }
.aw-side .grp { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); padding: 12px 8px 5px; font-weight: 600; }
.aw-side .it { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 6px; font-size: 12.5px; color: var(--text-muted); position: relative; }
.aw-side .it .icon { width: 14px; height: 14px; }
.aw-side .it.on { background: var(--navy-50); color: var(--navy-800); font-weight: 600; }
.aw-side .it.on::before { content: ""; position: absolute; left: -10px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--navy-800); }
.aw-main { padding: 18px 20px 20px; min-width: 0; background: #fff; }

/* page header inside a screen */
.sc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sc-crumb { font-size: 11px; color: var(--text-faint); margin-bottom: 4px; }
.sc-title { font-family: var(--font-display); font-size: 17px; font-weight: 640; letter-spacing: -0.015em; color: var(--ink-950); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sc-sub { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }
.sc-actions { display: flex; gap: 6px; flex: none; }
.sc-btn { height: 26px; padding: 0 10px; border-radius: 6px; font-size: 11.5px; font-weight: 580; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border); background: #fff; color: var(--text); white-space: nowrap; }
.sc-btn .icon { width: 12px; height: 12px; }
.sc-btn.pri { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.sc-tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--border); margin: -4px 0 14px; font-size: 12px; color: var(--text-faint); overflow: hidden; white-space: nowrap; }
.sc-tabs span { padding: 0 0 9px; }
.sc-tabs span.on { color: var(--navy-800); font-weight: 600; box-shadow: inset 0 -2px 0 var(--navy-800); }

/* status pills */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 100px; white-space: nowrap; line-height: 1.6; }
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--positive-bg); color: var(--positive); }
.pill.warn { background: var(--warning-bg); color: var(--warning); }
.pill.bad { background: var(--negative-bg); color: var(--negative); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.neutral { background: var(--ink-100); color: var(--ink-600); }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.kpi { border: 1px solid var(--border); border-radius: 9px; padding: 11px 12px; background: #fff; position: relative; overflow: hidden; }
.kpi .l { font-size: 10.5px; color: var(--text-faint); display: flex; align-items: center; gap: 5px; }
.kpi .l .icon { width: 12px; height: 12px; }
.kpi .v { font-family: var(--font-mono); font-size: 16px; font-weight: 600; color: var(--ink-950); margin-top: 6px; letter-spacing: -0.02em; }
.kpi .f { font-size: 10.5px; margin-top: 3px; color: var(--positive); }
.kpi .f.neg { color: var(--negative); }
.kpi .f.mut { color: var(--text-faint); }
.kpi .spark { position: absolute; right: 10px; top: 12px; width: 54px; height: 22px; }

/* panels */
.pn { border: 1px solid var(--border); border-radius: 9px; background: #fff; min-width: 0; }
.pn-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.pn-h .t { font-size: 12px; font-weight: 620; color: var(--ink-950); }
.pn-h .m { font-size: 10.5px; color: var(--text-faint); font-family: var(--font-mono); }
.pn-b { padding: 12px; }
.pn-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 12px; margin-bottom: 12px; }

/* tables */
.tb { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.tb th { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); background: var(--ink-50); padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tb td { padding: 8px 10px; border-bottom: 1px solid var(--ink-150); color: var(--text); vertical-align: middle; white-space: nowrap; }
.tb tr:last-child td { border-bottom: none; }
.tb .id { font-family: var(--font-mono); font-size: 11px; color: var(--navy-800); font-weight: 500; }
.tb .num { font-family: var(--font-mono); font-size: 11px; text-align: right; }
.tb th.num { text-align: right; }
.tb .mut { color: var(--text-faint); }
.tb tr.hl td { background: #fbfcfe; }
.bar { width: 70px; height: 5px; border-radius: 3px; background: var(--ink-150); overflow: hidden; display: inline-block; vertical-align: middle; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--teal-600); }
.bar i.w { background: #d49a2a; }
.bar i.n { background: var(--navy-700); }
.bar-l { display: inline-flex; align-items: center; gap: 8px; }
.bar-l .mono { font-size: 10.5px; color: var(--text-faint); }

/* totals block */
.totals { margin-left: auto; width: 240px; font-size: 11.5px; margin-top: 10px; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--text-muted); }
.totals div span:last-child { font-family: var(--font-mono); color: var(--text); }
.totals .g { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 8px; font-weight: 650; color: var(--ink-950); }
.totals .g span:last-child { font-weight: 650; }

/* activity feed */
.feed { list-style: none; margin: 0; padding: 0; position: relative; }
.feed li { display: flex; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--ink-150); margin: 0; font-size: 11.5px; color: var(--text); align-items: flex-start; }
.feed li:last-child { border-bottom: none; }
.feed .fi { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex: none; background: var(--navy-50); color: var(--navy-800); }
.feed .fi .icon { width: 12px; height: 12px; }
.feed .fi.t { background: var(--teal-50); color: var(--teal-700); }
.feed .fi.w { background: var(--warning-bg); color: var(--warning); }
.feed .ft { flex: 1; min-width: 0; line-height: 1.4; }
.feed .ft b { font-family: var(--font-mono); font-weight: 500; font-size: 11px; color: var(--navy-800); }
.feed .tm { font-size: 10px; color: var(--text-faint); white-space: nowrap; font-family: var(--font-mono); }
.feed li.enter { animation: feedin .6s var(--ease); background: #f7fbfa; }
@keyframes feedin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--teal-700); font-weight: 600; }
.live-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-600); box-shadow: 0 0 0 0 rgba(13,148,136,.5); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(13,148,136,.45); } 80%, 100% { box-shadow: 0 0 0 7px rgba(13,148,136,0); } }

/* charts */
.chart { width: 100%; height: auto; display: block; }
.chart .gl { stroke: var(--ink-150); stroke-width: 1; }
.chart .ax { fill: var(--text-faint); font-size: 10px; font-family: var(--font-mono); }
.chart .ln { fill: none; stroke: var(--navy-700); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .ln2 { fill: none; stroke: var(--teal-600); stroke-width: 2; stroke-dasharray: 4 4; stroke-linejoin: round; }
.js .chart .ln { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2s var(--ease) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart .pt { fill: #fff; stroke: var(--navy-700); stroke-width: 2; }
.legend { display: flex; gap: 14px; font-size: 10.5px; color: var(--text-faint); }
.legend i { display: inline-block; width: 10px; height: 2px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }

/* invoice document */
.doc { display: grid; grid-template-columns: 1fr auto; gap: 16px; }
.doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.doc-party { border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; font-size: 11px; color: var(--text-muted); line-height: 1.55; }
.doc-party .h { font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); font-weight: 600; margin-bottom: 3px; }
.doc-party b { color: var(--ink-950); font-weight: 600; font-size: 11.5px; }
.doc-party .ar { font-family: "IBM Plex Sans Arabic", "Geeza Pro", sans-serif; direction: rtl; color: var(--text-faint); }
.doc-qr { width: 104px; text-align: center; font-size: 9.5px; color: var(--text-faint); }
.doc-qr svg { width: 104px; height: 104px; border: 1px solid var(--border); border-radius: 8px; padding: 6px; background: #fff; margin-bottom: 6px; }
.demo-flag { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: repeating-linear-gradient(135deg, #fff7e6, #fff7e6 6px, #fdf0d4 6px, #fdf0d4 12px); color: var(--warning); border: 1px solid #f1dcae; }
.demo-flag .icon { width: 12px; height: 12px; }

/* timeline (logistics) */
.tl { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; margin: 6px 0 4px; }
.tl::before { content: ""; position: absolute; left: 10%; right: 10%; top: 9px; height: 2px; background: var(--ink-150); }
.tl::after { content: ""; position: absolute; left: 10%; width: calc(80% * var(--p, .6)); top: 9px; height: 2px; background: var(--teal-600); }
.tl div { position: relative; z-index: 1; text-align: center; font-size: 10.5px; color: var(--text-faint); }
.tl div i { display: block; width: 20px; height: 20px; margin: 0 auto 6px; border-radius: 50%; background: #fff; border: 2px solid var(--ink-200); }
.tl div.done i { background: var(--teal-600); border-color: var(--teal-600); box-shadow: inset 0 0 0 3px #fff; }
.tl div.now i { border-color: var(--teal-600); box-shadow: 0 0 0 4px rgba(13,148,136,.15); }
.tl div.done, .tl div.now { color: var(--ink-900); font-weight: 560; }

@container aw (max-width: 860px) {
  .aw-body { grid-template-columns: 1fr; }
  .aw-side { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .pn-grid { grid-template-columns: 1fr; }
  .aw-search { display: none; }
  .aw-bar { justify-content: space-between; }
  .hide-sm { display: none !important; }
}
@container aw (max-width: 560px) {
  .aw-main { padding: 14px; }
  .sc-actions { display: none; }
  .doc { grid-template-columns: 1fr; }
  .doc-parties { grid-template-columns: 1fr; }
  .doc-qr { display: none; }
  .tb-scroll { overflow-x: auto; }
  .hide-xs { display: none !important; }
}
.tb-scroll { max-width: 100%; }

/* ════════════════════════════════════════════════════════════
   FACTS STRIP
   ════════════════════════════════════════════════════════════ */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.fact { padding: 32px 28px; border-left: 1px solid var(--border); }
.fact:first-child { border-left: none; padding-left: 0; }
.fact .v { font-family: var(--font-display); font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 620; letter-spacing: -0.04em; color: var(--ink-950); line-height: 1; }
.fact .v small { font-size: .45em; letter-spacing: -0.01em; color: var(--text-faint); font-weight: 560; margin-left: 4px; }
.fact .l { font-size: 13.5px; color: var(--text-muted); margin-top: 10px; line-height: 1.45; }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 24px 20px; }
  .fact:nth-child(3) { border-left: none; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ════════════════════════════════════════════════════════════
   PROBLEM → ONE SYSTEM (before / after)
   ════════════════════════════════════════════════════════════ */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .ba { grid-template-columns: 1fr; } }
.ba-card { border-radius: var(--radius-xl); padding: 32px; position: relative; overflow: hidden; min-height: 420px; display: flex; flex-direction: column; }
.ba-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.ba-card > p { font-size: 14.5px; max-width: 380px; }
.ba-before { background: var(--surface-sunken); border: 1px solid var(--border); }
.ba-after { background: var(--navy-975); color: #fff; }
.ba-after h3 { color: #fff; }
.ba-after > p { color: rgba(255,255,255,.62); }
.ba-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; color: var(--text-faint); }
.ba-after .ba-label { color: var(--teal-300); }
.ba-canvas { position: relative; flex: 1; margin-top: 24px; min-height: 230px; }

.silo {
  position: absolute; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
  box-shadow: var(--shadow); font-size: 12px; width: 172px;
}
.silo .h { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink-900); margin-bottom: 5px; }
.silo .h .icon { width: 14px; height: 14px; color: var(--text-faint); }
.silo .r { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }
.silo .r.x { color: var(--negative); }
.silo:nth-of-type(1) { left: 2%; top: 6%; transform: rotate(-3deg); }
.silo:nth-of-type(2) { right: 4%; top: 0; transform: rotate(2.5deg); }
.silo:nth-of-type(3) { left: 30%; top: 40%; transform: rotate(1.5deg); }
.silo:nth-of-type(4) { left: 0; bottom: 2%; transform: rotate(2deg); }
.silo:nth-of-type(5) { right: 2%; bottom: 6%; transform: rotate(-2.5deg); }
.silo-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.silo-lines path { fill: none; stroke: var(--ink-300); stroke-width: 1.5; stroke-dasharray: 3 5; }

.one-sys { position: absolute; inset: 0; display: grid; place-items: center; }
.one-core { position: relative; width: 132px; height: 132px; border-radius: 30px; display: grid; place-items: center; background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 20px 60px -10px rgba(43,115,168,.7); z-index: 2; }
.one-core img { width: 56px; height: 56px; }
.one-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.14); transform: translate(-50%, -50%); }
.one-ring.r1 { width: 250px; height: 250px; }
.one-ring.r2 { width: 380px; height: 380px; border-style: solid; border-color: rgba(255,255,255,.06); }
.orbit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.orbit span {
  position: absolute; transform: translate(-50%, -50%) rotate(calc(var(--a) * 1deg)) translateY(-125px) rotate(calc(var(--a) * -1deg));
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 100px; font-size: 11.5px; font-weight: 560; white-space: nowrap;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.88); backdrop-filter: blur(4px);
}
.js .orbit span { animation: counter 60s linear infinite; }
.orbit span .icon { width: 12px; height: 12px; color: var(--teal-300); }
@keyframes counter { to { transform: translate(-50%, -50%) rotate(calc(var(--a) * 1deg + 360deg)) translateY(-125px) rotate(calc(var(--a) * -1deg - 360deg)); } }
@media (max-width: 480px) { .orbit span { font-size: 10.5px; padding: 4px 8px; } .one-core { width: 104px; height: 104px; } .one-core img { width: 44px; height: 44px; } }

/* ════════════════════════════════════════════════════════════
   ORDER-TO-CASH FLOW (signature)
   ════════════════════════════════════════════════════════════ */
.flow { position: relative; margin-top: 8px; }
.flow-customer { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 100px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); font-size: 13.5px; font-weight: 560; margin-bottom: 28px; }
.flow-customer .av { width: 28px; height: 28px; border-radius: 50%; background: var(--navy-900); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.flow-customer .mono { font-size: 11.5px; color: var(--text-faint); font-weight: 400; }

.flow-rail { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; position: relative; list-style: none; padding: 0; margin: 0; }
.flow-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--ink-200); border-radius: 2px; }
.flow-rail::after {
  content: ""; position: absolute; left: 0; top: 26px; height: 4px; width: 22%; border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--teal-600), var(--teal-400)); filter: drop-shadow(0 0 6px rgba(45,212,191,.7));
}
.js .flow-rail::after { animation: pulse-run 6.4s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes pulse-run { 0% { left: -22%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.flow-step { position: relative; margin: 0; }
.flow-step .mod { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-faint); height: 16px; }
.flow-step .node { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--navy-800); margin: 4px 0 18px; position: relative; z-index: 1; }
.js .flow-step .node { animation: node-lit 6.4s infinite; animation-delay: calc(var(--i) * .72s); }
@keyframes node-lit { 0%, 100% { background: var(--surface); box-shadow: none; } 6% { background: var(--teal-600); border-color: var(--teal-600); box-shadow: 0 0 0 5px rgba(13,148,136,.18); } 22% { background: var(--surface); border-color: var(--navy-800); box-shadow: none; } }
.flow-doc { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); height: calc(100% - 52px); }
.flow-doc:hover { border-color: var(--navy-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.flow-doc .id { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--navy-800); }
.flow-doc .t { font-size: 13px; font-weight: 580; color: var(--ink-950); margin-top: 6px; line-height: 1.3; }
.flow-doc .d { font-size: 11.5px; color: var(--text-faint); margin-top: 4px; line-height: 1.4; }
.flow-doc .ref { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); padding: 2px 6px; border-radius: 4px; background: var(--ink-100); }
.flow-doc .ref .icon { width: 10px; height: 10px; }
.flow-step.end .flow-doc { background: var(--navy-975); border-color: var(--navy-975); }
.flow-step.end .flow-doc .id { color: var(--teal-300); }
.flow-step.end .flow-doc .t { color: #fff; }
.flow-step.end .flow-doc .d { color: rgba(255,255,255,.6); }

.flow-outcome { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.flow-outcome div { padding-top: 18px; border-top: 1px solid var(--border); }
.flow-outcome h4 { margin-bottom: 6px; }
.flow-outcome p { font-size: 14px; }

@media (max-width: 1060px) {
  .flow-rail { grid-template-columns: 1fr; gap: 0; padding-left: 34px; }
  .flow-rail::before { left: 6px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .flow-rail::after { display: none; }
  .flow-step { padding-bottom: 14px; }
  .flow-step .mod { height: auto; margin-bottom: 6px; }
  .flow-step .node { position: absolute; left: -34px; top: 0; margin: 0; }
  .flow-doc { height: auto; display: grid; grid-template-columns: 90px 1fr; column-gap: 12px; align-items: baseline; }
  .flow-doc .t { margin-top: 0; }
  .flow-doc .d, .flow-doc .ref { grid-column: 2; }
  .flow-outcome { grid-template-columns: 1fr; gap: 0; }
  .flow-outcome div { padding: 16px 0; }
}

/* ════════════════════════════════════════════════════════════
   PRODUCT EXPLORER
   ════════════════════════════════════════════════════════════ */
.explorer-tabs { position: relative;
  display: flex; gap: 4px; padding: 5px; margin: 0 auto 28px; width: fit-content; max-width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm);
  overflow-x: auto; scrollbar-width: none;
}
.explorer-tabs::-webkit-scrollbar { display: none; }
.explorer-tab {
  position: relative; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 8px;
  border: none; background: none; cursor: pointer; font-size: 13.5px; font-weight: 560; color: var(--text-muted); white-space: nowrap; overflow: hidden;
  transition: background .2s, color .2s;
}
.explorer-tab .icon { width: 15px; height: 15px; }
.explorer-tab:hover { color: var(--text); background: var(--surface-sunken); }
.explorer-tab.active { background: var(--navy-950); color: #fff; }
.explorer-tab .prog { position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.18); overflow: hidden; opacity: 0; }
.explorer-tab.active .prog { opacity: 1; }
.explorer-tab .prog i { display: block; height: 100%; width: 0; background: var(--teal-300); }
.explorer.playing .explorer-tab.active .prog i { animation: prog var(--dur, 7s) linear forwards; }
@keyframes prog { to { width: 100%; } }

.explorer-stage { position: relative; }
.explorer-panel { display: none; }
.explorer-panel.active { display: block; animation: panelin .45s var(--ease); }
@keyframes panelin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.explorer-caption { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-top: 24px; padding: 0 4px; }
.explorer-caption h3 { margin-bottom: 6px; }
.explorer-caption p { margin: 0; max-width: 640px; }
@media (max-width: 720px) { .explorer-caption { grid-template-columns: 1fr; gap: 12px; } }

/* ════════════════════════════════════════════════════════════
   BENTO
   ════════════════════════════════════════════════════════════ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bt {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 26px;
  display: flex; flex-direction: column; overflow: hidden; position: relative; box-shadow: var(--shadow-sm);
  transition: border-color .25s, box-shadow .25s;
}
.bt:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.bt h4 { margin-bottom: 6px; }
.bt > p { font-size: 14px; margin-bottom: 20px; max-width: 420px; }
.bt .viz { margin-top: auto; }
.bt-a .viz { margin-top: 8px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.rev-strip { border-top: 1px solid var(--border); padding-top: 20px; }
.rev-strip .h { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; }
.rev-strip .h b { font-family: var(--font-mono); font-weight: 600; color: var(--ink-950); font-size: 12px; }
.rev-bar { position: relative; height: 10px; border-radius: 5px; background: var(--ink-100); overflow: hidden; }
.rev-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; }
.rev-keys { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--text-faint); }
.rev-keys span { display: inline-flex; align-items: center; gap: 6px; }
.rev-keys i { width: 8px; height: 8px; border-radius: 2px; }
.rev-keys b { font-family: var(--font-mono); font-weight: 500; color: var(--text); font-size: 11.5px; }
.bt-a { grid-column: span 4; grid-row: span 2; }
.bt-b { grid-column: span 2; }
.bt-c { grid-column: span 2; }
.bt-d, .bt-e, .bt-f { grid-column: span 2; }
.bt-dark { background: var(--navy-975); border-color: var(--navy-975); color: #fff; }
.bt-dark h4 { color: #fff; }
.bt-dark > p { color: rgba(255,255,255,.6); }
.bt-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.bt-dark .bt-tag { color: var(--teal-300); }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bt-a { grid-column: span 2; grid-row: auto; }
  .bt-b, .bt-c, .bt-d, .bt-e, .bt-f { grid-column: span 1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bt-a, .bt-b, .bt-c, .bt-d, .bt-e, .bt-f { grid-column: auto; }
  .bt { padding: 22px; }
}

/* profitability viz */
.pf-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.pf-top div { border-left: 2px solid var(--ink-200); padding-left: 12px; }
.pf-top div.hl { border-color: var(--teal-600); }
.pf-top .l { font-size: 11.5px; color: var(--text-faint); }
.pf-top .v { font-family: var(--font-mono); font-size: clamp(15px, 1.6vw, 19px); font-weight: 600; color: var(--ink-950); margin-top: 2px; letter-spacing: -0.02em; }
.pf-rows { display: grid; gap: 14px; }
.pf-row { display: grid; grid-template-columns: 110px 1fr 120px; gap: 14px; align-items: center; font-size: 13px; }
.pf-row .n { color: var(--text); font-weight: 530; }
.pf-row .a { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); text-align: right; }
.pf-track { position: relative; height: 22px; border-radius: 6px; background: var(--ink-100); overflow: hidden; }
.pf-track .budget { position: absolute; inset: 0 auto 0 0; background: repeating-linear-gradient(135deg, var(--ink-150), var(--ink-150) 4px, var(--ink-100) 4px, var(--ink-100) 8px); border-right: 2px solid var(--ink-400); }
.pf-track .actual { position: absolute; inset: 4px auto 4px 0; border-radius: 4px; background: linear-gradient(90deg, var(--navy-800), var(--navy-600)); transform-origin: left; }
.pf-track .actual.over { background: linear-gradient(90deg, #c77e14, #e0a238); }
.js .bt .pf-track .actual { transform: scaleX(0); transition: transform 1.2s var(--ease); }
.js .is-visible .pf-track .actual, .js .bt.is-visible .pf-track .actual { transform: scaleX(1); }
.pf-legend { display: flex; gap: 18px; font-size: 11.5px; color: var(--text-faint); margin-top: 18px; flex-wrap: wrap; }
.pf-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pf-legend i { width: 14px; height: 8px; border-radius: 2px; display: inline-block; }
@media (max-width: 560px) {
  .pf-top { grid-template-columns: 1fr 1fr; }
  .pf-row { grid-template-columns: 84px 1fr; }
  .pf-row .a { display: none; }
}

/* aging viz */
.aging-bar { display: flex; height: 30px; border-radius: 7px; overflow: hidden; gap: 2px; margin-bottom: 14px; }
.aging-bar span { display: block; height: 100%; }
.aging-list { display: grid; gap: 7px; font-size: 12.5px; }
.aging-list div { display: flex; justify-content: space-between; align-items: center; }
.aging-list i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 8px; }
.aging-list .mono { font-size: 11.5px; color: var(--text); }

/* invoice mini (dark tile) */
.inv-mini { background: #fff; border-radius: 12px; padding: 14px; color: var(--text); box-shadow: 0 20px 40px -12px rgba(0,0,0,.5); transform: rotate(-1.5deg); }
.inv-mini .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.inv-mini .ttl { font-family: var(--font-display); font-weight: 650; font-size: 13.5px; }
.inv-mini .ttl small { display: block; font-family: "IBM Plex Sans Arabic", "Geeza Pro", sans-serif; font-weight: 500; color: var(--text-faint); font-size: 11px; margin-top: 1px; }
.inv-mini svg { width: 52px; height: 52px; }
.inv-mini .lines { margin-top: 10px; font-size: 11px; display: grid; gap: 4px; }
.inv-mini .lines div { display: flex; justify-content: space-between; color: var(--text-muted); }
.inv-mini .lines div span:last-child { font-family: var(--font-mono); color: var(--text); }
.inv-mini .lines .g { border-top: 1px solid var(--border); padding-top: 5px; margin-top: 2px; font-weight: 650; color: var(--ink-950); }
.inv-mini .demo-flag { margin-top: 10px; }
.zatca-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.zatca-list li { margin: 0; font-family: var(--font-mono); font-size: 10.5px; padding: 3px 8px; border-radius: 5px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.8); }

/* role matrix */
.rm { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 11.5px; }
.rm th { font-size: 10px; font-weight: 600; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; padding: 0 0 8px; text-align: center; background: none; border: none; }
.rm th:first-child { text-align: left; }
.rm td { padding: 7px 0; border-top: 1px solid var(--ink-150); text-align: center; border-bottom: none; }
.rm td:first-child { text-align: left; color: var(--text); font-weight: 530; }
.rm .y, .rm .n { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; }
.rm .y { background: var(--teal-50); color: var(--teal-700); }
.rm .y .icon { width: 11px; height: 11px; }
.rm .n { background: var(--ink-100); }
.rm .n::after { content: ""; width: 6px; height: 1.5px; background: var(--ink-300); }

/* stock viz */
.stock { display: grid; gap: 12px; }
.stock-row .h { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 5px; }
.stock-row .h .mono { font-size: 11px; color: var(--text-faint); }
.stock-track { position: relative; height: 8px; border-radius: 4px; background: var(--ink-100); }
.stock-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--navy-700); }
.stock-track i.low { background: #d49a2a; }
.stock-track b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink-900); border-radius: 1px; }
.stock-row .low-tag { color: var(--warning); font-weight: 600; font-size: 11px; }

/* ════════════════════════════════════════════════════════════
   ARCHITECTURE STACK
   ════════════════════════════════════════════════════════════ */
.stack { display: grid; gap: 10px; }
.layer { border-radius: 16px; padding: 18px 20px; position: relative; }
.layer-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.layer-h .n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.layer-h .d { font-size: 12.5px; color: var(--text-faint); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 560; background: #fff; border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow-sm); white-space: nowrap; }
.chip .icon { width: 15px; height: 15px; color: var(--navy-700); }
.chip .st { width: 7px; height: 7px; border-radius: 50%; background: var(--positive); margin-left: 2px; }
.chip .st.expanding { background: #d49a2a; }
.chip .st.planned { background: transparent; border: 1.5px solid var(--ink-400); }
.chip.planned { color: var(--text-faint); background: transparent; border-style: dashed; box-shadow: none; }
.chip.planned .icon { color: var(--ink-400); }
.layer-mod { background: var(--surface); border: 1px solid var(--border); }
.layer-core { background: linear-gradient(180deg, var(--navy-50), #fff); border: 1px solid var(--navy-100); }
.layer-core .layer-h .n { color: var(--navy-700); }
.layer-data { background: var(--navy-975); color: #fff; }
.layer-data .layer-h .n { color: var(--teal-300); }
.layer-data .layer-h .d { color: rgba(255,255,255,.5); }
.layer-data .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.88); box-shadow: none; }
.layer-data .chip .icon { color: var(--teal-300); }
.stack-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-faint); margin-top: 16px; }
.stack-legend span { display: inline-flex; align-items: center; gap: 7px; }
.stack-legend .st { width: 8px; height: 8px; border-radius: 50%; background: var(--positive); }
.stack-legend .st.expanding { background: #d49a2a; }
.stack-legend .st.planned { background: transparent; border: 1.5px solid var(--ink-400); }
.stack-conn { height: 10px; margin: -10px 0; position: relative; z-index: 1; display: flex; justify-content: space-around; padding: 0 12%; }
.stack-conn i { width: 2px; height: 20px; margin-top: -5px; background: linear-gradient(var(--navy-200), var(--navy-100)); border-radius: 2px; }

.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; margin: 0; font-size: 15px; color: var(--text); }
.check-list li .icon { width: 20px; height: 20px; color: var(--teal-600); flex: none; margin-top: 2px; }
.check-list li span { color: var(--text-muted); }
.check-list li b { color: var(--ink-950); font-weight: 600; }

/* ════════════════════════════════════════════════════════════
   SOLUTION CARDS
   ════════════════════════════════════════════════════════════ */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .sol-grid { grid-template-columns: 1fr; } }
.sol-card { display: flex; flex-direction: column; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-xl); padding: 28px; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); box-shadow: var(--shadow-sm); }
.sol-card:hover { border-color: var(--navy-200); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.sol-card .icon-tile { margin-bottom: 22px; }
.sol-card h3 { margin-bottom: 8px; }
.sol-card > p { font-size: 14.5px; }
.mini-chain { list-style: none; padding: 16px 0 0; margin: 12px 0 22px; display: flex; flex-wrap: wrap; gap: 6px 0; border-top: 1px solid var(--border); }
.mini-chain li { margin: 0; display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--ink-700); }
.mini-chain li::after { content: "→"; color: var(--ink-400); margin: 0 7px; }
.mini-chain li:last-child::after { content: none; }
.sol-card .link-arrow { margin-top: auto; }

/* ════════════════════════════════════════════════════════════
   TRUST (dark)
   ════════════════════════════════════════════════════════════ */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.1); border-left: 1px solid rgba(255,255,255,.1); }
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card { padding: 32px 28px; border-right: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); transition: background .25s; }
.trust-card:hover { background: rgba(255,255,255,.025); }
.trust-card .icon { width: 22px; height: 22px; color: var(--teal-300); margin-bottom: 20px; }
.trust-card h4 { color: #fff; margin-bottom: 8px; }
.trust-card p { color: rgba(255,255,255,.58); font-size: 14px; }
.trust-card .spec { margin-top: 14px; font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.4); }

/* ════════════════════════════════════════════════════════════
   ARTICLES / COVERS
   ════════════════════════════════════════════════════════════ */
.cover {
  --c1: var(--navy-900); --c2: var(--navy-700); --ac: var(--teal-300);
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--c1), var(--c2)); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; padding: 18px;
}
.cover::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(to right, rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px; -webkit-mask-image: linear-gradient(160deg, #000, transparent 75%); mask-image: linear-gradient(160deg, #000, transparent 75%); }
.cover::after { content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -18%; bottom: -30%; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 0 0 28px rgba(255,255,255,.025), 0 0 0 56px rgba(255,255,255,.02); }
.cover .cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ac); }
.cover .glyph { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; }
.cover .glyph .icon { width: 20px; height: 20px; }
.cover .big { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.1; color: rgba(255,255,255,.92); max-width: 90%; }
.cover-finance { --c1: #0a2f4a; --c2: #0f5a5a; --ac: var(--teal-300); }
.cover-compliance { --c1: #1d2a3a; --c2: #3b4b5f; --ac: #f3c77a; }
.cover-construction { --c1: #2a2320; --c2: #574436; --ac: #f0b27a; }
.cover-operations { --c1: #0f3d61; --c2: #1c5f8f; --ac: #9dd6ff; }
.cover-erp-fundamentals { --c1: #06182a; --c2: #154e7a; --ac: var(--teal-300); }
.cover-buying-guide { --c1: #1f2d24; --c2: #2f5a45; --ac: #a7e3c0; }

.post-card { display: flex; flex-direction: column; }
.post-card .cover { aspect-ratio: 16 / 10; margin-bottom: 18px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post-card .cover .big { font-size: clamp(1.35rem, 1.9vw, 1.7rem); max-width: 80%; }
.post-card:hover .cover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card .meta-top { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--text-faint); margin-bottom: 8px; }
.post-card .meta-top .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-300); }
.post-card h3 { font-size: 1.18rem; margin-bottom: 8px; line-height: 1.25; transition: color .2s; }
.post-card:hover h3 { color: var(--navy-800); }
.post-card p { font-size: 14px; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
@media (max-width: 960px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .article-grid { grid-template-columns: 1fr; } }

.blog-featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; margin-bottom: 72px; }
.blog-featured .cover { aspect-ratio: 16 / 10.5; border-radius: var(--radius-xl); padding: 28px; }
.blog-featured .cover .big { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.blog-featured h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 14px; }
.blog-featured .meta { display: flex; gap: 14px; font-size: 13px; color: var(--text-faint); margin-top: 20px; align-items: center; }
.author-av { width: 30px; height: 30px; border-radius: 50%; background: var(--navy-900); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
@media (max-width: 860px) { .blog-featured { grid-template-columns: 1fr; gap: 24px; } }

.blog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 36px; border-bottom: 1px solid var(--border); }
.blog-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-pill { padding: 7px 14px; border-radius: 100px; border: 1px solid var(--border); font-size: 13px; font-weight: 540; color: var(--text-muted); background: var(--surface); transition: all .15s; }
.filter-pill:hover { border-color: var(--ink-400); color: var(--text); }
.filter-pill.active { background: var(--navy-950); border-color: var(--navy-950); color: #fff; }
.blog-search { position: relative; }
.blog-search input { height: 38px; width: 240px; border: 1px solid var(--border); border-radius: 100px; padding: 0 14px 0 36px; font: inherit; font-size: 13.5px; background: var(--surface); color: var(--text); }
.blog-search input:focus { outline: none; border-color: var(--navy-700); box-shadow: var(--focus-ring); }
.blog-search .icon { position: absolute; left: 13px; top: 12px; width: 14px; height: 14px; color: var(--text-faint); }
.empty-state { text-align: center; padding: 56px 0; color: var(--text-faint); }
@media (max-width: 620px) { .blog-search, .blog-search input { width: 100%; } }

/* ════════════════════════════════════════════════════════════
   ARTICLE PAGE
   ════════════════════════════════════════════════════════════ */
.read-progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--teal-600); width: 0; z-index: 200; }
.article-header { max-width: 820px; margin: 0 auto; text-align: center; }
.article-header .eyebrow { justify-content: center; }
.article-header h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin-bottom: 20px; }
.article-header .lede { max-width: 640px; margin: 0 auto; }
.article-byline { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 13.5px; color: var(--text-faint); margin-top: 28px; flex-wrap: wrap; }
.article-byline b { color: var(--text); font-weight: 580; }
.article-byline .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-300); }
.article-cover { max-width: 1080px; margin: 48px auto 64px; aspect-ratio: 21 / 6; border-radius: var(--radius-xl); padding: 32px; }
.article-cover .big { font-size: clamp(1.6rem, 3.4vw, 3rem); max-width: 70%; }
@media (max-width: 720px) { .article-cover { aspect-ratio: 16 / 10; padding: 20px; margin: 32px 0 40px; } .article-cover .big { max-width: 100%; } }

.article-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; max-width: 1020px; margin: 0 auto; align-items: start; }
@media (max-width: 960px) { .article-layout { grid-template-columns: minmax(0, 1fr); } }
.article-toc { position: sticky; top: 100px; font-size: 13px; }
.article-toc .lbl { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 14px; }
.article-toc ul { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--border); }
.article-toc li { margin: 0; }
.article-toc a { display: block; padding: 6px 0 6px 16px; color: var(--text-faint); border-left: 2px solid transparent; margin-left: -1.5px; line-height: 1.4; transition: color .15s, border-color .15s; }
.article-toc a:hover { color: var(--text); }
.article-toc a.on { color: var(--navy-800); border-left-color: var(--navy-800); font-weight: 560; }
.article-toc .share { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
@media (max-width: 960px) { .article-toc { display: none; } }

.article-body { font-size: 1.075rem; line-height: 1.75; max-width: 700px; }
.article-body > p:first-child { font-size: 1.2rem; line-height: 1.65; color: var(--ink-900); }
.article-body h2 { margin: 2.2em 0 .7em; font-size: 1.7rem; letter-spacing: -0.025em; }
.article-body h3 { margin: 1.8em 0 .6em; font-size: 1.25rem; }
.article-body p { color: var(--ink-700); margin-bottom: 1.25em; }
.article-body strong { color: var(--ink-950); font-weight: 620; }
.article-body ul, .article-body ol { color: var(--ink-700); margin-bottom: 1.3em; padding-left: 1.2em; }
.article-body li { margin-bottom: .55em; padding-left: .2em; }
.article-body li::marker { color: var(--navy-700); font-weight: 600; }
.article-body a { color: var(--navy-800); text-decoration: underline; text-decoration-color: var(--navy-200); text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: text-decoration-color .15s; }
.article-body a:hover { text-decoration-color: var(--navy-800); }
.article-body code { background: var(--ink-100); padding: .1em .35em; border-radius: 4px; font-size: .88em; color: var(--ink-900); }
.article-body pre { background: var(--navy-975); color: #dce8f2; padding: 20px 22px; border-radius: var(--radius); overflow-x: auto; margin: 1.6em 0; font-size: 13.5px; line-height: 1.65; }
.article-body pre code { background: none; padding: 0; color: inherit; font-family: var(--font-mono); }
.article-body blockquote { margin: 2em 0; padding: 0 0 0 24px; border-left: 2px solid var(--teal-600); }
.article-body blockquote p { font-family: var(--font-serif); font-style: italic; font-size: 1.55rem; line-height: 1.35; color: var(--ink-950); }
.article-body .table-wrap { font-size: 14px; }
.article-body td { color: var(--ink-700); }

.article-end { max-width: 1020px; margin: 72px auto 0; }
.related-articles { margin-top: 88px; }

/* ════════════════════════════════════════════════════════════
   INNER PAGE HERO
   ════════════════════════════════════════════════════════════ */
.page-hero { padding: 88px 0 72px; border-bottom: 1px solid var(--border); }
.page-hero h1 { max-width: 880px; font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
.page-hero .lede { max-width: 640px; }
.page-hero.center { text-align: center; }
.page-hero.center h1, .page-hero.center .lede { margin-left: auto; margin-right: auto; }
.page-hero.center .eyebrow { justify-content: center; }
.page-hero .actions { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.page-hero.center .actions { justify-content: center; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-faint); margin-bottom: 28px; }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { color: var(--ink-300); }
@media (max-width: 720px) { .page-hero { padding: 56px 0 48px; } }

/* screens section on inner pages */
.screen-wrap { position: relative; }
.screen-wrap::before { content: ""; position: absolute; inset: 10% 6% -6%; z-index: -1; background: radial-gradient(closest-side, rgba(43,115,168,.22), transparent); filter: blur(30px); }

/* ════════════════════════════════════════════════════════════
   MODULES PAGE
   ════════════════════════════════════════════════════════════ */
.mod-group { display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding: 56px 0; border-top: 1px solid var(--border); }
.mod-group:first-child { border-top: none; padding-top: 0; }
.mod-group-head { position: sticky; top: 100px; align-self: start; }
.mod-group-head .n { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-bottom: 10px; }
.mod-group-head h2 { font-size: 1.9rem; margin-bottom: 10px; }
.mod-group-head p { font-size: 14.5px; }
.mod-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 960px) { .mod-group { grid-template-columns: 1fr; gap: 24px; } .mod-group-head { position: static; } }
@media (max-width: 620px) { .mod-list { grid-template-columns: 1fr; } }

.module-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px;
  display: flex; flex-direction: column; gap: 10px; height: 100%; scroll-margin-top: 100px;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
a.module-card:hover { border-color: var(--navy-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.module-card.is-planned { background: transparent; border-style: dashed; }
.module-card.is-planned .icon-tile { background: var(--ink-100); color: var(--ink-500); border-color: var(--border); box-shadow: none; }
.module-card .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.module-card h3 { font-size: 1.1rem; margin: 0; }
.module-card p { font-size: 14px; margin: 0; flex: 1; }
.module-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--ink-150); font-size: 12.5px; color: var(--text-faint); }
.module-card:target { border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(21,78,122,.14); }

/* ════════════════════════════════════════════════════════════
   MODULE / SOLUTION DETAIL
   ════════════════════════════════════════════════════════════ */
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--border); }
.cap { padding: 32px 32px 32px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.cap:nth-child(even) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--border); }
.cap .num { font-family: var(--font-mono); font-size: 12px; color: var(--teal-700); padding-top: 4px; }
.cap h3 { font-size: 1.2rem; margin-bottom: 8px; }
.cap p { font-size: 14.5px; margin: 0; }
.cap-grid.three { grid-template-columns: repeat(3, 1fr); }
.cap-grid.three .cap, .cap-grid.three .cap:nth-child(even) { padding: 32px 28px 32px 0; border-left: none; }
.cap-grid.three .cap + .cap { padding-left: 28px; border-left: 1px solid var(--border); }
@media (max-width: 960px) { .cap-grid.three { grid-template-columns: 1fr; } .cap-grid.three .cap, .cap-grid.three .cap + .cap { padding: 24px 0; border-left: none; } }
@media (max-width: 760px) { .cap-grid { grid-template-columns: 1fr; } .cap, .cap:nth-child(even) { padding: 24px 0; border-left: none; } }

.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; list-style: none; padding: 0; margin: 0; }
.chain li { display: flex; align-items: center; margin: 0; }
.chain .st { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 570; box-shadow: var(--shadow-sm); }
.chain .st .n { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--navy-950); color: #fff; font-family: var(--font-mono); font-size: 11px; }
.chain .ar { color: var(--ink-400); margin: 0 8px; }
.chain .ar .icon { width: 16px; height: 16px; }
.chain li.cur .st { border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(21,78,122,.1); }
.chain li.cur .st .n { background: var(--teal-600); }
@media (max-width: 720px) {
  .chain { flex-direction: column; align-items: stretch; }
  .chain li { flex-direction: column; align-items: stretch; }
  .chain .ar { transform: rotate(90deg); margin: 4px 0 4px 18px; align-self: flex-start; }
}

.connects { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.connects .side { display: grid; gap: 8px; }
.connects .side .lbl { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); margin-bottom: 4px; }
.connects .hub { width: 150px; height: 150px; border-radius: 34px; background: linear-gradient(160deg, var(--navy-700), var(--navy-950)); color: #fff; display: grid; place-items: center; text-align: center; box-shadow: var(--shadow-xl); }
.connects .hub .icon { width: 30px; height: 30px; margin: 0 auto 8px; color: var(--teal-300); }
.connects .hub b { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 620; }
@media (max-width: 760px) { .connects { grid-template-columns: 1fr; } .connects .hub { margin: 0 auto; } }

.note { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: #fffaf0; border: 1px solid #f1e2c1; color: #7a5200; font-size: 14px; }
.note .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.note p { color: inherit; margin: 0; }

/* ════════════════════════════════════════════════════════════
   PRICING
   ════════════════════════════════════════════════════════════ */
.price-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); max-width: 1040px; margin: 0 auto; }
.price-main { padding: 48px; }
.price-main .plan { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700); }
.price-main h2 { margin: 14px 0 8px; font-size: 2.2rem; }
.price-main .price { font-family: var(--font-display); font-size: 3.4rem; font-weight: 640; letter-spacing: -0.04em; margin: 22px 0 4px; color: var(--ink-950); line-height: 1; }
.price-main .price small { font-size: 1rem; font-weight: 500; color: var(--text-faint); letter-spacing: 0; font-family: var(--font-body); }
.price-main .btn { margin-top: 28px; }
.price-inc { padding: 48px; background: var(--ink-50); border-left: 1px solid var(--border); }
.price-inc h4 { font-size: 13px; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); font-weight: 600; margin-bottom: 18px; }
.price-inc ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.price-inc li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text); margin: 0; }
.price-inc li .icon { width: 18px; height: 18px; color: var(--teal-600); flex: none; margin-top: 2px; }
.price-inc li.soon { color: var(--text-faint); }
.price-inc li.soon .icon { color: var(--ink-400); }
@media (max-width: 860px) { .price-wrap { grid-template-columns: 1fr; } .price-inc { border-left: none; border-top: 1px solid var(--border); } .price-main, .price-inc { padding: 32px 26px; } }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1040px; margin: 0 auto; }
.principles div { padding-top: 20px; border-top: 2px solid var(--ink-900); }
.principles h4 { margin-bottom: 6px; }
.principles p { font-size: 14px; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

.faq { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { cursor: pointer; font-weight: 580; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-family: var(--font-display); letter-spacing: -0.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .pm { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; flex: none; transition: transform .25s var(--ease), background .2s; }
.faq-item summary .pm .icon { width: 14px; height: 14px; color: var(--text-muted); }
.faq-item[open] summary .pm { transform: rotate(45deg); background: var(--ink-100); }
.faq-item p { padding: 0 48px 22px 0; margin: 0; }
.faq-item a { text-decoration: underline; text-underline-offset: 2px; }

/* ════════════════════════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════════════════════════ */
.statement { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.22; letter-spacing: -0.025em; color: var(--ink-950); max-width: 980px; font-weight: 560; text-wrap: balance; }
.statement .mut { color: var(--ink-400); }
.value-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 48px; }
@media (max-width: 640px) { .value-list { grid-template-columns: 1fr; } }
.value-item .icon-tile { margin-bottom: 16px; }
.value-item p { font-size: 14.5px; }
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .roadmap { grid-template-columns: 1fr; } }
.roadmap .col { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; background: var(--surface); }
.roadmap .col h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.roadmap .col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.roadmap .col li { margin: 0; font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 9px; }
.roadmap .col li .icon { width: 15px; height: 15px; color: var(--text-faint); }

/* ════════════════════════════════════════════════════════════
   CONTACT / DEMO
   ════════════════════════════════════════════════════════════ */
.contact-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; gap: 40px; } }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-lg); }
@media (max-width: 560px) { .form-card { padding: 24px 20px; } }
.contact-info { display: grid; gap: 22px; margin-top: 36px; }
.contact-info-item { display: flex; gap: 14px; }
.contact-info-item h4 { margin-bottom: 2px; font-size: 15px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.contact-info-item p { font-size: 14px; margin: 0; }
.agenda { list-style: none; padding: 0; margin: 32px 0 0; counter-reset: ag; display: grid; gap: 0; border-top: 1px solid var(--border); }
.agenda li { counter-increment: ag; display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--border); margin: 0; }
.agenda li::before { content: "0" counter(ag); font-family: var(--font-mono); font-size: 12px; color: var(--teal-700); }
.agenda li b { color: var(--ink-950); font-weight: 600; font-size: 15px; display: block; }
.agenda li span { font-size: 13.5px; color: var(--text-muted); }
.agenda li .tm { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }

/* ════════════════════════════════════════════════════════════
   404 / LEGAL
   ════════════════════════════════════════════════════════════ */
.error-page { padding: 120px 0 140px; text-align: center; }
.error-code { font-family: var(--font-display); font-weight: 650; font-size: clamp(7rem, 20vw, 13rem); letter-spacing: -0.07em; line-height: .85; background: linear-gradient(180deg, var(--navy-800), rgba(21,78,122,.08)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 20px; }
.error-page h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.error-page p { max-width: 460px; margin: 0 auto 32px; }
.error-page .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.error-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 48px; font-size: 14px; }
.error-links a { color: var(--text-muted); }
.error-links a:hover { color: var(--navy-800); }

.legal-body { max-width: var(--container-narrow); margin: 0 auto; }
.legal-body h2 { margin-top: 1.8em; font-size: 1.4rem; }
.legal-body a { text-decoration: underline; text-underline-offset: 2px; }
.legal-body h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
.legal-body p, .legal-body li { color: var(--ink-700); }

/* ── Small-screen refinements ── */
.explorer-tab { flex: none; }
@media (max-width: 560px) {
  .hero-chip { padding: 5px 14px; }
  .hero-chip .tag { display: none; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .ba-card { padding: 24px; min-height: 0; }
  .ba-before .ba-canvas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-height: 0; }
  .ba-before .silo-lines { display: none; }
  .ba-before .silo { position: static; width: auto; transform: none !important; }
  .ba-before .silo:nth-of-type(5) { grid-column: 1 / -1; }
  .section-head-split > div[style*="justify-content:flex-end"] { justify-content: flex-start !important; }
}
