/* ==========================================================================
   KCG Tech Services — modern theme
   ========================================================================== */

:root {
  /* Deep teal-navy (derived from KCG brand) for hero/footer */
  --navy-900: #052b40;
  --navy-800: #08405d;
  --navy-700: #0c577b;

  /* KCG brand: cyan -> blue (sampled from the logo) */
  --brand:    #1496cc;
  --brand-2:  #18b6df;
  --cyan:     #3ad0ef;
  --grad:     linear-gradient(135deg, #0f87c2 0%, #1cb7dd 100%);
  --grad-btn: linear-gradient(135deg, #0e7ab0 0%, #1597c4 100%); /* darker for white-text contrast */
  --grad-soft:linear-gradient(135deg, rgba(20,150,204,.12), rgba(24,182,223,.12));

  --ink:    #25333d;
  --body:   #586975;
  --muted:  #93a3ad;
  --line:   #e3eaee;
  --bg:     #ffffff;
  --bg-soft:#f5f9fb;

  --radius:   18px;
  --radius-sm:12px;
  --shadow:   0 1px 2px rgba(8,40,60,.04), 0 12px 30px -12px rgba(8,40,60,.14);
  --shadow-lg:0 30px 60px -25px rgba(8,40,60,.30);
  --ring:     0 0 0 4px rgba(20,150,204,.18);

  --container: 1160px;
  --space: clamp(64px, 9vw, 120px);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Space Grotesk", var(--font);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-2); }

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
section { padding-block: var(--space); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--display); font-weight: 600; font-size: .98rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 22px -8px rgba(15,135,194,.5); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(15,135,194,.6); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn-light:hover { color: var(--brand); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); background: var(--grad-soft); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15,23,42,.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(15,135,194,.6);
}
.brand-accent { color: var(--brand); }

/* real logo image */
.brand-logo { height: 50px; width: auto; display: block; }
.footer-brand .brand-logo { height: 54px; }

/* eyebrow on light sections outside .section-head */
.eyebrow.brand { color: var(--brand); background: var(--grad-soft); border: 1px solid rgba(20,150,204,.18); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > a { font-family: var(--display); font-weight: 600; font-size: .97rem; color: #334155; padding: 9px 14px; border-radius: 999px; }
.nav > a:hover { color: var(--brand); background: var(--bg-soft); }
.nav > a.active { color: var(--brand); }
.nav-cta { margin-left: 8px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 80% -10%, var(--navy-700), var(--navy-900) 60%);
  color: #e9eefb; padding-block: clamp(80px, 12vw, 140px);
  isolation: isolate;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: -1;
}
.hero::before { width: 480px; height: 480px; background: #1496cc; top: -140px; right: -90px; }
.hero::after  { width: 420px; height: 420px; background: #18b6df; bottom: -180px; left: -120px; opacity: .4; }
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 54px 54px; mask-image: radial-gradient(80% 70% at 50% 0%, #000, transparent 75%);
}
.hero-inner { max-width: 780px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero .eyebrow { color: #cfe0ff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.hero h1 { color: #fff; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.18rem; color: #b9c6e6; margin-top: 20px; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px 26px; color: #93a3c9; font-size: .92rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { width: 18px; height: 18px; color: var(--cyan); }

/* ---------- stats ---------- */
.stats { background: var(--navy-900); padding-block: 0; }
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,.08);
  border-radius: var(--radius); overflow: hidden; transform: translateY(-50%);
  box-shadow: var(--shadow-lg);
}
.stat { background: #fff; padding: 28px 22px; text-align: center; }
.stat .num { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; color: var(--ink);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { font-size: .92rem; color: var(--body); margin-top: 4px; }
.stats-spacer { height: 0; }

/* ---------- section heading ---------- */
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { color: var(--brand); background: var(--grad-soft); border: 1px solid rgba(20,150,204,.18); }
.section-head p { margin-top: 14px; font-size: 1.08rem; }

/* ---------- service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 15px;
  background: var(--grad-soft); color: var(--brand); margin-bottom: 20px;
}
.card-icon .icon { width: 28px; height: 28px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .98rem; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-family: var(--display); font-weight: 600; font-size: .92rem; }
.card .more .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.card:hover .more .icon { transform: translateX(4px); }

/* ---------- split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.bg-soft { background: var(--bg-soft); }
.checklist { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-weight: 500; }
.checklist .tick { flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--grad); color: #fff; margin-top: 1px; }
.checklist .tick .icon { width: 15px; height: 15px; }

.media-card {
  border-radius: var(--radius); padding: 36px; color: #e9eefb;
  background: radial-gradient(120% 120% at 100% 0%, var(--navy-700), var(--navy-900));
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.media-card h3 { color: #fff; }
.media-card .ring { position: absolute; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); right: -80px; top: -80px; }
.media-card .ring.two { width: 160px; height: 160px; right: -40px; top: -40px; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.mini { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 18px; }
.mini .icon { color: var(--cyan); margin-bottom: 8px; }
.mini b { color: #fff; display: block; font-family: var(--display); }
.mini span { font-size: .88rem; color: #aebbdb; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature .icon { color: var(--brand); width: 30px; height: 30px; margin-bottom: 14px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 6px; }
.feature p { font-size: .96rem; }

/* ---------- locations ---------- */
.locations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.loc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}
.loc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.loc-flag { font-size: 1.8rem; line-height: 1; }
.loc-head h3 { margin: 0; }
.loc-head .city { font-size: .92rem; color: var(--muted); }
.loc-serves { font-size: .85rem; color: var(--muted); margin: -6px 0 16px; line-height: 1.5; }
.loc dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; }
.loc dt { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: .9rem; }
.loc dd { margin: 0; text-align: right; }

/* ---------- CTA band ---------- */
.cta {
  background: var(--grad); border-radius: clamp(20px, 4vw, 32px);
  padding: clamp(40px, 6vw, 70px); color: #fff; text-align: center; position: relative; overflow: hidden;
}
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% -10%, rgba(255,255,255,.25), transparent 60%); }
.cta h2 { color: #fff; position: relative; }
.cta p { color: rgba(255,255,255,.9); max-width: 560px; margin: 14px auto 28px; position: relative; }
.cta .hero-actions { justify-content: center; position: relative; }

/* ---------- page hero (sub pages) ---------- */
.page-hero {
  background: radial-gradient(120% 140% at 85% -20%, var(--navy-700), var(--navy-900) 65%);
  color: #fff; padding-block: clamp(70px, 10vw, 110px); position: relative; overflow: hidden;
}
.page-hero::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: #18b6df; filter: blur(80px); opacity: .35; top: -120px; right: -80px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #b9c6e6; max-width: 620px; margin-top: 14px; font-size: 1.12rem; }
.crumbs { font-size: .9rem; color: #8ea0c8; margin-bottom: 18px; }
.crumbs a { color: #cfe0ff; }

/* ---------- service detail rows ---------- */
.svc-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: 44px; border-top: 1px solid var(--line); }
.svc-row:first-of-type { border-top: 0; }
.svc-row.flip .svc-visual { order: 2; }
.svc-visual {
  border-radius: var(--radius); aspect-ratio: 4/3; background: var(--grad-soft);
  display: grid; place-items: center; border: 1px solid var(--line); position: relative; overflow: hidden;
}
.svc-visual .icon { width: 96px; height: 96px; color: var(--brand); opacity: .85; }
.svc-visual::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 1px dashed rgba(20,150,204,.3); }
.svc-row h2 { font-size: 1.7rem; }
.svc-row .num-badge { font-family: var(--display); font-weight: 700; color: var(--brand); font-size: .9rem; letter-spacing: .1em; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.info-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 18px; }
.info-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: 14px; }
.info-card h3 .icon { color: var(--brand); }
.info-line { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px dashed var(--line); }
.info-line:first-of-type { border-top: 0; }
.info-line .k { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: .9rem; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--display); font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field .err { color: #dc2626; font-size: .85rem; margin-top: 6px; }
.hp { position: absolute; left: -9999px; }
.note { font-size: .85rem; color: var(--muted); margin-top: 14px; }

.alert { border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 22px; font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
.alert .icon { flex: 0 0 auto; margin-top: 2px; }
.alert.ok  { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert.bad { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #aebbdb; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; }
.site-footer .brand, .site-footer .brand-text { color: #fff; }
.site-footer .brand-accent { color: var(--cyan); }
.footer-brand p { margin-top: 16px; font-size: .96rem; }
.footer-muted { color: #7e8db5; font-size: .9rem; }
.footer-col h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: #aebbdb; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .88rem; color: #7e8db5; }

/* ---------- partners strip ---------- */
.partners { padding-block: 50px; border-top: 1px solid var(--line); }
.partners-label { text-align: center; font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.partners-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 34px 54px; }
.partners-row img { height: 40px; width: auto; opacity: .6; filter: grayscale(1); transition: opacity .2s ease, filter .2s ease; }
.partners-row img:hover { opacity: 1; filter: none; }
.partners-row .partner-text { font-family: var(--display); font-weight: 700; font-size: 1.45rem; color: var(--muted); opacity: .6; letter-spacing: -.01em; transition: opacity .2s ease, color .2s ease; }
.partners-row .partner-text:hover { opacity: 1; color: var(--ink); }

/* ---------- industries ---------- */
.industries { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.industry { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 26px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--display); font-weight: 600; font-size: .9rem; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.industry:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.industry .icon { color: var(--brand); width: 26px; height: 26px; }

/* ---------- testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.tquote { color: var(--brand); opacity: .5; margin-bottom: 6px; }
.tcard blockquote { margin: 0 0 20px; font-size: 1.02rem; color: var(--ink); line-height: 1.6; }
.tcard figcaption { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 16px; }
.tcard figcaption strong { font-family: var(--display); color: var(--ink); }
.tcard figcaption span { font-size: .88rem; color: var(--muted); }

/* ---------- MSP plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); position: relative; }
.plan.featured { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-10px); outline: 2px solid var(--brand); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-family: var(--display); font-weight: 600; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 1.4rem; }
.plan-tag { color: var(--body); font-size: .95rem; margin: 4px 0 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.plan li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; color: var(--ink); }
.plan li .icon { color: var(--brand); flex: 0 0 auto; margin-top: 3px; }
.plan .btn { width: 100%; justify-content: center; }

/* ---------- header click-to-call ---------- */
.nav-call { display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); font-weight: 600; font-size: .92rem; color: var(--ink); padding: 9px 12px; }
.nav-call .icon { color: var(--brand); }
.nav-call:hover { color: var(--brand); }

/* ---------- nav dropdown (Support) ---------- */
.nav-item.has-children { position: relative; display: inline-flex; }
.nav-item.has-children::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 12px; } /* hover bridge */
.nav-parent { display: inline-flex; align-items: center; gap: 4px; font-family: var(--display); font-weight: 600; font-size: .97rem; color: #334155; padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.nav-parent .icon { width: 14px; height: 14px; transition: transform .2s ease; }
.nav-item.has-children:hover .nav-parent, .nav-parent.active { color: var(--brand); }
.nav-item.has-children:hover .nav-parent .icon { transform: rotate(180deg); }
.submenu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 212px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; display: none; flex-direction: column; gap: 2px; z-index: 120; }
.nav-item.has-children:hover .submenu { display: flex; }
.submenu a { font-family: var(--display); font-weight: 600; font-size: .92rem; color: #334155; padding: 10px 12px; border-radius: 9px; }
.submenu a:hover { background: var(--bg-soft); color: var(--brand); }

/* ---------- footer social ---------- */
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #aebbdb; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.social a:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-2px); }

/* ---------- footer legal ---------- */
.footer-legal { display: flex; gap: 12px; align-items: center; }
.footer-legal a { color: #aebbdb; }
.footer-legal a:hover { color: #fff; }

/* ---------- Cloudflare Turnstile ---------- */
.cf-turnstile { margin-bottom: 18px; }

/* ---------- remote-support tool cards ---------- */
.tool-tag { display: inline-block; font-family: var(--display); font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--grad); padding: 3px 9px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.tool-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tool-links .btn { font-size: .88rem; padding: 10px 16px; }

/* ---------- FAQ accordion ---------- */
.faq-wrap { max-width: 820px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--brand); flex: 0 0 auto; transition: transform .2s ease; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-a { padding: 0 22px 22px; color: var(--body); }

/* ---------- prose (legal pages) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.prose p { margin-bottom: 14px; }
.prose ul { padding-left: 20px; margin: 0 0 14px; display: grid; gap: 8px; }
.prose a { font-weight: 600; }

/* ---------- AI chat widget (futuristic dark-glass) ---------- */
.kcg-chat { position: fixed; right: 24px; bottom: 24px; z-index: 300; font-family: var(--font); }

/* launcher with pulsing glow ring */
.kcg-chat-launch { position: relative; width: 62px; height: 62px; border-radius: 50%; border: none; cursor: pointer; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(20,160,210,.65), inset 0 0 0 1px rgba(255,255,255,.14); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.kcg-chat-launch::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; background: var(--grad); opacity: .4; filter: blur(11px); z-index: -1; animation: kcgpulse 2.6s ease-in-out infinite; }
.kcg-chat-launch:hover { transform: translateY(-3px) scale(1.05); }
.kcg-chat-launch svg, .kcg-chat-launch .kcg-chat-launch-x { transition: opacity .22s ease, transform .22s ease; }
.kcg-chat-launch-x { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; line-height: 1; opacity: 0; transform: rotate(-45deg) scale(.6); }
.kcg-chat-launch.open svg { opacity: 0; transform: scale(.5) rotate(45deg); }
.kcg-chat-launch.open .kcg-chat-launch-x { opacity: 1; transform: rotate(0) scale(1); }
@keyframes kcgpulse { 0%, 100% { transform: scale(1); opacity: .4; } 50% { transform: scale(1.2); opacity: .12; } }

/* panel — frosted dark glass, hidden until .open (class toggle, not [hidden]) */
.kcg-chat-panel { position: absolute; right: 0; bottom: 80px; width: min(392px, calc(100vw - 32px)); height: min(580px, calc(100vh - 130px)); display: none; flex-direction: column; overflow: hidden; border-radius: 22px; background: linear-gradient(165deg, rgba(8,30,46,.92), rgba(4,17,28,.96)); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); border: 1px solid rgba(56,200,235,.22); box-shadow: 0 30px 70px -20px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.04), 0 0 44px -14px rgba(34,182,223,.4); transform-origin: bottom right; }
.kcg-chat-panel.open { display: flex; animation: kcgpop .28s cubic-bezier(.2,.9,.25,1.1); }
@keyframes kcgpop { from { opacity: 0; transform: translateY(14px) scale(.93); } to { opacity: 1; transform: none; } }

.kcg-chat-head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: linear-gradient(120deg, rgba(15,135,194,.38), rgba(34,182,223,.12)); border-bottom: 1px solid rgba(56,200,235,.18); }
.kcg-chat-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .65; }
.kcg-chat-id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.kcg-chat-av { position: relative; flex: 0 0 auto; }
.kcg-chat-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; display: block; border: 2px solid rgba(56,200,235,.55); box-shadow: 0 0 12px -3px rgba(34,182,223,.7); }
.kcg-chat-av::after { content: ""; position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #34e0a1; box-shadow: 0 0 8px #34e0a1; border: 2px solid #07283b; animation: kcgpulse 2.6s ease-in-out infinite; }
.kcg-chat-head strong { font-family: var(--display); color: #fff; display: block; }
.kcg-chat-head span { font-size: .8rem; color: #9fc7da; }
.kcg-chat-close { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #d6ecf5; width: 32px; height: 32px; border-radius: 9px; font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.kcg-chat-close:hover { background: rgba(255,255,255,.16); color: #fff; }

.kcg-chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.kcg-chat-log::-webkit-scrollbar { width: 6px; }
.kcg-chat-log::-webkit-scrollbar-thumb { background: rgba(56,200,235,.28); border-radius: 3px; }
.kcg-msg { max-width: 86%; padding: 11px 14px; border-radius: 14px; font-size: .93rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.kcg-msg-assistant { background: rgba(255,255,255,.06); border: 1px solid rgba(56,200,235,.18); color: #e6f3fa; align-self: flex-start; border-bottom-left-radius: 4px; }
.kcg-msg-user { background: var(--grad); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; box-shadow: 0 6px 16px -6px rgba(20,160,210,.6); }
.kcg-msg-error { background: rgba(220,38,38,.14); border: 1px solid rgba(248,113,113,.4); color: #fca5a5; align-self: flex-start; font-size: .86rem; }
.kcg-typing { display: flex; gap: 5px; align-items: center; }
.kcg-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); animation: kcgblink 1.2s infinite both; }
.kcg-typing span:nth-child(2) { animation-delay: .2s; }
.kcg-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes kcgblink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

.kcg-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(56,200,235,.14); background: rgba(4,17,28,.5); align-items: flex-end; }
.kcg-chat-form textarea { flex: 1; resize: none; border: 1px solid rgba(56,200,235,.25); border-radius: 12px; padding: 11px 13px; font: inherit; font-size: .94rem; max-height: 120px; background: rgba(255,255,255,.05); color: #eaf6fb; }
.kcg-chat-form textarea::placeholder { color: #7fa3b6; }
.kcg-chat-form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,182,223,.18), 0 0 18px -6px rgba(34,182,223,.55); }
.kcg-chat-form button { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; border: none; background: var(--grad); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(20,160,210,.6); transition: transform .15s, filter .15s; }
.kcg-chat-form button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.kcg-chat-foot { font-size: .7rem; color: #7fa3b6; text-align: center; padding: 8px 12px 12px; }
.kcg-chat-foot a { color: var(--cyan); }

/* ---------- pre-chat contact form ---------- */
.kcg-chat-panel:not(.started) .kcg-chat-log,
.kcg-chat-panel:not(.started) .kcg-chat-form,
.kcg-chat-panel:not(.started) .kcg-chat-foot { display: none; }
.kcg-chat-panel.started .kcg-chat-intro { display: none; }
.kcg-chat-intro { flex: 1; overflow-y: auto; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 22px 22px; }
.kcg-chat-intro-av { position: relative; margin-bottom: 14px; }
.kcg-chat-intro-img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; display: block; border: 2px solid rgba(56,200,235,.55); box-shadow: 0 0 20px -4px rgba(34,182,223,.75); }
.kcg-chat-intro-dot { position: absolute; right: 3px; bottom: 5px; width: 15px; height: 15px; border-radius: 50%; background: #34e0a1; box-shadow: 0 0 9px #34e0a1; border: 2px solid #07283b; }
.kcg-chat-intro h4 { font-family: var(--display); color: #fff; font-size: 1.2rem; margin: 0 0 6px; }
.kcg-chat-intro > p { color: #9fc7da; font-size: .9rem; line-height: 1.5; margin: 0 0 18px; max-width: 290px; }
.kcg-chat-lead { width: 100%; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.kcg-chat-lead label { display: flex; flex-direction: column; gap: 5px; font-size: .78rem; letter-spacing: .01em; color: #c4e0ec; font-weight: 600; }
.kcg-chat-lead .req { color: #ff8da3; }
.kcg-chat-lead input { border: 1px solid rgba(56,200,235,.25); border-radius: 11px; padding: 11px 13px; font: inherit; font-size: .92rem; background: rgba(255,255,255,.05); color: #eaf6fb; }
.kcg-chat-lead input::placeholder { color: #6f93a6; }
.kcg-chat-lead input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,182,223,.18), 0 0 18px -6px rgba(34,182,223,.55); }
.kcg-chat-lead-err { margin: -2px 0 0; color: #fca5a5; font-size: .82rem; font-weight: 600; }
.kcg-chat-lead button[type=submit] { margin-top: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 12px; padding: 12px 16px; font: inherit; font-weight: 700; font-size: .96rem; color: #fff; background: var(--grad); cursor: pointer; box-shadow: 0 10px 24px -8px rgba(20,160,210,.7); transition: transform .15s, filter .15s; }
.kcg-chat-lead button[type=submit]:hover { transform: translateY(-1px); filter: brightness(1.08); }
.kcg-chat-lead button[type=submit]:disabled { opacity: .7; cursor: default; transform: none; }
.kcg-chat-lead-note { margin: 2px 0 0; text-align: center; font-size: .72rem; line-height: 1.5; color: #7fa3b6; }
.kcg-chat-lead-note a { color: var(--cyan); }
@media (prefers-reduced-motion: reduce) { .kcg-chat-launch::before, .kcg-chat-head strong::before, .kcg-typing span { animation: none; } .kcg-chat-panel.open { animation: none; } .kcg-chat-launch { transition: none; } }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .cards, .features { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); transform: translateY(-30px); }
  .split, .contact-grid, .svc-row, .svc-row.flip { grid-template-columns: 1fr; }
  .svc-row.flip .svc-visual { order: 0; }
  .media-card { order: -1; }
}
@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px 24px;
    box-shadow: var(--shadow-lg); transform: translateY(-130%); transition: transform .3s ease; visibility: hidden;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav > a { padding: 13px 12px; border-radius: 10px; }
  .nav-cta { margin: 8px 0 0; justify-content: center; }
  .nav-toggle { display: flex; }
  /* dropdown becomes an inline expanded group on mobile */
  .nav-item.has-children { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-item.has-children::after { display: none; }
  .nav-parent { padding: 13px 12px; }
  .nav-parent .icon { display: none; }
  .submenu { position: static; display: flex; min-width: 0; padding: 0 0 6px 14px; background: transparent; border: none; border-radius: 0; box-shadow: none; }
  .submenu a { padding: 11px 12px; }
  .cards, .features, .locations, .field.two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 460px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* new components — responsive */
@media (max-width: 960px) {
  .industries { grid-template-columns: repeat(3, 1fr); }
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan.featured { transform: none; }
}
@media (max-width: 720px) {
  .testimonials { grid-template-columns: 1fr; }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .partners-row { gap: 24px 34px; }
  .partners-row img { height: 34px; }
}
