/* Xioma Automotive — 2026 rebuild additions: centered hero + advantage cubes,
   module bar + demo panel, ERP-agnostic band, organizations detail, language
   switcher, proof row, RTL support. Loads AFTER website.css. */

/* ---- Page silhouette motif (Xioma logo as a live digital texture; drifts with the mouse) ---- */
.page-motif {
  position: fixed; z-index: 0; pointer-events: none; width: 440px; max-width: 42vw;
}
.page-motif img { width: 100%; height: auto; display: block; opacity: 0; }
/* texture layer: animated dot-matrix + scanlines, clipped to the logo silhouette */
.pm-tex {
  position: absolute; inset: 0; display: block; opacity: 0.18;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  -webkit-mask-image: url("/assets/img/xioma-logo.avif");
  mask-image: url("/assets/img/xioma-logo.avif");
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, var(--accent-dark) 3px 4px),
    radial-gradient(var(--accent-dark) 1.1px, transparent 1.6px);
  background-size: 100% 14px, 9px 9px;
  animation: pm-flow 10s linear infinite;
}
body.dark .pm-tex { opacity: 0.26; background:
    repeating-linear-gradient(0deg, transparent 0 3px, var(--accent-bright) 3px 4px),
    radial-gradient(var(--accent-bright) 1.1px, transparent 1.6px);
  background-size: 100% 14px, 9px 9px; }
@keyframes pm-flow { to { background-position: 0 140px, 63px -27px; } }
@media (prefers-reduced-motion: reduce) { .pm-tex { animation: none; transform: none; } }
.pm-tr { top: 110px; right: -70px; transform: rotate(-6deg); }
.pm-tl { top: 140px; left: -80px; transform: rotate(5deg); }
.pm-br { bottom: 40px; right: -60px; transform: rotate(4deg); }
.pm-bl { bottom: 60px; left: -70px; transform: rotate(-5deg); }
.pm-mr { top: 42%; right: -90px; transform: rotate(-8deg); }
.pm-ml { top: 38%; left: -90px; transform: rotate(7deg); }
/* in-section variant: anchored inside a dark band (e.g. technology architecture) */
.pm-band { position: absolute; top: 50%; right: -60px; transform: translateY(-50%) rotate(-6deg); }
.pm-band .pm-tex { opacity: 0.26; background:
    repeating-linear-gradient(0deg, transparent 0 3px, var(--accent-bright) 3px 4px),
    radial-gradient(var(--accent-bright) 1.1px, transparent 1.6px);
  background-size: 100% 14px, 9px 9px; }
@media (max-width: 760px) { .page-motif { display: none; } }

/* ---- Centered hero ---- */
.hero-stack { display: flex; flex-direction: column; gap: clamp(28px, 3.5vw, 44px); padding-top: clamp(28px, 3.5vw, 48px); padding-bottom: clamp(36px, 5vw, 60px); }
.hero-center { text-align: center; max-width: 880px; margin: 0 auto; }
.hero-h1.centered { max-width: none; margin: 0 auto 18px; }
.hero-sub.centered { margin: 0 auto; max-width: 60ch; }
.hero-cta.centered { justify-content: center; margin: 0 auto; }
.hero-kicker { text-align: inherit; }
/* Mobile: drop header demo button, move hero CTA between title and trio cubes */
@media (max-width: 760px) {
  .nav-cta > a.btn { display: none; }
  .hero-stack .hero-cta { order: 1; }
  .hero-stack .hero-trio { order: 2; }
}

/* ---- Advantage cubes ---- */
.adv-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; position: relative; }
.adv-grid::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; background: #F2A20E; transform: translateY(-50%); z-index: 0; border-radius: 3px; }
@media (max-width: 1080px) { .adv-grid { grid-template-columns: repeat(3, 1fr); } .adv-grid::before { display: none; } }
@media (max-width: 640px) { .adv-grid { grid-template-columns: 1fr 1fr; } }
.adv-card {
  position: relative; overflow: hidden; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 28px 18px 26px; display: flex;
  flex-direction: column; gap: 11px; transition: border-color .2s, transform .25s ease, box-shadow .25s; z-index: 1;
}
.adv-card:hover { border-color: var(--accent); transform: translateY(-6px) scale(1.06); box-shadow: 0 22px 44px -20px rgba(19,41,61,0.32); z-index: 2; }

/* ---- Subtle per-card thematic motif (watermark icon) ---- */
.adv-bg {
  position: absolute; inset-inline-end: -22px; bottom: -26px; z-index: 0;
  color: var(--accent); opacity: 0.12; pointer-events: none;
  transition: opacity .25s, transform .35s ease;
}
.adv-card > .adv-k, .adv-card > h3, .adv-card > p { position: relative; z-index: 1; }
.adv-card:hover .adv-bg { opacity: 0.18; transform: translateX(-4px); }
/* 01 — speed: motion streaks behind the car */
.adv-card.motif-speed .adv-bg { bottom: -18px; inset-inline-end: -14px; transform: skewX(-8deg); }
.adv-card.motif-speed::after {
  content: ""; position: absolute; z-index: 0; right: 14px; bottom: 30px; width: 120px; height: 44px; pointer-events: none;
  background:
    linear-gradient(to right, transparent, var(--accent) ) bottom right / 70px 2px no-repeat,
    linear-gradient(to right, transparent, var(--accent) ) 100% 50% / 52px 2px no-repeat,
    linear-gradient(to right, transparent, var(--accent) ) top right / 84px 2px no-repeat;
  opacity: 0.14;
}
body.rtl .adv-card.motif-speed .adv-bg { transform: skewX(8deg) scaleX(-1); }
/* 02 — agnostic: connected dotted grid */
.adv-card.motif-agnostic::after {
  content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--accent) 1px, transparent 1.4px);
  background-size: 16px 16px; opacity: 0.05;
}
/* 03 — flexibility: soft concentric rings */
.adv-card.motif-flex::after {
  content: ""; position: absolute; z-index: 0; right: -40px; bottom: -40px; width: 150px; height: 150px; pointer-events: none;
  border-radius: 50%; opacity: 0.5;
  background: radial-gradient(circle, transparent 38%, var(--accent-soft) 39%, var(--accent-soft) 46%, transparent 47%, transparent 60%, var(--accent-soft) 61%, var(--accent-soft) 67%, transparent 68%);
}
/* 04 — one platform: converging lines into a point */
.adv-card.motif-allone::after {
  content: ""; position: absolute; z-index: 0; right: 0; bottom: 0; width: 130px; height: 110px; pointer-events: none; opacity: 0.06;
  background:
    linear-gradient(38deg, transparent 49%, var(--accent) 49.5%, var(--accent) 50.5%, transparent 51%),
    linear-gradient(-38deg, transparent 49%, var(--accent) 49.5%, var(--accent) 50.5%, transparent 51%),
    linear-gradient(90deg, transparent 49%, var(--accent) 49.5%, var(--accent) 50.5%, transparent 51%);
}
/* 05 — agentic: soft glow halo */
.adv-card.motif-agentic::after {
  content: ""; position: absolute; z-index: 0; right: -20px; top: -20px; width: 120px; height: 120px; pointer-events: none;
  border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 65%); opacity: 0.8;
}
@media (prefers-reduced-motion: reduce) { .adv-card:hover .adv-bg { transform: none; } }
.adv-ico { width: 50px; height: 50px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; }
.adv-k { position: absolute; top: 20px; inset-inline-end: 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--mute-2); }
.adv-card h3 { font-size: clamp(19px, 1.5vw, 23px); font-weight: 600; color: var(--accent); background: none; -webkit-text-fill-color: currentColor; letter-spacing: -0.02em; line-height: 1.2; align-items: flex-start; }
.adv-card p { color: var(--mute); font-size: 13.5px; line-height: 1.55; }
@media (max-width: 1180px) { .adv-card h3 { min-height: 0; } }

/* ---- Module bar + demo panel ---- */
.modbar {
  display: flex; gap: 4px; padding: 5px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  overflow-x: auto; scrollbar-width: none; margin-bottom: 22px;
}
.modbar::-webkit-scrollbar { display: none; }
.modtab {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 10px 16px; border-radius: var(--radius-pill); font-size: 13.5px;
  font-weight: 500; color: var(--mute); transition: color .18s, background .18s;
  flex: 0 0 auto;
}
.modtab:hover { color: var(--ink); }
.modtab.active { background: var(--ink); color: #fff; }
.modtab-intro.active { background: var(--accent); color: var(--ink); }

.modpanel { display: grid; grid-template-columns: 0.85fr 1.3fr; gap: clamp(20px, 3vw, 36px); align-items: center; }

/* ---- Solutions: left nav + demo stage + messages ---- */
.sol-layout { display: grid; grid-template-columns: 280px 1fr; gap: clamp(20px, 3vw, 40px); align-items: stretch; }
@media (max-width: 920px) { .sol-layout { grid-template-columns: 1fr; } }
.sol-nav { display: flex; flex-direction: column; gap: 4px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 10px; position: sticky; top: 108px; }
@media (max-width: 920px) { .sol-nav { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .sol-nav::-webkit-scrollbar { display: none; } }
.sol-navitem { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-align: start; transition: background .16s, color .16s; white-space: nowrap; }
.sol-navitem svg { color: var(--mute); flex: 0 0 auto; transition: color .16s; }
.sol-navitem:hover { background: rgba(19,41,61,0.04); color: var(--ink); }
.sol-navitem:hover svg { color: var(--ink); }
.sol-navitem.active { background: var(--accent); color: #fff; }
.sol-navitem.active svg { color: #fff; }
.sol-navitem-intro.active { background: var(--ink); color: #fff; }
.sol-navitem-intro { border-bottom: 1px solid var(--line); border-radius: var(--radius-sm) var(--radius-sm) 0 0; margin-bottom: 4px; }

.sol-stage { display: flex; flex-direction: column; gap: 18px; }
.sol-stage .demo-frame { width: 100%; flex: 1; display: flex; flex-direction: column; }
.sol-stage .demo-frame .demo-screen.wide { flex: 1; aspect-ratio: auto; min-height: 0; }
@media (max-width: 920px) {
  .sol-stage .demo-frame { flex: none; }
  .sol-stage .demo-frame .demo-screen.wide { flex: none; aspect-ratio: 16 / 9; }
}
.sol-msg { margin: 0; }
.sol-msg-top { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.4; color: var(--ink); font-weight: 500; letter-spacing: -0.015em; max-width: 60ch; text-wrap: pretty; }
.sol-msg-bottom { display: flex; align-items: center; gap: 14px; min-height: 24px; }
.sol-msg-bottom .sol-tags { font-size: 11.5px; letter-spacing: 0.08em; color: var(--accent-dark); }
.sol-stage .demo-frame.x_legacy_width { width: 100%; }

.modpanel-legacy { display: none; }
@media (max-width: 920px) { .modpanel { grid-template-columns: 1fr; } }
.mod-advantage { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.mod-adv-title { font-size: clamp(24px, 2.6vw, 34px); color: var(--ink); background: none; -webkit-text-fill-color: currentColor; letter-spacing: -0.02em; }
.mod-adv-text { color: var(--mute); font-size: clamp(15px, 1.3vw, 17.5px); line-height: 1.6; max-width: 44ch; }
.mod-adv-tags { font-size: 11px; letter-spacing: 0.08em; color: var(--accent-dark); }
.demo-screen.wide { aspect-ratio: 16 / 9; background: var(--studio); }
.demo-yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-frame.standalone { max-width: 900px; margin: 0 auto; }

/* ---- ERP-agnostic band ---- */
.erp-band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.erp-diagram { display: grid; grid-template-columns: 1fr auto 1.2fr; gap: clamp(16px, 3vw, 36px); align-items: center; }
@media (max-width: 860px) { .erp-diagram { grid-template-columns: 1fr; } .erp-link { display: none; } }
.erp-node.xioma { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 12px; align-items: center; box-shadow: var(--shadow-frame); }
.erp-node.xioma img { height: 104px; width: auto; }
.erp-node-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--mute); }
.erp-link { width: clamp(40px, 6vw, 90px); height: 2px; background: var(--line); position: relative; }
.erp-pulse { position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 99px; background: var(--accent); animation: erpPulse 2.2s ease-in-out infinite; }
@keyframes erpPulse { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .erp-pulse { animation: none; } }
.erp-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .erp-list { grid-template-columns: 1fr 1fr; } }
.erp-item { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; font-size: 13.5px; color: var(--ink-2); }
.erp-item .ico { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; flex: 0 0 auto; }

/* ---- Organizations: cards + detail rows ---- */
.orgs a.org { display: block; }
.org:hover { border-color: var(--accent); }
.org-details { display: flex; flex-direction: column; gap: 12px; }
.org-detail { display: flex; align-items: center; gap: 20px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; scroll-margin-top: 96px; }
@media (max-width: 640px) { .org-detail { flex-direction: column; align-items: flex-start; } }
.org-detail > div { flex: 1; }
.org-detail h3 { font-size: 20px; color: var(--ink); background: none; -webkit-text-fill-color: currentColor; margin-bottom: 6px; }
.org-detail p { color: var(--mute); font-size: 14.5px; line-height: 1.55; max-width: 64ch; }
.org-ico.big { width: 54px; height: 54px; border-radius: var(--radius-md); margin-bottom: 0; flex: 0 0 auto; }

/* ---- Proof row ---- */
.proof-row { display: flex; gap: clamp(24px, 5vw, 64px); justify-content: center; flex-wrap: wrap; padding: clamp(20px, 3vw, 36px) 0; border-top: 1px solid var(--line); }

/* ---- Language switcher ---- */
.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--ink-2); background: var(--bg); transition: border-color .15s; font-family: var(--font-mono); }
.lang-btn:hover { border-color: var(--ink); }
.lang-menu { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; min-width: 170px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-menu); padding: 6px; display: none; flex-direction: column; z-index: 70; }
.lang-switch.open .lang-menu { display: flex; }
.lang-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); font-size: 13px; color: var(--ink-2); text-align: start; transition: background .14s; }
.lang-item:hover { background: var(--bg-soft); }
.lang-item.active { color: var(--accent-dark); font-weight: 600; }
.lang-code { font-family: var(--font-mono); font-size: 11px; width: 26px; color: var(--mute); }

/* ---- Join: application form ---- */
.join-form { max-width: 760px; }
.join-form .cf-field { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.join-form .cf-label { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--ink-2); }
.file-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  padding: 28px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius-md);
  background: var(--surface, #fff); cursor: pointer; transition: border-color .2s, background .2s;
}
.file-drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.file-drop-ico { color: var(--accent); }
.file-drop-txt { font-size: 15px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.file-drop-hint { font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .05em; color: var(--ink-3, var(--ink-2)); }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-note { margin-top: 2px; font-size: 12.5px; line-height: 1.5; color: var(--ink-3, var(--ink-2)); }

/* ---- About: leadership team ---- */
.contact-sent { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; justify-content: center; min-height: 280px; }
.contact-sent .chk.big { width: 52px; height: 52px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-dark); display: inline-flex; align-items: center; justify-content: center; }
.contact-sent h3 { font-size: 24px; letter-spacing: -0.01em; }
.contact-sent p { color: var(--mute); max-width: 44ch; }

/* ---- Legal pages (privacy / accessibility) ---- */
.legal-prose { max-width: 860px; }
.legal-sec { padding: 26px 0; border-bottom: 1px solid var(--line); }
.legal-sec:last-child { border-bottom: none; }
.legal-sec h2 { font-size: 22px; letter-spacing: -0.01em; margin-bottom: 12px; display: flex; align-items: baseline; gap: 12px; }
.legal-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent-dark); }
.legal-sec p, .legal-sec li { color: var(--mute); line-height: 1.65; font-size: 15.5px; }
.legal-sec p + p { margin-top: 10px; }
.legal-sec ul { margin: 8px 0; padding-inline-start: 20px; display: grid; gap: 8px; }
.legal-sec strong { color: var(--ink); font-weight: 600; }
.legal-sec a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.legal-link { background: none; border: none; padding: 0; font: inherit; color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---- Cookie consent ---- */
.consent-wrap { position: fixed; inset-inline: 0; bottom: 0; z-index: 90; padding: 16px; pointer-events: none; }
.consent-card { pointer-events: auto; max-width: 720px; margin: 0 auto; background: var(--studio); color: #fff; border: 1px solid var(--studio-line); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: 0 12px 40px rgba(0,0,0,0.35); display: grid; gap: 14px; }
.consent-txt { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.85); }
.consent-txt strong { color: #fff; }
.consent-txt a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.consent-btn { font: inherit; font-size: 13.5px; font-weight: 600; padding: 9px 16px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.consent-btn.solid { background: var(--accent); color: #13293D; }
.consent-btn.solid:hover { background: var(--accent-bright); }
.consent-btn.ghost { background: transparent; color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.25); }
.consent-btn.ghost:hover { color: #fff; border-color: rgba(255,255,255,0.5); }
.consent-rows { display: grid; gap: 8px; }
.consent-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #fff; }
.consent-row input { accent-color: var(--accent); width: 16px; height: 16px; }
.consent-note { color: rgba(255,255,255,0.55); font-size: 12.5px; }


.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.team-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 36px 28px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md);
  transition: border-color .2s, transform .25s ease, box-shadow .25s;
}
.team-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 22px 44px -22px rgba(19,41,61,0.28); }
.team-photo { position: relative; width: 116px; height: 116px; border-radius: 50%; overflow: hidden; margin-bottom: 14px; background: var(--surface, #f1efe9); box-shadow: 0 0 0 1px var(--line); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.team-name { font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.team-role { font-size: 15px; font-weight: 600; color: var(--accent-dark); }
.team-years { font-family: var(--font-mono, monospace); font-size: 12.5px; letter-spacing: .05em; color: var(--ink-3, var(--ink-2)); }
.team-bio { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); max-width: 34ch; }
.team-foot {
  margin-top: 16px; padding: 24px 32px; border-radius: var(--radius-md); background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--ink-2); text-align: center; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.5;
}
.team-foot strong { color: var(--ink); }
@media (max-width: 820px) { .team-grid { grid-template-columns: 1fr; } }

/* ---- Home impact stats banner ---- */
.stats-banner { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(40px, 5vw, 64px) 0; }
.stats-banner-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.stat-item { text-align: center; position: relative; }
.stat-item:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); width: 1px; height: 56px; background: var(--line); }
.stat-n { font-size: clamp(30px, 3.6vw, 50px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--accent-bright, #F8C453); }
.stat-l { margin-top: 12px; font-size: 13.5px; letter-spacing: .01em; color: var(--mute); }
@media (max-width: 900px) { .stats-banner-row { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; } .stat-item::after { display: none; } }
@media (max-width: 560px) { .stats-banner-row { grid-template-columns: repeat(2, 1fr); } }

/* ---- Home platform pillars (Three ideas) ---- */.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar-cube {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px; background: var(--bg); border: 1px solid var(--line); min-width: 0;
  border-radius: var(--radius-md); transition: border-color .2s, transform .25s ease, box-shadow .25s; outline: none;
}
.pillar-cube:hover, .pillar-cube:focus-visible {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: 0 22px 44px -22px rgba(19,41,61,0.28);
}
.pillar-eb { font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); }
.pillar-cube h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); font-weight: 700; }
.pillar-cube > p { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.pillar-visual { margin-top: auto; padding-top: 16px; }

/* Pillar 1 — one record */
.record-visual { flex: 1; display: flex; flex-direction: column; }

/* Interaction tiles — each writes to the record in sequence, then stays filled.
   Grid stretches to fill the card's free height. */
.record-chips { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 8px; }
.rec-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; border-radius: 8px;
  background: var(--surface, #fff); border: 1px solid var(--line); font-family: var(--font-mono, monospace);
  font-size: 11.5px; letter-spacing: .02em; color: var(--ink-2); text-align: center; min-width: 0; line-height: 1.2;
  transition: transform .2s ease, border-color .2s, color .2s, background .2s; cursor: default;
}
.rec-chip:not(.live):not(.next) { animation: recFill 8s ease-in-out infinite; }
.rec-chip:nth-child(1){animation-delay:0s} .rec-chip:nth-child(2){animation-delay:.6s} .rec-chip:nth-child(3){animation-delay:1.2s} .rec-chip:nth-child(4){animation-delay:1.8s} .rec-chip:nth-child(5){animation-delay:2.4s} .rec-chip:nth-child(6){animation-delay:3s}
@keyframes recFill {
  0%,5% { background: var(--surface,#fff); color: var(--ink-2); border-color: var(--line); transform: scale(1); }
  8% { background: var(--accent); color: #fff; border-color: var(--accent); transform: scale(1.05); }
  15%,95% { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent); transform: scale(1); }
  100% { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent); }
}
.rec-chip:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.rec-chip.live { background: var(--accent); color: #fff; border-color: var(--accent); animation: recLive 1.6s ease-in-out infinite; }
@keyframes recLive { 0%,100%{box-shadow:0 0 0 0 rgba(47,134,201,.35)} 50%{box-shadow:0 0 0 6px rgba(47,134,201,0)} }
.rec-chip.next { border-style: dashed; color: var(--ink-3, var(--ink-2)); }
.rec-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; flex-shrink: 0; animation: recPulse 1.6s ease infinite; }
@keyframes recPulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* Pillar 2 — multi-brand flag grid (ported from prior design, recolored to our accent).
   Brightness wave rolls across the 7-wide tile grid + a "country going live" flash hops
   around it. Decorative (aria-hidden); stat rows below carry the copy. */
.globe-visual { display: flex; flex-direction: column; gap: 10px; }
.globe-flag-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; position: relative; }
.globe-flag-grid .f { height: 16px; border-radius: 2px; background: var(--ink, #0A0A0B); animation: flagWave 5s ease-in-out infinite; }
.globe-flag-grid .f.hl  { background: var(--accent); }
.globe-flag-grid .f.mid { background: var(--mute, #5C5C62); }
.globe-flag-grid .f.dim { background: var(--line); }
.globe-flag-grid .f:nth-child(7n+1){animation-delay:0s} .globe-flag-grid .f:nth-child(7n+2){animation-delay:.12s} .globe-flag-grid .f:nth-child(7n+3){animation-delay:.24s} .globe-flag-grid .f:nth-child(7n+4){animation-delay:.36s} .globe-flag-grid .f:nth-child(7n+5){animation-delay:.48s} .globe-flag-grid .f:nth-child(7n+6){animation-delay:.6s} .globe-flag-grid .f:nth-child(7n+7){animation-delay:.72s}
@keyframes flagWave { 0%,80%,100% { transform: translateY(0); filter: brightness(1); } 10% { transform: translateY(-3px); filter: brightness(1.35); } 20% { transform: translateY(0); filter: brightness(1); } }
.globe-flag-grid::after { content:""; position:absolute; width:calc((100% - 24px)/7); height:16px; background:var(--accent); border-radius:2px; pointer-events:none; opacity:0; box-shadow:0 0 12px rgba(47,134,201,.5); animation:flagActivate 7s linear infinite; }
@keyframes flagActivate { 0%{top:0;left:0%;opacity:0} 2%{top:0;left:0%;opacity:.95} 9%{top:0;left:0%;opacity:0} 18%{top:20px;left:42%;opacity:0} 20%{top:20px;left:42%;opacity:.95} 27%{top:20px;left:42%;opacity:0} 44%{top:40px;left:85%;opacity:0} 46%{top:40px;left:85%;opacity:.95} 53%{top:40px;left:85%;opacity:0} 72%{top:60px;left:28%;opacity:0} 74%{top:60px;left:28%;opacity:.95} 81%{top:60px;left:28%;opacity:0} 100%{top:0;left:0%;opacity:0} }
.globe-stat { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .04em; color: var(--ink-3, var(--ink-2)); }
.globe-stat .row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 9px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 6px; }
.globe-stat .row strong { color: var(--ink, #0A0A0B); font-weight: 600; }

/* Pillar 3 — analytics */
.chart-visual { display: flex; flex-direction: column; gap: 12px; }
.chart-ask { padding: 10px 13px; border-radius: var(--radius-sm); background: var(--surface, #fff); border: 1px solid var(--line); }
.chart-ask-q { font-family: var(--font-mono, monospace); font-size: 12px; color: var(--ink-2); }
.an-mini { display: flex; align-items: flex-end; gap: 4px; height: 76px; padding: 0 2px; position: relative; }
.an-mini .b { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, var(--accent), var(--accent-soft)); transform-origin: bottom; animation: barRise 4.5s ease-in-out infinite; }
.an-mini .b.hl { background: var(--accent); filter: brightness(1.12); }
.an-mini .b:nth-child(1){animation-delay:0s} .an-mini .b:nth-child(2){animation-delay:.08s} .an-mini .b:nth-child(3){animation-delay:.16s} .an-mini .b:nth-child(4){animation-delay:.24s} .an-mini .b:nth-child(5){animation-delay:.32s} .an-mini .b:nth-child(6){animation-delay:.4s} .an-mini .b:nth-child(7){animation-delay:.48s} .an-mini .b:nth-child(8){animation-delay:.56s} .an-mini .b:nth-child(9){animation-delay:.64s} .an-mini .b:nth-child(10){animation-delay:.72s} .an-mini .b:nth-child(11){animation-delay:.8s}
@keyframes barRise { 0%{transform:scaleY(.12)} 30%{transform:scaleY(1.12)} 40%{transform:scaleY(1)} 88%{transform:scaleY(1)} 100%{transform:scaleY(.12)} }
.an-mini::after { content:""; position:absolute; top:0; bottom:0; width:2px; background:var(--accent); opacity:0; border-radius:2px; box-shadow:0 0 8px rgba(47,134,201,.7); pointer-events:none; animation:anScan 4.5s ease-in-out infinite; }
@keyframes anScan { 0%{left:0%;opacity:0} 8%{opacity:.55} 85%{left:100%;opacity:.55} 92%{opacity:0} 100%{left:100%;opacity:0} }
.chart-ask { padding: 10px 13px; border-radius: var(--radius-sm); background: var(--surface, #fff); border: 1px solid var(--line); transition: border-color .2s; }
.pillar-cube:hover .chart-ask { border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .globe-flag-grid .f, .globe-flag-grid::after, .an-mini .b, .an-mini::after,
  .rec-chip, .rec-dot { animation: none !important; }
}

@media (max-width: 900px) { .pillar-grid { grid-template-columns: 1fr; } }

/* ---- Home outcomes (AI agents) ---- */
.agent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.agent-card {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: 22px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md);
  transition: border-color .2s, transform .25s ease, box-shadow .25s; outline: none;
}
.agent-card:hover, .agent-card:focus-visible {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: 0 22px 44px -22px rgba(19,41,61,0.28);
}
.agent-eb { font-family: var(--font-mono, monospace); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); }
.agent-metric {
  font-size: 42px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--accent-dark);
  font-variant-numeric: tabular-nums; transition: transform .25s ease;
}
.agent-card:hover .agent-metric { transform: scale(1.06); transform-origin: left; }
.agent-t { font-size: 16.5px; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); margin-top: 2px; font-weight: 700; }
.agent-b { font-size: 13px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 1000px) { .agent-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .agent-grid { grid-template-columns: 1fr; } }

/* ---- Home built-in / platform — clean 2x2 editorial grid, no decorative widgets.
   Differentiates from the widget-rich pillars/outcomes above and removes the repeated
   pill/stat/chip ("cube") motif. Accent underline grows on hover for the only motion. ---- */
.builtin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.builtin-card {
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: 30px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .25s ease; outline: none;
}
.builtin-card:nth-child(2n) { border-right: 0; }
.builtin-card:nth-child(n+3) { border-bottom: 0; }
.builtin-card:hover, .builtin-card:focus-visible { background: var(--accent-soft); }
.builtin-t { font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); font-weight: 700; }
.builtin-t::after { content: ""; display: block; width: 28px; height: 2px; margin-top: 12px; border-radius: 2px; background: var(--accent); transition: width .28s cubic-bezier(.16,1,.3,1); }
.builtin-card:hover .builtin-t::after, .builtin-card:focus-visible .builtin-t::after { width: 52px; }
.builtin-b { font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: 48ch; }
@media (prefers-reduced-motion: reduce) { .builtin-t::after { transition: none; } }
@media (max-width: 760px) {
  .builtin-grid { grid-template-columns: 1fr; }
  .builtin-card { border-right: 0; }
  .builtin-card:nth-child(3) { border-bottom: 1px solid var(--line); }
}

/* ---- Solution detail: rich module content ---- */
.mod-lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--ink); max-width: 70ch; letter-spacing: -0.01em; }
.sec-cube-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sec-cube {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: 26px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md);
  transition: border-color .2s, transform .25s ease, box-shadow .25s;
}
.sec-cube:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 22px 44px -22px rgba(19,41,61,0.28); }
.sec-cube-num { font-family: var(--font-mono, monospace); font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--accent-dark); }
.sec-cube h3 { font-size: 21px; letter-spacing: -0.02em; color: var(--ink); }
.sec-cube p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.sec-cube p + p { margin-top: 8px; }
.sec-cube-list { display: flex; flex-direction: column; gap: 9px; margin-top: 2px; }
.sec-cube-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.sec-cube-list .chk { color: var(--accent); flex: 0 0 auto; margin-top: 1px; }
.mod-gains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.mod-gains li { display: flex; align-items: flex-start; gap: 11px; font-size: 16px; line-height: 1.4; color: var(--ink); }
@media (max-width: 760px) { .sec-cube-grid { grid-template-columns: 1fr; } .mod-gains { grid-template-columns: 1fr; } }

/* ---- Technology: integrations chapter ---- */
.int-tier-label { font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 14px; }
.int-cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
.int-cert { display: flex; flex-direction: column; gap: 9px; padding: 22px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md); transition: border-color .2s, transform .25s ease, box-shadow .25s; }
.int-cert:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 22px 44px -22px rgba(19,41,61,0.28); }
.int-cert-badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent-dark); font-size: 11.5px; font-weight: 500; }
.int-cert-name { font-size: 19px; letter-spacing: -0.02em; color: var(--ink); }
.int-cert-desc { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.int-cert-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.int-cert-tags span { padding: 5px 11px; border-radius: 999px; background: var(--surface, #fff); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.int-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
@media (max-width: 900px) { .int-cert-grid { grid-template-columns: 1fr; } .int-cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .int-cat-grid { grid-template-columns: 1fr; } }
.sh-title { margin-top: 14px; display: block; }

/* ---- Solutions hero: subtitle promoted to lede + module cubes ---- */
.page-hero-h1.solutions-lede {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
  -webkit-text-fill-color: currentColor;
  background: none;
}
.solutions-lede .solutions-line2 { color: var(--ink); -webkit-text-fill-color: var(--ink); }
.mod-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-top: 26px; }
.mod-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  letter-spacing: -0.01em; line-height: 1; white-space: nowrap; min-width: 0;
  transition: border-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.mod-chip:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-2px); box-shadow: 0 10px 22px -16px rgba(19,41,61,0.4);
}
.mod-chip-ico {
  width: 24px; height: 24px; border-radius: 6px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-dark);
}
.mod-chip:hover .mod-chip-ico { background: var(--accent); color: #fff; }
.mod-chip.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.mod-chip.active .mod-chip-ico { background: var(--accent); color: #fff; }
/* Compact one-row variant (solution detail pages) — taller cells, full label */
.mod-chips.compact { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin-top: 0; align-items: stretch; }
.mod-chips.compact .mod-chip { flex-direction: column; align-items: center; text-align: center; justify-content: flex-start; padding: 10px 6px; gap: 6px; font-size: 10.5px; line-height: 1.2; border-radius: 9px; }
.mod-chips.compact .mod-chip-ico { width: 24px; height: 24px; border-radius: 6px; flex: 0 0 auto; }
.mod-chips.compact .mod-chip-txt { white-space: normal; overflow: visible; word-break: normal; overflow-wrap: break-word; }
@media (max-width: 1000px) {
  .mod-chips.compact { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(96px, 1fr); overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
}
.demo-frame.standalone { margin-top: 24px; }

/* ---- Hero headline: small "into a" middle line ---- */
.h1-small {
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--mute);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: var(--mute);
  display: inline-block;
  line-height: 1.6;
}
body.hero-navy .h1-small { color: var(--studio-mute); -webkit-text-fill-color: var(--studio-mute); }

/* Hero title: "into a" sits as a small middle line between the two main lines */
.hero-h1.centered { font-size: clamp(32px, 3.8vw, 52px); white-space: nowrap; }
@media (max-width: 920px) { .hero-h1.centered { white-space: normal; } }
.h1-small { line-height: 2.1; }

/* ---- 3-col partner grid ---- */
.sol-grid.grid3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .sol-grid.grid3 { grid-template-columns: 1fr; } }
.sol-grid.grid2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) { .sol-grid.grid2 { grid-template-columns: 1fr; } }

/* ---- Partners Program ---- */
.inc-box { margin-top: 28px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.inc-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); margin-bottom: 16px; }
.scenario-tag { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark); background: var(--accent-soft); border-radius: 99px; padding: 4px 12px; align-self: flex-start; }
.scenario-text { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.prog-card { padding: 28px; }
.prog-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 9px; }
.prog-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.prog-list .chk { width: 22px; height: 22px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; flex: 0 0 auto; }

/* ---- Duo band (ERP-agnostic + Fast Time-to-Value, half/half) ---- */
.duo-band { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duo-band.trio { grid-template-columns: repeat(3, 1fr); }
.hero-trio { margin-top: clamp(28px, 4vw, 48px); text-align: left; }
.duo-section { padding-bottom: clamp(20px, 2.5vw, 30px); }
.duo-section + .cta-section { padding-top: clamp(28px, 3.5vw, 44px); }
@media (max-width: 760px) { .duo-band { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .duo-band.trio { grid-template-columns: 1fr; } }
.duo-cell { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.duo-cell-accent { background: var(--studio); }
.duo-ico { width: 46px; height: 46px; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; }
.duo-cell-accent .duo-ico { background: rgba(95,168,220,0.16); color: var(--accent-bright); }
.duo-cell-accent .eyebrow { color: rgba(255,255,255,0.82); }
.duo-t { font-size: clamp(24px, 2.6vw, 34px); color: var(--accent); background: none; -webkit-text-fill-color: var(--accent); letter-spacing: -0.02em; line-height: 1.18; }
.duo-cell-accent .duo-t { color: #fff; -webkit-text-fill-color: #fff; }
.duo-d { color: var(--mute); font-size: 14.5px; line-height: 1.55; max-width: 42ch; }
.duo-cell-accent .duo-d { color: var(--studio-mute); }
.duo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.duo-chip { font-size: 11px; letter-spacing: 0.04em; padding: 5px 11px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); }
.duo-stat { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.duo-stat-n { font-size: 48px; font-weight: 600; letter-spacing: -0.03em; color: var(--accent); line-height: 1; }
.duo-stat-l { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }

/* ---- Organizations: blocks with coverage cubes (like segments) ---- */
.org-blocks { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); }
.org-block { padding-bottom: clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.org-block:last-child { border-bottom: none; padding-bottom: 0; }
.org-block-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.org-block-head:hover h3 { color: var(--blue); }
.org-block-link { margin-inline-start: auto; font-size: 13px; font-weight: 500; color: var(--accent); white-space: nowrap; flex: 0 0 auto; }
.org-block-head h3 { font-size: clamp(20px, 2vw, 26px); color: var(--ink); background: none; -webkit-text-fill-color: currentColor; letter-spacing: -0.02em; margin-bottom: 6px; }
.org-block-head p { color: var(--mute); font-size: 14.5px; line-height: 1.55; max-width: 70ch; }

/* ---- Segment coverage (detail page) — small equal cubes, hover reveals content ---- */
.cov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; }
/* ---- Amber row connector (matches hero advantage bar) — applied to all cube grids ---- */
.has-row-connector { position: relative; }
.row-connector { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.row-connector-line { stroke: #F2A20E; stroke-width: 6; stroke-linecap: round; }
.has-row-connector > *:not(.row-connector) { position: relative; z-index: 1; }
.cov-grid.has-row-connector .cov-cube::after { display: none; }
@media (max-width: 1080px) { .row-connector { display: none; } }
@media (max-width: 760px) { .cov-grid { grid-template-columns: 1fr 1fr !important; } }
.cov-cube { position: relative; min-height: 116px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-md); display: grid; place-items: center; padding: 16px; text-align: center; cursor: default; transition: border-color .2s, transform .2s, box-shadow .2s; outline: none; overflow: hidden; }
.cov-bg { position: absolute; right: -10px; bottom: -16px; color: var(--blue); opacity: 0.08; pointer-events: none; line-height: 0; transition: opacity .2s, transform .2s; }
body.rtl .cov-bg { right: auto; left: -10px; transform: scaleX(-1); }
.cov-cube:hover .cov-bg, .cov-cube:focus-visible .cov-bg { opacity: 0.14; transform: translateY(-4px); }
.cov-t { position: relative; z-index: 1; }
.cov-cube:hover, .cov-cube:focus-visible { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(19,41,61,0.28); z-index: 6; }
.cov-cube::after { content: ""; position: absolute; top: 50%; inset-inline-end: -12px; width: 12px; height: 6px; background: #F2A20E; transform: translateY(-50%); border-radius: 3px; z-index: 2; }
.cov-cube.row-end::after { display: none; }
@media (max-width: 760px) { .cov-cube::after { display: none; } }
.cov-t { font-size: clamp(19px, 1.6vw, 25px); font-weight: 700; color: var(--blue); background: none; -webkit-text-fill-color: var(--blue); letter-spacing: -0.015em; line-height: 1.12; text-wrap: balance; }
.cov-pop { position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%) translateX(6px); width: min(280px, 70vw); background: var(--studio); color: var(--studio-ink); border-radius: var(--radius-md); padding: 16px 18px; box-shadow: 0 24px 50px -18px rgba(8,18,28,0.55); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s; z-index: 8; text-align: left; pointer-events: none; }
body.rtl .cov-pop { text-align: right; left: auto; right: calc(100% + 10px); transform: translateY(-50%) translateX(-6px); }
.cov-cube:hover .cov-pop, .cov-cube:focus-visible .cov-pop { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.cov-pop::before { content: ""; position: absolute; left: -6px; top: 50%; transform: translateY(-50%) rotate(45deg); width: 12px; height: 12px; background: var(--studio); border-radius: 2px; }
body.rtl .cov-pop::before { left: auto; right: -6px; }
.cov-cube.pop-left .cov-pop { left: auto; right: calc(100% + 10px); transform: translateY(-50%) translateX(-6px); }
.cov-cube.pop-left:hover .cov-pop, .cov-cube.pop-left:focus-visible .cov-pop { transform: translateY(-50%) translateX(0); }
.cov-cube.pop-left .cov-pop::before { left: auto; right: -6px; }
body.rtl .cov-cube.pop-left .cov-pop { right: auto; left: calc(100% + 10px); transform: translateY(-50%) translateX(6px); }
body.rtl .cov-cube.pop-left .cov-pop::before { right: auto; left: -6px; }
.cov-pop-t { font-size: 13px; font-weight: 600; color: var(--accent-bright); margin-bottom: 10px; letter-spacing: 0.01em; }
.cov-list { display: flex; flex-direction: column; gap: 8px; }
.cov-list li { display: flex; gap: 9px; font-size: 12.5px; line-height: 1.45; color: var(--studio-ink); }
.cov-list .chk { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 5px; background: rgba(248,196,83,0.18); color: var(--accent-bright); display: grid; place-items: center; margin-top: 1px; }
.ben-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 920px) { .ben-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .ben-grid { grid-template-columns: 1fr; } }
.ben-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; }
.ben-card h4 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.ben-card p { font-size: 12.5px; line-height: 1.5; color: var(--mute); }

/* ---- Solution showcase relevant points ---- */
.sol-points { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 22px; margin: 4px 0 16px; max-width: 760px; }
@media (max-width: 600px) { .sol-points { grid-template-columns: 1fr; } }
.sol-points li { display: flex; gap: 9px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.sol-points .chk { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; margin-top: 1px; }

/* ---- Explore cards (home landing) ---- */
.explore-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
.explore-grid::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; background: #F2A20E; transform: translateY(-50%); z-index: 0; border-radius: 3px; }
@media (max-width: 900px) { .explore-grid { grid-template-columns: 1fr 1fr; } .explore-grid::before { display: none; } }
@media (max-width: 560px) { .explore-grid { grid-template-columns: 1fr; } }
.explore-card { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.explore-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(19,41,61,0.25); }
.explore-ico { width: 50px; height: 50px; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; }
.explore-card h3 { font-size: 19px; color: var(--ink); background: none; -webkit-text-fill-color: currentColor; letter-spacing: -0.015em; }
.explore-card p { color: var(--mute); font-size: 13.5px; line-height: 1.5; flex: 1; }
.explore-link { font-size: 13px; font-weight: 500; color: var(--accent); }

/* ---- Technology page ---- */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .tech-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tech-grid { grid-template-columns: 1fr; } }
.tech-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, transform .2s; }
.tech-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.tech-ico { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; }
.tech-card h3 { font-size: 18px; color: var(--ink); background: none; -webkit-text-fill-color: currentColor; letter-spacing: -0.015em; }
.tech-card p { color: var(--mute); font-size: 14px; line-height: 1.55; }
.tech-band { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 52px); }
.tech-band .tech-card { background: var(--bg); }

/* ---- About page ---- */
.about-split { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .about-split { grid-template-columns: 1fr; } }
.about-vision-t { font-size: clamp(26px, 2.8vw, 38px); color: var(--ink); background: none; -webkit-text-fill-color: currentColor; letter-spacing: -0.025em; margin: 14px 0 14px; max-width: 20ch; }
.about-vision-d { color: var(--mute); font-size: 16px; line-height: 1.6; max-width: 56ch; }
.about-plat { display: flex; gap: 14px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.about-plat-ico { width: 46px; height: 46px; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; flex: 0 0 auto; }
.about-plat-t { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.about-plat p { color: var(--mute); font-size: 14px; line-height: 1.55; max-width: 48ch; }
.about-facts { display: flex; flex-direction: column; gap: 0; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.about-fact { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.about-fact:last-child { border-bottom: none; }
.about-fact-l { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.about-fact-v { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.about-partner { background: var(--studio); border-radius: var(--radius-xl); padding: clamp(32px, 5vw, 60px); position: relative; overflow: hidden; }
.about-partner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(620px 280px at 100% 0%, rgba(95,168,220,0.20), transparent 60%); }
.about-partner > div { position: relative; z-index: 1; max-width: 60ch; }
.about-partner .about-vision-t { color: #fff; -webkit-text-fill-color: #fff; }
.about-partner .about-vision-d { color: var(--studio-mute); }
.about-partner .btn-ghost { color: #fff; border-color: var(--studio-line); }
.about-partner .btn-ghost:hover { background: var(--studio-soft); }

/* ---- RTL ---- */
body.rtl .showcase-arrow, body.rtl .btn .arrow { transform: scaleX(-1); }
body.rtl .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }
body.rtl .seg-link { transform: scaleX(-1); }
body.rtl .crumb { direction: rtl; }

/* ---- Design variants (Tweaks) ---- */
body[data-pal="amber"] { --accent: #E9A115; --accent-bright: #F8C453; --accent-soft: #FCF1DA; --accent-dark: #C4860D; }
body[data-pal="navy"] { --accent: #1F3950; --accent-bright: #33506B; --accent-soft: #E3E9F0; --accent-dark: #13293D; }
body[data-pal="amber"] h1 .accent, body[data-pal="amber"] h2 .accent,
body[data-pal="navy"] h1 .accent, body[data-pal="navy"] h2 .accent {
  background: none; -webkit-text-fill-color: var(--accent); color: var(--accent);
}
body[data-pal] .adv-ico, body[data-pal] .erp-item .ico { color: var(--accent-dark); }

body.hero-navy .hero-stack { background: var(--studio); border-radius: var(--radius-xl); padding: clamp(32px,4.5vw,56px) clamp(20px,4vw,48px); margin-top: 16px; }
body.hero-navy .hero-kicker { color: var(--studio-mute); }
body.hero-navy .hero-h1, body.hero-navy .hero-h1 .accent { background: none; }
body.hero-navy .hero-h1 { -webkit-text-fill-color: #fff; color: #fff; }
body.hero-navy .hero-h1 .accent { -webkit-text-fill-color: var(--accent-bright); color: var(--accent-bright); }
body.hero-navy .hero-sub { color: var(--studio-mute); }
body.hero-navy .adv-card { background: var(--studio-soft); border-color: var(--studio-line); }
body.hero-navy .adv-card h3 { color: var(--accent-bright); }
body.hero-navy .adv-card p { color: var(--studio-mute); }
body.hero-navy .adv-k { color: var(--studio-mute); }
body.hero-navy .adv-ico { background: rgba(95,168,220,0.16); color: var(--accent-bright); }
body.hero-navy .btn-ghost { color: #fff; border-color: var(--studio-line); }
body.hero-navy .btn-ghost:hover { background: var(--studio-soft); }

/* ---- Accent letters ripple like a small wave on heading hover ---- */
/* Each word is wrapped so it never breaks mid-word; only real spaces wrap.
   Letters carry the accent gradient explicitly (a word wrapper would break a
   background:inherit chain), with palette-safe overrides. */
.accent .wword { display: inline-block; }
.accent .wch {
  display: inline-block;
  will-change: transform;
  background: linear-gradient(100deg,
    #2F86C9 0%, #2F86C9 42%, #7FB5E0 47%, #D4E6F6 50%,
    #7FB5E0 53%, #2F86C9 58%, #2F86C9 100%);
  background-color: #2F86C9;
  background-repeat: no-repeat;
  background-size: 200vw 100%;
  background-position: -3000px 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
body[data-pal] .accent .wch { background: none; -webkit-text-fill-color: var(--accent); }
body.hero-navy .hero-h1 .accent .wch { background: none; -webkit-text-fill-color: var(--accent-bright); }
h1:hover .accent .wch,
h2:hover .accent .wch,
.hero-h1:hover .accent .wch,
.page-hero-h1:hover .accent .wch,
.sh-title:hover .accent .wch,
.duo-t:hover .accent .wch {
  animation: xAccentWave 0.62s ease;
  animation-delay: calc(var(--i, 0) * 42ms);
}
@keyframes xAccentWave {
  0%, 100% { transform: translateY(0); }
  38% { transform: translateY(-0.26em); }
}
@media (prefers-reduced-motion: reduce) {
  h1:hover .accent .wch, h2:hover .accent .wch, .hero-h1:hover .accent .wch,
  .page-hero-h1:hover .accent .wch, .sh-title:hover .accent .wch, .duo-t:hover .accent .wch { animation: none; }
}

/* ---- Home tweaks: corners & card treatment ---- */
body[data-corners="sharp"] .pillar-cube,
body[data-corners="sharp"] .agent-card,
body[data-corners="sharp"] .builtin-card { border-radius: 0; }

body[data-cards="soft"] .pillar-cube,
body[data-cards="soft"] .agent-card,
body[data-cards="soft"] .builtin-card {
  border-color: transparent; background: var(--bg-soft);
  box-shadow: 0 14px 34px -20px rgba(19,41,61,0.22);
}
body[data-cards="soft"] .pillar-cube:hover,
body[data-cards="soft"] .agent-card:hover,
body[data-cards="soft"] .builtin-card:hover,
body[data-cards="soft"] .pillar-cube:focus-visible,
body[data-cards="soft"] .builtin-card:focus-visible {
  border-color: transparent; box-shadow: 0 24px 48px -22px rgba(19,41,61,0.3);
}

/* ---- Full-bleed soft band (section rhythm) ---- */
html, body { overflow-x: clip; }
.section-band { position: relative; }
.section-band::before {
  content: ""; position: absolute; z-index: 0;
  left: 50%; transform: translateX(-50%); width: 100vw;
  top: 0; bottom: 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section-band > * { position: relative; z-index: 1; }

/* ---- Scroll reveal — content rises/fades in as it scrolls into view (JS adds .is-in).
   Ported from the site3 preview. Only below-fold blocks are hidden (see site.js), so
   above-fold content never flashes and no-JS visitors are never left with hidden content. */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay:.08s } .reveal[data-d="2"]{ transition-delay:.16s }
.reveal[data-d="3"]{ transition-delay:.24s } .reveal[data-d="4"]{ transition-delay:.32s }
.reveal[data-d="5"]{ transition-delay:.40s }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; transition:none } }
