/* ============================================================================
   eGate Messaging Sdn Bhd — public website styles
   Reimagined, production-ready, fully responsive.
   ========================================================================== */

:root {
  /* Palette */
  --navy: #0a1a33;
  --navy-2: #0f2547;
  --navy-3: #16345f;
  --ink: #16263c;
  --blue: #1d6fd6;
  --blue-soft: #e8f1fd;
  --teal: #0fb5a8;
  --teal-soft: #e3f7f5;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --line: #e3eaf3;
  --text: #2a3a50;
  --muted: #5c6d85;
  --white: #ffffff;
  --on-dark: #d9e6f7;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Effects */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(10, 26, 51, .06), 0 4px 14px rgba(10, 26, 51, .05);
  --shadow-md: 0 4px 12px rgba(10, 26, 51, .08), 0 14px 40px rgba(10, 26, 51, .10);
  --shadow-lg: 0 10px 30px rgba(10, 26, 51, .14), 0 30px 80px rgba(10, 26, 51, .16);
  --grad: linear-gradient(120deg, var(--blue) 0%, #2f8de8 55%, var(--teal) 130%);
  --grad-dark: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #12305e 100%);

  --container: 1180px;
  --header-h: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
input, select, textarea { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.22; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
::selection { background: var(--blue); color: #fff; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 10px;
}
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none !important; transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(29, 111, 214, .35); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(29, 111, 214, .45); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-outline { background: transparent; border-color: currentColor; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.btn-outline-dark { color: var(--navy); border-color: rgba(10, 26, 51, .35); }
.btn-outline-dark:hover { background: var(--blue-soft); }
.btn-white { background: #fff; color: var(--navy); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .25s, box-shadow .25s, height .25s;
  background: transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 26, 51, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(10, 26, 51, .25);
  height: 64px;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand img { height: 48px; width: auto; transition: height .25s; }
.site-header.is-scrolled .brand img { height: 40px; }
.brand-tag { display: none; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: rgba(255, 255, 255, .85); font-weight: 500; font-size: .97rem;
  padding: 9px 14px; border-radius: 999px; text-decoration: none; transition: color .15s, background .15s;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.main-nav a.is-active { color: #fff; background: rgba(255, 255, 255, .16); }
.header-cta { display: flex; align-items: center; gap: 12px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  width: 44px; height: 44px; border-radius: 10px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2.5px; margin: 5px auto; border-radius: 2px;
  background: #fff; transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--grad-dark);
  padding: calc(var(--header-h) + 56px) 0 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(29, 111, 214, .35), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(15, 181, 168, .22), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("/assets/img/Circuitry.svg");
  background-size: 380px; background-position: 90% 20%;
  mask-image: linear-gradient(120deg, transparent 30%, #000 100%);
  -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center;
  padding-bottom: 48px;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--on-dark); font-size: 1.12rem; max-width: 34em; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-trust { display: flex; align-items: center; gap: 14px; color: var(--on-dark); font-size: .92rem; flex-wrap: wrap; }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars span {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--navy-2);
  display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff; margin-right: -8px;
}
.hero-visual { position: relative; }
.hero-visual img { border-radius: 20px; box-shadow: var(--shadow-lg); width: 100%; }
.hero-chip {
  position: absolute; background: rgba(255, 255, 255, .96); color: var(--navy);
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600;
  animation: float 5s ease-in-out infinite;
}
.hero-chip .chip-ic {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--teal-soft); color: var(--teal); font-size: 1.1rem;
}
.hero-chip.c1 { top: 26px; left: -26px; }
.hero-chip.c2 { bottom: 42px; right: -18px; animation-delay: 2.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Partner strip under hero */
.partner-strip {
  position: relative; z-index: 2; background: var(--navy-2);
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 34px 0;
}
.partner-strip .container {
  display: flex; align-items: center; justify-content: center; gap: 22px 36px; flex-wrap: wrap;
}
.partner-strip .strip-label {
  color: rgba(217, 230, 247, .8); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.partner-strip img {
  height: 34px; width: auto; opacity: .88; filter: brightness(0) invert(1);
  transition: opacity .2s, transform .2s;
}
.partner-strip img:hover { opacity: 1; transform: scale(1.06); }

/* ---------- Stats ---------- */
.stats-band { background: var(--bg); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 34px 10px; }
.stat .num {
  font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; color: var(--navy); line-height: 1.1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl { color: var(--muted); font-size: .95rem; margin-top: 4px; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-2 > *, .grid-3 > *, .form-grid > * { min-width: 0; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #cfddf0; }
.card-media { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.05); }
/* Logos & wordmarks (products/partners): contain, don't crop */
.card-media--logo { aspect-ratio: 16/10; background: #f6f9fd; }
.card-media--logo img { object-fit: contain; padding: 18px; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a:hover { color: var(--blue); }
.card-tag { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.card-desc { color: var(--muted); font-size: .97rem; margin: 0; }
.card-feats { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 7px; }
.card-feats li { position: relative; padding-left: 22px; font-size: .93rem; color: var(--text); }
.card-feats li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--teal); font-weight: 800; font-size: .9rem;
}
.card-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* Feature-card (icon style) */
.feat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 28px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s, box-shadow .2s;
}
.feat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feat-ic {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); font-size: 1.5rem;
}
.feat-card:nth-child(3n+2) .feat-ic { background: var(--teal-soft); color: var(--teal); }
.feat-card h3 { margin: 0; font-size: 1.12rem; }
.feat-card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Partner / vendor logo cards (About page) */
.partner-logo-card {
  display: flex; align-items: center; justify-content: center;
  min-height: 112px; padding: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.partner-logo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.partner-logo-card img {
  max-height: 56px; width: auto; max-width: 100%; object-fit: contain;
}

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: 20px; box-shadow: var(--shadow-md); width: 100%; }
.split-media .badge-float {
  position: absolute; bottom: 24px; left: -20px; background: var(--navy); color: #fff;
  border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow-lg); max-width: 240px;
}
.split-media .badge-float strong { display: block; color: var(--teal); font-size: 1.2rem; }
.split-media .badge-float span { font-size: .85rem; color: var(--on-dark); }
.check-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; font-size: 1.02rem; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%; background: var(--teal-soft); color: var(--teal);
  display: grid; place-items: center; font-weight: 800; font-size: .85rem;
}

/* ---------- Video ---------- */
.video-wrap { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); background: #000; }
.video-wrap video { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }

/* ---------- Testimonials ---------- */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.t-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.t-stars { color: #f5a623; font-size: 1.05rem; letter-spacing: 2px; }
.t-text { margin: 0; font-size: .99rem; color: var(--text); flex: 1; }
.t-who { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.05rem;
}
.t-who strong { display: block; font-size: .95rem; color: var(--navy); }
.t-who span { font-size: .84rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--grad-dark); position: relative; overflow: hidden; color: #fff;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 85% 20%, rgba(29, 111, 214, .4), transparent 60%);
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin-bottom: 8px; }
.cta-inner p { color: var(--on-dark); margin: 0; max-width: 34em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 50px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: var(--on-dark); text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { height: 42px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: .93rem; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .95rem; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: .95rem; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ic { color: var(--teal); font-weight: 700; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .87rem; color: rgba(217, 230, 247, .75);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--grad-dark); color: #fff; position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 64px) 0 64px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 380px at 90% -10%, rgba(29, 111, 214, .35), transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: var(--on-dark); max-width: 42em; margin: 0; font-size: 1.08rem; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 34px;
}
/* Vertical stacks: side-column card groups and form-level sections */
.stack { display: flex; flex-direction: column; gap: 24px; }
.form-card form.stack { gap: 20px; }
.form-card form.stack .btn[type="submit"] { align-self: flex-start; margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 0; min-width: 0; }
.form-field label { font-weight: 600; font-size: .92rem; color: var(--navy); }
.form-field label .req { color: var(--blue); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; color: var(--text); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; background: #fff; width: 100%; max-width: 100%; min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 111, 214, .15);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .87rem; color: var(--muted); }
.form-msg { display: none; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; }
.form-msg.ok { display: block; background: var(--teal-soft); color: #0a7f75; border: 1px solid #a8e8e0; }
.form-msg.err { display: block; background: #fdecec; color: #a33434; border: 1px solid #f3c2c2; }
.rating-pick { display: flex; gap: 6px; font-size: 1.7rem; }
.rating-pick button {
  background: none; border: 0; cursor: pointer; color: #d5deea; padding: 0 2px;
  transition: color .15s, transform .15s; font-size: inherit; line-height: 1;
}
.rating-pick button.on, .rating-pick button:hover { color: #f5a623; transform: scale(1.12); }

/* Info cards (contact page) */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 26px; display: flex; gap: 16px; align-items: flex-start;
}
.info-card .feat-ic { flex: 0 0 auto; }
.info-card h3 { font-size: 1.05rem; margin: 0 0 4px; }
.info-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.info-card a { font-weight: 600; }

/* ---------- Filters (services/products) ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-chip {
  font: inherit; font-size: .92rem; font-weight: 600; color: var(--navy);
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 9px 20px; cursor: pointer; transition: all .15s;
}
.filter-chip:hover { border-color: var(--blue); }
.filter-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Modal (service/product detail) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 26, 51, .6); padding: 20px; backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: #fff; border-radius: 18px; width: 100%; max-width: 780px; max-height: 88vh;
  overflow-y: auto; box-shadow: var(--shadow-lg); transform: translateY(14px); transition: transform .2s;
}
.modal.open .modal-box { transform: translateY(0); }
.modal-media { height: 260px; overflow: hidden; background: var(--bg-alt); position: relative; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; cursor: pointer; background: rgba(10, 26, 51, .55); color: #fff; font-size: 1.2rem;
  display: grid; place-items: center; transition: background .15s;
}
.modal-close:hover { background: var(--navy); }
.modal-body { padding: 30px; }
.modal-body h2 { margin-bottom: 6px; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Chat dock: Telegram + self-hosted web chat ---------- */
.chat-dock {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
}
.chat-btn {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  color: #fff; display: grid; place-items: center; transition: transform .2s;
  box-shadow: 0 10px 30px rgba(10, 26, 51, .35);
  text-decoration: none !important; line-height: 1;
}
.chat-btn:hover { transform: scale(1.07); text-decoration: none !important; }
.chat-btn--telegram { background: var(--grad); }
.chat-btn--web { background: var(--navy); }

/* Embeddable Telegram iframe panel (only when a non-t.me URL is configured) */
.tg-panel {
  width: 360px; max-width: calc(100vw - 44px);
  height: 480px; max-height: calc(100vh - 190px); border-radius: 16px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  display: none; flex-direction: column;
}
.tg-panel.open { display: flex; }
.tg-panel iframe { flex: 1; border: 0; width: 100%; }
.tg-panel-head {
  background: var(--navy); color: #fff; padding: 10px 16px; font-weight: 600; font-size: .92rem;
  display: flex; align-items: center; justify-content: space-between;
}
.tg-panel-head button { background: none; border: 0; color: #fff; font-size: 1.1rem; cursor: pointer; }

/* Self-hosted web chat panel */
.webchat-panel {
  width: 360px; max-width: calc(100vw - 44px);
  height: 480px; max-height: calc(100vh - 190px); border-radius: 16px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  display: none; flex-direction: column;
}
.webchat-panel.open { display: flex; }
.webchat-head {
  background: var(--navy); color: #fff; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; flex: 0 0 auto;
}
.webchat-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--grad); flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}
.webchat-head .who { flex: 1; min-width: 0; }
.webchat-head .who strong { display: block; font-size: .95rem; }
.webchat-head .who span { font-size: .76rem; color: var(--on-dark); }
.webchat-head .close { background: none; border: 0; color: #fff; font-size: 1.15rem; cursor: pointer; line-height: 1; padding: 4px; }
.webchat-body {
  flex: 1; overflow-y: auto; padding: 16px; background: var(--bg-alt);
  display: flex; flex-direction: column; gap: 10px;
}
.webchat-msg {
  max-width: 84%; padding: 10px 14px; border-radius: 14px; font-size: .93rem;
  line-height: 1.5; white-space: pre-wrap; word-break: break-word; animation: msgIn .18s ease;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.webchat-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--text); border-bottom-left-radius: 4px; }
.webchat-msg.user { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.webchat-msg.typing { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--muted); font-style: italic; }
.webchat-input {
  flex: 0 0 auto; display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff;
}
.webchat-input textarea {
  flex: 1; resize: none; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit; font-size: .93rem; max-height: 96px; line-height: 1.4;
}
.webchat-input textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 111, 214, .15); }
.webchat-input button {
  border: 0; background: var(--grad); color: #fff; border-radius: 10px; padding: 0 16px;
  font-weight: 600; cursor: pointer; align-self: stretch;
}
.webchat-input button:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Recolor the brand's orange SVG icons to the site teal accent */
.tint-teal { filter: hue-rotate(160deg) saturate(1.25) brightness(1.05); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-chip { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Breadcrumb-ish / misc ---------- */
.ticket-badge {
  display: inline-block; background: var(--navy); color: #fff; font-weight: 700;
  padding: 6px 14px; border-radius: 999px; font-size: .95rem; letter-spacing: .04em;
}
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.breadcrumb a { color: inherit; }
.breadcrumb a:hover { color: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .hero-visual { max-width: 620px; }
  .grid-3, .t-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 89;
    background: var(--navy); flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px 18px 22px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s; border-top: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 30px 60px rgba(10, 26, 51, .5);
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 13px 14px; border-radius: 10px; }
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .grid-3, .grid-2, .t-grid, .info-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 22px 8px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-chip.c1 { left: 8px; top: 12px; }
  .hero-chip.c2 { right: 8px; bottom: 18px; }
  .split-media .badge-float { left: 10px; bottom: 14px; }
  .partner-strip img { height: 26px; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner .btn { width: 100%; }
  .form-card { padding: 22px; }
  .form-card form.stack .btn[type="submit"] { width: 100%; }
  .container { padding: 0 16px; }
}

/* Print */
@media print {
  .site-header, .site-footer, .cta-band, .chat-dock, .hero-actions { display: none !important; }
  body { font-size: 12pt; }
  .hero { background: #fff; color: #000; padding: 20px 0; }
  .hero h1 { color: #000; }
}
