/* Design option D ("Blue Glass"), from the StaffGateway Pinterest board: airy light-blue page, brand-blue gradients,
   frosted glass cards floating around real screens, bento grid, dotted process line, deep blue closing band.
   Loaded after site.css on site/d/ pages (<html class="theme-d">). Brand tokens from itranks-ds.css. */

.theme-d {
  --d-bg: color-mix(in oklab, var(--brand-50) 45%, white);
  --d-ink: var(--it-gray-950);
  --d-mute: var(--it-gray-500);
  --d-line: color-mix(in oklab, var(--brand-700) 12%, transparent);
  --d-glass: rgb(255 255 255 / 72%);
  --d-glass-line: rgb(255 255 255 / 90%);
  --d-shadow: 0 24px 60px -28px color-mix(in oklab, var(--brand-800) 45%, transparent), 0 8px 20px -12px color-mix(in oklab, var(--brand-900) 18%, transparent);
  --d-grad: linear-gradient(100deg, var(--brand-800) 0%, var(--brand-600) 45%, var(--brand-400) 100%);
  --r-xl: 28px;
}
.theme-d body { background: var(--d-bg); color: var(--d-ink); }
.theme-d :is(h1, h2) { font-weight: 600; letter-spacing: -0.035em; }
html.theme-d[lang="ar"] :is(h1, h2, h3) { letter-spacing: 0; }

/* buttons */
.theme-d .btn { border-radius: 999px; }
.theme-d .btn-primary { background: var(--d-grad); box-shadow: 0 12px 24px -12px var(--brand-600); }
.theme-d .btn-primary:hover { background: var(--brand-800); }
.theme-d .btn-secondary { background: #fff; color: var(--d-ink); border-color: var(--d-line); }
.theme-d .btn-secondary:hover { border-color: var(--brand-400); background: #fff; }
.theme-d .d-hero .btn-ghost { background: #fff; color: var(--d-ink); border-color: var(--d-line); box-shadow: 0 6px 16px -10px rgb(20 40 90 / 30%); }
.theme-d .d-hero .btn-ghost:hover { border-color: var(--brand-400); }
.theme-d .link { color: var(--brand-700); }

/* header: frosted white */
.theme-d .site-header { background: color-mix(in oklab, var(--d-bg) 75%, transparent); }
.theme-d .site-header.is-scrolled { border-bottom-color: var(--d-line); box-shadow: 0 10px 30px -24px rgb(20 40 90 / 40%); }
.theme-d .nav-link:hover, .theme-d .nav-trigger[aria-expanded="true"] { background: #fff; }
.theme-d .mega { border-radius: 20px; border-color: var(--d-line); }

/* ---------- hero ---------- */
.d-hero { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding-top: clamp(48px, 6vw, 88px); }
.d-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 45% at 50% 0%, color-mix(in oklab, var(--brand-200) 70%, transparent) 0%, transparent 70%),
    radial-gradient(40% 35% at 85% 35%, color-mix(in oklab, var(--brand-100) 80%, transparent) 0%, transparent 70%),
    radial-gradient(40% 35% at 10% 40%, color-mix(in oklab, var(--it-blue-100, var(--brand-100)) 70%, transparent) 0%, transparent 70%); }
.d-hero-bg::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(color-mix(in oklab, var(--brand-700) 7%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in oklab, var(--brand-700) 7%, transparent) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(70% 55% at 50% 20%, #000 0%, transparent 80%); }
.d-hero-copy { display: grid; justify-items: center; }
.d-pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; background: #fff; border: 1px solid var(--d-line);
  box-shadow: 0 6px 16px -12px rgb(20 40 90 / 35%); font-size: .875rem; font-weight: 500; margin-bottom: 26px; }
[dir="rtl"] .d-pill { padding: 5px 5px 5px 14px; }
.d-pill span { padding: 3px 10px; border-radius: 999px; background: var(--d-grad); color: #fff; font-weight: 600; font-size: .75rem; }
.d-hero h1 { font-size: clamp(2.5rem, 1.1rem + 4.6vw, 5.25rem); line-height: 1.02; max-width: 15ch; }
html.theme-d[lang="ar"] .d-hero h1 { line-height: 1.3; max-width: 16ch; }
.grad { background: var(--d-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.d-hero .lead { margin-top: 22px; max-width: 660px; color: var(--d-mute); }
.d-hero .btn-row { margin-top: 30px; }

/* stage: real screens over the glass ribbon, with glass cards */
.d-stage { position: relative; margin: clamp(48px, 6vw, 80px) auto 0; max-width: 1100px; padding: 0 6% 0; }
.d-ribbon { position: absolute; inset: 6% -30% -10%; z-index: -1; pointer-events: none;
  mask-image: radial-gradient(62% 58% at 50% 50%, #000 52%, transparent 80%); -webkit-mask-image: radial-gradient(62% 58% at 50% 50%, #000 52%, transparent 80%); }
.d-ribbon-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; opacity: .95; }
[dir="rtl"] .d-ribbon-img { transform: scaleX(-1); }
.d-devices { position: relative; }
.dwin { margin: 0; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--d-glass-line); box-shadow: var(--d-shadow); padding: 6px; }
.dwin-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding-inline: 10px; direction: ltr; }
.dwin-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--it-gray-200); }
.dwin-bar i { display: inline-flex; align-items: center; gap: 6px; margin-inline: auto; font-style: normal; font-size: .75rem; color: var(--d-mute); background: var(--d-bg); border-radius: 8px; padding: 3px 48px; }
.dwin-bar i .icon { width: 12px; height: 12px; }
.dwin .shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--it-gray-100); }
.d-devices .d-phone { position: absolute; inset-inline-end: -3%; bottom: -6%; width: 22%; min-width: 130px; }
.gcard { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; text-align: start;
  background: var(--d-glass); border: 1px solid var(--d-glass-line); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--d-shadow); font-size: .8125rem; line-height: 1.35; animation: dfloat 7s ease-in-out infinite; }
.gcard > .icon { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--d-grad); color: #fff; flex: none; }
.gcard b { display: block; font-size: .875rem; }
.gcard span { color: var(--d-mute); }
.gc-1 { top: 12%; inset-inline-start: -2%; }
.gc-2 { bottom: 16%; inset-inline-start: -5%; animation-delay: -2.5s; }
.gc-3 { top: -5%; inset-inline-end: 8%; animation-delay: -4.5s; }
.gc-1 > .icon { background: linear-gradient(135deg, color-mix(in oklab, var(--success, #16a34a) 85%, white), var(--success, #16a34a)); }
.gc-lang { top: 46%; inset-inline-end: -4%; animation-delay: -1.2s; padding: 8px 10px; }
.gc-seg { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--d-bg); }
.gc-seg span { padding: 4px 10px; border-radius: 999px; font-weight: 600; font-size: .75rem; color: var(--d-mute); }
.gc-seg span.on { background: #fff; color: var(--d-ink); box-shadow: 0 2px 6px -2px rgb(20 40 90 / 30%); }
.gc-seg span[lang="ar"] { font-family: var(--brand-font-arabic); }
@keyframes dfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.js [data-rise] { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.js [data-rise].is-in { opacity: 1; transform: none; }

.d-trust { margin-top: clamp(56px, 7vw, 88px); padding-bottom: 8px; }
.d-trust p { font-size: .875rem; color: var(--d-mute); margin-bottom: 14px; }
.d-strip { justify-content: center; gap: 10px; }
.d-strip li { background: #fff; border: 1px solid var(--d-line); color: var(--d-ink); padding: 9px 16px; font-weight: 500; }
.d-strip .icon { color: var(--brand-600); }

/* facts row */
.d-facts { padding-block: clamp(48px, 6vw, 80px) 0; }
.d-facts ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: var(--r-xl); background: #fff; border: 1px solid var(--d-line); box-shadow: 0 20px 50px -40px rgb(20 40 90 / 45%); }
.d-facts li { display: grid; gap: 2px; padding: 26px 28px; }
.d-facts li + li { border-inline-start: 1px solid var(--d-line); }
.d-facts b { font-size: clamp(2.5rem, 1.6rem + 2.4vw, 3.75rem); line-height: 1; font-weight: 600; letter-spacing: -0.04em; background: var(--d-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.d-fact-l { font-weight: 600; margin-top: 6px; }
.d-fact-t { font-size: .875rem; color: var(--d-mute); }

/* ---------- section heads ---------- */
.theme-d .section { padding-block: clamp(72px, 9vw, 128px); }
.theme-d .section-soft, .d-soft { background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--brand-100) 45%, transparent) 50%, transparent); }
.theme-d .section + .section-soft, .theme-d .section-soft + .section { border-top: 0; }
.d-head, .theme-d .sec-head { text-align: center; margin-inline: auto; max-width: 820px; }
.theme-d .sec-head h2 { font-size: clamp(2rem, 1.1rem + 2.9vw, 3.5rem); line-height: 1.08; }
html.theme-d[lang="ar"] .sec-head h2 { line-height: 1.35; }
.theme-d .sec-intro { margin-inline: auto; max-width: 640px; color: var(--d-mute); }
.theme-d .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-700); letter-spacing: .06em; font-size: .75rem; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--d-line); }
html.theme-d[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .875rem; }

/* ---------- bento ---------- */
.bentos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(300px, auto); gap: 18px; }
.bento { position: relative; overflow: hidden; display: flex; flex-direction: column; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--d-line);
  box-shadow: 0 20px 50px -40px rgb(20 40 90 / 45%); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.bento:hover { transform: translateY(-3px); box-shadow: var(--d-shadow); }
.b-a { grid-column: 1 / 3; flex-direction: row; }
.b-b { grid-column: 3; grid-row: 1 / 3; }
.b-c { grid-column: 1; }
.b-d { grid-column: 2; }
.b-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; padding: 28px; }
.b-a .b-copy { flex: 0 0 46%; }
.b-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.b-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--d-grad); color: #fff; box-shadow: 0 10px 20px -10px var(--brand-600); }
.b-icon .icon { width: 22px; height: 22px; }
.b-num { font-family: var(--brand-font-mono); color: var(--brand-200); font-weight: 700; }
.bento h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
.b-sub { color: var(--brand-700); font-weight: 600; font-size: .9375rem; }
.b-text { color: var(--d-mute); font-size: .9375rem; }
.bento .ticks { margin-top: 4px; }
.theme-d .ticks .icon { background: var(--brand-50); color: var(--brand-700); }
.b-foot { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.b-shot { flex: 1; position: relative; min-width: 0; padding: 28px 0 0; background: linear-gradient(160deg, var(--brand-50), color-mix(in oklab, var(--brand-100) 80%, white)); }
.b-shot img { position: absolute; top: 32px; inset-inline-start: 24px; width: 760px; max-width: none; border-radius: 12px; border: 1px solid #fff; box-shadow: var(--d-shadow); }
[dir="rtl"] .b-shot img { inset-inline-start: 24px; }
.b-phone { position: relative; flex: 1; min-height: 420px; margin-top: 6px; overflow: hidden; background: radial-gradient(70% 60% at 50% 100%, var(--brand-100), transparent 70%); }
.b-phone .phone { position: absolute; top: 70px; left: 50%; translate: -50% 0; width: 250px; }
.b-phone .gc-in { position: absolute; top: 140px; inset-inline-start: 14px; animation-duration: 6s; }
.b-visual { position: relative; flex: 1; min-height: 160px; }
.geo { position: absolute; inset: 0; display: grid; place-items: center; }
.geo span { position: absolute; border-radius: 50%; border: 1.5px dashed color-mix(in oklab, var(--brand-500) 45%, transparent); }
.geo span:nth-child(1) { width: 90px; height: 90px; background: color-mix(in oklab, var(--brand-200) 40%, transparent); }
.geo span:nth-child(2) { width: 170px; height: 170px; }
.geo span:nth-child(3) { width: 250px; height: 250px; opacity: .6; }
.geo i { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--d-grad); color: #fff; box-shadow: 0 10px 20px -8px var(--brand-600); }
.geo i .icon { width: 20px; height: 20px; }
.gc-geo { position: absolute; top: 12px; inset-inline-end: 16px; z-index: 2; }
.b-mods { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: center; padding: 0 20px 20px; margin: 0; background: linear-gradient(160deg, var(--brand-50), color-mix(in oklab, var(--brand-100) 70%, white)); }
.b-mods li { position: relative; display: grid; gap: 2px; padding: 12px; border-radius: 16px; background: var(--d-glass); border: 1px solid var(--d-glass-line); box-shadow: 0 10px 24px -18px rgb(20 40 90 / 40%); }
.b-mods li > .icon { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: #fff; color: var(--brand-700); }
.b-mods b { font-size: .9375rem; }
.b-mods span { font-size: .75rem; color: var(--d-mute); }
.b-mods .mini-sw { position: absolute; top: 12px; inset-inline-end: 12px; width: 30px; height: 18px; border-radius: 999px; background: var(--it-gray-300); }
.b-mods .mini-sw::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.b-mods .mini-sw.on { background: var(--brand-600); }
.b-mods .mini-sw.on::after { inset-inline-start: 14px; }
.theme-d .switch[aria-checked="true"] .switch-track { background: var(--brand-600); }
.d-found { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.d-found b { color: var(--d-mute); font-weight: 500; margin-inline-end: 6px; }
.d-found span { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--d-line); font-weight: 500; font-size: .875rem; }
.theme-d .mix { border-radius: 22px; background: var(--d-grad); margin-top: 20px; }
.theme-d .mix .btn-primary { background: #fff; color: var(--brand-800); box-shadow: none; }

/* ---------- process with dotted connector ---------- */
.d-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; }
.d-steps::before { content: ""; position: absolute; top: 58px; inset-inline: 12%; border-top: 2px dashed color-mix(in oklab, var(--brand-500) 40%, transparent); }
.d-step { position: relative; display: grid; justify-items: center; gap: 8px; }
.d-step-art { position: relative; display: grid; gap: 6px; justify-items: start; width: 150px; height: 116px; padding: 14px; border-radius: 20px; background: #fff; border: 1px solid var(--d-line); box-shadow: var(--d-shadow); margin-bottom: 12px; }
.d-step-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--d-grad); color: #fff; }
.d-step-icon .icon { width: 18px; height: 18px; }
.d-step-art i { display: block; height: 8px; border-radius: 4px; background: var(--brand-50); width: 100%; }
.d-step-art i:nth-of-type(2) { width: 75%; }
.d-step-art i:nth-of-type(3) { width: 50%; background: var(--brand-100); }
.d-step-num { font-family: var(--brand-font-mono); font-size: .8125rem; color: var(--brand-600); font-weight: 700; }
.d-step h3 { font-size: 1.25rem; }
.d-step p { color: var(--d-mute); font-size: .9375rem; max-width: 30ch; }

/* ---------- tour ---------- */
.d-tour { text-align: center; }
.d-tabs { display: inline-flex; margin: 0 auto 28px; border-radius: 999px; background: #fff; border-color: var(--d-line); }
.theme-d .tour-tabs [role="tab"] { border-radius: 999px; }
.theme-d .tour-tabs [role="tab"][aria-selected="true"] { background: var(--d-grad); }
.d-tour-panel { grid-template-columns: minmax(0, 1fr) !important; justify-items: center; gap: 22px !important; }
.d-tour-cap h3 { font-size: 1.5rem; }
.d-tour-cap p { color: var(--d-mute); margin-top: 6px; }
.d-tour .dwin { width: min(1000px, 100%); }

/* ---------- reused sections, re-skinned ---------- */
.theme-d :is(.role, .card, .ic-col, .if-who, .if-sys, .sysbox) { border-radius: 22px; border-color: var(--d-line); box-shadow: 0 20px 50px -40px rgb(20 40 90 / 45%); }
.theme-d .role-icon { background: var(--d-grad); color: #fff; }
.theme-d .ic-core { border-color: var(--brand-500); background: linear-gradient(160deg, #fff, var(--brand-50)); }
.theme-d .ic-who .icon { background: var(--d-grad); }
.theme-d .split-wide .split-media { padding: 22px; border-radius: var(--r-xl); background: linear-gradient(160deg, #fff, var(--brand-50)); border: 1px solid var(--d-line); }

/* ---------- closing band ---------- */
.d-cta-wrap { padding-block: 24px clamp(72px, 8vw, 112px); }
.d-cta { position: relative; isolation: isolate; overflow: hidden; border-radius: 32px; padding: clamp(40px, 6vw, 80px); color: #fff; background: var(--brand-900); min-height: 380px; display: grid; align-items: center; }
.d-cta-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; z-index: -1; }
[dir="rtl"] .d-cta-img { transform: scaleX(-1); }
.d-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in oklab, var(--brand-950) 70%, transparent) 0%, transparent 65%); }
[dir="rtl"] .d-cta::after { background: linear-gradient(-90deg, color-mix(in oklab, var(--brand-950) 70%, transparent) 0%, transparent 65%); }
.d-cta-copy { max-width: 560px; }
.d-cta h2 { font-size: clamp(2rem, 1.1rem + 2.8vw, 3.25rem); line-height: 1.08; }
html.theme-d[lang="ar"] .d-cta h2 { line-height: 1.35; }
.d-cta p { margin-top: 14px; color: rgb(255 255 255 / 85%); font-size: 1.0625rem; }
.d-cta .btn-light { color: var(--brand-800); }
.d-cta .btn-ghost { background: rgb(255 255 255 / 10%); border-color: rgb(255 255 255 / 45%); }

/* footer: light */
.theme-d .site-footer { background: #fff; color: var(--d-mute); border-top: 1px solid var(--d-line); }
.theme-d .footer-brand .f-logo-dark { display: none; }
.theme-d .footer-brand .f-logo-light { display: block; }
.theme-d .footer-tag, .theme-d .footer-nav h2 { color: var(--d-ink); }
.theme-d .footer-nav a { color: var(--d-mute); }
.theme-d .footer-nav a:hover { color: var(--brand-700); }
.theme-d .footer-brand .btn-light { background: var(--d-grad); color: #fff; }
.theme-d .footer-bottom { border-top-color: var(--d-line); }
.theme-d .footer-bottom .lang-link { color: var(--d-ink); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .bentos { grid-template-columns: 1fr 1fr; }
  .b-a { grid-column: 1 / 3; }
  .b-b { grid-column: 1; grid-row: 2 / 4; }
  .b-c { grid-column: 2; }
  .b-d { grid-column: 2; }
  .d-steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .d-steps::before { display: none; }
  .d-facts ul { grid-template-columns: 1fr 1fr; }
  .d-facts li:nth-child(3) { border-inline-start: 0; }
  .d-facts li:nth-child(n+3) { border-top: 1px solid var(--d-line); }
}
@media (max-width: 720px) {
  .bentos { grid-template-columns: minmax(0, 1fr); }
  .b-a, .b-b, .b-c, .b-d { grid-column: 1; flex-direction: column; }
  .b-a .b-copy { flex: none; }
  .b-b { grid-row: auto; }
  .b-shot { min-height: 220px; }
  .b-mods { grid-template-columns: 1fr 1fr; }
  .gcard { display: none; }
  .gc-in { display: flex; }
  .d-stage { padding: 0 10% 0 0; }
  [dir="rtl"] .d-stage { padding: 0 0 0 10%; }
  .d-devices .d-phone { width: 30%; min-width: 0; inset-inline-end: -12%; }
  .dwin-bar i { padding: 3px 18px; }
  .d-steps { grid-template-columns: minmax(0, 1fr); }
  .d-facts li { padding: 20px; }
  .d-cta { min-height: 0; padding: 36px 24px 220px; }
  .d-cta-img { object-position: 85% 50%; }
  .d-cta::after { background: linear-gradient(180deg, color-mix(in oklab, var(--brand-950) 80%, transparent) 0%, transparent 70%); }
  [dir="rtl"] .d-cta::after { background: linear-gradient(180deg, color-mix(in oklab, var(--brand-950) 80%, transparent) 0%, transparent 70%); }
}
@media (prefers-reduced-motion: reduce) {
  .gcard { animation: none; }
  .js [data-rise] { opacity: 1; transform: none; }
}
@media (max-width: 720px) {
  .d-tabs { display: flex; max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; justify-content: flex-start; }
  .d-tabs [role="tab"] { white-space: nowrap; flex: none; }
}
