/* ==========================================================================
   Pharmainnovators v2 — premium design system (loaded after the original CSS).
   Tokens → header & mega menu → buttons → sections → components → footer → responsive.
   ========================================================================== */
:root {
  --c-primary: #0a2a6b; --c-primary-700: #071f52; --c-brand: #1257d6; --c-secondary: #2f80ff; --c-teal: #0f9aa8; --c-teal-600: #0b7f8b;
  --c-bg: #f6f8fc; --c-bg-2: #eef3fb; --c-surface: #fff; --c-ink: #121d33; --c-ink-2: #34425c; --c-muted: #556683; --c-border: #dde5f2; --c-border-strong: #c3d0e6;
  --c-focus: #2f80ff; --navy: #0a2a6b; --navy-2: #0d3a8f; --grad: linear-gradient(120deg, #0a2a6b 0%, #1257d6 55%, #0f9aa8 100%);
  --grad-soft: linear-gradient(135deg, #eef4ff 0%, #f2fbfb 100%);
  --f-sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; --f-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --sh-1: 0 1px 2px rgba(10,42,107,.06), 0 4px 14px rgba(10,42,107,.06); --sh-2: 0 10px 30px rgba(10,42,107,.10); --sh-3: 0 24px 60px rgba(10,42,107,.18);
  --r-lg: 18px; --r-xl: 24px; --header-h: 76px; --container: 1260px; --tone: #1257d6;
}
[data-theme="dark"] { --c-bg: #0b1426; --c-bg-2: #0f1c33; --c-surface: #111f38; --c-ink: #e8eefb; --c-ink-2: #c3cfe6; --c-muted: #9aaccb; --c-border: #22355a; --c-border-strong: #2e4776; --c-brand: #6aa3ff; --grad-soft: linear-gradient(135deg, #0f1c33, #0c1d2b); }
body { font-family: var(--f-sans); color: var(--c-ink); background: var(--c-bg); text-rendering: optimizeLegibility; }
h1, h2, h3, h4, .brand-text strong { font-family: var(--f-head); letter-spacing: -.015em; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 6px; }
.x-hide-sm { }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- header */
.site-header.x-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(10,42,107,.08); }
[data-theme="dark"] .site-header.x-header { background: rgba(11,20,38,.86); }
.x-header .header-inner { min-height: var(--header-h); gap: 18px; }
.x-header .brand img { width: 46px; height: 46px; border-radius: 12px; background: #fff; box-shadow: 0 2px 10px rgba(10,42,107,.12); padding: 2px; }
.x-header .brand-text strong { font-size: 1.12rem; font-weight: 800; color: var(--navy); letter-spacing: .01em; }
[data-theme="dark"] .x-header .brand-text strong { color: #fff; }
.x-header .brand-text span { font-size: .72rem; color: var(--c-muted); letter-spacing: .02em; }
.x-header .nav-list { gap: 2px; }
.x-header .nav-link, .x-header .nav-toggle-sub { font-weight: 600; font-size: .93rem; color: var(--c-ink-2); padding: 10px 12px; border-radius: 10px; }
.x-header .nav-link:hover, .x-header .nav-toggle-sub:hover, .x-header .nav-item.is-current > .nav-link, .x-header .nav-item.is-current > .nav-toggle-sub { color: var(--c-brand); background: rgba(18,87,214,.07); }
.x-header .subnav { border-radius: 16px; border: 1px solid var(--c-border); box-shadow: var(--sh-3); padding: 10px; min-width: 330px; }
.x-header .subnav a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; color: var(--c-ink); }
.x-header .subnav a .ic { width: 20px; height: 20px; color: var(--c-brand); flex: 0 0 auto; margin-top: 2px; }
.x-header .subnav a span { display: flex; flex-direction: column; font-weight: 600; font-size: .92rem; }
.x-header .subnav a small { font-weight: 400; color: var(--c-muted); font-size: .8rem; }
.x-header .subnav a:hover { background: var(--c-bg-2); }
.x-mega { width: min(1180px, calc(100vw - 40px)); padding: 18px !important; left: 50% !important; transform: translateX(-38%); }
.x-mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 18px; }
.x-mega-col h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--c-muted); margin: 8px 10px 4px; font-weight: 700; }
.x-mega-col ul { list-style: none; margin: 0; padding: 0; }
.x-mega-col a { display: flex !important; align-items: center !important; gap: 10px !important; padding: 7px 10px !important; font-size: .88rem; font-weight: 600; border-radius: 10px; }
.x-mi { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--tone) 12%, transparent); color: var(--tone); flex: 0 0 auto; }
.x-mi .ic { width: 16px !important; height: 16px !important; color: inherit !important; margin: 0 !important; }
.x-mega-foot { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--c-border); margin-top: 12px; padding-top: 12px; }
.x-mega-foot a { flex-direction: row !important; align-items: center !important; background: var(--c-bg-2); font-weight: 700 !important; font-size: .86rem; padding: 9px 14px !important; }
.x-header .btn-cta { border-radius: 12px; background: var(--grad); border: 0; box-shadow: 0 8px 20px rgba(18,87,214,.28); }
.x-header .btn-cta:hover { filter: brightness(1.08); }
.x-install { border-radius: 12px; }

/* ---------------------------------------------------------------- buttons */
.btn { border-radius: 12px; font-weight: 700; letter-spacing: .005em; transition: transform .15s var(--ease), box-shadow .15s, background .15s, filter .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--c-brand); border-color: var(--c-brand); }
.btn-lg { padding: 14px 22px; font-size: 1rem; }
.btn-teal { background: linear-gradient(120deg, #0f9aa8, #17b3a3); color: #fff !important; border: 0; box-shadow: 0 10px 26px rgba(15,154,168,.35); }
.btn-on-dark { background: rgba(255,255,255,.1); color: #fff !important; border: 1px solid rgba(255,255,255,.35); }
.btn-on-dark:hover { background: rgba(255,255,255,.18); }
.x-btn-wa { background: #1fa855; color: #fff !important; border: 0; box-shadow: 0 8px 22px rgba(31,168,85,.3); }
.x-btn-wa:hover { background: #18924a; }
.x-btnrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.x-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--c-brand); text-decoration: none; }
.x-link .ic { width: 16px; height: 16px; transition: transform .15s; }
.x-link:hover .ic { transform: translateX(3px); }

/* ---------------------------------------------------------------- sections */
.x-section { padding: clamp(56px, 7vw, 96px) 0; position: relative; }
.x-section--tint { background: var(--c-bg-2); }
.x-section--soft { background: var(--grad-soft); }
.x-section--navy { background: radial-gradient(1200px 500px at 85% 0%, rgba(15,154,168,.28), transparent 60%), linear-gradient(140deg, #071f52, #0a2a6b 60%, #0d3a8f); color: #e7eeff; }
.x-section--navy h2, .x-section--navy h3 { color: #fff; }
.x-section--navy .x-head p { color: #c7d5f5; }
.x-head { max-width: 760px; margin-bottom: 34px; }
.x-head.x-center, .x-center { text-align: center; margin-left: auto; margin-right: auto; }
.x-head h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.15; margin: 8px 0 12px; color: var(--navy); }
[data-theme="dark"] .x-head h2 { color: #fff; }
.x-head p { font-size: 1.08rem; color: var(--c-muted); line-height: 1.65; margin: 0; }
.x-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c-brand); }
.x-eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--grad); }
.x-eyebrow--light { color: #8fd9e0; }
.x-lead { font-size: 1.1rem; line-height: 1.7; color: var(--c-ink-2); }
.x-muted { color: var(--c-muted); }
.x-note { color: var(--c-muted); font-size: .92rem; max-width: 760px; margin: 22px auto 0; }
.x-h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.x-narrow { max-width: 820px; }
.x-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.x-split--rev > :first-child { order: 2; }
.x-split--top { align-items: start; }
.x-split-media img { border-radius: var(--r-xl); box-shadow: var(--sh-3); width: 100%; object-fit: cover; aspect-ratio: 16/11; }
.x-collage { position: relative; padding-bottom: 40px; }
.x-collage .x-collage-sm { position: absolute; right: -14px; bottom: 0; width: 42%; aspect-ratio: 1; border: 6px solid var(--c-surface); border-radius: 22px; }

/* ---------------------------------------------------------------- hero */
.x-hero { position: relative; overflow: hidden; color: #fff; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); background: #071f52; }
.x-hero-bg { position: absolute; inset: 0; background:
  radial-gradient(900px 520px at 12% 0%, rgba(47,128,255,.45), transparent 60%),
  radial-gradient(800px 600px at 100% 100%, rgba(15,154,168,.45), transparent 60%),
  linear-gradient(135deg, #071f52 0%, #0a2a6b 45%, #0d3a8f 100%); }
.x-hero-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%); }
.x-hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.x-chip-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); font-size: .8rem; font-weight: 600; color: #dbe7ff; }
.x-chip-pill .ic { width: 16px; height: 16px; color: #7fe3dc; }
.x-hero h1 { font-size: clamp(2.15rem, 1.3rem + 3.3vw, 3.75rem); line-height: 1.08; margin: 18px 0 16px; color: #fff; font-weight: 800; }
.x-hero-lead { font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); line-height: 1.7; color: #cdd9f5; max-width: 620px; }
.x-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.x-hero-wa { display: inline-flex; gap: 10px; align-items: center; color: #dbe7ff; text-decoration: none; font-size: .95rem; }
.x-hero-wa .ic { width: 22px; height: 22px; color: #3be37f; }
.x-hero-wa:hover strong { text-decoration: underline; }
.x-hero-stats { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 640px; }
.x-hero-stats li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 12px 14px; }
.x-hero-stats strong { display: block; font-family: var(--f-head); font-size: 1.5rem; color: #fff; }
.x-hero-stats span { font-size: .76rem; color: #b9c8ea; line-height: 1.3; display: block; }
.x-hero-visual { position: relative; min-height: 460px; }
.x-hero-main { margin: 0; position: absolute; inset: 0 40px 40px 30px; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.18); }
.x-hero-main img { width: 100%; height: 100%; object-fit: cover; }
.x-hero-float { margin: 0; position: absolute; width: 38%; aspect-ratio: 4/3; border-radius: 18px; overflow: hidden; border: 4px solid rgba(255,255,255,.9); box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.x-hero-float img { width: 100%; height: 100%; object-fit: cover; }
.x-hero-float--a { left: -10px; bottom: 0; }
.x-hero-float--b { right: 0; top: 18%; width: 32%; }
.x-glass { position: absolute; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.88); color: var(--navy); box-shadow: 0 14px 30px rgba(0,0,0,.25); backdrop-filter: blur(8px); font-size: .85rem; }
.x-glass .ic { width: 28px; height: 28px; padding: 5px; border-radius: 9px; background: var(--grad); color: #fff; }
.x-glass strong { display: block; font-size: .86rem; } .x-glass small { color: #4a5b7c; font-size: .74rem; }
.x-glass--1 { top: 2%; left: 0; } .x-glass--2 { bottom: 12%; right: -6px; } .x-glass--3 { top: 46%; left: -18px; }

/* page hero (inner pages) */
.x-phero { position: relative; color: #fff; overflow: hidden; background: linear-gradient(130deg, #071f52, #0a2a6b 55%, color-mix(in srgb, var(--tone) 70%, #0a2a6b)); padding: clamp(40px, 6vw, 72px) 0; }
.x-phero-img { position: absolute; inset: 0; opacity: .22; }
.x-phero-img img { width: 100%; height: 100%; object-fit: cover; }
.x-phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,31,82,.95) 0%, rgba(7,31,82,.6) 60%, rgba(7,31,82,.25)); }
.x-phero-inner { position: relative; z-index: 1; max-width: var(--container); }
.x-phero h1 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); margin: 10px 0 12px; max-width: 860px; }
.x-phero-lead { color: #d2ddf6; font-size: 1.1rem; max-width: 760px; line-height: 1.65; }
.x-phero .breadcrumbs, .x-shero .breadcrumbs { margin-bottom: 8px; }
.x-phero .breadcrumbs a, .x-phero .breadcrumbs li { color: #b8c8ee; }
.x-phero .breadcrumbs [aria-current] { color: #fff; }

/* original page heroes restyled */
.x-legacy .page-hero { background: linear-gradient(130deg, #071f52, #0a2a6b 60%, #0d3a8f); color: #fff; }
.x-legacy .page-hero h1 { color: #fff; font-family: var(--f-head); }
.x-legacy .page-hero p, .x-legacy .page-hero .lead { color: #d2ddf6; }
.x-legacy .page-hero .breadcrumbs a, .x-legacy .page-hero .breadcrumbs li { color: #b8c8ee; }
.x-legacy .section-head h2 { font-family: var(--f-head); color: var(--navy); }
[data-theme="dark"] .x-legacy .section-head h2 { color: #fff; }
.x-legacy .card, .x-legacy .wizard { border-radius: var(--r-lg); }

/* ---------------------------------------------------------------- cards */
.x-pillars { list-style: none; padding: 0; margin: 22px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.x-pillars li { display: flex; gap: 12px; padding: 16px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 16px; box-shadow: var(--sh-1); }
.x-num { font-family: var(--f-head); font-weight: 800; font-size: 1.1rem; color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, transparent); border-radius: 10px; width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; }
.x-pillars h3 { font-size: 1rem; margin: 0 0 4px; } .x-pillars p { margin: 0; font-size: .9rem; color: var(--c-muted); }
.x-ccards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.x-ccard { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 16px; text-decoration: none; color: var(--c-ink); transition: transform .18s, box-shadow .18s, border-color .18s; position: relative; overflow: hidden; }
.x-ccard::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--tone); }
.x-ccard:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: color-mix(in srgb, var(--tone) 40%, var(--c-border)); }
.x-ccard-ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--tone) 13%, transparent); color: var(--tone); }
.x-ccard-ic .ic { width: 22px; height: 22px; }
.x-ccard-t { font-weight: 700; font-size: .93rem; line-height: 1.3; }
.x-ccard-n { font-size: .78rem; color: var(--c-muted); }
.x-sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.x-scard { position: relative; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.x-scard:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.x-scard-media { aspect-ratio: 16/9; overflow: hidden; background: var(--c-bg-2); }
.x-scard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.x-scard:hover .x-scard-media img { transform: scale(1.05); }
.x-scard-body { padding: 18px 18px 20px; position: relative; display: flex; flex-direction: column; flex: 1; }
.x-scard-ic { position: absolute; top: -24px; right: 18px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--tone); color: #fff; box-shadow: 0 10px 22px color-mix(in srgb, var(--tone) 45%, transparent); }
.x-scard-ic .ic { width: 22px; height: 22px; }
.x-scard-cat { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tone); }
.x-scard h3 { font-size: 1.08rem; margin: 6px 0 8px; line-height: 1.3; padding-right: 40px; }
.x-scard h3 a { color: var(--c-ink); text-decoration: none; }
.x-stretched::after { content: ""; position: absolute; inset: 0; }
.x-scard p { color: var(--c-muted); font-size: .92rem; line-height: 1.55; margin: 0 0 14px; flex: 1; }
.x-scard-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--tone); }
.x-scard-more .ic { width: 16px; height: 16px; }
.x-ticks { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.x-ticks li { display: flex; gap: 10px; align-items: flex-start; }
.x-ticks .ic { width: 20px; height: 20px; color: var(--c-teal); flex: 0 0 auto; margin-top: 2px; }
.x-ticks a { color: var(--c-ink); font-weight: 600; }
.x-statrow { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0 6px; }
.x-statrow > div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 14px 18px; min-width: 140px; }
.x-statrow strong { display: block; font-family: var(--f-head); font-size: 1.8rem; color: #fff; }
.x-statrow span { color: #b9c8ea; font-size: .85rem; }
.x-chipcloud { display: flex; flex-wrap: wrap; gap: 10px; }
.x-chipcloud span { padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #e2eaff; font-weight: 600; font-size: .9rem; }
.x-chipcloud b { margin-left: 4px; color: #7fe3dc; }
.x-fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.x-fcard { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 20px; padding: 24px; text-decoration: none; color: var(--c-ink); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.x-fcard:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.x-fcard-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--tone), color-mix(in srgb, var(--tone) 60%, #0f9aa8)); box-shadow: 0 10px 24px color-mix(in srgb, var(--tone) 35%, transparent); margin-bottom: 14px; }
.x-fcard-ic .ic { width: 24px; height: 24px; }
.x-fcard h3 { font-size: 1.12rem; margin: 0 0 8px; } .x-fcard p { color: var(--c-muted); margin: 0 0 14px; flex: 1; }
.x-section--ai { background: #050f26; color: #d9e4ff; overflow: hidden; }
.x-ai-glow { position: absolute; inset: 0; background: radial-gradient(600px 400px at 20% 30%, rgba(124,58,237,.35), transparent 60%), radial-gradient(600px 400px at 90% 80%, rgba(15,154,168,.35), transparent 60%); }
.x-section--ai .container { position: relative; }
.x-section--ai h2 { color: #fff; } .x-section--ai .x-head p { color: #b6c4e6; }
.x-aigrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.x-aicard { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(160,190,255,.2); color: #e4ecff; text-decoration: none; transition: background .2s, border-color .2s; }
.x-aicard:hover { background: rgba(255,255,255,.09); border-color: rgba(127,227,220,.6); }
.x-aicard .ic { width: 26px; height: 26px; color: #a78bfa; } .x-aicard strong { color: #fff; } .x-aicard span { font-size: .86rem; color: #b6c4e6; }
.x-ai-media img { border: 1px solid rgba(160,190,255,.25); }
.x-steps { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; position: relative; }
.x-steps::before { content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, #1257d6, #0f9aa8); opacity: .35; }
.x-steps li { position: relative; text-align: center; padding: 0 6px; }
.x-step-n { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; background: var(--grad); color: #fff; font-family: var(--f-head); font-weight: 800; font-size: 1.2rem; box-shadow: 0 10px 24px rgba(18,87,214,.3); border: 4px solid var(--c-bg); position: relative; }
.x-steps h3 { font-size: 1rem; margin: 0 0 6px; } .x-steps p { font-size: .88rem; color: var(--c-muted); margin: 0; }
.x-vsteps { list-style: none; counter-reset: v; padding: 0; margin: 10px 0 0; display: grid; gap: 14px; }
.x-vsteps li { counter-increment: v; display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; }
.x-vsteps li::before { content: counter(v); grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, #1257d6 12%, transparent); color: var(--c-brand); font-weight: 800; }
.x-vsteps strong { display: block; } .x-vsteps span { color: var(--c-muted); font-size: .92rem; }
.x-vsteps--sm li::before { width: 28px; height: 28px; font-size: .85rem; }
.x-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.x-gallery figure { margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--sh-1); }
.x-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.x-gallery figure:hover img { transform: scale(1.05); }
.x-whygrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.x-why { padding: 24px; border-radius: 20px; background: var(--c-surface); border: 1px solid var(--c-border); position: relative; overflow: hidden; }
.x-why::after { content: ""; position: absolute; width: 140px; height: 140px; right: -50px; top: -50px; border-radius: 50%; background: color-mix(in srgb, var(--tone) 10%, transparent); }
.x-why-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--tone) 14%, transparent); color: var(--tone); margin-bottom: 12px; }
.x-why h3 { font-size: 1.05rem; margin: 0 0 6px; } .x-why p { margin: 0; color: var(--c-muted); }
.x-enggrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.x-eng { text-align: center; padding: 26px 18px; border-radius: 20px; background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--sh-1); }
.x-eng > span { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; background: var(--grad); color: #fff; }
.x-eng h3 { margin: 0 0 6px; font-size: 1.08rem; } .x-eng p { margin: 0; color: var(--c-muted); font-size: .92rem; }
.x-contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 26px; padding: clamp(22px, 4vw, 42px); box-shadow: var(--sh-2); }
.x-clist { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 12px; }
.x-clist li { display: flex; gap: 12px; align-items: flex-start; }
.x-clist .ic { width: 22px; height: 22px; color: var(--c-brand); flex: 0 0 auto; margin-top: 2px; }
.x-contact-qr { background: var(--grad-soft); border-radius: 20px; padding: 22px; text-align: center; }
.x-contact-qr h3 { margin: 0 0 12px; }
.x-qrrow { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.x-qrrow figure { margin: 0; background: #fff; border-radius: 14px; padding: 8px; box-shadow: var(--sh-1); }
.x-qrrow img { display: block; width: 112px; height: 112px; }
.x-qrrow figcaption { font-size: .78rem; font-weight: 700; color: #34425c; margin-top: 4px; }
.x-qrcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.x-qrcard { text-align: center; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 22px; padding: 26px; box-shadow: var(--sh-1); }
.x-qrcard img { background: #fff; padding: 10px; border-radius: 14px; border: 1px solid var(--c-border); margin: 10px auto; display: block; }
.x-qrcard-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 8px; background: var(--grad); color: #fff; }
.x-qrcard h2 { font-size: 1.2rem; margin: 0; }

/* ---------------------------------------------------------------- catalogue */
.x-filterbar { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 12px; align-items: end; background: var(--c-surface); padding: 16px; border-radius: 18px; border: 1px solid var(--c-border); box-shadow: var(--sh-1); margin-bottom: 16px; }
.x-filterbar .field { margin: 0; }
.x-filter-actions { display: flex; gap: 8px; }
.x-count { color: var(--c-muted); margin: 0 0 16px; font-weight: 600; }
.x-pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 30px; }
.x-pager a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--c-border); background: var(--c-surface); font-weight: 700; text-decoration: none; }
.x-twolist { display: grid; gap: 14px; }
.x-box { border-radius: 18px; padding: 18px 20px; border: 1px solid var(--c-border); }
.x-box h3 { display: flex; gap: 8px; align-items: center; font-size: 1rem; margin: 0 0 8px; }
.x-box h3 .ic { width: 20px; height: 20px; }
.x-box ul { margin: 0; padding-left: 18px; } .x-box li { margin: 4px 0; }
.x-box--warn { background: #fff8ec; border-color: #f2d9a8; } .x-box--warn h3 { color: #8a5300; }
.x-box--ok { background: #effaf4; border-color: #bfe6cf; } .x-box--ok h3 { color: #126b3a; }
[data-theme="dark"] .x-box--warn, [data-theme="dark"] .x-box--ok { background: var(--c-bg-2); }
.x-ctaband { background: var(--grad); color: #fff; padding: 44px 0; }
.x-ctaband-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.x-ctaband h2 { color: #fff; margin: 0 0 6px; font-size: 1.6rem; } .x-ctaband p { margin: 0; color: #dce8ff; max-width: 640px; }
.x-ctaband .x-btnrow { margin: 0; }

/* ---------------------------------------------------------------- service page */
.x-shero { background: linear-gradient(130deg, #071f52 0%, #0a2a6b 50%, color-mix(in srgb, var(--tone) 70%, #0a2a6b) 100%); color: #fff; padding: clamp(36px, 5vw, 64px) 0; position: relative; overflow: hidden; }
.x-shero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 90% 10%, rgba(255,255,255,.12), transparent 60%); }
.x-shero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.x-shero h1 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.3vw, 3rem); margin: 12px 0; }
.x-shero-lead { color: #d6e1f8; font-size: 1.1rem; line-height: 1.65; }
.x-shero .breadcrumbs a, .x-shero .breadcrumbs li { color: #b8c8ee; } .x-shero .breadcrumbs [aria-current] { color: #fff; }
.x-shero-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.x-shero-badges .badge { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.25); }
.x-sicon { width: 46px; height: 46px; border-radius: 14px; background: #fff; color: var(--tone); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.2); flex: 0 0 auto; }
.x-sicon .ic { width: 24px; height: 24px; }
.x-shero-img { margin: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.2); aspect-ratio: 4/3; }
.x-shero-img img { width: 100%; height: 100%; object-fit: cover; }
.x-sbody { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 42px; padding: 48px 0 24px; }
.x-smain { min-width: 0; }
.x-block { padding: 0 0 30px; margin-bottom: 30px; border-bottom: 1px solid var(--c-border); scroll-margin-top: 100px; }
.x-block:last-child { border-bottom: 0; }
.x-block h2 { font-size: 1.45rem; color: var(--navy); margin: 0 0 12px; }
[data-theme="dark"] .x-block h2 { color: #fff; }
.x-block p { line-height: 1.75; }
.x-two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.x-numsteps { counter-reset: n; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.x-numsteps li { counter-increment: n; position: relative; padding: 14px 16px 14px 60px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 14px; line-height: 1.6; }
.x-numsteps li::before { content: counter(n); position: absolute; left: 14px; top: 13px; width: 32px; height: 32px; border-radius: 10px; background: var(--tone); color: #fff; display: grid; place-items: center; font-weight: 800; }
.x-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.x-model { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--c-border); border-radius: 14px; background: var(--c-surface); }
.x-model .ic { width: 22px; height: 22px; color: var(--tone); } .x-model span { font-size: .85rem; color: var(--c-muted); }
.x-faq details, .x-faq-list details { border: 1px solid var(--c-border); border-radius: 14px; background: var(--c-surface); margin-bottom: 10px; }
.x-faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; list-style: none; }
.x-faq summary::-webkit-details-marker { display: none; }
.x-faq summary .ic { width: 18px; height: 18px; transition: transform .2s; flex: 0 0 auto; }
.x-faq details[open] summary .ic { transform: rotate(180deg); }
.x-faq details p { padding: 0 16px 14px; margin: 0; color: var(--c-ink-2); }
.x-sside { position: relative; }
.x-sticky { position: sticky; top: 96px; display: grid; gap: 16px; }
.x-toc { display: grid; border-left: 2px solid var(--c-border); }
.x-toc a { padding: 6px 14px; color: var(--c-muted); text-decoration: none; font-weight: 600; font-size: .9rem; margin-left: -2px; border-left: 2px solid transparent; }
.x-toc a:hover { color: var(--c-brand); border-left-color: var(--c-brand); }
.x-sidecard { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 18px; padding: 18px; box-shadow: var(--sh-1); display: grid; gap: 10px; }
.x-sidecard h3 { margin: 0; font-size: 1.05rem; } .x-sidecard p { margin: 0; color: var(--c-muted); font-size: .92rem; }
.x-formlayout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.x-formside { display: grid; gap: 16px; position: sticky; top: 96px; }
.x-selected-svc { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--c-border); border-radius: 14px; background: var(--grad-soft); }
.x-selected-svc .x-sicon { --tone: var(--c-brand); width: 40px; height: 40px; }
.x-selected-svc small { display: block; color: var(--c-muted); }
.x-svcpick { position: relative; }
.x-svcpick-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 6px; list-style: none; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 14px; box-shadow: var(--sh-3); max-height: 320px; overflow: auto; }
.x-svcpick-list li { padding: 9px 12px; border-radius: 10px; cursor: pointer; display: flex; flex-direction: column; }
.x-svcpick-list li small { color: var(--c-muted); }
.x-svcpick-list li:hover, .x-svcpick-list li[aria-selected="true"] { background: var(--c-bg-2); }
.x-svcpick-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.x-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c-brand) 12%, transparent); color: var(--c-brand); font-weight: 600; font-size: .86rem; }
.x-tag button { border: 0; background: rgba(255,255,255,.7); width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 1rem; line-height: 1; color: inherit; }
.x-preview-bar { background: #fff3cd; color: #6b4300; padding: 10px 20px; text-align: center; display: flex; gap: 8px; justify-content: center; align-items: center; font-weight: 600; }
.x-preview-bar .ic { width: 18px; height: 18px; }
.x-trackform { background: var(--c-surface); padding: 22px; border-radius: 18px; border: 1px solid var(--c-border); box-shadow: var(--sh-1); margin-bottom: 20px; }
.x-trackcard { background: var(--c-surface); padding: 24px; border-radius: 18px; border: 1px solid var(--c-border); box-shadow: var(--sh-2); }
.x-track-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.x-track-head small { display: block; color: var(--c-muted); } .x-track-head strong { font-family: var(--f-head); font-size: 1.3rem; }
.x-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0 0 14px; }
.x-dl dt { font-size: .78rem; color: var(--c-muted); } .x-dl dd { margin: 0; font-weight: 600; }
.x-timeline { list-style: none; padding: 0 0 0 18px; margin: 0 0 14px; border-left: 2px solid var(--c-border); }
.x-timeline li { position: relative; padding: 0 0 14px 12px; }
.x-timeline li::before { content: ""; position: absolute; left: -26px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-brand); border: 3px solid var(--c-surface); }
.x-timeline span { display: block; font-size: .8rem; color: var(--c-muted); } .x-timeline p { margin: 2px 0 0; color: var(--c-ink-2); }
.x-prose h2 { font-size: 1.3rem; margin: 26px 0 10px; color: var(--navy); } .x-prose p, .x-prose li { line-height: 1.75; }
.x-err-code { font-family: var(--f-head); font-size: 5rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.x-big-ic { width: 64px; height: 64px; color: var(--c-brand); }
.x-modal { position: fixed; inset: 0; z-index: 200; background: rgba(5,15,38,.55); display: grid; place-items: center; padding: 20px; }
.x-modal-card { background: var(--c-surface); border-radius: 20px; padding: 24px; max-width: 420px; box-shadow: var(--sh-3); }
.x-modal-card ol { padding-left: 20px; line-height: 1.8; }

/* floating actions */
.x-wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px 13px 14px; border-radius: 999px; background: #1fa855; color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 14px 34px rgba(31,168,85,.45); transition: transform .2s; }
.x-wa-float:hover { transform: translateY(-2px) scale(1.02); color: #fff; }
.x-wa-float .ic { width: 26px; height: 26px; }
.x-totop { position: fixed; right: 22px; bottom: 86px; z-index: 69; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c-border); background: var(--c-surface); box-shadow: var(--sh-2); display: grid; place-items: center; cursor: pointer; color: var(--c-brand); }
.x-totop .ic { width: 20px; height: 20px; }
.x-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.x-reveal.is-in { opacity: 1; transform: none; }
.x-rail-wrap { background: var(--c-surface); border-radius: 22px; border: 1px solid var(--c-border); box-shadow: var(--sh-2); padding: 16px; }

/* ---------------------------------------------------------------- footer */
.x-footer { background: #061a45; color: #c3d0ee; margin-top: 0; }
.x-footer a { color: #e2eaff; text-decoration: none; }
.x-footer a:hover { color: #7fe3dc; text-decoration: underline; }
.x-footer-cta { background: var(--grad); padding: 46px 0; position: relative; overflow: hidden; }
.x-fcta-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; }
.x-footer-cta h2 { color: #fff; margin: 8px 0; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); max-width: 700px; }
.x-footer-cta p { color: #dce8ff; margin: 0; max-width: 640px; }
.x-fcta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.x-footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 30px; padding: 56px 20px 40px; }
.x-flogo { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.x-flogo img { width: 58px; height: 58px; }
.x-flogo strong { display: block; color: #fff; font-family: var(--f-head); font-size: 1.25rem; letter-spacing: .02em; }
.x-flogo small { color: #9fb3dd; font-size: .78rem; }
.x-fbrand p { line-height: 1.65; font-size: .92rem; }
.x-faddr { display: flex; gap: 10px; font-style: normal; margin: 14px 0; font-size: .9rem; line-height: 1.55; }
.x-faddr .ic, .x-fcontact .ic { width: 18px; height: 18px; color: #7fe3dc; flex: 0 0 auto; margin-top: 2px; }
.x-fcontact { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .9rem; }
.x-fcontact li { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.x-fcontact small { color: #9fb3dd; }
.x-fsocial { display: flex; gap: 8px; margin-top: 14px; }
.x-fsocial a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.x-fcol h3 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 6px 0 14px; }
.x-fcol ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .92rem; }
.x-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 20px 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .84rem; color: #9fb3dd; }
.x-fdisc { flex-basis: 100%; font-size: .78rem; color: #7f93bd; }
.site-footer { display: none; }

/* ---------------------------------------------------------------- forms polish (original wizard) */
.wizard { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 22px; box-shadow: var(--sh-2); padding: clamp(16px, 3vw, 30px); }
.input, .select, .textarea { border-radius: 12px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--c-brand); box-shadow: 0 0 0 4px rgba(18,87,214,.14); }

/* ---------------------------------------------------------------- responsive */
@media (min-width: 1281px) { .x-header .main-nav { display: block !important; } .x-header .menu-btn { display: none !important; } .x-header .header-actions { margin-left: 0; } }
@media (max-width: 1280px) {
  .x-header .main-nav { display: none; }
  .x-header .menu-btn { display: inline-flex; }
  .x-mega-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1080px) {
  .x-hero-grid, .x-split, .x-shero-grid, .x-contact { grid-template-columns: 1fr; }
  .x-split--rev > :first-child { order: 0; }
  .x-hero-visual { min-height: 380px; max-width: 620px; width: 100%; margin: 0 auto; }
  .x-sbody, .x-formlayout { grid-template-columns: 1fr; }
  .x-sticky, .x-formside { position: static; }
  .x-toc { display: none; }
  .x-steps { grid-template-columns: repeat(2, 1fr); } .x-steps::before { display: none; }
  .x-fgrid, .x-whygrid { grid-template-columns: 1fr 1fr; } .x-enggrid { grid-template-columns: 1fr 1fr; }
  .x-footer-main { grid-template-columns: 1fr 1fr; } .x-fbrand { grid-column: 1 / -1; }
  .x-filterbar { grid-template-columns: 1fr 1fr; } .x-filterbar .x-grow { grid-column: 1 / -1; }
  .x-qrcards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .x-header .brand-text span, .x-hide-sm, .x-header .btn-cta-text { display: none; }
  .x-header .brand img { width: 40px; height: 40px; }
  .x-hero-stats { grid-template-columns: 1fr 1fr; }
  .x-hero-visual { min-height: 300px; }
  .x-hero-main { inset: 0 10px 30px 10px; }
  .x-glass--3, .x-hero-float--b { display: none; }
  .x-glass { font-size: .78rem; padding: 8px 10px; }
  .x-pillars, .x-two, .x-aigrid, .x-fgrid, .x-whygrid, .x-enggrid, .x-gallery, .x-qrcards { grid-template-columns: 1fr; }
  .x-gallery { grid-template-columns: 1fr 1fr; }
  .x-steps { grid-template-columns: 1fr; text-align: left; }
  .x-steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; text-align: left; }
  .x-steps .x-step-n { grid-row: span 2; margin: 0; }
  .x-footer-main { grid-template-columns: 1fr; padding: 40px 16px 28px; }
  .x-filterbar { grid-template-columns: 1fr; }
  .x-wa-float span { display: none; } .x-wa-float { padding: 14px; }
  .x-collage .x-collage-sm { width: 46%; right: 0; }
  .x-ctaband-inner, .x-fcta-inner { flex-direction: column; align-items: flex-start; }
  .x-btnrow .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .x-reveal { opacity: 1; transform: none; } }
@media print { .x-wa-float, .x-totop, .x-header, .x-footer-cta { display: none !important; } }
