/* ==========================================================================
   ResolSoft Private Ltd. — Corporate Website Design System
   Author: UI/UX + Front-end
   Palette extracted from the ResolSoft brand logo:
     Navy  #002570  (deep corporate blue — trust)
     Blue  #0070C0  (vibrant tech blue)
     Orange#F08C28  (innovation / energy)
     Amber #ED7D31
   ========================================================================== */

/* ---------- 1. Design Tokens ---------- */
:root {
  --navy: #002570;
  --navy-700: #01205f;
  --navy-900: #001740;
  --blue: #0070c0;
  --blue-400: #3b9be0;
  --blue-100: #e6f2fb;
  --orange: #f08c28;
  --amber: #ed7d31;
  --orange-100: #fdf1e5;

  --ink: #1e293b;
  --muted: #5b6b85;
  --muted-2: #7b8aa3;

  --bg: #ffffff;
  --bg-slate: #f8fafc;
  --bg-slate-2: #f1f5f9;
  --line: #e2e8f0;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .1);
  --shadow-md: 0 4px 6px -1px rgba(16, 24, 40, .07), 0 12px 24px -6px rgba(16, 24, 40, .12);
  --shadow-lg: 0 18px 45px -12px rgba(0, 37, 112, .28);
  --shadow-glow: 0 20px 60px -18px rgba(240, 140, 40, .45);

  --grad-blue: linear-gradient(135deg, #002570 0%, #0070c0 100%);
  --grad-orange: linear-gradient(135deg, #f08c28 0%, #ed7d31 100%);
  --grad-brand: linear-gradient(120deg, #002570 0%, #0070c0 55%, #f08c28 130%);

  --container: 1200px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-head: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
/* Safety net: inline SVGs default to a sane icon size unless a rule overrides it */
svg { width: 20px; height: 20px; flex: 0 0 auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
p { margin: 0 0 1rem; color: var(--muted); }
ul { margin: 0; padding: 0; }
section { position: relative; }
::selection { background: var(--orange); color: #fff; }

/* ---------- 3. Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(60px, 8vw, 110px) 0; }
.section--slate { background: var(--bg-slate); }
.section--tight { padding: clamp(44px, 5vw, 70px) 0; }
.grid { display: grid; gap: 26px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }

/* subtle tech pattern backgrounds */
.tech-dots::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(0, 112, 192, .13) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 72%);
}
.tech-grid::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(0, 112, 192, .07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 112, 192, .07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}
.section > .container { position: relative; z-index: 1; }

/* ---------- 4. Typography extras ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad-orange); border-radius: 2px; }
.eyebrow--light { color: #ffd9ae; }
.eyebrow--center { justify-content: center; }
.grad-text { background: var(--grad-orange); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-text--blue { background: linear-gradient(120deg, var(--navy), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.section-head { max-width: 720px; margin: 0 auto clamp(38px, 5vw, 60px); text-align: center; }
.section-head p { font-size: 1.06rem; }
.text-orange { color: var(--orange); }
.text-navy { color: var(--navy); }

/* ---------- 5. Buttons ---------- */
.btn {
  --b: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .25s, color .25s;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad-blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 37, 112, .7); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -12px rgba(0, 112, 192, .75); }
.btn--orange { background: var(--grad-orange); color: #fff; box-shadow: var(--shadow-glow); }
.btn--orange:hover { transform: translateY(-3px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: rgba(0, 37, 112, .28); }
.btn--ghost:hover { border-color: var(--navy); background: rgba(0, 37, 112, .05); transform: translateY(-3px); }
.btn--ghost-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .5); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .18); transform: translateY(-3px); }
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- 6. Navbar (glassmorphism) ---------- */
.topbar {
  background: var(--navy-900); color: #cddcf2; font-size: .9rem;
  display: flex; align-items: center;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 44px; }
.topbar a { color: #cddcf2; }
.topbar a:hover { color: #fff; }
.topbar .tb-left { display: flex; gap: 22px; align-items: center; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 14px; height: 14px; opacity: .85; }
.topbar .tb-tag { color: #ffd9ae; font-size: .9rem; font-weight: 700; }

.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
  transition: box-shadow .3s, background .3s;
}
.site-header.scrolled { box-shadow: 0 8px 30px -14px rgba(0, 37, 112, .28); background: rgba(255, 255, 255, .9); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.b-name { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.28rem; color: var(--navy); line-height: 1; letter-spacing: -.02em; }
.b-tag { display: block; font-size: .64rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; margin-top: 4px;
  background: linear-gradient(90deg, var(--blue), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer .b-tag, .page-hero .b-tag { -webkit-text-fill-color: transparent; }
.f-brand .b-name { color: #fff; }
.f-brand .b-tag { background: linear-gradient(90deg, #7db8e8, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px;
  font-family: var(--font-head); font-weight: 600; font-size: .93rem; color: var(--ink);
  border-radius: 9px; transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.active { color: var(--navy); background: rgba(0, 112, 192, .08); }
.nav-link .caret { width: 12px; height: 12px; transition: transform .25s; opacity: .7; }
.nav-menu > li:hover .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 12px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav-menu > li:hover > .dropdown, .nav-menu > li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px;
  font-size: .9rem; color: var(--ink); transition: background .18s, color .18s;
}
.dropdown a:hover { background: var(--bg-slate); color: var(--navy); }
.dropdown .dd-ic { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue); }
.dropdown .dd-ic svg { width: 18px; height: 18px; }
.dropdown .dd-t { font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--navy); display: block; }
.dropdown .dd-d { font-size: .78rem; color: var(--muted-2); line-height: 1.4; }

/* Mega menu — anchored to the header and centred in the viewport.
   NOTE 1: `.nav-menu > li.mega` must be static so the dropdown resolves its
   containing block to the sticky .site-header (full viewport width) rather
   than to the narrow nav item — otherwise the panel is offset to the right.
   NOTE 2: the hover rule must be at least as specific as the generic
   `.nav-menu > li:hover > .dropdown` rule, or its translateY(0) would
   override the translateX(-50%) centring and push the panel off-screen. */
.nav-menu > li.mega { position: static; }
.mega .dropdown {
  left: 50%; transform: translateX(-50%) translateY(10px); width: min(940px, 94vw);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 20px;
}
.nav-menu > li.mega:hover > .dropdown,
.nav-menu > li.mega:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega .dd-col-head { grid-column: 1/-1; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; padding: 0 12px 6px; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.burger { display: none; width: 46px; height: 46px; border-radius: 11px; border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 0; place-items: center; }
.burger span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; transition: .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger.open span { background: transparent; }
.burger.open span::before { top: 0; transform: rotate(45deg); }
.burger.open span::after { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(400px, 88vw); z-index: 1000;
  background: #fff; box-shadow: -20px 0 60px -20px rgba(0, 37, 112, .4);
  transform: translateX(105%); transition: transform .38s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.drawer-close { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1.3rem; color: var(--navy); line-height: 1; }
.drawer-body { padding: 10px 14px 30px; }
.acc { border-bottom: 1px solid var(--line); }
.acc > button {
  width: 100%; background: none; border: 0; padding: 16px 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--navy); text-align: left;
}
.acc > button .plus { position: relative; width: 16px; height: 16px; flex: 0 0 16px; }
.acc > button .plus::before, .acc > button .plus::after { content: ""; position: absolute; inset: 50% 0 auto 0; height: 2px; background: var(--orange); border-radius: 2px; transform: translateY(-50%); transition: .3s; }
.acc > button .plus::after { transform: translateY(-50%) rotate(90deg); }
.acc.open > button .plus::after { transform: translateY(-50%) rotate(0); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .38s var(--ease); }
.acc-panel a { display: block; padding: 11px 10px; font-size: .92rem; color: var(--muted); border-radius: 8px; }
.acc-panel a:hover { color: var(--navy); background: var(--bg-slate); }
.drawer .nav-link-simple { display: block; padding: 16px 8px; font-family: var(--font-head); font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--line); }
.drawer .drawer-cta { margin: 22px 8px 0; }
.overlay { position: fixed; inset: 0; background: rgba(0, 23, 64, .5); backdrop-filter: blur(2px); z-index: 990; opacity: 0; visibility: hidden; transition: .3s; }
.overlay.open { opacity: 1; visibility: visible; }

/* ---------- 7. Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 78% -10%, #e8f2fb 0%, transparent 60%), linear-gradient(180deg, #f7fafe 0%, #ffffff 100%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; padding: clamp(46px, 7vw, 90px) 0 clamp(50px, 7vw, 96px); }
.hero-tagline {
  margin: 18px 0 20px; font-family: var(--font-head); font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.12; padding-bottom: .08em; font-weight: 800; font-style: italic; letter-spacing: -.05em;
  background: linear-gradient(90deg, var(--navy), var(--blue) 52%, var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .u { background: linear-gradient(transparent 58%, rgba(240, 140, 40, .3) 58%); border-radius: 4px; padding: 0 .06em; }
.hero .sub { font-size: 1.14rem; max-width: 56ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.hero-badges .hb { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; color: var(--navy); }
.hero-badges .hb svg { width: 17px; height: 17px; color: var(--orange); }

.hero-visual { position: relative; }
.hero-visual .frame {
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff;
  background: #0b1c3a;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.float-card {
  position: absolute; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md);
  padding: 13px 16px; display: flex; align-items: center; gap: 12px; font-size: .82rem; font-weight: 600; color: var(--navy);
}
.float-card svg { width: 22px; height: 22px; color: var(--blue); flex: 0 0 22px; }
.float-card small { display: block; color: var(--muted-2); font-weight: 500; font-size: .72rem; }
.float-card--1 { top: 22px; left: -26px; animation: floaty 5s ease-in-out infinite; }
.float-card--2 { bottom: 30px; right: -22px; animation: floaty 6s ease-in-out infinite .6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

/* Trust bar */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trustbar .container { display: flex; align-items: center; justify-content: center; gap: 14px 34px; flex-wrap: wrap; padding: 20px 22px; }
.trustbar .tb-label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.trustbar .tb-chips { display: flex; gap: 12px 26px; flex-wrap: wrap; align-items: center; }
.trustbar .chip { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: .95rem; opacity: .82; transition: opacity .2s, transform .2s; }
.trustbar .chip:hover { opacity: 1; transform: translateY(-2px); }
.trustbar .chip svg { width: 20px; height: 20px; color: var(--orange); }

/* ---------- 8. Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s;
  position: relative; overflow: hidden; height: 100%;
}
.card::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--grad-orange); transition: width .38s var(--ease); }
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::after { width: 100%; }
.card .ic {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue); margin-bottom: 18px;
  transition: transform .35s var(--ease), background .3s, color .3s;
}
.card:hover .ic { background: var(--grad-blue); color: #fff; transform: rotate(-6deg) scale(1.06); }
.card .ic svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 9px; }
.card p { font-size: .94rem; margin-bottom: 0; }
.card .card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-weight: 700; font-size: .88rem; color: var(--orange); font-family: var(--font-head); }
.card .card-link svg { width: 15px; height: 15px; transition: transform .25s; }
.card:hover .card-link svg { transform: translateX(4px); }
.card--dark { background: var(--navy); border-color: transparent; color: #fff; }
.card--dark h3 { color: #fff; } .card--dark p { color: #b9c9e4; }
.card--dark .ic { background: rgba(255, 255, 255, .12); color: #ffd9ae; }

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Core values (hover reveal) */
.value-card { text-align: left; }
.value-card .reveal-body { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s var(--ease), opacity .35s; }
.value-card:hover .reveal-body, .value-card:focus-within .reveal-body { max-height: 200px; opacity: 1; margin-top: 10px; }

/* ---------- 9. Product highlight / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 66px); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media { position: relative; }
/* prevent grid/flex children from being widened by min-content (e.g. wide diagrams) */
.split-copy, .split-media, .grid > *, .contact-grid > *, .expertise-wrap > *, .two-col > * { min-width: 0; }
.diagram-scroll { max-width: 100%; }
.spec-table { table-layout: auto; }
.check-list { list-style: none; display: grid; gap: 13px; margin: 22px 0 28px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; color: var(--ink); }
.check-list svg { flex: 0 0 21px; width: 21px; height: 21px; color: var(--orange); margin-top: 2px; }
.check-list.two { grid-template-columns: 1fr 1fr; }

/* Browser window mockup */
.browser {
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #f3f6fa; border-bottom: 1px solid var(--line); }
.browser-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.browser-bar .url { margin-left: 12px; flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 7px; font-size: .74rem; color: var(--muted-2); padding: 5px 12px; display: flex; align-items: center; gap: 7px; }
.browser-bar .url svg { width: 12px; height: 12px; }
.browser img { width: 100%; display: block; }
.browser.shadow-float { box-shadow: 0 40px 80px -30px rgba(0, 37, 112, .5); }

/* ---------- 10. Timeline ---------- */
.timeline { position: relative; margin-top: 46px; }
.timeline-rail { position: absolute; top: 34px; left: 4%; right: 4%; height: 3px; background: linear-gradient(90deg, var(--blue), var(--orange)); border-radius: 3px; opacity: .3; }
.timeline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.tl-item { text-align: center; }
.tl-dot {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center;
  background: var(--grad-orange); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .95rem;
  box-shadow: 0 12px 26px -10px rgba(237, 125, 49, .8); position: relative; z-index: 2;
  border: 5px solid #fff; transition: transform .3s var(--ease);
}
.tl-item:hover .tl-dot { transform: translateY(-5px) scale(1.05); }
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); height: 100%; transition: transform .3s var(--ease), box-shadow .3s; }
.tl-item:hover .tl-card { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tl-card h4 { font-size: 1rem; margin-bottom: 6px; }
.tl-card p { font-size: .87rem; margin: 0; }

/* ---------- 11. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 26px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--navy); line-height: 1; }
.stat .num span { color: var(--orange); }
.stat .lbl { font-size: .85rem; color: var(--muted); margin-top: 8px; font-weight: 600; }

/* ---------- 12. Expertise circular diagram (CSS recreation) ---------- */
.expertise-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.circle-diagram { position: relative; aspect-ratio: 1/1; max-width: 470px; margin: 0 auto; }
.circle-diagram .hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--grad-blue); color: #fff;
  display: grid; place-items: center; align-content: center; text-align: center; padding: 10px;
  box-shadow: var(--shadow-lg); z-index: 3;
}
.circle-diagram .hub strong { font-family: var(--font-head); font-size: clamp(.72rem, 2.1vw, 1.02rem); line-height: 1.15; }
.circle-diagram .hub svg { width: 26px; height: 26px; margin-bottom: 6px; }
.circle-diagram .node {
  position: absolute; width: 25%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  text-align: center; padding: 8px; font-family: var(--font-head); font-weight: 700; color: #fff;
  font-size: clamp(.55rem, 1.4vw, .76rem); line-height: 1.15; box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease); border: 3px solid #fff; z-index: 2;
}
.circle-diagram .node:hover { transform: scale(1.09); z-index: 5; }
.node--blue { background: #0070c0; } .node--navy { background: #001f60; }
.node--orange { background: #f08c28; } .node--amber { background: #ed7d31; }
.node--green { background: #1f9d55; } .node--teal { background: #157f6b; }
.node--gold { background: #e0a400; } .node--grey { background: #8a97a8; }
/* 8 positions — clean octagon ring, no overlap */
.circle-diagram .p1 { left: 37.5%; top: 0; } .circle-diagram .p2 { left: 64%; top: 11%; }
.circle-diagram .p3 { left: 75%; top: 37.5%; } .circle-diagram .p4 { left: 64%; top: 64%; }
.circle-diagram .p5 { left: 37.5%; top: 75%; } .circle-diagram .p6 { left: 11%; top: 64%; }
.circle-diagram .p7 { left: 0; top: 37.5%; } .circle-diagram .p8 { left: 11%; top: 11%; }
/* 5 positions — even 72° spacing for the e-Mobility ring */
.circle-diagram .q1 { left: 37.5%; top: 0; } .circle-diagram .q2 { left: 73%; top: 26%; }
.circle-diagram .q3 { left: 59.5%; top: 68%; } .circle-diagram .q4 { left: 15.5%; top: 68%; }
.circle-diagram .q5 { left: 2%; top: 26%; }

/* ---------- 13. Diagram / zoom panel ---------- */
.diagram-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-md); }
.diagram-scroll { overflow: auto; border-radius: var(--radius); background: var(--bg-slate); max-height: 620px; }
.diagram-scroll img { min-width: 760px; width: 100%; transition: transform .3s; cursor: zoom-in; }
.diagram-scroll.zoom img { min-width: 1400px; }
.zoom-hint { font-size: .8rem; color: var(--muted-2); display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 12px; }
.zoom-hint svg { width: 16px; height: 16px; flex: 0 0 16px; }

/* ---------- 14. Workflow steps ---------- */
.flow { display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; margin-top: 40px; }
.flow-step { position: relative; text-align: center; }
.flow-step .fs-num {
  width: 100%; aspect-ratio: 1; max-width: 74px; margin: 0 auto 12px; border-radius: 16px;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  color: #fff; background: var(--grad-blue); box-shadow: var(--shadow-md); transition: transform .3s var(--ease);
}
.flow-step:nth-child(odd) .fs-num { background: var(--grad-orange); }
.flow-step:hover .fs-num { transform: translateY(-6px) rotate(-4deg); }
.flow-step .fs-ic { color: var(--navy); margin-bottom: 8px; }
.flow-step .fs-ic svg { width: 26px; height: 26px; }
.flow-step .fs-t { font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: var(--navy); line-height: 1.25; }
.flow-step:not(:last-child)::after { content: "›"; position: absolute; top: 24px; right: -7px; font-size: 1.4rem; color: var(--blue); opacity: .45; font-weight: 700; }

/* ---------- 15. Feature pills / spec ---------- */
.pill-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .87rem; font-weight: 600; color: var(--navy); box-shadow: var(--shadow-sm); transition: transform .25s, border-color .25s; }
.pill:hover { transform: translateY(-3px); border-color: var(--orange); }
.pill svg { width: 16px; height: 16px; color: var(--orange); }

.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); font-size: .92rem; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.spec-table th { background: var(--navy); color: #fff; font-family: var(--font-head); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table tr:nth-child(even) td { background: var(--bg-slate); }
.spec-table td:first-child { font-weight: 700; color: var(--navy); width: 34%; }

/* ---------- 16. Feature list (2-col with icons) ---------- */
.feat-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.feat-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feat-item .fi-ic { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 11px; background: var(--orange-100); color: var(--orange); display: grid; place-items: center; }
.feat-item .fi-ic svg { width: 21px; height: 21px; }
.feat-item h4 { font-size: .98rem; margin-bottom: 3px; }
.feat-item p { font-size: .86rem; margin: 0; }

/* ---------- 17. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff; }
.contact-info { background: var(--grad-blue); color: #fff; padding: clamp(30px, 4vw, 48px); position: relative; overflow: hidden; }
.contact-info::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 20px 20px; opacity: .6; }
.contact-info > * { position: relative; z-index: 1; }
.contact-info h2 { color: #fff; }
.contact-info p { color: #c7d8ef; }
.ci-item { display: flex; gap: 14px; margin-bottom: 22px; }
.ci-item .ci-ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.ci-item .ci-ic svg { width: 21px; height: 21px; color: #ffd9ae; }
.ci-item h4 { color: #fff; font-size: .95rem; margin-bottom: 3px; }
.ci-item p, .ci-item a { color: #c7d8ef; font-size: .9rem; margin: 0; line-height: 1.6; display: block; }
.ci-item a:hover { color: #fff; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.2); margin-top: 8px; }
.map-embed iframe { width: 100%; height: 190px; border: 0; display: block; filter: grayscale(.2); }

.form-panel { padding: clamp(30px, 4vw, 48px); }
.form-row { position: relative; margin-bottom: 22px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 16px 16px 8px; border: 1.5px solid var(--line); border-radius: 11px;
  font-family: var(--font-body); font-size: .96rem; color: var(--ink); background: #fff; transition: border-color .22s, box-shadow .22s;
}
.form-row textarea { min-height: 130px; resize: vertical; padding-top: 20px; }
.form-row label {
  position: absolute; left: 16px; top: 15px; font-size: .96rem; color: var(--muted-2); pointer-events: none;
  transition: .2s var(--ease); background: #fff; padding: 0 5px;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 112, 192, .12); }
.form-row input:focus + label, .form-row textarea:focus + label,
.form-row input:not(:placeholder-shown) + label, .form-row textarea:not(:placeholder-shown) + label {
  top: -9px; left: 12px; font-size: .74rem; color: var(--blue); font-weight: 700; letter-spacing: .03em;
}
.form-row.error input, .form-row.error textarea { border-color: #e03b3b; }
.form-row .err-msg { display: none; color: #e03b3b; font-size: .78rem; margin-top: 5px; font-weight: 600; }
.form-row.error .err-msg { display: block; }
.form-note { font-size: .8rem; color: var(--muted-2); margin-top: 14px; }
.form-success { display: none; background: #e8f6ee; border: 1px solid #b6e3c8; color: #15663a; border-radius: 11px; padding: 14px 16px; font-size: .9rem; margin-bottom: 20px; align-items: center; gap: 10px; }
.form-success.show { display: flex; }
.form-success svg { width: 20px; height: 20px; flex: 0 0 20px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

/* ---------- 18. CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 64px); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 20% 0%, rgba(0,112,192,.55), transparent 60%), radial-gradient(600px 300px at 90% 100%, rgba(240,140,40,.4), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c7d8ef; max-width: 620px; margin-inline: auto; }
.cta-band .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------- 19. Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(135deg, #001740 0%, #002570 45%, #0070c0 120%); color: #fff; padding: clamp(56px, 8vw, 100px) 0 clamp(46px, 6vw, 80px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 30% 0%, #000, transparent 75%); mask-image: radial-gradient(ellipse at 30% 0%, #000, transparent 75%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 16ch; }
.page-hero p { color: #c7d8ef; max-width: 60ch; font-size: 1.08rem; }
.breadcrumb { display: flex; gap: 9px; align-items: center; font-size: .84rem; color: #9db4d6; margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 13px; height: 13px; }
.breadcrumb .cur { color: #ffd9ae; font-weight: 600; }

/* ---------- 20. Footer ---------- */
.footer { background: var(--navy-900); color: #b9c9e4; padding: clamp(50px, 6vw, 76px) 0 0; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(0,112,192,.35) 1px, transparent 1px); background-size: 26px 26px; opacity: .35; -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%); }
.footer .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 46px; }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin-bottom: 18px; text-transform: uppercase; }
.footer p { color: #9db4d6; font-size: .9rem; }
.footer a { color: #b9c9e4; font-size: .9rem; }
.footer a:hover { color: #fff; }
.footer ul { display: grid; gap: 11px; }
.footer .f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer .f-brand img { width: 48px; height: 48px; }
.footer .f-brand .b-name { color: #fff; }
.footer .f-tagline { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-family: var(--font-head); font-weight: 700; font-style: italic; font-size: .95rem; color: #ffd9ae; }
.footer .f-tagline svg { width: 18px; height: 18px; flex: 0 0 18px; }
.footer .f-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
.footer .f-contact svg { width: 16px; height: 16px; color: var(--orange); flex: 0 0 16px; margin-top: 3px; }
.footer .socials { display: flex; gap: 10px; margin-top: 18px; }
.footer .socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .25s, transform .25s; }
.footer .socials a:hover { background: var(--orange); transform: translateY(-3px); }
.footer .socials svg { width: 18px; height: 18px; color: #fff; }
.cert-strip { border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 26px; padding: 20px 0; }
.cert-strip .cert { display: inline-flex; align-items: center; gap: 9px; font-size: .78rem; color: #9db4d6; }
.cert-strip .cert b { color: #fff; font-weight: 700; }
.cert-strip .cert .cv { color: #ffd9ae; }
.cert-strip .cert svg { width: 16px; height: 16px; color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: #8ba2c6; }

/* ---------- 21. Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .09s; }
[data-reveal][data-delay="2"] { transition-delay: .18s; }
[data-reveal][data-delay="3"] { transition-delay: .27s; }
[data-reveal][data-delay="4"] { transition-delay: .36s; }
[data-reveal][data-delay="5"] { transition-delay: .45s; }
[data-reveal][data-delay="6"] { transition-delay: .54s; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } .float-card { animation: none; } }

/* ---------- 22. Back to top ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s var(--ease); z-index: 800; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- 23. Accordion (FAQ) ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 14px; overflow: hidden; }
.faq-item > button { width: 100%; text-align: left; background: none; border: 0; padding: 20px 22px; cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item .faq-body { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-item .faq-body p { padding: 0 22px 20px; margin: 0; font-size: .93rem; }
.faq-item .chev { width: 20px; height: 20px; transition: transform .3s; flex: 0 0 20px; color: var(--orange); }
.faq-item.open .chev { transform: rotate(180deg); }

/* ---------- 24. Utilities / responsive ---------- */
@media (max-width: 1080px) {
  .nav-menu { display: none; }
  .burger { display: grid; }
  .nav-cta .btn--quote { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .float-card--1 { left: 8px; } .float-card--2 { right: 8px; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .expertise-wrap { grid-template-columns: 1fr; }
  .timeline-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-rail { display: none; }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow-step:not(:last-child)::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar .tb-left { gap: 14px; } .topbar .tb-hide { display: none; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .check-list.two { grid-template-columns: 1fr; }
  .timeline-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .two-col { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .circle-diagram { max-width: 320px; }
  .brand .b-name { font-size: 1.1rem; }
  .trustbar .container { flex-direction: column; gap: 12px; }
}
@media (max-width: 420px) {
  .hero-cta .btn, .cta-band .btns .btn { width: 100%; }
  .float-card { display: none; }
}

/* ==========================================================================
   25. Products & Services additions (v2 restructure)
   ========================================================================== */

/* Brand tagline variant used in the header/footer */
.b-tag--preserve { letter-spacing: .09em; font-size: .88rem; font-style: italic; line-height: 1.2; }

/* ---- Image placeholder (swap in a real screenshot later) ---- */
.placeholder {
  position: relative; border: 2px dashed #c3d3e8; border-radius: 14px;
  background: repeating-linear-gradient(135deg, #f6f9fd 0 12px, #eef4fb 12px 24px);
  display: grid; place-items: center; text-align: center; gap: 10px;
  min-height: 260px; padding: 26px; color: #7b8aa3; transition: border-color .25s, background .25s;
}
.placeholder:hover { border-color: var(--orange); }
.placeholder svg { width: 40px; height: 40px; color: #a9bcd6; }
.placeholder strong { display: block; color: var(--navy); font-family: var(--font-head); font-size: .95rem; }
.placeholder span { font-size: .8rem; max-width: 34ch; }
.placeholder--tall { min-height: 320px; }

/* ---- Product feature block ---- */
.product-feature {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 4.5vw, 58px);
  align-items: center; padding: clamp(30px, 4vw, 46px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.product-feature:hover { box-shadow: var(--shadow-lg); }
.product-feature--reverse .pf-media { order: 2; }
.pf-media, .pf-copy { min-width: 0; }
.pf-badge {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head);
  font-weight: 800; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange); background: var(--orange-100); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.pf-badge--blue { color: var(--blue); background: var(--blue-100); }
.pf-copy h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 10px; }
.pf-copy p { font-size: .96rem; }
.pf-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; margin-top: 20px; }
.pf-sub h5 {
  font-family: var(--font-head); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-2); margin: 0 0 10px; font-weight: 700;
}
.pf-list { list-style: none; display: grid; gap: 8px; }
.pf-list li { position: relative; padding-left: 20px; font-size: .9rem; color: var(--ink); }
.pf-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--orange);
}
.pf-list--blue li::before { background: var(--blue); }

/* ---- Capability tiles ---- */
.cap-tile {
  display: flex; gap: 14px; align-items: flex-start; padding: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  height: 100%;
}
.cap-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.cap-tile .ct-ic {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue);
}
.cap-tile:nth-child(3n+2) .ct-ic { background: var(--orange-100); color: var(--orange); }
.cap-tile:nth-child(3n+3) .ct-ic { background: #e8f6ee; color: #1f9d55; }
.cap-tile .ct-ic svg { width: 22px; height: 22px; }
.cap-tile h4 { font-size: .98rem; margin-bottom: 4px; }
.cap-tile p { font-size: .85rem; margin: 0; line-height: 1.5; }

/* ---- Process strip ---- */
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 40px; }
.process-step { text-align: center; position: relative; }
.process-step .ps-dot {
  width: 100%; aspect-ratio: 1; max-width: 66px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 2px solid var(--line);
  color: var(--navy); font-family: var(--font-head); font-weight: 800; font-size: 1rem;
  box-shadow: var(--shadow-sm); transition: .3s var(--ease);
}
.process-step:hover .ps-dot { background: var(--grad-blue); color: #fff; border-color: transparent; transform: translateY(-5px); }
.process-step .ps-t { font-family: var(--font-head); font-weight: 700; font-size: .86rem; color: var(--navy); }
.process-step .ps-d { font-size: .76rem; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.process-step:not(:last-child)::after {
  content: ""; position: absolute; top: 33px; right: -8px; width: 16px; height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent); border-radius: 2px;
}

/* ---- Catalogue table numbering ---- */
.catalogue td:first-child {
  font-family: var(--font-head); font-weight: 800; color: var(--orange);
  width: 64px; text-align: center; font-size: .95rem;
}
.catalogue td:nth-child(2) { font-weight: 700; color: var(--navy); width: 32%; }

/* ---- Wide diagram figure ---- */
.figure-wide { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-md); }
.figure-wide img { border-radius: 10px; width: 100%; }

/* ---- Section lead with kicker on the left ---- */
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 38px; }
.split-head .section-head { margin: 0; text-align: left; }
.split-head .section-head p { margin-bottom: 0; }

/* ---- Anchor offset for in-page links under the sticky header ---- */
[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

/* ---- Responsive for new blocks ---- */
@media (max-width: 1080px) {
  .product-feature { grid-template-columns: 1fr; }
  .product-feature--reverse .pf-media { order: 0; }
  .process { grid-template-columns: repeat(3, 1fr); }
  .process-step:not(:last-child)::after { display: none; }
}
@media (max-width: 760px) {
  .pf-sub { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .catalogue td:first-child { width: 46px; }
}

/* Brand wordmark: "Resol" navy + "Soft" orange (matches the logo) */
.b-name .soft { color: #ec670d; }
.footer .b-name .soft { color: #ec670d; }

/* Keep the brand tagline on one line on very small screens */
@media (max-width: 480px) {
  .b-tag--preserve { font-size: .64rem; letter-spacing: .055em; }
  .b-name { font-size: 1.12rem; }
}

/* ==========================================================================
   26. Expandable product / service cards + media placeholders
   ========================================================================== */

/* ---- Media placeholder (attractive, self-contained, no external image) ---- */
.media-ph {
  position: relative; display: grid; place-items: center; gap: 10px; text-align: center;
  padding: 26px; min-height: 240px; border-radius: 14px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #0b2e6f 0%, #0a5fa8 58%, #1273c0 100%);
}
.media-ph::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 18px 18px; opacity: .65;
}
.media-ph > * { position: relative; z-index: 1; }
.media-ph svg { width: 38px; height: 38px; opacity: .92; }
.media-ph strong { font-family: var(--font-head); font-size: .95rem; }
.media-ph span { font-size: .78rem; opacity: .82; max-width: 30ch; line-height: 1.5; }
.media-ph--orange { background: linear-gradient(135deg, #a8420a 0%, #e06d12 58%, #f08c28 100%); }
.media-ph--teal { background: linear-gradient(135deg, #08453c 0%, #0f6b5c 58%, #1f9d55 100%); }
.media-ph--sm { min-height: 180px; }

/* ---- Card grid ---- */
.xgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }

.xcard {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.xcard::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--grad-orange); transition: width .42s var(--ease);
}
.xcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.xcard:hover::after { width: 100%; }
.xcard.open { grid-column: 1 / -1; transform: none; box-shadow: var(--shadow-lg); border-color: transparent; }
.xcard.open::after { width: 100%; }

.xcard__btn {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  cursor: pointer; padding: 28px; font: inherit; color: inherit;
}
.xcard__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.xcard__ic {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue);
  transition: transform .35s var(--ease), background .3s, color .3s;
}
.xcard:hover .xcard__ic, .xcard.open .xcard__ic { background: var(--grad-blue); color: #fff; transform: rotate(-6deg) scale(1.06); }
.xcard__ic svg { width: 27px; height: 27px; }
.xcard__num { font-family: var(--font-head); font-weight: 800; font-size: .78rem; letter-spacing: .14em; color: var(--muted-2); }
.xcard__btn h3 { font-size: 1.22rem; margin: 0 0 8px; }
.xcard__btn p { font-size: .92rem; margin: 0; }
.xcard__cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--orange);
}
.xcard__cta svg { width: 15px; height: 15px; transition: transform .3s; }
.xcard:hover .xcard__cta svg { transform: translateX(4px); }
.xcard.open .xcard__cta svg { transform: rotate(180deg); }

/* ---- Expanding panel ---- */
.xcard__panel { max-height: 0; overflow: hidden; transition: max-height .6s var(--ease); }
.xcard.open .xcard__panel { max-height: 2600px; }
.xcard__inner {
  display: grid; grid-template-columns: .82fr 1.18fr; gap: 34px;
  padding: 26px 28px 30px; border-top: 1px solid var(--line);
}
.xcard__media { min-width: 0; }
.xcard__media img { width: 100%; border-radius: 12px; box-shadow: var(--shadow-sm); }
.xcard__detail { min-width: 0; }
.xcard__lead { font-size: .98rem; margin-bottom: 20px; }

/* ---- Sub-points (each with its own thumbnail) ---- */
.xpoints { display: grid; gap: 16px; margin-bottom: 24px; }
.xpoint { display: flex; gap: 14px; align-items: flex-start; }
.xpoint__thumb {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; color: #fff; background: var(--grad-blue);
  box-shadow: var(--shadow-sm);
}
.xpoint:nth-child(2n) .xpoint__thumb { background: var(--grad-orange); }
.xpoint:nth-child(3n) .xpoint__thumb { background: linear-gradient(135deg, #0f6b5c, #1f9d55); }
.xpoint__thumb svg { width: 24px; height: 24px; }
.xpoint h4 { font-size: .94rem; margin: 0 0 3px; }
.xpoint p { font-size: .84rem; margin: 0; line-height: 1.5; }

@media (max-width: 1080px) {
  .xgrid { grid-template-columns: repeat(2, 1fr); }
  .xcard__inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .xgrid { grid-template-columns: 1fr; }
  .xcard__btn { padding: 22px; }
  .xcard__inner { padding: 20px 22px 24px; }
}

/* ==========================================================================
   27. Module viewer (modal carousel) — replaces inline card expansion
   ========================================================================== */
.pmodal { position: fixed; inset: 0; z-index: 1200; display: none; }
.pmodal.open { display: block; }

.pmodal__backdrop {
  position: absolute; inset: 0; background: rgba(0, 23, 64, .62);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.pmodal.open .pmodal__backdrop { opacity: 1; }

.pmodal__dialog {
  position: relative; width: calc(100% - 32px); max-width: 1080px;
  max-height: 90vh; margin: 5vh auto; background: #fff; border-radius: 20px;
  box-shadow: 0 40px 100px -20px rgba(0, 23, 64, .65);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(28px) scale(.975); opacity: 0;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.pmodal.open .pmodal__dialog { transform: none; opacity: 1; }

.pmodal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px; border-bottom: 1px solid var(--line); background: #fff; flex: 0 0 auto;
}
.pmodal__back {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: 0;
  cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: .88rem;
  color: var(--navy); padding: 8px 12px; border-radius: 9px; transition: background .2s, color .2s;
}
.pmodal__back:hover { background: var(--bg-slate); color: var(--orange); }
.pmodal__back svg { width: 16px; height: 16px; }
.pmodal__counter {
  font-family: var(--font-head); font-weight: 800; font-size: .82rem;
  letter-spacing: .16em; color: var(--muted-2);
}
.pmodal__counter b { color: var(--orange); font-size: .95rem; }
.pmodal__close {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 1.45rem; line-height: 1; color: var(--navy);
  transition: background .2s, color .2s, transform .2s;
}
.pmodal__close:hover { background: var(--orange); color: #fff; border-color: transparent; transform: rotate(90deg); }

.pmodal__body { padding: clamp(20px, 3vw, 36px); overflow-y: auto; flex: 1 1 auto; }
.pmodal__body.slide-in-right { animation: pmRight .36s var(--ease); }
.pmodal__body.slide-in-left  { animation: pmLeft  .36s var(--ease); }
@keyframes pmRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes pmLeft  { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }

.pm-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 3.5vw, 44px); align-items: start; }
.pm-media { min-width: 0; }
.pm-media img { width: 100%; border-radius: 14px; box-shadow: var(--shadow-md); }
.pm-copy { min-width: 0; }
.pm-copy h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 10px 0 12px; }
.pm-lead { font-size: 1rem; margin-bottom: 22px; }

.pmodal__nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 20px; border-top: 1px solid var(--line); background: var(--bg-slate); flex: 0 0 auto;
}
.pmodal__arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  cursor: pointer; display: grid; place-items: center; color: var(--navy);
  transition: background .25s, color .25s, transform .25s, border-color .25s;
}
.pmodal__arrow svg { width: 20px; height: 20px; }
.pmodal__arrow:hover { background: var(--grad-blue); color: #fff; border-color: transparent; transform: scale(1.07); }
.pmodal__dots { display: flex; align-items: center; gap: 8px; }
.pmodal__dot {
  width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; border: 0; padding: 0;
  cursor: pointer; transition: width .28s var(--ease), background .28s;
}
.pmodal__dot.active { background: var(--orange); width: 26px; border-radius: 5px; }

body.pmodal-open { overflow: hidden; }

@media (max-width: 860px) {
  .pm-grid { grid-template-columns: 1fr; }
  .pmodal__dialog { max-height: 94vh; margin: 3vh auto; width: calc(100% - 20px); }
  .pmodal__back span { display: none; }
}

/* ==========================================================================
   28. In-page modules + dock navigation (macOS-dock style, ChatGPT-style rail)
   ========================================================================== */

/* ---- Module sections (normal page flow) ---- */
.module { padding: clamp(54px, 7vw, 96px) 0; position: relative; }
.module--slate { background: var(--bg-slate); }
.module__inner {
  display: grid; grid-template-columns: .95fr 1.05fr;
  gap: clamp(30px, 5vw, 64px); align-items: center;
}
.module--flip .module__media { order: 2; }
.module__media, .module__copy { min-width: 0; }
.module__media img { width: 100%; border-radius: 16px; box-shadow: var(--shadow-lg); }
.module__media-image--mobile { max-height: 560px; object-fit: contain; }
.module__copy h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin: 12px 0 14px; }
.module__lead { font-size: 1rem; margin-bottom: 22px; }
.module .xpoints { margin-bottom: 26px; }

/* ---- Dock ---- */
.dock {
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%);
  z-index: 850; display: flex; flex-direction: column; gap: 4px; padding: 9px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(226, 232, 240, .95);
  box-shadow: 0 18px 40px -18px rgba(0, 37, 112, .45);
}
.dock__hint {
  position: absolute; right: calc(100% + 13px); top: 50%; transform: translateY(-50%);
  white-space: nowrap; color: var(--navy); font-family: var(--font-head); font-size: .68rem;
  font-weight: 700; letter-spacing: .04em; opacity: .78; pointer-events: none;
  animation: dockHint 4.5s 1.5s both;
}
.dock__hint span { display: inline-block; margin-left: 4px; color: var(--orange); animation: dockHintArrow 1.2s ease-in-out infinite; }
.dock.is-used .dock__hint { opacity: 0; transition: opacity .25s ease; }
.dock__onboarding {
  position: absolute; right: calc(100% + 17px); top: 50%; display: flex; align-items: center; gap: 10px;
  color: var(--navy); font-family: var(--font-head); font-size: .78rem; font-weight: 800;
  white-space: nowrap; pointer-events: none; animation: dockOnboarding 5s 1s both;
}
.dock__onboarding i {
  display: block; width: 38px; height: 24px; border-top: 2px solid var(--orange);
  border-right: 2px solid var(--orange); border-radius: 0 18px 0 0;
  transform: rotate(28deg); transform-origin: right center;
}
.dock__onboarding i::after {
  content: ""; display: block; width: 8px; height: 8px; border-top: 2px solid var(--orange);
  border-right: 2px solid var(--orange); transform: translate(29px, -5px) rotate(45deg);
}
.dock.is-dismissed .dock__onboarding { animation: none; opacity: 0; }
.dock a {
  position: relative; width: 46px; height: 46px; display: grid; place-items: center;
  color: var(--navy); text-decoration: none;
}
.dock__icon {
  display: grid; place-items: center; width: 100%; height: 100%;
  border-radius: 12px; background: transparent; color: inherit;
  transition: transform .24s var(--ease), background .22s, color .22s, box-shadow .22s;
  transform-origin: center;
}
.dock__icon svg { width: 21px; height: 21px; }
.dock a:hover .dock__icon {
  transform: scale(1.32); background: var(--blue-100); color: var(--blue);
  box-shadow: 0 8px 18px -8px rgba(0, 112, 192, .55); z-index: 2;
}
.dock a.active .dock__icon { background: var(--grad-blue); color: #fff; }
.dock a.active:hover .dock__icon { background: var(--grad-blue); color: #fff; }

.dock__label {
  position: absolute; right: calc(100% + 14px); top: 50%;
  transform: translateY(-50%) translateX(8px);
  white-space: nowrap; font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  background: var(--navy); color: #fff; padding: 7px 12px; border-radius: 9px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  box-shadow: 0 10px 24px -12px rgba(0, 37, 112, .8);
}
.dock__label::after {
  content: ""; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  border: 6px solid transparent; border-left-color: var(--navy);
}
.dock a:hover .dock__label, .dock a:focus-visible .dock__label {
  opacity: 1; transform: translateY(-50%) translateX(0);
}
.dock a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 12px; }

.grid > a[href^="#"].is-selected {
  border-color: rgba(0, 112, 192, .42);
  box-shadow: 0 12px 30px -16px rgba(0, 112, 192, .8);
}
.grid > a[href^="#"].is-selected .card-link svg { animation: cardArrow 1s var(--ease); }
.module.is-selected::after {
  content: ""; position: absolute; inset: 18px 0; pointer-events: none;
  border: 2px solid rgba(0, 112, 192, .22); border-radius: 20px;
  animation: moduleArrive 1.3s var(--ease) both;
}
@keyframes dockHint {
  0%, 12% { opacity: 0; transform: translateY(-50%) translateX(6px); }
  28%, 78% { opacity: .78; transform: translateY(-50%) translateX(0); }
  100% { opacity: 0; transform: translateY(-50%) translateX(6px); }
}
@keyframes dockHintArrow {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}
@keyframes cardArrow {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(5px); }
}
@keyframes moduleArrive {
  0% { opacity: 0; transform: scale(.985); }
  28% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.015); }
}

/* ---- Dock on small screens: horizontal bar along the bottom ---- */
@media (max-width: 900px) {
  .dock {
    right: auto; left: 50%; top: auto; bottom: 12px; transform: translateX(-50%);
    flex-direction: row; gap: 2px; padding: 7px; border-radius: 16px;
  }
  .dock__hint {
    right: auto; left: 50%; top: auto; bottom: calc(100% + 11px);
    transform: translateX(-50%); animation-name: dockHintMobile;
  }
  .dock__hint span { display: none; }
  .dock a { width: 40px; height: 40px; }
  .dock a:hover .dock__icon { transform: scale(1.14); }
  .dock__label { right: auto; left: 50%; top: auto; bottom: calc(100% + 12px); transform: translateX(-50%) translateY(6px); }
  .dock__label::after { left: 50%; top: 100%; transform: translateX(-50%); border-left-color: transparent; border-top-color: var(--navy); }
  .dock a:hover .dock__label { transform: translateX(-50%) translateY(0); }
  .footer { padding-bottom: 96px; }
  .module__inner { grid-template-columns: 1fr; }
  .module--flip .module__media { order: 0; }
}
@keyframes dockHintMobile {
  0%, 12% { opacity: 0; transform: translateX(-50%) translateY(5px); }
  28%, 78% { opacity: .78; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(5px); }
}
@keyframes dockOnboarding {
  0%, 8% { opacity: 0; transform: translateX(10px); }
  20%, 76% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(10px); }
}
@media (max-width: 900px) {
  .dock__onboarding {
    right: auto; left: 50%; top: auto; bottom: calc(100% + 16px);
    transform: translateX(-50%); flex-direction: column; gap: 4px;
    animation-name: dockOnboardingMobile;
  }
  .dock__onboarding i {
    width: 24px; height: 30px; border-top: 0; border-right: 2px solid var(--orange);
    border-bottom: 2px solid var(--orange); border-radius: 0 0 16px 0;
    transform: rotate(35deg);
  }
  .dock__onboarding i::after { transform: translate(17px, 22px) rotate(45deg); }
}
@keyframes dockOnboardingMobile {
  0%, 8% { opacity: 0; transform: translateX(-50%) translateY(8px); }
  20%, 76% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(8px); }
}

/* Reserve a gutter for the dock so content never slides under it */
@media (min-width: 901px) {
  body:has(.dock) main .container { padding-right: 88px; }
}
@media (max-width: 900px) {
  .dock { background: rgba(255, 255, 255, .95); }
  .dock__icon { background: rgba(0, 37, 112, .04); }
}
