/* ==========================================================================
   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: .82rem;
  display: flex; align-items: center;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 40px; }
.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-weight: 600; }

.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: 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. */
.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 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;
  animation: heroBreath 8s ease-in-out infinite;
}
.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); } }
@keyframes heroBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.012); } }

/* ---------- 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; }

/* ---------- 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, .hero-visual .frame { 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; }
}
@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; }
  .circle-diagram { max-width: 320px; }
  .brand .b-name { font-size: 1.1rem; }
}
@media (max-width: 420px) {
  .hero-cta .btn, .cta-band .btns .btn { width: 100%; }
  .float-card { display: none; }
}
