/* SEONGYUN SYSTEM — Global Styles */
:root {
  --navy-950: #0B1638;
  --navy-900: #111E48;
  --navy-800: #1A2960;
  --navy-700: #253B82;
  --navy-600: #3352A8;
  --navy-500: #4A6BC4;
  --navy-200: #C8D2EA;
  --navy-100: #E5EAF5;
  --navy-50:  #F4F6FC;

  --ink-900: #0E1324;
  --ink-700: #2A3040;
  --ink-500: #5A6274;
  --ink-400: #8890A3;
  --ink-300: #B9BFCC;
  --ink-200: #DDE1EA;
  --ink-100: #EEF0F5;
  --ink-50:  #F8F9FB;

  --bg: #FFFFFF;
  --bg-soft: #F8F9FB;

  --accent: #F6C343; /* 포인트 옐로우 */
  --accent-hover: #F0B62B;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 4px 16px rgba(17, 30, 72, 0.06);
  --shadow-md: 0 14px 40px rgba(17, 30, 72, 0.10);
  --shadow-lg: 0 24px 60px rgba(17, 30, 72, 0.14);

  --container: 1240px;
  --gutter: 24px;

  --header-h: 84px;

  --t-fast: 180ms cubic-bezier(.2,.7,.3,1);
  --t-mid:  360ms cubic-bezier(.2,.7,.3,1);
  --t-slow: 700ms cubic-bezier(.2,.7,.3,1);

  --font-ko: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --font-en: "Inter", "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ko);
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.en { font-family: var(--font-en); letter-spacing: 0.04em; }
.mono { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy-700);
}
.eyebrow--on-dark { color: var(--navy-200); }

.section-title {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 10px 0 18px;
  color: var(--ink-900);
}
.section-title .accent { color: var(--navy-700); }
.section-sub {
  color: var(--ink-500);
  font-size: 17px;
  max-width: 640px;
  text-wrap: pretty;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn--primary { background: var(--navy-800); color: #fff; }
.btn--primary:hover { background: var(--navy-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); }
.btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn--outline { background: transparent; color: var(--navy-800); border: 1px solid var(--navy-200); }
.btn--outline:hover { background: var(--navy-50); border-color: var(--navy-600); }
.btn .arr { transition: transform var(--t-fast); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  transition: background var(--t-mid), box-shadow var(--t-mid), color var(--t-mid), backdrop-filter var(--t-mid);
  color: #fff;
  background: linear-gradient(to bottom, rgba(7,13,28,0.62) 0%, rgba(7,13,28,0.28) 60%, rgba(7,13,28,0) 100%);
}
.site-header--scrolled {
  background: rgba(255,255,255,0.88);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 rgba(17,30,72,0.08);
  color: var(--ink-900);
}
.site-header--solid {
  background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  color: var(--ink-900);
  box-shadow: 0 1px 0 rgba(17,30,72,0.08);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.brand-mark {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-name {
  font-family: var(--font-en);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 19px;
}
.brand-sub {
  font-size: 11px;
  color: currentColor;
  opacity: 0.62;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 2px;
  font-family: var(--font-en);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav a {
  position: relative;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.003em;
  color: currentColor;
  opacity: 0.92;
  border-radius: 8px;
}
.nav a::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: width 0.32s cubic-bezier(.2,.7,.3,1), left 0.32s cubic-bezier(.2,.7,.3,1);
  opacity: 1;
}
.nav a:hover { opacity: 1; }
.nav a:hover::after,
.nav a.is-active::after { width: calc(100% - 44px); left: 22px; }
.nav a.is-active { font-weight: 700; opacity: 1; }
.nav a.is-active::after { height: 2px; }
.nav a[data-external] .ext-arr {
  display: inline-block;
  font-size: 11px;
  margin-left: 3px;
  transform: translateY(-1px);
  opacity: 0.7;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav a { transition: color var(--t-fast), opacity var(--t-fast), transform 0.38s cubic-bezier(.33,1,.68,1); }
.nav a[data-external]:hover .ext-arr { transform: translate(2px, -3px); opacity: 1; }
.nav a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}
.site-header--scrolled .nav a:focus-visible,
.site-header--solid .nav a:focus-visible {
  box-shadow: 0 0 0 2px rgba(26,41,96,0.25);
}

/* When mega menu is open, spread nav items outward from center (5 items with support) */
.site-header.is-mega-open .nav a[data-nav="about"]    { transform: translateX(-24px); }
.site-header.is-mega-open .nav a[data-nav="dev"]      { transform: translateX(-12px); }
.site-header.is-mega-open .nav a[data-nav="products"] { transform: translateX(0); }
.site-header.is-mega-open .nav a[data-nav="mall"]     { transform: translateX(12px); }
.site-header.is-mega-open .nav a[data-nav="support"]  { transform: translateX(24px); }

/* Mega columns: fade only, no position transition */
.mega-col { transition: opacity 0.22s ease 0.04s; }

.header-cta {
  display: flex; align-items: center; gap: 12px;
  position: relative;
}
.header-cta::before {
  content: "";
  width: 1px; height: 18px;
  background: currentColor;
  opacity: 0.18;
  margin-right: 4px;
}
.lang-switch {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.06em;
  opacity: 0.82;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: background var(--t-fast), color var(--t-fast), opacity var(--t-fast);
  outline: none;
  user-select: none;
}
.lang-switch:hover { opacity: 1; }
.lang-switch:hover { background: rgba(255,255,255,0.1); }
.site-header--scrolled .lang-switch:hover,
.site-header.is-mega-open .lang-switch:hover,
.site-header--solid .lang-switch:hover { background: var(--ink-100); }
.lang-switch:focus-visible { box-shadow: 0 0 0 2px rgba(26,41,96,0.2); }
.lang-globe { opacity: 0.9; }
.lang-current {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.lang-caret {
  opacity: 0.7;
  transition: transform var(--t-fast);
}
.lang-switch.is-open .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  box-shadow: 0 16px 32px -8px rgba(11,22,56,0.16);
  min-width: 160px;
  display: none;
  z-index: 10;
  color: var(--ink-900);
}
.lang-switch.is-open .lang-menu { display: block; }
.lang-menu li {
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--font-en);
  letter-spacing: 0.04em;
  color: var(--ink-700);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.lang-menu li:hover { background: var(--bg-soft); color: var(--navy-900); }
.lang-menu li.is-on {
  background: var(--navy-50);
  color: var(--navy-800);
  font-weight: 700;
}
.login-link {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.06em;
  opacity: 0.82;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), opacity var(--t-fast);
  outline: none;
}
.login-link:hover { opacity: 1; }
.login-link span {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.login-link .login-ico { opacity: 0.9; }
.login-link:hover { background: rgba(255,255,255,0.1); }
.site-header--scrolled .login-link:hover,
.site-header.is-mega-open .login-link:hover,
.site-header--solid .login-link:hover { background: var(--ink-100); }
.login-link:focus-visible { box-shadow: 0 0 0 2px rgba(26,41,96,0.2); }

.mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  color: currentColor;
}
.mobile-toggle span {
  display: block;
  height: 2px; width: 22px;
  margin: 5px auto; background: currentColor;
  transition: transform var(--t-fast);
}

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: #fff;
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 16px 8px;
  border-bottom: 1px solid var(--ink-100);
  font-size: 18px;
  color: var(--ink-900);
}

/* ---------- Footer (compact corporate) ---------- */
.site-footer {
  background: var(--navy-950);
  color: #A7B1D1;
  padding: 36px 0 32px;
  font-size: 13px;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 350px;
  align-items: center;
}
.footer-brand .brand { gap: 18px; }
.footer-brand .brand-mark { width: 48px; height: 48px; }
.footer-brand .brand-mark svg { width: 48px; height: 48px; }
.footer-brand .brand-name { color: #fff; font-size: 19px; }
.footer-brand .brand-sub { color: #8E98B8; font-size: 12px; }

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 4px;
}
.footer-nav a {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: opacity var(--t-fast);
}
.footer-nav a:hover { opacity: 0.7; }
.footer-meta {
  margin: 0;
  color: #A7B1D1;
  font-size: 13px;
  line-height: 1.7;
}
.footer-meta .sep {
  display: inline-block;
  margin: 0 14px;
  opacity: 0.35;
}
.footer-copy {
  margin: 0;
  color: #6C7699;
  font-size: 12px;
}

/* Footer — light variant (home 외 페이지) */
body:not([data-page="home"]) .site-footer {
  background: #E5E8EF;
  color: var(--ink-500);
  border-top: 1px solid var(--ink-200);
}
body:not([data-page="home"]) .footer-brand .brand,
body:not([data-page="home"]) .footer-brand .brand-name { color: var(--ink-900) !important; }
body:not([data-page="home"]) .footer-brand .brand-sub { color: var(--ink-500); }
body:not([data-page="home"]) .footer-nav a { color: var(--ink-900); }
body:not([data-page="home"]) .footer-meta { color: var(--ink-500); }
body:not([data-page="home"]) .footer-copy { color: var(--ink-400); }

/* ---------- Section scaffolding ---------- */
.section { padding: 120px 0; position: relative; }
.section--tight { padding: 80px 0; }
.section--dark { background: var(--navy-950); color: #fff; }
.section--soft { background: var(--bg-soft); }

.section-head {
  margin-bottom: 56px;
  max-width: 740px;
}
.section--dark .section-title { color: #fff; }
.section--dark .section-title .accent { color: var(--navy-200); }
.section--dark .section-sub { color: #A7B1D1; }

/* ---------- Fade-in (IntersectionObserver) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(.2,.7,.3,1), transform 800ms cubic-bezier(.2,.7,.3,1);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }

/* Slide in from the left */
.reveal--left {
  transform: translateX(-120px);
  transition: opacity 1100ms cubic-bezier(.2,.7,.3,1), transform 1100ms cubic-bezier(.2,.7,.3,1);
}
.reveal--left.is-in { transform: translateX(0); }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  height: 520px;
  padding-top: var(--header-h);
  background:
    linear-gradient(rgba(11,22,56,0.55), rgba(11,22,56,0.55)),
    url("hero-bg.jpg") center/cover no-repeat,
    var(--navy-950);
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.page-hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.page-hero__inner {
  position: relative; z-index: 1;
  width: 100%;
  text-align: center;
}
.page-hero__crumbs {
  display: flex; gap: 8px; align-items: center;
  justify-content: center;
  font-size: 13px; color: rgba(255,255,255,0.7);
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}
.page-hero__crumbs span { opacity: 0.6; }
.page-hero h1 {
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: rgba(255,255,255,0.95);
}
.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  max-width: 620px;
  margin: 20px auto 0;
}

/* ---------- Page breadcrumb (hero 아래) ---------- */
.page-crumbs {
  background: #fff;
  border-bottom: 1px solid rgba(17,30,72,0.07);
  padding: 18px 0;
}
.page-crumbs__list {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-500);
}
.page-crumbs__list a {
  color: var(--ink-500);
  transition: color var(--t-fast);
}
.page-crumbs__list a:hover { color: var(--navy-700); }
.page-crumbs__list .sep { color: var(--ink-300); }
.page-crumbs__list .current {
  color: var(--ink-900);
  font-weight: 600;
}

/* Placeholder imagery */
.ph {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(17,30,72,0.06) 0px,
      rgba(17,30,72,0.06) 10px,
      rgba(17,30,72,0.03) 10px,
      rgba(17,30,72,0.03) 20px
    ),
    var(--navy-50);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-400);
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}
.ph--dark {
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.04) 0px,
      rgba(255,255,255,0.04) 10px,
      rgba(255,255,255,0.02) 10px,
      rgba(255,255,255,0.02) 20px),
    var(--navy-900);
  color: #6C7699;
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--navy-200);
}

/* Responsive breakpoints */
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav, .header-cta { display: none; }
  .mobile-toggle { display: block; }
  .section { padding: 80px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-nav { gap: 18px; }
  .footer-meta .sep { display: none; }
  .footer-meta br.mobile-br { display: block; }
}


/* ============ Floating Action Widget ============ */
.fab-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 180;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}
.fab-stack > * { pointer-events: auto; }

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(11, 22, 56, 0.45), 0 4px 10px rgba(11, 22, 56, 0.15);
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  position: relative;
}
.fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 18px 36px -10px rgba(11, 22, 56, 0.55), 0 6px 14px rgba(11, 22, 56, 0.18);
}
.fab:active { transform: translateY(0) scale(0.98); }

.fab--social {
  background: var(--navy-800);
  color: #fff;
}
.fab--social .fab__plus {
  display: inline-flex;
  transition: transform 0.35s cubic-bezier(.65,.05,.36,1);
}
.is-open-social .fab--social {
  background: var(--ink-900);
}
.is-open-social .fab--social .fab__plus {
  transform: rotate(135deg); /* + becomes × (minus-ish) */
}

.fab--chat {
  background: var(--accent);
  color: var(--navy-900);
}
.fab--chat:hover { background: var(--accent-hover); }
.fab--chat::after {
  /* ping indicator */
  content: "";
  position: absolute;
  top: 10px; right: 10px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #E53E5E;
  box-shadow: 0 0 0 2px #fff;
  animation: fabPing 2s ease-in-out infinite;
}
@keyframes fabPing {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}

/* Social stack */
.fab-socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  position: absolute;
  bottom: 140px; /* above the + button */
  right: 0;
}
.fab-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--fab-bg, #fff);
  color: var(--fab-fg, #fff);
  box-shadow: 0 10px 24px -6px rgba(11, 22, 56, 0.4), 0 3px 8px rgba(11, 22, 56, 0.12);
  opacity: 0;
  transform: translateY(12px) scale(0.6);
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(.34,1.56,.64,1), box-shadow var(--t-fast);
  position: relative;
}
.fab-item:hover {
  box-shadow: 0 14px 30px -8px rgba(11, 22, 56, 0.5), 0 5px 12px rgba(11, 22, 56, 0.18);
}
.fab-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.fab-item__label {
  position: absolute;
  right: 62px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink-900);
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast);
  font-weight: 500;
}
.fab-item__label::after {
  content: "";
  position: absolute;
  top: 50%; right: -4px;
  transform: translateY(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: var(--ink-900);
}
.fab-item:hover .fab-item__label { opacity: 1; }

.is-open-social .fab-socials {
  /* container just provides stacking */
}
.is-open-social .fab-item {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.is-open-social .fab-item:nth-child(1) { transition-delay: 0.04s; }
.is-open-social .fab-item:nth-child(2) { transition-delay: 0.1s; }
.is-open-social .fab-item:nth-child(3) { transition-delay: 0.16s; }

/* ============ Chatbot panel ============ */
.chatbot {
  position: absolute;
  right: 0;
  bottom: 74px; /* above the chat button */
  width: 340px;
  max-width: calc(100vw - 48px);
  height: 460px;
  max-height: calc(100vh - 140px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px -18px rgba(11, 22, 56, 0.4), 0 8px 20px rgba(11, 22, 56, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.26s ease, transform 0.26s cubic-bezier(.34,1.56,.64,1);
}
.is-open-chat .chatbot {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.chatbot__head {
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.chatbot__title {
  display: flex;
  gap: 10px;
  align-items: center;
}
.chatbot__title strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.chatbot__title span {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}
.chatbot__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.chatbot__close {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast);
}
.chatbot__close:hover { background: rgba(255,255,255,0.28); }

.chatbot__body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chatbot__msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  word-break: keep-all;
}
.chatbot__msg--bot {
  align-self: flex-start;
  background: #fff;
  color: var(--ink-900);
  border: 1px solid var(--ink-200);
  border-top-left-radius: 4px;
}
.chatbot__msg--user {
  align-self: flex-end;
  background: var(--navy-800);
  color: #fff;
  border-top-right-radius: 4px;
}
.chatbot__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.chatbot__quick button {
  border: 1px solid var(--ink-200);
  background: #fff;
  color: var(--navy-800);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.chatbot__quick button:hover {
  border-color: var(--navy-700);
  background: var(--navy-50);
}
.chatbot__input {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--ink-200);
  background: #fff;
}
.chatbot__input input {
  flex: 1;
  border: 0;
  font-size: 13px;
  font-family: inherit;
  padding: 8px 10px;
  background: var(--bg-soft);
  border-radius: 999px;
  outline: none;
  color: var(--ink-900);
}
.chatbot__input input:focus { box-shadow: 0 0 0 3px rgba(26,41,96,0.08); }
.chatbot__input button {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--navy-800);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast);
}
.chatbot__input button:hover { background: var(--navy-700); }

@media (max-width: 520px) {
  .fab-stack { right: 16px; bottom: 16px; gap: 12px; }
  .fab { width: 52px; height: 52px; }
  .fab-item { width: 48px; height: 48px; }
  .fab-item__label { display: none; }
  .fab-socials { bottom: 132px; }
  .chatbot { width: calc(100vw - 32px); height: 70vh; bottom: 68px; }
}


/* ============ Mega Menu (hover dropdown) ============ */
.site-header { --header-mega-h: 220px; }

/* Ensure scrolled/solid states when mega is open */
.site-header.is-mega-open {
  background: #fff;
  color: var(--ink-900);
  box-shadow: 0 1px 0 rgba(17,30,72,0.06);
}

.megapanel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--ink-100);
  box-shadow: 0 20px 30px -12px rgba(11,22,56,0.08);
  overflow: hidden;
  max-height: 0;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.28s ease, opacity 0.2s ease, min-height 0s 0.28s;
}
.site-header.is-mega-open .megapanel {
  max-height: 420px;
  min-height: 240px;
  opacity: 1;
  pointer-events: auto;
  transition: max-height 0.28s ease, opacity 0.2s ease, min-height 0s;
}
.megapanel__shade {
  position: fixed;
  left: 0; right: 0;
  top: var(--header-h);
  bottom: 0;
  background: rgba(11,22,56,0.38);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 90; /* below fixed header (z:100) but above page content */
}
body.is-mega-open .megapanel__shade {
  opacity: 1;
  pointer-events: auto;
}

.mega-col {
  position: absolute;
  top: 22px;
  left: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.22s ease 0.04s;
}
.mega-col.is-on {
  opacity: 1;
}
.mega-col a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 10px;
  font-size: 14px;
  color: var(--ink-700);
  font-weight: 500;
  line-height: 1.5;
  transition: color var(--t-fast), transform 0.2s ease;
  transform-origin: center center;
  white-space: nowrap;
}
.mega-col a:hover,
.mega-col a:focus {
  color: var(--navy-800);
  font-weight: 600;
  transform: scale(1.22);
}
.mega-col .mega-arr {
  font-size: 13px;
  color: var(--ink-400);
  font-weight: 400;
}
.mega-col a:hover .mega-arr { color: var(--navy-700); }

/* Highlight the active trigger while its column is being hovered */
.site-header .nav a.is-hover {
  color: var(--navy-800);
}
.site-header.is-mega-open .nav a {
  color: var(--ink-900);
}
.site-header.is-mega-open .nav a.is-hover {
  color: var(--navy-800);
  font-weight: 600;
}
.site-header.is-mega-open .nav a.is-hover::after {
  width: calc(100% - 40px);
  left: 20px;
  background: var(--navy-800);
}

@media (max-width: 960px) {
  .megapanel { display: none; }
}
