/* ============================================================
   AirBridge Technology — 天橋科技官方網站
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', 'Arial', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.666em;
  color: #666666;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: #3490AD; text-decoration: none; transition: color .25s, opacity .25s; }
a:hover { color: #005F7F; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { background: none; border: none; cursor: pointer; font-family: inherit; }

/* ---------- CSS Variables ---------- */
:root {
  --c-primary:    #005F7F;
  --c-secondary:  #3490AD;
  --c-btn:        #4C8CCC;
  --c-accent:     #FFDB3F;
  --c-light-blue: #77B5CD;
  --c-green:      #5ECD8F;
  --c-header:     #2D2D2D;
  --c-dark-text:  #2D2D2D;
  --c-mid:        #5E5E5E;
  --c-body:       #666666;
  --c-white:      #ffffff;
  --c-bg-gray:    #F8F8F8;
  --c-bg-blue:    #F0F4FE;
  --c-border:     #E8EBF0;

  --container-max: 1200px;
  --container-px:  48px;
  --header-h:      100px;

  --radius-btn:   3em;
  --radius-card:  8px;
  --radius-lg:    16px;

  --shadow-card:  0 4px 24px rgba(0,0,0,.08);
  --shadow-hover: 0 12px 40px rgba(0,0,0,.14);

  --trans: all .28s cubic-bezier(.4,0,.2,1);
}

/* ---------- Layout ---------- */
.container-xl {
  max-width: calc(var(--container-max) + var(--container-px) * 2);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.section-white { padding: 80px 0; }
.section.section-gray { padding: 72px 0; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
.logo-strip[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
.hero-section[id] { scroll-margin-top: 0; }

.section-white   { background: var(--c-white); }
.section-light   { background: var(--c-bg-blue); }
.section-gray    { background: var(--c-bg-gray); }

/* Dark teal — primary */
.section-dark-primary {
  background: var(--c-primary);
  position: relative;
}
.section-dark-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c-primary) 0%, #00415a 100%);
  z-index: 0;
}
.section-dark-primary > .container-xl { position: relative; z-index: 1; }

/* Dark secondary */
.section-dark-secondary {
  background: var(--c-secondary);
  position: relative;
}
.section-dark-secondary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #2a7a9a 0%, var(--c-primary) 100%);
  z-index: 0;
}
.section-dark-secondary > .container-xl { position: relative; z-index: 1; }

/* ---------- Typography utilities ---------- */
.section-h2 {
  font-family: 'Noto Sans TC', 'Inter', sans-serif;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--c-primary);
  margin-bottom: 14px;
}
h3 {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4em;
  color: var(--c-secondary);
}
.body-text {
  font-size: 15px;
  line-height: 1.8em;
  color: var(--c-body);
}
.body-text.muted { color: var(--c-mid); }
.text-white { color: #fff !important; }
.text-white-70 { color: rgba(255,255,255,.72) !important; }

.eyebrow-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--c-secondary);
  margin-bottom: 12px;
}
.eyebrow-light {
  color: rgba(255,255,255,.75);
}

.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-h2 {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-header.centered .body-text {
  margin: 12px auto 0;
  max-width: 580px;
}

/* ---------- Grid helpers ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col-rev { direction: rtl; }
.two-col-rev > * { direction: ltr; }
.two-col-gap-lg { gap: 80px; }

.four-col-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* ---------- Buttons ---------- */
/* Primary — #4C8CCC blue, pill shape */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25em;
  padding: 1em 1.66em;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--trans);
  text-decoration: none;
}
.btn-primary {
  background: var(--c-btn);
  color: #fff;
  border-color: var(--c-btn);
}
.btn-primary:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--c-primary);
  border-color: #fff;
}
.btn-accent {
  background: var(--c-accent);
  color: var(--c-primary);
  border-color: var(--c-accent);
  font-weight: 700;
}
.btn-accent:hover {
  background: #fff;
  color: var(--c-primary);
  border-color: #fff;
}
.btn-lg { font-size: 15px; padding: 1.1em 2em; }
.w-full { width: 100%; justify-content: center; }
.mt-24 { margin-top: 24px; }

/* ============================================================
   HEADER  — dark charcoal #2D2D2D, 100px, sticky
   ============================================================ */
.main-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1010;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
/* Scrolled state */
.main-header.is-stuck {
  background: #fff;
  border-bottom-color: var(--c-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.header-container {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 var(--container-px);
  gap: 24px;
  min-width: 0;
}

/* Logo */
.site-logo, .footer-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-img {
  height: 44px;
  width: auto;
  max-width: 180px;
  display: block;
  object-fit: contain;
}
.footer-logo {
  margin-bottom: 16px;
  display: inline-flex;
}
.footer-logo .logo-img {
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--c-btn) 0%, var(--c-secondary) 100%);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .05em;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-en {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  line-height: 1;
}
.logo-zh {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  line-height: 1;
}

/* Primary Nav */
.primary-nav {
  margin-left: auto;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.menu-item { position: relative; }

.menu-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  color: var(--c-dark-text);
  border-radius: 4px;
  transition: var(--trans);
  white-space: nowrap;
}
.menu-link:hover, .menu-item:hover > .menu-link {
  color: var(--c-primary);
  background: rgba(0, 95, 127, 0.06);
}
.menu-arrow {
  font-size: 10px;
  transition: transform .2s;
}
.menu-item.has-children:hover .menu-arrow,
.menu-item.has-children:focus-within .menu-arrow { transform: rotate(180deg); }

/* Dropdown */
.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  box-shadow: 0 16px 48px rgba(0,0,0,.14);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  min-width: 220px;
}
.menu-item.has-children:hover .submenu,
.menu-item.has-children:focus-within .submenu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.submenu-list { left: 0; transform: translateX(0) translateY(-6px); }
.menu-item:hover .submenu-list { transform: translateX(0) translateY(0); }

.submenu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-dark-text);
  border-radius: 4px;
  transition: var(--trans);
  white-space: nowrap;
}
.submenu-link:hover {
  background: var(--c-bg-blue);
  color: var(--c-secondary);
}
.submenu-link i { font-size: 14px; color: var(--c-secondary); opacity: .7; }

/* Mega menu */
.submenu-mega {
  display: flex;
  gap: 0;
  min-width: 600px;
  left: 0;
  transform: translateX(0) translateY(-6px);
}
.has-mega:hover .submenu-mega,
.has-mega:focus-within .submenu-mega {
  opacity: 1; pointer-events: all;
  transform: translateX(0) translateY(0);
}
.mega-col {
  flex: 1;
  padding: 12px 8px;
  border-right: 1px solid var(--c-border);
}
.mega-col:last-child { border-right: none; }
.mega-heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-secondary);
  padding: 4px 14px 10px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.header-btn { margin-left: 8px; font-size: 13px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0 -6px 0 0;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background .2s;
}
.hamburger:hover { background: rgba(0, 95, 127, .08); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-dark-text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile backdrop + drawer */
.mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(2, 22, 38, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.mobile-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  background: #fff;
  z-index: 1002;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform: translateY(calc(-100% - var(--header-h)));
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
  border-top: 1px solid var(--c-border);
  pointer-events: none;
}
.mobile-drawer.open {
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu { padding: 8px 0 calc(24px + env(safe-area-inset-bottom, 0px)); }
.mm-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-dark-text);
  width: 100%;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  transition: color .2s, background .2s;
}
a.mm-link:hover,
a.mm-link:focus-visible {
  color: var(--c-primary);
  background: var(--c-bg-blue);
}
button.mm-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
button.mm-link:hover,
button.mm-link:focus-visible {
  color: var(--c-primary);
  background: var(--c-bg-blue);
}
.mm-link i { font-size: 12px; color: var(--c-secondary); transition: transform .25s ease; }
.mm-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

.mm-sub {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease;
  background: var(--c-bg-blue);
}
.mm-sub.open { max-height: 900px; }

.mm-sub-hd {
  padding: 12px 20px 6px 28px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-secondary);
}
.mm-sub li a {
  display: block;
  padding: 11px 20px 11px 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-mid);
  border-bottom: 1px solid rgba(0, 95, 127, .08);
  transition: color .2s, background .2s;
}
.mm-sub li:last-child a { border-bottom: none; }
.mm-sub li a:hover,
.mm-sub li a:focus-visible {
  color: var(--c-primary);
  background: rgba(255, 255, 255, .65);
}

.mm-cta {
  padding: 20px 20px 8px;
  border-top: 1px solid var(--c-border);
  margin-top: 8px;
}
.mm-cta .btn { width: 100%; justify-content: center; }

body.mobile-nav-open { overflow: hidden; }

/* Hide event-related content (toggle off by removing .page-no-event from body) */
.page-no-event .hide-when-no-event { display: none !important; }

.page-no-event .stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-no-event .solutions-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.page-no-event .cases-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 880px;
  margin-inline: auto;
  gap: 28px;
}

.page-no-event .submenu-mega { min-width: 520px; }

.page-no-event .logo-ticker { animation-duration: 22s; }

/* ============================================================
   HERO  — full-screen with overlay + right panel
   Mirrors CI: min-height 100vh, bg-image + dark overlay,
   left text, right white card (stats panel)
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 0;    /* header is overlay */
  padding-top: var(--header-h);
}

/* Dark overlay (CI uses 0.5 opacity overlay over bg-image) */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(2,22,38,.88) 0%, rgba(0,47,63,.72) 100%);
}

.hero-bg-mesh {
  position: absolute; inset: 0; z-index: 0;
  background-color: #0a2438;
  background-image: url('../../images/hero-bg.jpg');
  background-size: cover;
  background-position: 65% center;
  background-repeat: no-repeat;
}
.hero-bg-mesh::after {
  display: none;
}

.hero-inner {
  position: relative; z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding-top: 60px;
  padding-bottom: 80px;
  min-height: calc(100vh - var(--header-h));
}

/* Left content */
.hero-content { flex: 1; max-width: 600px; }

.hero-eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(255,255,255,.72);
  margin-bottom: 16px;
}
.hero-eyebrow::before {
  display: none;
}

.hero-title {
  font-family: 'Noto Sans TC', 'Inter', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  color: #fff;
  margin-bottom: 20px;
}
.hero-title-em {
  font-style: normal;
  background: linear-gradient(90deg, var(--c-accent) 0%, #ffe88a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  /* CI: GothamBook 16px, white */
  font-size: 16px;
  line-height: 1.8em;
  color: rgba(255,255,255,.75);
  margin-bottom: 40px;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Right: White stats panel (CI hero right = white bg card) */
.hero-panel {
  flex: 0 0 auto;
  width: 300px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  padding: 28px 24px;
}
.panel-intro {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: 16px;
}
.panel-list {
  list-style: none;
  margin-bottom: 20px;
}
.panel-list li {
  position: relative;
  padding: 10px 0 10px 14px;
  font-size: 14px;
  color: var(--c-dark-text);
  border-bottom: 1px solid var(--c-border);
  line-height: 1.5;
}
.panel-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-secondary);
}
.panel-list li:last-child { border-bottom: none; }
.panel-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-secondary);
}
.panel-link:hover { color: var(--c-primary); }

/* Scroll cue */
.hero-scroll-cue {
  display: none;
}
.scroll-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.scroll-bar {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,.45) 0%, transparent 100%);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(1); opacity: .5; }
  50%       { transform: scaleY(1.25); opacity: 1; }
}

/* ============================================================
   LOGO TICKER STRIP  (white bg)
   ============================================================ */
.logo-strip {
  padding: 32px 0;
  background: #fff;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.strip-label {
  text-align: center;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #aaa;
  font-weight: 600;
  margin-bottom: 24px;
}

.logo-ticker-mask {
  overflow: hidden;
  position: relative;
}
.logo-ticker-mask::before,
.logo-ticker-mask::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1;
}
.logo-ticker-mask::before { left: 0; background: linear-gradient(to right, #fff, transparent); }
.logo-ticker-mask::after  { right: 0; background: linear-gradient(to left, #fff, transparent); }

.logo-ticker {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}
.logo-ticker:hover { animation-play-state: paused; }

.ticker-item {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #bbb;
  padding: 0 32px;
  transition: color .25s;
  cursor: default;
  white-space: nowrap;
}
.ticker-item:hover { color: var(--c-secondary); }
.ticker-sep { color: #ddd; font-size: 18px; line-height: 1; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   ABOUT  — stat cards
   ============================================================ */
.col-text .section-h2 { margin-top: 8px; margin-bottom: 20px; }
.col-text .body-text  { margin-bottom: 16px; }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 24px 18px;
  text-align: left;
  box-shadow: none;
}
.stat-card:hover {
  border-color: var(--c-light-blue);
}

.stat-icon {
  font-size: 24px;
  color: var(--c-secondary);
  margin-bottom: 12px;
}
.stat-val {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.3;
  margin-bottom: 6px;
}
.stat-plus {
  font-size: 22px;
  color: var(--c-secondary);
  vertical-align: middle;
}
.stat-label {
  font-size: 13px;
  color: var(--c-mid);
  font-weight: 400;
  line-height: 1.55;
}

/* ============================================================
   WHY US  — dark primary section, feature cards
   ============================================================ */
.feature-card {
  border-radius: var(--radius-card);
  padding: 0;
  overflow: hidden;
  transition: var(--trans);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.feature-card.feature-card-dark {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}
.feature-card.feature-card-dark:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
  border-color: rgba(255,219,63,.3);
}

.fc-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(0,0,0,.2);
}
.fc-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.feature-card:hover .fc-thumb img { transform: scale(1.04); }

.fc-body {
  padding: 20px 22px 24px;
  flex: 1;
}

.fc-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-card);
  background: rgba(255,219,63,.15);
  border: 1px solid rgba(255,219,63,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--c-accent);
  margin-bottom: 18px;
}
.fc-title {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}
.fc-desc {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,.62);
}

/* ============================================================
   SOLUTIONS  — 4-col cards with top accent line
   ============================================================ */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

.sol-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.sol-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* Top accent line (CI style) */
.sc-accent {
  height: 4px;
  width: 100%;
}
.sc-accent-primary   { background: linear-gradient(90deg, var(--c-primary), var(--c-secondary)); }
.sc-accent-secondary { background: linear-gradient(90deg, var(--c-secondary), var(--c-light-blue)); }

.sc-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-bg-blue);
}
.sc-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.sol-card:hover .sc-thumb img { transform: scale(1.04); }

.sc-icon {
  font-size: 28px;
  color: var(--c-secondary);
  margin: 24px 24px 0;
}
.sc-title {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-primary);
  padding: 16px 24px 0;
  line-height: 1.4;
}
.sc-desc {
  font-size: 13px;
  color: var(--c-mid);
  padding: 10px 24px 0;
  line-height: 1.7;
}
.sc-list {
  flex: 1;
  padding: 12px 24px 0;
  margin-bottom: 8px;
}
.sc-list li {
  font-size: 13px;
  color: var(--c-body);
  padding: 5px 0;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sc-list li:last-child { border-bottom: none; }
.sc-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-secondary);
  flex-shrink: 0;
}
.sc-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-secondary);
  padding: 16px 24px 24px;
  margin-top: auto;
  transition: gap .2s, color .2s;
}
.sc-more:hover { gap: 10px; color: var(--c-primary); }

/* ============================================================
   FEATURE LIST  (AI Vision left col)
   ============================================================ */
.feature-list-col { display: flex; flex-direction: column; gap: 0; }

.fl-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-border);
}
.fl-item:last-child { border-bottom: none; }

.fl-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(52,144,173,.1);
  border: 1px solid rgba(52,144,173,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--c-secondary);
  flex-shrink: 0;
  margin-top: 2px;
}
.fl-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 4px;
}
.fl-desc { font-size: 13px; color: var(--c-mid); line-height: 1.6; }

/* AI Vision — system screenshot */
.vision-screenshot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.18);
  border: 1px solid rgba(0,95,127,.12);
}
.vision-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

/* Dashboard card (legacy mockup — kept for reference) */
.dashboard-card {
  background: #1A2235;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
}

.dash-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background: #151C2C;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-dot.r { background: #ef4444; }
.dash-dot.y { background: #f59e0b; }
.dash-dot.g { background: #22c55e; }
.dash-title-bar { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.4); margin-left: 6px; font-family: 'Inter', monospace; }

.dash-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }

.dash-result-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash-result {
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}
.dash-result.pass { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.25); }
.dash-result.ng   { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.25); }
.dash-result > i { font-size: 20px; margin-bottom: 6px; }
.pass > i { color: #22c55e; }
.ng   > i { color: #ef4444; }
.dr-label { font-size: 11px; color: rgba(255,255,255,.4); margin-bottom: 4px; }
.dr-val { font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 800; }
.pass .dr-val { color: #22c55e; }
.ng   .dr-val { color: #ef4444; }

.db-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.db-label { font-size: 11px; color: rgba(255,255,255,.5); width: 56px; flex-shrink: 0; }
.db-track { flex: 1; height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; }
.db-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }
.db-fill.red  { background: linear-gradient(90deg, #ef4444, #f97316); }
.db-fill.blue { background: linear-gradient(90deg, var(--c-btn), var(--c-secondary)); }
.db-val { font-size: 12px; font-weight: 700; color: #fff; font-family: 'Inter', sans-serif; width: 28px; text-align: right; }
.db-val.red { color: #ef4444; }

.dash-stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.ds-item { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 6px; padding: 10px; text-align: center; }
.ds-val { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.ds-val.red { color: #ef4444; }
.ds-label { font-size: 10px; color: rgba(255,255,255,.4); line-height: 1.3; }

.dh-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.5); margin-bottom: 8px; }
.dh-grid { display: grid; grid-template-columns: repeat(8,1fr); gap: 3px; }
.dh-cell { aspect-ratio: 1; border-radius: 3px; }
.dh-cell.low { background: rgba(52,144,173,.2); }
.dh-cell.mid { background: rgba(249,115,22,.5); }
.dh-cell.hi  { background: rgba(239,68,68,.8); }

/* ============================================================
   MPS  — Gantt chart mockup
   ============================================================ */
.gantt-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.mps-layout { align-items: start; }
.mps-layout .gantt-card { align-self: stretch; }

.gantt-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.gantt-scroll-inner { min-width: 520px; }

.gantt-scroll-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-mid);
}
.gantt-scroll-hint i { font-size: 12px; color: var(--c-secondary); }

@media (max-width: 768px) {
  .gantt-scroll-hint { display: flex; }
  .gantt-scroll {
    margin: 0 -8px;
    padding: 0 8px 2px;
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent 100%);
    mask-image: linear-gradient(to right, #000 82%, transparent 100%);
  }
  .gantt-scroll-inner { min-width: 420px; }
  .gantt-scroll .gc-res,
  .gantt-scroll .gc-res-col {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 6px 0 10px rgba(0, 0, 0, .05);
  }
  .gantt-scroll .gc-res-col { padding-right: 10px; }
  .gantt-scroll .gc-res { padding-right: 10px; }
}

.gc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.gc-title { font-size: 14px; font-weight: 700; color: var(--c-primary); }
.gc-tag {
  font-size: 11px; font-weight: 700;
  color: var(--c-secondary);
  background: rgba(52,144,173,.1);
  border: 1px solid rgba(52,144,173,.2);
  border-radius: 100px;
  padding: 3px 10px;
}

.gc-thead {
  display: flex;
  font-size: 11px;
  color: #aaa;
  margin-bottom: 6px;
  font-weight: 600;
}
.gc-res-col { width: 80px; flex-shrink: 0; }
.gc-days { flex: 1; display: flex; justify-content: space-between; padding-left: 8px; }

.gc-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.gc-row  { display: flex; align-items: center; height: 32px; }
.gc-res  { width: 80px; font-size: 11px; color: #888; font-weight: 600; flex-shrink: 0; padding-right: 8px; }
.gc-bars {
  flex: 1;
  position: relative;
  height: 26px;
  background: rgba(0,0,0,.03);
  border-radius: 4px;
  overflow: hidden;
}
.gc-bar {
  position: absolute;
  top: 2px; height: 22px;
  border-radius: 4px;
  display: flex; align-items: center;
  padding: 0 8px;
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,.9);
  white-space: nowrap; overflow: hidden;
}
.bar-blue   { background: rgba(0,95,127,.8); }
.bar-cyan   { background: rgba(52,144,173,.8); }
.bar-green  { background: rgba(94,205,143,.8); color: #1a4a2a; }
.bar-accent { background: rgba(255,219,63,.9); color: #5a3e00; }
.bar-purple { background: rgba(139,92,246,.8); }

.gc-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--c-border);
}
.gl { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #888; }
.gl-dot { width: 10px; height: 10px; border-radius: 2px; }

/* Feature Pills */
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(0,95,127,.08);
  border: 1px solid rgba(0,95,127,.18);
  color: var(--c-primary);
  transition: var(--trans);
}
.pill:hover { background: rgba(0,95,127,.15); }
.pill i { font-size: 13px; color: var(--c-secondary); }

/* MPS section — mobile layout */
@media (max-width: 992px) {
  #mps .mps-layout { gap: 28px; }
  #mps .col-text .section-h2 { font-size: 24px; }
}

@media (max-width: 768px) {
  #mps.section { padding: 52px 0; }
  #mps .mps-layout { gap: 24px; }
  #mps .col-text .body-text { font-size: 14px; line-height: 1.75; }
  #mps .feature-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
  }
  #mps .pill {
    width: 100%;
    justify-content: flex-start;
    font-size: 11px;
    padding: 8px 10px;
    line-height: 1.35;
    border-radius: 8px;
  }
  #mps .pill i { font-size: 12px; flex-shrink: 0; }
  #mps .col-text .btn { margin-top: 20px; }
  #mps .gantt-card {
    padding: 14px 12px;
    border-radius: 12px;
  }
  #mps .gc-header { margin-bottom: 12px; }
  #mps .gc-title { font-size: 13px; }
  #mps .gc-rows { gap: 5px; margin-bottom: 12px; }
  #mps .gc-row { height: 30px; }
  #mps .gc-res { width: 72px; font-size: 10px; }
  #mps .gc-res-col { width: 72px; font-size: 10px; }
  #mps .gc-bars { height: 24px; }
  #mps .gc-bar {
    top: 1px;
    height: 20px;
    font-size: 9px;
    padding: 0 6px;
  }
  #mps .gc-days span { font-size: 10px; }
  #mps .gc-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    padding-top: 10px;
  }
  #mps .section-deco-bg--mps {
    background-position: center;
    opacity: .06;
  }
}

@media (max-width: 576px) {
  #mps .feature-pills { grid-template-columns: 1fr; }
  #mps .gc-legend { grid-template-columns: 1fr 1fr; }
}

/* Section decorative backgrounds */
.section-deco { position: relative; overflow: hidden; }
.section-deco > .container-xl { position: relative; z-index: 1; }
.section-deco-bg {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
  z-index: 0;
}
.section-deco-bg--mps {
  background-image: url('../../images/sections/mps-deco.jpg');
  background-position: 88% center;
  opacity: .09;
}
.section-deco-bg--event {
  background-image: url('../../images/sections/event-deco.jpg');
  background-position: 12% center;
  opacity: .07;
}
.section-deco-bg--tech {
  background-image: url('../../images/sections/tech-deco.jpg');
  background-position: center right;
  opacity: .06;
}

/* ============================================================
   EVENT SAAS
   ============================================================ */
.event-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.event-features-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.efc-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-bg-blue);
}
.efc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.efc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--c-bg-blue);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-dark-text);
  transition: var(--trans);
}
.efc-item:hover { background: rgba(52,144,173,.12); color: var(--c-secondary); }
.efc-item i { font-size: 16px; color: var(--c-secondary); }

.scenario-col { }
.scenario-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.scenario-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 18px 12px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--trans);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scenario-item:hover { transform: translateY(-3px); border-color: var(--c-light-blue); }
.scenario-item i { font-size: 22px; color: var(--c-secondary); }
.scenario-item span { font-size: 13px; font-weight: 600; color: var(--c-dark-text); }

/* ============================================================
   CASES  — dark secondary bg, white cards
   ============================================================ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
  align-items: stretch;
}

.case-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.cc-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8eef5;
}
.cc-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.case-card:hover .cc-thumb img { transform: scale(1.04); }

.cc-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cc-tags { display: flex; gap: 6px; margin-bottom: 12px; }
.cc-tag {
  font-size: 10px; font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(0,95,127,.08);
  border: 1px solid rgba(0,95,127,.2);
  color: var(--c-primary);
}
.cc-title { font-size: 15px; font-weight: 700; color: var(--c-primary); margin-bottom: 10px; line-height: 1.4; }
.cc-desc  { font-size: 13px; color: var(--c-mid); line-height: 1.7; margin-bottom: 0; flex: 1; }
.cc-metrics { display: flex; gap: 12px; padding-top: 14px; border-top: 1px solid var(--c-border); }
.cc-m { flex: 1; }
.cc-m-val { display: block; font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 800; color: var(--c-secondary); margin-bottom: 4px; }
.cc-m-label { font-size: 11px; color: #aaa; }

/* ============================================================
   TECH STACK
   ============================================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 20px;
  margin-bottom: 72px;
}
.tech-col {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 0;
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--trans);
}
.tech-col:hover { transform: translateY(-4px); border-color: var(--c-light-blue); }

.tech-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-bg-blue);
}
.tech-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.tech-col:hover .tech-thumb img { transform: scale(1.04); }

.tech-body { padding: 18px 16px 22px; }

.tech-col-icon { font-size: 24px; color: var(--c-secondary); margin-bottom: 10px; }
.tech-col-name { font-size: 14px; font-weight: 700; color: var(--c-primary); margin-bottom: 14px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tech-tags span {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(0,95,127,.07);
  border: 1px solid rgba(0,95,127,.15);
  color: var(--c-primary);
  transition: var(--trans);
}
.tech-tags span:hover { background: rgba(0,95,127,.14); }

/* Process track */
.process-h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-primary);
  text-align: center;
  margin-bottom: 40px;
}
.process-track {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}
.pt-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.pt-num  { font-size: 11px; font-weight: 700; color: #bbb; font-family: 'Inter', sans-serif; }
.pt-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(0,95,127,.08);
  border: 2px solid rgba(0,95,127,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--c-secondary);
  transition: var(--trans);
}
.pt-step:hover .pt-icon {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  box-shadow: 0 0 16px rgba(0,95,127,.35);
}
.pt-label { font-size: 11px; font-weight: 600; color: var(--c-mid); text-align: center; max-width: 68px; line-height: 1.3; }
.pt-conn {
  width: 36px; height: 2px;
  background: linear-gradient(90deg, rgba(0,95,127,.3), rgba(52,144,173,.3));
  align-self: center;
  margin-top: -28px;
  flex-shrink: 0;
}

/* ============================================================
   INSIGHTS  — article cards
   ============================================================ */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  align-items: stretch;
}

.insight-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.insight-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.ic-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-bg-blue);
}
.ic-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.insight-card:hover .ic-thumb img { transform: scale(1.04); }

.ic-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ic-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ic-cat {
  font-size: 11px; font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
  background: rgba(0,95,127,.08);
  border: 1px solid rgba(0,95,127,.2);
  color: var(--c-secondary);
}
.ic-date { font-size: 11px; color: #aaa; font-family: 'Inter', sans-serif; }
.ic-title { font-size: 16px; font-weight: 700; color: var(--c-primary); line-height: 1.45; margin-bottom: 12px; }
.ic-excerpt { font-size: 13px; color: var(--c-mid); line-height: 1.7; flex: 1; margin-bottom: 20px; }
.ic-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: var(--c-secondary);
  margin-top: auto;
  transition: gap .2s, color .2s;
}
.ic-more:hover { gap: 10px; color: var(--c-primary); }

/* ============================================================
   CONTACT FORM  — on dark primary bg
   ============================================================ */
.contact-col .section-h2 { margin-top: 8px; }

.contact-form { margin-top: 28px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}
.form-field label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.65);
  margin-bottom: 6px;
  letter-spacing: .04em;
}
.req { color: var(--c-accent); }

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 14px;
  color: #fff;
  font-family: 'Noto Sans TC', sans-serif;
  transition: var(--trans);
  width: 100%;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,.3); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  background: rgba(255,255,255,.12);
  box-shadow: 0 0 0 3px rgba(255,219,63,.15);
}
.form-field select option { background: #014060; color: #fff; }
.form-field textarea { resize: vertical; min-height: 96px; }

.form-field-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-error {
  display: none;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 18px;
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .35);
  border-radius: 6px;
  color: #fca5a5;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.form-error.show { display: flex; }

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-top: 28px;
  padding: 40px 32px;
  background: rgba(94,205,143,.1);
  border: 1px solid rgba(94,205,143,.35);
  border-radius: var(--radius-card);
  animation: formSuccessIn .45s ease both;
}
.form-success.show { display: flex; }

.form-success-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(94,205,143,.18);
  color: #5ECD8F;
  font-size: 32px;
  margin-bottom: 4px;
}
.form-success-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
}
.form-success-text {
  margin: 0;
  max-width: 360px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.75);
}
.form-success-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(94,205,143,.9);
}

@keyframes formSuccessIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Contact Info Cards */
.contact-info-col { display: flex; flex-direction: column; gap: 0; }

@media (min-width: 993px) {
  #contact .two-col.two-col-gap-lg { align-items: start; }
  #contact .contact-info-col {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}
.mt-20 { margin-top: 20px; }

.ci-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-card);
  padding: 28px;
}
.ci-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ci-row {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.ci-row:last-child { margin-bottom: 0; }
.ci-icon {
  width: 34px; height: 34px;
  border-radius: 6px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--c-accent);
  flex-shrink: 0;
}
.ci-lbl { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 3px; font-weight: 700; }
.ci-val { font-size: 14px; color: rgba(255,255,255,.85); font-weight: 500; }
a.ci-val:hover { color: var(--c-accent); }

.ci-list { display: flex; flex-direction: column; gap: 10px; }
.ci-list li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.7); }
.ci-list li i { color: var(--c-green); font-size: 15px; flex-shrink: 0; }

/* ============================================================
   FOOTER  — #1A1A1A dark
   ============================================================ */
.site-footer {
  background: #1A1A1A;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {}
.footer-logo .logo-en { font-size: 12px; }
.footer-logo .logo-zh { font-size: 10px; }

.footer-tagline {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,.35);
  margin-bottom: 20px;
}

.footer-socials { display: flex; gap: 8px; }
.soc-link {
  width: 34px; height: 34px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,.45);
  transition: var(--trans);
}
.soc-link:hover {
  background: rgba(52,144,173,.2);
  border-color: rgba(52,144,173,.35);
  color: var(--c-light-blue);
  transform: translateY(-2px);
}

.footer-col-hd {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  transition: var(--trans);
}
.footer-links a:hover { color: #fff; padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,.25);
  font-family: 'Inter', sans-serif;
}

.process-track-compact .pt-label { max-width: 80px; font-size: 12px; }
.process-track-compact .pt-conn { margin-top: -12px; }

/* ============================================================
   ANIMATIONS — disabled scroll reveal for cleaner feel
   ============================================================ */
[data-anim] {
  opacity: 1;
  transform: none;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,95,127,.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s;
  z-index: 998;
}
.back-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-top:hover { background: var(--c-secondary); transform: translateY(-3px); }

/* ============================================================
   RESPONSIVE  1400px
   ============================================================ */
@media (max-width: 1400px) {
  :root { --container-px: 32px; }
  .header-container { gap: 16px; }
  .logo-img { height: 38px; max-width: 150px; }
  .primary-nav, .header-btn { display: none; }
  .header-actions { margin-left: auto; }
  .hamburger { display: flex; margin-right: -4px; }
  .mobile-backdrop,
  .mobile-drawer { display: block; }
}

/* ============================================================
   RESPONSIVE  1200px
   ============================================================ */
@media (max-width: 1200px) {
  .four-col-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-panel { width: 280px; }
}

/* ============================================================
   RESPONSIVE  992px (tablet)
   ============================================================ */
@media (max-width: 992px) {
  .section { padding: 72px 0; }
  .section.section-white { padding: 64px 0; }
  .section.section-gray { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }

  /* Hero */
  .hero-section { min-height: auto; }
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
    padding-top: 36px;
    padding-bottom: 56px;
    min-height: auto;
  }
  .hero-content { max-width: 100%; }
  .hero-eyebrow { justify-content: center; }
  .hero-cta-row { justify-content: center; }
  .hero-panel {
    width: 100%;
    max-width: 420px;
    text-align: left;
  }
  .hero-bg-mesh { background-position: center; }

  /* Layouts */
  .two-col,
  .two-col.two-col-gap-lg {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .two-col-rev { direction: ltr; }
  .event-layout { grid-template-columns: 1fr; gap: 28px; }
  .four-col-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }

  .process-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .pt-conn { display: none; }
}

/* ============================================================
   RESPONSIVE  768px (mobile)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --container-px: 20px;
    --header-h: 72px;
  }

  .section { padding: 56px 0; }
  .section.section-white { padding: 52px 0; }
  .section.section-gray { padding: 48px 0; }
  .section-header { margin-bottom: 32px; }
  .section-h2 { font-size: 24px; line-height: 1.4; }

  /* Header */
  .logo-img { height: 34px; max-width: 132px; }

  /* Hero */
  .hero-inner {
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 44px;
  }
  .hero-title {
    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.35;
    margin-bottom: 16px;
  }
  .hero-title br,
  .hero-subtitle br { display: none; }
  .hero-subtitle {
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 28px;
  }
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-cta-row .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .hero-panel {
    max-width: 100%;
    padding: 22px 20px;
  }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(2,22,38,.92) 0%, rgba(0,47,63,.78) 100%);
  }

  /* Logo strip */
  .logo-strip { padding: 24px 0; }
  .strip-label { margin-bottom: 16px; font-size: 11px; }

  /* Grids → single column */
  .four-col-grid,
  .solutions-grid,
  .cases-grid,
  .insights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 48px;
  }

  /* Cards */
  .fc-body,
  .cc-body,
  .ic-body,
  .tech-body {
    padding: 16px 18px 20px;
  }
  .sc-title { padding: 14px 20px 0; font-size: 16px; }
  .sc-desc,
  .sc-list { padding-left: 20px; padding-right: 20px; }
  .sc-more { margin: 0 20px 20px; }

  /* About */
  .stat-grid { gap: 12px; }
  .stat-card { padding: 18px 16px; }

  /* MPS / feature pills */
  .gantt-card { padding: 16px; }
  .col-text .btn { width: 100%; justify-content: center; }

  /* Event */
  .event-features-card { padding: 22px 18px; }
  .efc-grid { grid-template-columns: 1fr; }
  .scenario-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .scenario-item { padding: 14px 10px; }
  .scenario-item span { font-size: 12px; }

  /* AI Vision feature list */
  .fl-item { gap: 12px; }
  .fl-icon { width: 36px; height: 36px; font-size: 16px; }

  /* Process */
  .process-h3 { font-size: 18px; margin-bottom: 28px; }
  .process-section { margin-top: 8px; }
  .process-track,
  .process-track-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }
  .process-track-compact .pt-label {
    max-width: none;
    font-size: 11px;
  }

  /* Contact */
  .form-row { grid-template-columns: 1fr; }
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 16px; /* prevent iOS zoom */
  }
  .contact-col .btn-primary { width: 100%; justify-content: center; }
  .ci-card { padding: 22px 18px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
  }
  .site-footer { padding-top: 48px; }

  /* Buttons */
  .btn-lg { font-size: 14px; padding: .95em 1.5em; }
}

/* ============================================================
   RESPONSIVE  576px (small phones)
   ============================================================ */
@media (max-width: 576px) {
  :root {
    --container-px: 16px;
    --header-h: 64px;
  }

  .section { padding: 48px 0; }
  .section-header { margin-bottom: 28px; }
  .section-h2 { font-size: 22px; }

  .hero-title { font-size: 23px; }
  .hero-subtitle { font-size: 14px; }

  .four-col-grid { gap: 16px; }
  .stat-grid { grid-template-columns: 1fr; }

  .scenario-grid { grid-template-columns: 1fr 1fr; }
  .gc-legend { gap: 10px; }
  .gl { font-size: 10px; }

  .ic-title { font-size: 15px; }
  .cc-title,
  .fc-title { font-size: 14px; }

  .tech-tags span {
    font-size: 10px;
    padding: 3px 8px;
  }

  .back-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .process-track,
  .process-track-compact {
    grid-template-columns: 1fr 1fr;
    gap: 12px 8px;
  }
  .pt-icon { width: 42px; height: 42px; font-size: 16px; }
  .pt-label { font-size: 10px; }
}

/* ============================================================
   PAGE-NO-EVENT  responsive grid rebalance
   ============================================================ */
@media (max-width: 1200px) {
  .page-no-event .solutions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .page-no-event .solutions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-no-event .solutions-grid .sol-card:last-child:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 440px;
    margin-inline: auto;
    width: 100%;
  }
  .page-no-event .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-no-event .stat-grid .stat-card:last-child:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 380px;
    margin-inline: auto;
    width: 100%;
  }
  .page-no-event .cases-grid { max-width: none; }
}

@media (max-width: 768px) {
  .page-no-event .solutions-grid,
  .page-no-event .cases-grid,
  .page-no-event .stat-grid {
    grid-template-columns: 1fr;
  }
  .page-no-event .solutions-grid .sol-card:last-child:nth-child(3),
  .page-no-event .stat-grid .stat-card:last-child:nth-child(3) {
    grid-column: auto;
    max-width: none;
    margin-inline: 0;
  }
}
