/* =========================================================
   NexMatrix — Macao NexMatrix Technology Limited
   澳門海易通達科技有限公司 · Official Website
   Formal light / white corporate theme
   ========================================================= */

:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #f5f8fc;          /* alternating light section */
  --bg-tint: #eef4fc;          /* subtle blue tint */
  --bg-panel: #ffffff;
  --border: #e4e9f1;
  --border-strong: #d3dbe8;

  /* Text */
  --ink: #0f1e39;              /* headings / near-navy black */
  --text: #3b475e;            /* body */
  --text-muted: #5f6b82;
  --text-dim: #8a93a6;

  /* Brand — formal navy / blue */
  --primary: #12448f;          /* corporate navy-blue */
  --primary-strong: #0d3372;
  --primary-2: #1b6ad0;        /* brighter blue */
  --primary-soft: #eaf1fb;     /* icon chip bg */
  --indigo: #3a4f9c;
  --indigo-soft: #edeffb;
  --teal: #0f6f78;
  --teal-soft: #e6f2f3;

  --footer-bg: #0c1a33;        /* deep navy footer */
  --footer-text: #b7c1d6;

  /* Effects */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 30, 57, 0.04), 0 2px 6px rgba(15, 30, 57, 0.05);
  --shadow: 0 8px 24px rgba(15, 40, 90, 0.07);
  --shadow-lg: 0 22px 50px rgba(15, 40, 90, 0.11);

  /* Type */
  --font: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Noto Serif SC", Georgia, "Songti SC", "Times New Roman", serif;
  --max: 1160px;
  --header-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ---- Background ---- */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 40% at 50% -6%, rgba(27, 106, 208, 0.06), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}
.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 68, 143, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 68, 143, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 45% at 50% 0%, black, transparent 75%);
  pointer-events: none;
}

/* ---- Typography ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-2);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--primary-2);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: 0.01em;
}
h4 {
  font-family: var(--font);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.15rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
.lead {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--text-muted);
  max-width: 40em;
  line-height: 1.8;
}
.section-label {
  font-family: var(--font);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-2);
  font-weight: 600;
  margin-bottom: 0.7rem;
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(15, 40, 90, 0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}
.logo-mark svg, .logo-mark img { width: 22px; height: 22px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.06em;
}
.logo-text span {
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.nav { display: flex; align-items: center; gap: 0.1rem; }
.nav a {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover, .nav a.active { color: var(--primary); background: var(--primary-soft); }
.nav-cta {
  margin-left: 0.5rem !important;
  padding: 0.55rem 1.15rem !important;
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(18, 68, 143, 0.22);
}
.nav-cta:hover { background: var(--primary-strong) !important; }

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.lang-switch a {
  padding: 0.35rem 0.7rem !important;
  font-size: 0.74rem !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim) !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.lang-switch a:hover { color: var(--primary) !important; background: var(--primary-soft) !important; }
.lang-switch a.active { color: #fff !important; background: var(--primary) !important; }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 22px rgba(18, 68, 143, 0.24);
}
.btn-primary:hover { background: var(--primary-strong); box-shadow: 0 12px 30px rgba(18, 68, 143, 0.3); }
.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--primary);
  background: #fff;
}
.btn-ghost:hover { border-color: var(--primary); background: var(--primary-soft); }
.btn-text {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}
.btn-text:hover { gap: 0.65rem; }

/* ---- Hero ---- */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 4rem) 0 4.5rem;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 3.5rem;
  align-items: center;
}
.hero-badge {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem 0.4rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.hero-badge i { flex-shrink: 0; }
.hero-badge i {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 0.65rem;
}
.hero h1 { color: var(--ink); }
.hero h1 em {
  font-style: normal;
  color: var(--primary);
}
.hero .lead { margin: 1.35rem 0 2rem; color: var(--text); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.75rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.hero-stats .n {
  font-family: var(--font);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.hero-stats .l {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Hero visual — light abstract */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}
.hero-orb {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(27, 106, 208, 0.16), transparent 50%),
    radial-gradient(circle at 70% 68%, rgba(58, 79, 156, 0.12), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(234, 241, 251, 0.9), transparent 72%);
  filter: blur(1px);
  animation: pulse-orb 8s ease-in-out infinite;
}
.hero-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(27, 106, 208, 0.18);
  animation: spin 44s linear infinite;
}
.hero-ring::before, .hero-ring::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--primary-2);
  box-shadow: 0 0 0 4px rgba(27, 106, 208, 0.12);
}
.hero-ring::before { top: 11%; left: 17%; }
.hero-ring::after { bottom: 17%; right: 13%; width: 7px; height: 7px; background: var(--indigo); box-shadow: 0 0 0 4px rgba(58, 79, 156, 0.12); }
.hero-ring-2 { inset: 19%; border-color: rgba(58, 79, 156, 0.14); animation-direction: reverse; animation-duration: 30s; }
.hero-core {
  position: absolute;
  inset: 27%;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  text-align: center;
  padding: 1.5rem;
}
.hero-core .core-icon {
  width: 54px; height: 54px;
  border-radius: 15px;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: var(--primary);
}
.hero-core strong { font-family: var(--font); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.hero-core span { font-size: 0.74rem; color: var(--text-muted); line-height: 1.45; }
.float-card {
  position: absolute;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: max-content;
  white-space: nowrap;
  animation: float 5.5s ease-in-out infinite;
}
.float-card i {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.float-card.fc1 { top: 6%; right: -6%; animation-delay: 0s; }
.float-card.fc1 i { background: var(--primary-soft); color: var(--primary); }
.float-card.fc2 { bottom: 12%; left: -8%; animation-delay: 1.2s; }
.float-card.fc2 i { background: var(--indigo-soft); color: var(--indigo); }
.float-card.fc3 { top: 44%; left: -12%; animation-delay: 0.6s; }
.float-card.fc3 i { background: var(--teal-soft); color: var(--teal); }
.float-card b { display: block; color: var(--ink); font-weight: 600; font-size: 0.82rem; }
.float-card em { font-style: normal; color: var(--text-dim); font-size: 0.72rem; }

@keyframes pulse-orb { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.88; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---- Sections ---- */
.section { padding: 5rem 0; position: relative; }
.section.alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { max-width: 660px; margin-bottom: 2.75rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { margin-top: 0.9rem; color: var(--text-muted); }

/* ---- Cards / Grid ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.15rem; }

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
  height: 100%;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
  font-size: 1.1rem;
  background: var(--primary-soft);
  color: var(--primary);
}
.card-icon.violet { background: var(--indigo-soft); color: var(--indigo); }
.card-icon.blue { background: var(--teal-soft); color: var(--teal); }
.card-kicker {
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-2);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.card h3 { margin-bottom: 0.55rem; font-size: 1.1rem; color: var(--ink); }
.card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }
.card ul { margin-top: 0.9rem; display: grid; gap: 0.45rem; }
.card ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--primary-2);
}

/* ---- Feature split ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-media {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  min-height: 340px;
  overflow: hidden;
  position: relative;
}
.split-list { display: grid; gap: 0.9rem; margin-top: 1.5rem; }
.split-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.split-item .num {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
}
.split-item h4 { font-size: 0.96rem; margin-bottom: 0.25rem; }
.split-item p { font-size: 0.85rem; color: var(--text-muted); }

/* ---- Pain / Value ---- */
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.pain-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.pain-card .icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
}
.pain-card h4 { font-size: 0.96rem; margin-bottom: 0.3rem; }
.pain-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ---- Pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.price-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 16px 40px rgba(18, 68, 143, 0.14);
}
.price-card.featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--primary);
}
.price-card .badge {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
}
.price-card .name { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.55rem; font-weight: 500; }
.price-card .amount {
  font-family: var(--font);
  font-size: 1.85rem;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.price-card .amount small { font-size: 0.85rem; color: var(--text-dim); font-weight: 500; }
.price-card .cycle { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 1.35rem; }
.price-card ul { display: grid; gap: 0.6rem; margin-bottom: 1.6rem; flex: 1; }
.price-card ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}
.price-card ul li i { color: var(--primary-2); margin-top: 0.28rem; font-size: 0.75rem; }
.price-card .btn { width: 100%; }

/* ---- Team ---- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.15rem; }
.team-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  padding: 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-family: var(--font);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}
.team-card h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.team-card .role { font-size: 0.8rem; color: var(--primary-2); font-weight: 600; margin-bottom: 0.75rem; }
.team-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

/* ---- CTA band ---- */
.cta-band {
  margin: 2rem 0 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 120% at 12% 20%, rgba(27, 106, 208, 0.35), transparent 60%),
    radial-gradient(ellipse 60% 120% at 90% 90%, rgba(58, 79, 156, 0.4), transparent 55%),
    var(--footer-bg);
  color: #fff;
  padding: 3rem 2.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: 0.55rem; }
.cta-band p { color: rgba(255, 255, 255, 0.82); max-width: 34em; }
.cta-band .section-label { color: #8fb4ea; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta-band .btn-primary { background: #fff; color: var(--primary-strong); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2); }
.cta-band .btn-primary:hover { background: #f0f4fb; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.cta-band .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  padding: calc(var(--header-h) + 3.75rem) 0 3rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.page-hero .breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}
.page-hero .breadcrumb a:hover { color: var(--primary); }
.page-hero h1 { margin-bottom: 0.9rem; }
.page-hero .lead { max-width: 42em; }

/* ---- Contact form ---- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2rem; align-items: start; }
.contact-info { display: grid; gap: 1rem; }
.info-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.info-item .icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
}
.info-item h4 { font-size: 0.92rem; margin-bottom: 0.25rem; }
.info-item p, .info-item a { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }
.info-item a:hover { color: var(--primary); }

.form-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-card h3 { margin-bottom: 0.35rem; }
.form-card > p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--text); margin-bottom: 0.4rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--primary-2);
  box-shadow: 0 0 0 3px rgba(27, 106, 208, 0.12);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.85rem; }
.form-success {
  display: none;
  padding: 1rem;
  border-radius: 10px;
  background: #e7f4ee;
  border: 1px solid #b9e0cd;
  color: #17734a;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.form-success.show { display: block; }

/* ---- Timeline / Process ---- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: step; }
.process-step {
  position: relative;
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.75rem;
}
.process-step h4 { margin-bottom: 0.4rem; font-size: 1rem; }
.process-step p { font-size: 0.85rem; color: var(--text-muted); }

/* ---- Spec table ---- */
.spec-table { border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.spec-row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-row.head {
  background: var(--bg-tint);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
}
.spec-row strong { color: var(--ink); font-weight: 600; }
.spec-row span { color: var(--text-muted); }

/* ---- Placeholders (image slots to be filled by client) ---- */
.ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-45deg, rgba(18, 68, 143, 0.02) 0 12px, transparent 12px 24px),
    linear-gradient(180deg, #fbfcfe, #f2f6fc);
  color: var(--text-muted);
  min-height: 260px;
  padding: 2rem 1.5rem;
}
.ph .ph-icon {
  width: 56px; height: 56px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--primary);
}
.ph b { color: var(--ink); font-weight: 600; font-size: 0.98rem; }
.ph span { font-size: 0.82rem; color: var(--text-dim); max-width: 26em; }
.ph small {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-2);
  font-weight: 600;
}
.ph.ratio-16x9 { aspect-ratio: 16 / 9; min-height: 0; }
.ph.ratio-4x3 { aspect-ratio: 4 / 3; min-height: 0; }
.ph.ratio-21x9 { aspect-ratio: 21 / 9; min-height: 0; }

/* ---- Footer ---- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3.75rem 0 2rem;
  margin-top: 2rem;
}
.site-footer .logo-text strong { color: #fff; }
.site-footer .logo-text span { color: #7d8aa6; }
.site-footer .logo-mark { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand .logo { margin-bottom: 1.1rem; }
.footer-brand p { font-size: 0.86rem; color: #8b97b3; max-width: 30em; line-height: 1.75; }
.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-col a { display: block; font-size: 0.9rem; color: #9aa6c2; padding: 0.32rem 0; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 0.88rem; color: #8b97b3; line-height: 1.75; }
.footer-bottom {
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: #7d8aa6;
}

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---- Media / showcase images ---- */
.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 260px; }
.media-frame.ratio-16x9 img { aspect-ratio: 16 / 9; min-height: 0; }
.media-frame.ratio-4x3 img { aspect-ratio: 4 / 3; min-height: 0; }
.media-caption {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 2;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
/* caption sitting on a placeholder */
.ph .media-caption { position: static; color: var(--text-dim); margin-top: 0.2rem; }

.gallery-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.gallery-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.gallery-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.gallery-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery-card .ph { border: none; border-bottom: 1px dashed var(--border); border-radius: 0; aspect-ratio: 4 / 3; min-height: 0; }
.gallery-card .body { padding: 1.15rem 1.25rem 1.35rem; }
.gallery-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.gallery-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

.page-hero-visual { margin-top: 2rem; border-radius: var(--radius-lg); overflow: hidden; }
.page-hero-visual .ph { min-height: 200px; }

.split-media.has-img { padding: 0; min-height: 320px; }
.split-media.has-img img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.split-media .ph { border: none; height: 100%; min-height: 340px; border-radius: 0; }

@media (max-width: 1024px) {
  .gallery-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .gallery-3 { grid-template-columns: 1fr; }
}

/* ---- Logo strip / platforms ---- */
.logo-strip { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.logo-pill {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.logo-pill i { color: var(--primary); }

/* ---- Metrics bar ---- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.metric {
  text-align: center;
  padding: 1.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.metric .n { font-family: var(--font); font-size: 1.9rem; color: var(--primary); font-weight: 700; margin-bottom: 0.3rem; }
.metric .n em { font-style: normal; color: var(--primary); }
.metric .l { font-size: 0.82rem; color: var(--text-muted); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .hero-visual { max-width: 360px; }
  .grid-4, .team-grid, .process, .metrics { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .spec-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .spec-row.head { display: none; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0.25rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 99;
    border-left: 1px solid var(--border);
  }
  .nav.open { transform: none; }
  .nav a { padding: 0.95rem 1rem; font-size: 1.05rem; border-radius: 12px; }
  .nav-cta { margin-left: 0 !important; margin-top: 0.5rem; text-align: center; justify-content: center; }
  .lang-switch { margin: 1rem 0 0; align-self: flex-start; }
  .grid-2, .grid-3, .pain-grid, .contact-grid, .split,
  .price-grid, .team-grid, .process, .metrics, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats { grid-template-columns: 1fr; gap: 0.75rem; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 2.25rem 1.5rem; }
  .hero-visual { display: none; }
  .section { padding: 3.5rem 0; }
  .hero { padding-top: calc(var(--header-h) + 2rem); padding-bottom: 2.5rem; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 1.5rem, var(--max)); }
  .hero-actions .btn { width: 100%; }
  .float-card.fc1, .float-card.fc2 { display: none; }
}

/* =========================================================
   Solutions page components (formal, unified with theme)
   ========================================================= */

/* Keyword chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.1rem; }
.chip {
  font-size: 0.72rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--border);
  font-weight: 500;
}

/* Card helpers used on solutions page */
.card .step-n {
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 800;
  color: #d7e3f4;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.card .result {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #17734a;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.card .tier {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.tier.basic { background: #eef1f6; color: #52607a; border: 1px solid var(--border); }
.tier.std { background: var(--primary-soft); color: var(--primary); border: 1px solid #cfe0f7; }
.tier.prem { background: #fbf1e2; color: #9a6a1a; border: 1px solid #efdcbc; }
.card .price-tag {
  font-family: var(--font);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0.5rem 0 0.15rem;
}
.card .price-tag small { font-size: 0.82rem; color: var(--text-dim); font-weight: 500; }
.card .price-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  margin-top: 0.7rem;
}

/* Feature list with ticks (platform cards) */
.feat-list { display: grid; gap: 0.5rem; margin-top: 1rem; }
.feat-list li {
  font-size: 0.86rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  line-height: 1.55;
}
.feat-list li i { color: var(--primary-2); font-size: 0.72rem; margin-top: 0.3rem; flex-shrink: 0; }

/* Dark feature panel (network / livestream) */
.panel {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 70% 120% at 85% 40%, rgba(27, 106, 208, 0.32), transparent 60%),
    radial-gradient(ellipse 60% 100% at 10% 90%, rgba(58, 79, 156, 0.35), transparent 55%),
    var(--footer-bg);
  color: #fff;
  padding: 2.75rem;
  box-shadow: var(--shadow-lg);
}
.panel-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center; }
.panel .badge-tech {
  display: inline-block;
  background: rgba(143, 180, 234, 0.16);
  border: 1px solid rgba(143, 180, 234, 0.4);
  color: #cfe0f7;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.panel h3 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.85rem); margin-bottom: 0.9rem; }
.panel h3 em { font-style: normal; color: #7fb2f5; }
.panel p { color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; line-height: 1.8; margin-bottom: 1.4rem; }
.panel-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.panel-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1.1rem 0.75rem;
  text-align: center;
}
.panel-stat .n { font-family: var(--font); font-size: 1.6rem; font-weight: 700; color: #fff; line-height: 1; }
.panel-stat .l { font-size: 0.72rem; color: rgba(255, 255, 255, 0.6); margin-top: 0.4rem; }

/* Metric strip variants */
.metrics.cols-5 { grid-template-columns: repeat(5, 1fr); }

/* Comparison table */
.compare {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.compare-row { display: grid; grid-template-columns: 1.15fr 1.3fr 1.3fr; }
.compare-row + .compare-row { border-top: 1px solid var(--border); }
.compare-cell {
  padding: 0.95rem 1.2rem;
  font-size: 0.88rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  border-right: 1px solid var(--border);
}
.compare-cell:last-child { border-right: none; }
.compare-head .compare-cell {
  background: var(--bg-tint);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.compare-head .compare-cell.us { color: var(--primary); }
.compare-cell.feature { font-weight: 600; color: var(--ink); background: var(--bg-soft); }
.compare-cell.us { color: #16663f; font-weight: 500; }
.compare-cell.them { color: var(--text-muted); }
.compare-cell .tick { color: #1a9c5b; }
.compare-cell .cross { color: #d0433a; }
.compare-cell .dash { color: #c08a2a; }

/* Notice / callout */
.notice {
  display: flex;
  gap: 0.9rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: #fbf5ea;
  border: 1px solid #f0dcbb;
  color: #7c561d;
  font-size: 0.88rem;
  line-height: 1.75;
}
.notice i { color: #c8891f; margin-top: 0.2rem; flex-shrink: 0; }
.notice strong { color: #63430f; }
.notice.blue { background: var(--primary-soft); border-color: #cfe0f7; color: var(--primary-strong); }
.notice.blue i { color: var(--primary); }
.notice.blue strong { color: var(--primary-strong); }

/* Data table (video frequency) */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 680px; }
.data-table th {
  text-align: left;
  padding: 0.9rem 1.15rem;
  background: var(--bg-tint);
  color: var(--primary);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td { padding: 0.95rem 1.15rem; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.data-table tr:last-child td { border-bottom: none; }
.data-table td:first-child { color: var(--ink); font-weight: 600; }
.data-table .price { color: var(--primary); font-weight: 700; }
.data-table tbody tr:hover td { background: var(--bg-soft); }

/* FAQ accordion */
.faq { display: grid; gap: 0.75rem; max-width: 840px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item.open { border-color: var(--border-strong); box-shadow: var(--shadow); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 1.15rem 1.4rem;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  font-family: var(--font);
}
.faq-q i { color: var(--primary); transition: transform 0.3s var(--ease); font-size: 0.85rem; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-item.open .faq-a { max-height: 440px; }
.faq-a p { padding: 0 1.4rem 1.25rem; font-size: 0.9rem; color: var(--text-muted); line-height: 1.85; }

@media (max-width: 1024px) {
  .metrics.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .panel-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}
@media (max-width: 768px) {
  .panel { padding: 1.75rem 1.4rem; }
  .metrics.cols-5 { grid-template-columns: 1fr 1fr; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-cell { border-right: none; border-bottom: 1px solid var(--border); justify-content: space-between; }
  .compare-head { display: none; }
  .compare-cell.feature { background: var(--bg-tint); }
  .compare-cell.us::before { content: "本方案"; font-size: 0.7rem; color: var(--text-dim); font-weight: 600; }
  .compare-cell.them::before { content: "一般機構"; font-size: 0.7rem; color: var(--text-dim); font-weight: 600; }
}
