/* ==========================================================================
   CORE GENIX SDN BHD — main stylesheet
   Built on Bootstrap 5.3. Brand colours come from the CG logo gradient.
   ========================================================================== */

:root {
  --cg-purple: #8e2589;
  --cg-violet: #5b3a96;
  --cg-blue: #005b96;
  --cg-grad: linear-gradient(120deg, #8e2589 0%, #4b3f99 52%, #005b96 100%);
  --cg-dark: #0d1430;
  --cg-dark-2: #151d42;
  --cg-ink: #1d2440;
  --cg-muted: #5f6783;
  --cg-light: #f4f6fb;
  --cg-border: #e4e8f2;
  --cg-radius: 18px;
  --cg-shadow: 0 20px 45px -22px rgba(29, 36, 64, .28);
  --bs-link-color-rgb: 91, 58, 150;
  --bs-link-hover-color-rgb: 0, 91, 150;
}

html { scroll-behavior: smooth; }
html.i18n-pending body { visibility: hidden; }

body {
  font-family: 'Poppins', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--cg-ink);
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--cg-ink); line-height: 1.25; }
p { color: var(--cg-muted); }
a { text-decoration: none; }
::selection { background: rgba(91, 58, 150, .18); }

.text-gradient {
  background: var(--cg-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn-cg,
.btn-outline-cg,
.btn-white {
  border-radius: 50px;
  padding: .8rem 1.7rem;
  font-weight: 600;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.btn-cg {
  background: var(--cg-grad);
  color: #fff;
  border: 0;
  box-shadow: 0 12px 26px -12px rgba(91, 58, 150, .75);
}
.btn-cg:hover, .btn-cg:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -14px rgba(91, 58, 150, .85);
}
.btn-outline-cg {
  border: 2px solid var(--cg-violet);
  color: var(--cg-violet);
  background: transparent;
}
.btn-outline-cg:hover, .btn-outline-cg:focus-visible {
  background: var(--cg-violet);
  color: #fff;
  transform: translateY(-2px);
}
.btn-white {
  background: #fff;
  color: var(--cg-violet);
  border: 0;
}
.btn-white:hover, .btn-white:focus-visible {
  color: var(--cg-blue);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .45);
}
.btn-ghost-white {
  border: 2px solid rgba(255, 255, 255, .6);
  color: #fff;
  border-radius: 50px;
  padding: .8rem 1.7rem;
  font-weight: 600;
}
.btn-ghost-white:hover, .btn-ghost-white:focus-visible { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

/* ---------- Navbar ---------- */
.cg-navbar {
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: .9rem 0;
  transition: box-shadow .3s ease, padding .3s ease;
}
.cg-navbar.scrolled { box-shadow: 0 8px 30px -18px rgba(29, 36, 64, .35); padding: .55rem 0; }
.navbar-brand img { height: 36px; width: auto; }
.brand-text { font-weight: 800; font-size: 1.2rem; letter-spacing: .04em; color: var(--cg-ink); }
.cg-navbar .nav-link {
  font-weight: 500;
  color: var(--cg-ink);
  padding: .5rem 1rem !important;
  position: relative;
}
.cg-navbar .nav-link:hover,
.cg-navbar .nav-link.active { color: var(--cg-violet); }
@media (min-width: 992px) {
  .cg-navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 1rem; right: 1rem; bottom: .15rem;
    height: 3px;
    border-radius: 3px;
    background: var(--cg-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
  }
  .cg-navbar .nav-link:hover::after,
  .cg-navbar .nav-link.active::after { transform: scaleX(1); }
}
.btn-lang {
  border: 1px solid var(--cg-border);
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  padding: .4rem .9rem;
  color: var(--cg-ink);
  background: #fff;
  white-space: nowrap;
}
.btn-lang:hover { border-color: var(--cg-violet); color: var(--cg-violet); }
.navbar-toggler { border: 0; padding: .35rem .5rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(91, 58, 150, .2); }

@media (max-width: 991.98px) {
  .cg-navbar .navbar-collapse {
    background: #fff;
    border: 1px solid var(--cg-border);
    border-radius: 16px;
    padding: .75rem;
    margin-top: .75rem;
    box-shadow: var(--cg-shadow);
  }
  .cg-navbar .nav-link { border-radius: 10px; }
  .cg-navbar .nav-link.active { background: rgba(91, 58, 150, .08); }
}

/* ---------- Shared section helpers ---------- */
.section { padding: 5.5rem 0; }
.bg-light-cg { background: var(--cg-light); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cg-violet);
  background: rgba(91, 58, 150, .09);
  padding: .4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.section-title { max-width: 720px; margin: 0 auto 3.25rem; text-align: center; }
.section-title h2, .section-heading { font-size: clamp(1.65rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.lead-cg { font-size: 1.08rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 4.5rem 0 8rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(142, 37, 137, .12), transparent 42%),
    radial-gradient(circle at 88% 30%, rgba(0, 91, 150, .12), transparent 45%),
    var(--cg-light);
  overflow: hidden;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; margin-bottom: 1.25rem; }
.hero .lead-cg { max-width: 560px; }
.hero-points { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.hero-points li { display: flex; align-items: center; gap: .45rem; font-weight: 500; font-size: .95rem; }
.hero-points i { color: var(--cg-violet); }
.hero-art svg { width: 100%; height: auto; max-width: 640px; display: block; margin: 0 auto; }

.hero-svg .float-a { animation: cgFloat 6s ease-in-out infinite; }
.hero-svg .float-b { animation: cgFloat 7s ease-in-out infinite; animation-delay: -2s; }
.hero-svg .float-c { animation: cgFloat 5.5s ease-in-out infinite; animation-delay: -4s; }
.hero-svg .blink { animation: cgBlink 1.1s steps(1) infinite; }
@keyframes cgFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes cgBlink { 50% { opacity: 0; } }

@media (max-width: 991.98px) {
  .hero { padding: 3rem 0 7rem; text-align: center; }
  .hero .lead-cg { margin-left: auto; margin-right: auto; }
  .hero-points { justify-content: center; }
  .hero-art { margin-top: 2.5rem; }
}

/* ---------- Cards ---------- */
.highlight-strip { margin-top: -4.5rem; position: relative; z-index: 2; }
.card-cg {
  background: #fff;
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius);
  padding: 2rem;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card-cg:hover { transform: translateY(-6px); box-shadow: var(--cg-shadow); border-color: transparent; }
.card-cg h3, .card-cg h4 { font-size: 1.2rem; margin-bottom: .6rem; }
.card-cg p:last-child { margin-bottom: 0; }
.highlight-strip .card-cg { box-shadow: var(--cg-shadow); }

.icon-box {
  width: 60px; height: 60px;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--cg-grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 12px 22px -12px rgba(91, 58, 150, .8);
}
.icon-box.sm { width: 48px; height: 48px; font-size: 1.25rem; border-radius: 13px; margin-bottom: 0; }
.icon-box.soft { background: rgba(91, 58, 150, .1); color: var(--cg-violet); box-shadow: none; }

.check-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .55rem; font-weight: 500; }
.check-list i { color: var(--cg-violet); margin-top: .15rem; }
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; margin-top: 1.25rem; color: var(--cg-violet); }
.link-arrow i { transition: transform .25s ease; }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Dark solutions section ---------- */
.section-dark {
  background:
    radial-gradient(circle at 10% 0%, rgba(142, 37, 137, .35), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(0, 91, 150, .4), transparent 45%),
    var(--cg-dark);
  color: #c9cfe4;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #aab2cc; }
.section-dark .eyebrow { color: #e2c8f0; background: rgba(255, 255, 255, .08); }
.solution-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--cg-radius);
  padding: 2rem;
  height: 100%;
  transition: transform .3s ease, background-color .3s ease;
}
.solution-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .09); }
.solution-card h3 { font-size: 1.2rem; }

/* ---------- Brands ---------- */
.brand-tile {
  border: 1px solid var(--cg-border);
  border-radius: 14px;
  height: 96px;
  display: grid;
  place-items: center;
  background: #fff;
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: .02em;
  color: #8a91a8;
  transition: color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.brand-tile:hover { color: var(--cg-ink); box-shadow: var(--cg-shadow); transform: translateY(-4px); }
/* brand logo images: keep the 200px size but shrink to fit narrow tiles on phones */
.brand-tile img { max-width: 85%; height: auto; }
.brand-tile.more { font-size: 1rem; font-weight: 600; color: var(--cg-violet); gap: .25rem; text-align: center; }

/* ---------- Feature rows ---------- */
.feature-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.feature-item h3, .feature-item h4 { font-size: 1.08rem; margin-bottom: .3rem; }
.feature-item p { margin-bottom: 0; font-size: .96rem; }
.venn-art svg, .about-art svg { width: 100%; height: auto; max-width: 520px; display: block; margin: 0 auto; }

/* ---------- Process steps ("How We Work") ----------
   When the row scrolls into view (.reveal.in) the steps appear one after
   another, the number badges pop in, the connector lines draw across and
   then keep "flowing", and a pulse ring travels from step 1 to step 4. */
.step { text-align: center; position: relative; padding: 0 .5rem; }
.step-num {
  width: 72px; height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  color: var(--cg-violet);
  background: #fff;
  position: relative;
  z-index: 1;
  transition: transform .35s ease, background .35s ease, color .35s ease, box-shadow .35s ease;
}
/* rotating dashed ring */
.step-num::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px dashed rgba(91, 58, 150, .4);
  animation: cgSpin 14s linear infinite;
}
/* pulse ring, staggered so it travels across the steps */
.step-num::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(91, 58, 150, .45);
  opacity: 0;
  pointer-events: none;
}
.steps-row .reveal.in .step-num::after { animation: cgPulse 4s ease-out infinite; }
.steps-row > :nth-child(1) .step-num::after { animation-delay: .6s; }
.steps-row > :nth-child(2) .step-num::after { animation-delay: 1.6s; }
.steps-row > :nth-child(3) .step-num::after { animation-delay: 2.6s; }
.steps-row > :nth-child(4) .step-num::after { animation-delay: 3.6s; }
.step-num i { transition: transform .35s ease; }
.step-num span {
  position: absolute;
  top: -6px; right: -6px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--cg-grad);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  z-index: 2;
  box-shadow: 0 6px 12px -6px rgba(91, 58, 150, .8);
}
.step h3 { font-size: 1.1rem; transition: color .3s ease; }

/* hover: fill the circle with the brand gradient */
.step:hover .step-num {
  background: var(--cg-grad);
  color: #fff;
  transform: translateY(-6px);
  box-shadow: 0 16px 28px -14px rgba(91, 58, 150, .8);
}
.step:hover .step-num::before { border-color: transparent; }
.step:hover .step-num i { transform: scale(1.12) rotate(-8deg); }
.step:hover h3 { color: var(--cg-violet); }

/* entrance: one step after another */
.steps-row > :nth-child(2).reveal { transition-delay: .15s; }
.steps-row > :nth-child(3).reveal { transition-delay: .3s; }
.steps-row > :nth-child(4).reveal { transition-delay: .45s; }
.js .steps-row .reveal .step-num span { transform: scale(0); }
.js .steps-row .reveal.in .step-num span { animation: cgPop .5s cubic-bezier(.34, 1.56, .64, 1) forwards; }
.steps-row > :nth-child(1) .step-num span { animation-delay: .35s !important; }
.steps-row > :nth-child(2) .step-num span { animation-delay: .5s !important; }
.steps-row > :nth-child(3) .step-num span { animation-delay: .65s !important; }
.steps-row > :nth-child(4) .step-num span { animation-delay: .8s !important; }

/* connector lines (desktop): draw in, then keep flowing */
@media (min-width: 992px) {
  .steps-row .col-lg-3:not(:last-child) .step::after {
    content: '';
    position: absolute;
    top: 35px;
    left: calc(50% + 48px);
    width: calc(100% - 96px);
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(91, 58, 150, .45) 0 8px, transparent 8px 16px);
    background-size: 16px 2px;
    transform-origin: left;
    animation: cgFlow 1s linear infinite;
  }
  .js .steps-row .reveal .step::after { transform: scaleX(0); }
  .js .steps-row .reveal.in .step::after {
    transform: scaleX(1);
    transition: transform .8s ease;
  }
  .steps-row > :nth-child(1).reveal.in .step::after { transition-delay: .5s; }
  .steps-row > :nth-child(2).reveal.in .step::after { transition-delay: .8s; }
  .steps-row > :nth-child(3).reveal.in .step::after { transition-delay: 1.1s; }
}

@keyframes cgSpin { to { transform: rotate(360deg); } }
@keyframes cgPulse {
  0% { transform: scale(1); opacity: .9; }
  35%, 100% { transform: scale(1.45); opacity: 0; }
}
@keyframes cgPop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes cgFlow { to { background-position: 16px 0; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--cg-grad);
  border-radius: 28px;
  padding: 3.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before,
.cta-band::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, .07);
  pointer-events: none;
}
.cta-band::before { width: 320px; height: 320px; top: -140px; right: -80px; }
.cta-band::after { width: 220px; height: 220px; bottom: -120px; left: 30%; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-band p { color: rgba(255, 255, 255, .85); margin-bottom: 0; }
.cta-band > * { position: relative; z-index: 1; }

/* ---------- Inner page header ---------- */
.page-header {
  position: relative;
  padding: 5rem 0 4.5rem;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(142, 37, 137, .55), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(0, 91, 150, .6), transparent 50%),
    var(--cg-dark);
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; }
.page-header p { color: rgba(255, 255, 255, .78); max-width: 620px; font-size: 1.08rem; margin-bottom: 0; }
.page-header .breadcrumb { margin-bottom: 1rem; font-size: .9rem; }
.page-header .breadcrumb a { color: rgba(255, 255, 255, .75); }
.page-header .breadcrumb a:hover { color: #fff; }
.page-header .breadcrumb-item.active { color: #fff; }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .5); }

/* ---------- Software solution blocks (services page) ---------- */
.solution-block + .solution-block { margin-top: 5rem; }
.mock {
  background: #fff;
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: var(--cg-shadow);
  border: 1px solid var(--cg-border);
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}
.mock::before {
  content: '';
  position: absolute;
  inset: -12px -10px 12px 10px;
  background: var(--cg-grad);
  border-radius: 26px;
  opacity: .14;
  z-index: -1;
}
.mock-top { display: flex; gap: 6px; margin-bottom: 1.1rem; }
.mock-top i { width: 10px; height: 10px; border-radius: 50%; background: #e0e4ef; display: block; }
.mock-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.mock-head .icon-box { margin-bottom: 0; }
.mock-head strong { display: block; font-size: 1.05rem; }
.mock-bar { height: 9px; border-radius: 5px; background: #eceff6; margin-bottom: .6rem; }
.mock-bar.w-40 { width: 40%; } .mock-bar.w-60 { width: 60%; } .mock-bar.w-80 { width: 80%; }
.mock-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-top: 1.1rem; }
.mock-col { background: var(--cg-light); border-radius: 12px; padding: .7rem; }
.mock-chip { height: 30px; border-radius: 8px; background: #fff; margin-top: .5rem; border-left: 4px solid var(--cg-violet); box-shadow: 0 4px 10px -6px rgba(29, 36, 64, .25); }
.mock-chip.b { border-left-color: var(--cg-blue); }
.mock-chip.p { border-left-color: var(--cg-purple); }
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-top: 1.1rem; }
.mock-tile { aspect-ratio: 1; border-radius: 12px; background: var(--cg-light); display: grid; place-items: center; font-size: 1.6rem; color: var(--cg-violet); }
.mock-list-item { display: flex; align-items: center; gap: .75rem; padding: .7rem; background: var(--cg-light); border-radius: 12px; margin-top: .6rem; }
.mock-list-item .dot { width: 34px; height: 34px; border-radius: 10px; background: var(--cg-grad); flex-shrink: 0; opacity: .85; }
.mock-list-item .lines { flex: 1; }
.mock-list-item .mock-bar { margin-bottom: .35rem; height: 7px; }
.mock-list-item .mock-bar:last-child { margin-bottom: 0; }
.mock-badge { font-size: .72rem; font-weight: 600; color: #1f8a57; background: #e3f6ec; border-radius: 50px; padding: .2rem .6rem; white-space: nowrap; }

/* ---------- Mission / vision ---------- */
.mv-card {
  border-radius: var(--cg-radius);
  padding: 2.5rem;
  height: 100%;
  color: #fff;
  background: var(--cg-grad);
  position: relative;
  overflow: hidden;
}
.mv-card.alt { background: var(--cg-dark); }
.mv-card h3 { color: #fff; font-size: 1.4rem; }
.mv-card p { color: rgba(255, 255, 255, .85); margin-bottom: 0; font-size: 1.05rem; }
.mv-card .bi { font-size: 2.2rem; display: block; margin-bottom: 1rem; }
.mv-card::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  right: -70px; bottom: -70px;
  border-radius: 50%;
  border: 30px solid rgba(255, 255, 255, .08);
}

.activity-item {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: #fff;
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius);
  padding: 1.5rem 1.6rem;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.activity-item:hover { transform: translateY(-6px); box-shadow: var(--cg-shadow); border-color: transparent; }
.activity-item .icon-box { transition: transform .3s ease; }
.activity-item:hover .icon-box { transform: rotate(-8deg) scale(1.08); }
/* big faded step number in the corner */
.activity-item .num {
  position: absolute;
  right: 1rem;
  bottom: -.6rem;
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  opacity: .12;
  pointer-events: none;
}
.activity-item h3 { font-size: 1.05rem; margin: 0; padding-right: 2.5rem; position: relative; }

/* ---------- Contact ---------- */
.contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  align-content: center;
  background: #fff;
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius);
  padding: 1.5rem;
  height: 100%;
  width: 100%;
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.contact-card p, .contact-card a { margin: 0; font-size: .96rem; }
.contact-card a { color: var(--cg-ink); font-weight: 500; }
.contact-card a:hover { color: var(--cg-violet); }
.form-panel {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--cg-shadow);
  border: 1px solid var(--cg-border);
}
.form-panel .form-label { font-weight: 500; font-size: .92rem; color: var(--cg-ink); }
.form-panel .form-control,
.form-panel .form-select {
  border-radius: 12px;
  padding: .75rem 1rem;
  border-color: var(--cg-border);
  background-color: var(--cg-light);
}
.form-panel .form-control:focus,
.form-panel .form-select:focus {
  border-color: var(--cg-violet);
  box-shadow: 0 0 0 .2rem rgba(91, 58, 150, .15);
  background-color: #fff;
}
.map-wrap { border-radius: 24px; overflow: hidden; box-shadow: var(--cg-shadow); line-height: 0; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cg-dark); color: #9aa3c0; padding: 4.5rem 0 0; font-size: .95rem; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 1.25rem; }
.site-footer p { color: #9aa3c0; }
.site-footer a { color: #9aa3c0; transition: color .2s ease; }
.site-footer a:hover { color: #fff; }
/* .footer-logo { height: 46px; width: auto; } */
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .75rem; margin-bottom: .9rem; }
.footer-contact i { color: #c58bd8; margin-top: .2rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 3rem; padding: 1.5rem 0; font-size: .88rem; }

/* ---------- Floating buttons ---------- */
.wa-float,
.back-top {
  position: fixed;
  right: 20px;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 1030;
  border: 0;
  transition: transform .25s ease, opacity .25s ease, visibility .25s;
}
.wa-float { bottom: 20px; background: #25d366; color: #fff; font-size: 1.6rem; box-shadow: 0 12px 24px -10px rgba(37, 211, 102, .8); }
.wa-float:hover { color: #fff; transform: scale(1.08); }
.back-top {
  bottom: 86px;
  width: 44px; height: 44px;
  right: 25px;
  background: #fff;
  color: var(--cg-violet);
  box-shadow: var(--cg-shadow);
  opacity: 0;
  visibility: hidden;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { transform: translateY(-3px); }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Small screens ---------- */
@media (max-width: 767.98px) {
  .section { padding: 4rem 0; }
  .cta-band { padding: 2.5rem 1.5rem; text-align: center; border-radius: 22px; }
  .page-header { padding: 3.5rem 0 3rem; }
  .solution-block + .solution-block { margin-top: 4rem; }
  .form-panel { padding: 1.75rem 1.25rem; }
  .map-wrap iframe { height: 320px; }
}
@media (max-width: 575.98px) {
  .card-cg, .solution-card { padding: 1.6rem; }
  .brand-tile { height: 78px; font-size: 1.35rem; }
  .mv-card { padding: 2rem; }
  .hero-points { flex-direction: column; align-items: center; }
  .brand-text { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-svg .float-a, .hero-svg .float-b, .hero-svg .float-c, .hero-svg .blink { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card-cg, .solution-card, .brand-tile { transition: none; }
  .step-num::before, .step-num::after, .steps-row .step::after { animation: none !important; }
  .js .steps-row .reveal .step-num span, .js .steps-row .reveal .step::after { transform: none; animation: none; }
}

/* Keep anchored sections clear of the sticky navbar */
[id] { scroll-margin-top: 90px; }

/* Even out heading line breaks (avoids a single orphan Chinese character) */
h1, h2, .section-heading { text-wrap: balance; }

/* Screenshot-style mockup (e.g. Lead Management System dashboard) */
.mock.mock-img { max-width: 100%; padding: .75rem .75rem .85rem; transition: transform .3s ease; }
.mock.mock-img .mock-top { margin: .15rem 0 .65rem .35rem; }
.mock.mock-img img { border-radius: 12px; display: block; width: 100%; height: auto; border: 1px solid var(--cg-border); }
.mock.mock-img:hover { transform: translateY(-4px); }

/* Phone screenshot (e.g. Insurance App) */
.phone-shot { position: relative; isolation: isolate; max-width: 300px; margin: 0 auto; }
.phone-shot::before {
  content: '';
  position: absolute;
  inset: 12% -18% 8%;
  border-radius: 50%;
  background: var(--cg-grad);
  opacity: .16;
  filter: blur(8px);
  z-index: -1;
}
.phone-shot img { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgba(45, 25, 90, .28)); transition: transform .3s ease; }
.phone-shot:hover img { transform: translateY(-4px); }
@media (max-width: 575.98px) { .phone-shot { max-width: 250px; } }

/* Two-phone composition (Insurance App) — wider frame, shadows are drawn in the image */
.phone-shot.phone-shot-wide { max-width: 470px; }
.phone-shot.phone-shot-wide img { filter: none; }
.phone-shot.phone-shot-wide::before { inset: 12% 0 6%; }
@media (max-width: 575.98px) { .phone-shot.phone-shot-wide { max-width: 100%; } }
