:root,
html[data-theme="light"] {
  /* Logo-derived: deep sea + cyan arc + acid needle */
  --bg: #eef3f7;
  --bg-deep: #dce6ef;
  --ink: #061826;
  --ink-soft: #3d5568;
  --line: #c5d3e0;
  --blue: #0284c7;
  --blue-deep: #0b3a6e;
  --blue-mid: #38bdf8;
  --lime: #84cc16;
  --lime-deep: #65a30d;
  --lime-soft: #ecfccb;
  --sea: #061826;
  --sea-mid: #0a2a3f;
  --card: #ffffff;
  --header-bg: rgba(238, 243, 247, 0.88);
  --footer-bg: #e8eef4;
  --body-grad-a: #f5f8fb;
  --body-grad-b: #e4edf5;
  --shadow: 0 12px 36px rgba(6, 24, 38, 0.1);
  --shadow-hover: 0 18px 44px rgba(6, 24, 38, 0.14);
  --radius: 14px;
  --max: 1160px;
  --font-sans: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
  --font-display: "Syne", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Courier New", monospace;
  --paper: var(--bg);
  --paper-deep: var(--bg-deep);
  --amber: var(--lime);
  --amber-deep: var(--lime-deep);
  --icon-card-bg: #ffffff;
  --thumb-illu-bg: #e8f0f6;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #061826;
  --bg-deep: #0a2a3f;
  --ink: #e8eef4;
  --ink-soft: #9db0c0;
  --line: #1e3a4f;
  --blue: #38bdf8;
  --blue-deep: #7dd3fc;
  --blue-mid: #0284c7;
  --lime: #a3e635;
  --lime-deep: #bef264;
  --lime-soft: #1a2e14;
  --sea: #041018;
  --sea-mid: #0a2a3f;
  --card: #0c2233;
  --header-bg: rgba(6, 24, 38, 0.9);
  --footer-bg: #041018;
  --body-grad-a: #061826;
  --body-grad-b: #0a2a3f;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 18px 44px rgba(0, 0, 0, 0.5);
  --icon-card-bg: #0c2233;
  --thumb-illu-bg: #0f2a3d;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 45% at 85% -8%, rgba(56, 189, 248, 0.12), transparent 52%),
    radial-gradient(ellipse 55% 40% at -5% 20%, rgba(132, 204, 22, 0.1), transparent 48%),
    radial-gradient(circle at 50% 100%, rgba(2, 132, 199, 0.06), transparent 42%),
    linear-gradient(180deg, var(--body-grad-a) 0%, var(--bg) 36%, var(--body-grad-b) 100%);
  line-height: 1.7;
  min-height: 100vh;
  transition: background 0.25s ease, color 0.25s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-deep);
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(1.2);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

/* 首頁網絡保安警示走馬燈：緊貼頁首下方，先於主視覺 */
.security-ticker {
  border-bottom: 1px solid rgba(122, 181, 28, 0.28);
  background:
    linear-gradient(90deg, rgba(122, 181, 28, 0.12), rgba(11, 74, 115, 0.08) 42%, rgba(122, 181, 28, 0.1));
  color: var(--ink);
}

.security-ticker-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
  min-height: 2.65rem;
  padding-block: 0.45rem;
}

.security-ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--blue-deep);
  white-space: nowrap;
}

.security-ticker-label::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(122, 181, 28, 0.22);
}

.security-ticker-track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.security-ticker-move {
  display: flex;
  width: max-content;
  gap: 0;
  animation: security-ticker-scroll 55s linear infinite;
  will-change: transform;
}

.security-ticker:hover .security-ticker-move,
.security-ticker:focus-within .security-ticker-move {
  animation-play-state: paused;
}

.security-ticker-group {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  padding-right: 1.35rem;
}

.security-ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  max-width: 28rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1.35;
  white-space: nowrap;
}

.security-ticker-item:hover {
  color: var(--blue);
}

.security-ticker-source {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--lime-deep);
}

.security-ticker-title {
  overflow: hidden;
  text-overflow: ellipsis;
}

.security-ticker-more {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}

.security-ticker-more:hover {
  text-decoration: underline;
}

.security-ticker[hidden] {
  display: none !important;
}

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

@media (prefers-reduced-motion: reduce) {
  .security-ticker-move {
    animation: none;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .security-ticker-group + .security-ticker-group {
    display: none;
  }

  .security-ticker-track {
    mask-image: none;
  }
}

@media (max-width: 720px) {
  .security-ticker-inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.35rem 0.65rem;
  }

  .security-ticker-more {
    display: none;
  }

  .security-ticker-label {
    font-size: 0.72rem;
  }

  .security-ticker-item {
    max-width: 18rem;
    font-size: 0.8rem;
  }
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-left: 0.25rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
}

.lang-switch a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.2rem 0.15rem;
}

.lang-switch a:hover,
.lang-switch a[aria-current="true"] {
  color: var(--blue);
}

.lang-sep {
  color: var(--line);
  font-weight: 400;
}

html[lang="zh-CN"] {
  --font-sans: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-display: "Syne", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

html[lang="en"] {
  --font-sans: "Noto Sans TC", "Segoe UI", sans-serif;
  --font-display: "Syne", "Segoe UI", sans-serif;
}

.insights-lang-note {
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  line-height: 0;
  flex-shrink: 0;
}

.theme-toggle svg {
  display: block;
}

.theme-toggle:hover {
  border-color: var(--blue);
  color: var(--blue-deep);
  background: rgba(11, 74, 115, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 3.15rem;
  height: 3.15rem;
  padding: 0.15rem;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  display: block;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sea);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--blue-mid) 45%, transparent),
    0 0 18px color-mix(in srgb, var(--lime) 25%, transparent);
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.18rem;
  min-height: 3rem;
  line-height: 1.05;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.05;
}

.brand-text span {
  font-size: 0.76rem;
  line-height: 1.15;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.05rem;
  margin-left: auto;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--lime);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  cursor: pointer;
}

/* Logo-led hero (brand first) */
.hero-logo,
.hero-photo {
  position: relative;
  margin-top: 0;
  min-height: min(92vh, 780px);
  width: 100%;
  overflow: hidden;
  color: #e8eef4;
  display: grid;
  align-items: end;
  background:
    radial-gradient(ellipse 80% 60% at 70% 35%, rgba(2, 132, 199, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 45% at 20% 70%, rgba(132, 204, 22, 0.14), transparent 50%),
    linear-gradient(165deg, #041018 0%, #061826 42%, #0a2a3f 100%);
}

.hero-logo--bleed,
.hero-photo--bleed {
  border-radius: 0;
  box-shadow: none;
}

.hero-logo-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 1;
}

.hero-logo-ring {
  position: absolute;
  width: min(78vw, 560px);
  height: min(78vw, 560px);
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(132, 204, 22, 0.12),
    0 0 60px rgba(2, 132, 199, 0.15);
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(232, 238, 244, 0.14) 0deg 1.2deg,
      transparent 1.2deg 10deg
    );
  -webkit-mask-image: radial-gradient(circle, transparent 58%, #000 59%, #000 72%, transparent 73%);
  mask-image: radial-gradient(circle, transparent 58%, #000 59%, #000 72%, transparent 73%);
  animation: compassSpin 48s linear infinite;
}

.hero-logo-ring--slow {
  width: min(92vw, 680px);
  height: min(92vw, 680px);
  border-color: rgba(132, 204, 22, 0.18);
  opacity: 0.55;
  animation-duration: 72s;
  animation-direction: reverse;
}

.hero-logo-mark {
  width: min(42vw, 280px);
  height: min(42vw, 280px);
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(56, 189, 248, 0.35)) drop-shadow(0 12px 40px rgba(0, 0, 0, 0.45));
  animation: compassNeedle 6.5s ease-in-out infinite;
  transform-origin: 52% 58%;
}

.hero-logo-copy,
.hero-photo-copy {
  position: relative;
  z-index: 2;
  padding: 3.5rem 0 3.4rem;
  max-width: 40rem;
}

.hero-brand {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.hero-logo h1,
.hero-photo h1 {
  color: rgba(232, 238, 244, 0.92);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 600;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 22ch;
}

.hero-logo .lead,
.hero-photo .lead {
  color: rgba(232, 238, 244, 0.78);
  max-width: 34rem;
}

.hero-photo-bg {
  display: none;
}

@keyframes compassSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes compassNeedle {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  50% { transform: rotate(5deg) scale(1.03); }
}

/* Hero text stagger */
.hero-enter .hero-enter-item {
  opacity: 0;
  transform: translateY(18px);
  animation: heroEnter 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-enter .hero-enter-item:nth-child(1) { animation-delay: 0.1s; }
.hero-enter .hero-enter-item:nth-child(2) { animation-delay: 0.26s; }
.hero-enter .hero-enter-item:nth-child(3) { animation-delay: 0.4s; }
.hero-enter .hero-enter-item:nth-child(4) { animation-delay: 0.54s; }

@keyframes heroEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Trust strip */
.trust-strip {
  margin-top: 1.5rem;
}

.stats-bar--trust {
  margin-top: 0;
}

/* Four service pillars */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pillar-card {
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.pillar-card:hover {
  border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
  box-shadow: 0 14px 36px rgba(7, 30, 48, 0.1);
  transform: translateY(-3px);
}

.pillar-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b2436;
}

.pillar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.pillar-card:hover .pillar-media img {
  transform: scale(1.06);
}

.pillar-copy {
  padding: 1.15rem 1.2rem 1.3rem;
}

.pillar-copy h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--ink);
}

.pillar-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}

.pillar-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
}

/* Security + HKCERT merged */
.security-intel {
  margin-top: 0.25rem;
}

.security-intel-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: 1.5rem 2rem;
  align-items: start;
}

.security-intel-copy h2 {
  margin-bottom: 0.55rem;
}

.security-intel .hkcert-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.security-intel .hkcert-stat-card {
  padding: 1.15rem 0.85rem 1.2rem;
}

.security-intel .hkcert-stats-note {
  margin-top: 1.1rem;
}

/* Cloud strip */
.cloud-strip-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: 0;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}

.cloud-strip-media {
  min-height: 220px;
  background: #0b2436;
}

.cloud-strip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cloud-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 1.35rem 1.4rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--lime) 10%, var(--card)) 0%, var(--card) 58%);
}

.cloud-strip-inner > div {
  flex: 1 1 12rem;
  min-width: 0;
}

.cloud-strip-inner h2 {
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
}

.cloud-strip-inner p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.cloud-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 2 1 16rem;
}

.cloud-logos li {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* Section visual banner + feature cards */
.section-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 220px;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
}

.section-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(7, 30, 48, 0.82) 0%, rgba(7, 30, 48, 0.45) 55%, rgba(7, 30, 48, 0.18) 100%);
}

.section-visual-copy {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.4rem;
  color: #fff;
  max-width: 36rem;
}

.section-visual-copy h2 {
  margin: 0 0 0.4rem;
  color: #fff;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
}

.section-visual-copy p {
  margin: 0 0 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.feature-card .feature-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b2436;
}

.feature-card .feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card:hover .feature-media img {
  transform: scale(1.04);
}

.feature-card .feature-body {
  padding: 1rem 1.1rem 1.15rem;
}

.feature-card .tag {
  margin-bottom: 0.45rem;
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
}

.feature-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.feature-card li + li {
  margin-top: 0.25rem;
}

.feature-card .feature-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
}

@media (prefers-reduced-motion: reduce) {
  .feature-card:hover .feature-media img {
    transform: none;
  }
}

/* Scene showcase (legacy pages) */
.scene-showcase {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.scene-showcase figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  aspect-ratio: 16 / 10;
}

.scene-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.scene-showcase figure:hover img {
  transform: scale(1.04);
}

.scene-showcase figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(7, 30, 48, 0.78));
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}

.scene-rail {
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 16px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.scene-track {
  display: flex;
  gap: 0.7rem;
  width: max-content;
  animation: sceneSlide 36s linear infinite;
}

.scene-track img {
  width: 280px;
  height: 168px;
  object-fit: cover;
  border-radius: 14px;
}

@keyframes sceneSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Legacy hero (kept for compatibility) */
.hero {
  margin-top: 1.2rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #073657 0%, #0b4a73 55%, #156089 100%);
  color: #fff;
}

.hero-main {
  padding: 2.6rem 2.4rem;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: #c5e88a;
  margin-bottom: 1.1rem;
}

.hero-kicker::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(122, 181, 28, 0.22);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: 0.01em;
  margin-bottom: 0.9rem;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.04rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-side {
  background: rgba(255, 255, 255, 0.06);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.hero-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(122, 181, 28, 0.22), transparent 55%);
  pointer-events: none;
}

.hero-logo-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-logo-wrap img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 0.25rem;
}

.hero-logo-wrap .name {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-logo-wrap .tagline {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-panel {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 1rem;
}

.hero-panel h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.03em;
}

.panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.panel-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
}

.panel-list strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
}

.panel-list span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}

.dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--lime);
  margin-top: 0.35rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 11px;
  padding: 0.78rem 1.25rem;
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--lime);
  color: #0a1f2e;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(122, 181, 28, 0.28);
}

.btn-primary:hover {
  background: #8bc92a;
  color: #0a1f2e;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
  font-weight: 600;
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue-deep);
  background: rgba(11, 74, 115, 0.04);
}

.btn-navy {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.btn-navy:hover {
  background: var(--blue-deep);
  color: #fff;
}

/* Section */
.section {
  padding: 3.2rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.section-head a {
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 28rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--lime-deep);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: var(--lime);
}

h1,
h2,
h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.28;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

h3 {
  font-size: 1.1rem;
}

.lead {
  font-size: 1.04rem;
  color: var(--ink-soft);
  max-width: 36rem;
}

/* Stats bar */
.stats-bar {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  padding: 1.35rem 1.2rem;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stat-item {
  text-align: center;
  padding: 0.4rem 0.5rem;
  border-right: 1px solid var(--line);
}

.stat-item:last-child {
  border-right: 0;
}

.stat-item .num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.03em;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stat-item .num.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-item .label {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* HKCERT 公開事故統計 */
.hkcert-stats {
  margin-top: 0.35rem;
}

.hkcert-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.hkcert-stat-card {
  text-align: center;
  padding: 1rem 0.7rem 1.05rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.hkcert-stat-card .num {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hkcert-stat-card .label {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.hkcert-stats-note {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.hkcert-stats-note a {
  color: var(--blue);
}

@media (max-width: 960px) {
  .hkcert-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hkcert-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Grids & cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.95rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.95rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.4rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
}

.card a.card-link {
  display: inline-block;
  margin-top: 0.8rem;
  text-decoration: none;
  color: var(--blue);
  font-weight: 600;
}

.card ul {
  margin: 0.6rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.card li + li {
  margin-top: 0.35rem;
}

.service-card {
  min-height: 100%;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--lime) 100%);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #b4c9d9;
  box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
  transform: scaleX(1.02);
}

.service-card .tag,
.icon-card .tag,
.card .tag {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--lime-deep);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.icon-card {
  background: var(--icon-card-bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 0 1.3rem;
  box-shadow: var(--shadow);
  min-height: 100%;
  overflow: hidden;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.icon-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--lime));
}

.icon-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #b9cfe0;
}

.icon-card h3,
.icon-card p {
  padding: 0 1.25rem;
}

.icon-card h3 {
  margin: 0.15rem 0 0.4rem;
}

.icon-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.icon-art {
  width: min(100%, 260px);
  height: auto;
  margin: 1rem auto 0.35rem;
  object-fit: contain;
  border-radius: 16px;
  background: transparent;
  display: block;
}

.process li > img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.process li > div {
  margin: 0 1.15rem;
}

.page-banner {
  margin-top: 1.2rem;
  border-radius: 18px;
  overflow: hidden;
  min-height: 280px;
  position: relative;
  display: flex;
  align-items: flex-end;
  color: #e8eef4;
  box-shadow: var(--shadow);
  background:
    radial-gradient(ellipse 70% 80% at 88% 20%, rgba(2, 132, 199, 0.28), transparent 55%),
    radial-gradient(ellipse 45% 60% at 10% 90%, rgba(132, 204, 22, 0.16), transparent 50%),
    linear-gradient(145deg, #041018 0%, #061826 50%, #0a2a3f 100%);
}

.page-banner img {
  position: absolute;
  right: 6%;
  top: 50%;
  width: min(34%, 180px);
  height: auto;
  max-height: 200px;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.3));
  z-index: 1;
  animation: bannerNeedle 7s ease-in-out infinite;
  transform-origin: center;
}

@keyframes bannerNeedle {
  0%, 100% { transform: translateY(-50%) rotate(-4deg) scale(1); }
  50% { transform: translateY(-50%) rotate(5deg) scale(1.03); }
}

.page-banner::before {
  content: "";
  position: absolute;
  right: -4%;
  top: 50%;
  width: min(48%, 260px);
  height: min(48%, 260px);
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: repeating-conic-gradient(from 0deg, rgba(232, 238, 244, 0.1) 0deg 1deg, transparent 1deg 12deg);
  -webkit-mask-image: radial-gradient(circle, transparent 62%, #000 63%, #000 78%, transparent 79%);
  mask-image: radial-gradient(circle, transparent 62%, #000 63%, #000 78%, transparent 79%);
  animation: compassSpin 56s linear infinite;
  pointer-events: none;
}

.page-banner::after {
  content: none;
}

.page-banner .copy {
  position: relative;
  z-index: 2;
  padding: 2.1rem 2.3rem;
  max-width: 40rem;
}

.page-banner h1 {
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}

.page-banner .lead,
.page-banner .eyebrow {
  color: rgba(232, 238, 244, 0.82);
}

main .page-banner .btn-ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

main .page-banner .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.85rem;
  display: block;
}

.thumb.illu {
  height: 210px;
  object-fit: contain;
  object-position: center;
  background: var(--thumb-illu-bg);
}

.split-visual {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.9rem;
  align-items: stretch;
}

.split-visual img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  border-radius: 16px;
}

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.process li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 0 1.15rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.process li > span {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  margin: -1.15rem 1.15rem 0.7rem;
  border: 3px solid #fff;
  position: relative;
  font-family: var(--font-display);
}

.process p {
  margin: 0;
  color: var(--ink-soft);
}

.page-hero {
  padding: 3.2rem 0 1.4rem;
}

.page-hero .lead {
  margin-bottom: 0;
}

/* Trust points */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.95rem;
}

.trust-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
  box-shadow: var(--shadow);
}

.trust-card .icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--lime));
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 0.9rem;
}

.trust-card h3 {
  margin-bottom: 0.45rem;
}

.trust-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--lime));
}

.timeline li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.85rem 0;
}

.timeline .marker {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.timeline .body {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow);
}

.timeline .body h3 {
  margin-bottom: 0.35rem;
}

.timeline .body p {
  margin: 0;
  color: var(--ink-soft);
}

/* Steps (legacy / still used) */
.steps {
  counter-reset: step;
  display: grid;
  gap: 0.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  list-style: none;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.9rem;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue) 0%, var(--lime) 100%);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.95rem;
}

.testimonial {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
}

.testimonial .quote {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.65;
  flex: 1;
}

.testimonial .quote::before {
  content: "「";
  color: var(--lime);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 0;
  margin-right: 0.1rem;
}

.testimonial .quote::after {
  content: "」";
  color: var(--lime);
  font-size: 1.1rem;
  font-weight: 700;
}

.testimonial .who {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.testimonial .who strong {
  font-size: 0.95rem;
}

.testimonial .who span {
  font-size: 0.84rem;
  color: var(--ink-soft);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(10, 31, 46, 0.04);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--blue);
  font-weight: 500;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-body {
  padding: 0 1.2rem 1.1rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.faq-item .faq-body p {
  margin: 0;
}

/* Contact CTA */
.contact-cta {
  margin: 1rem 0 3rem;
  padding: 1.85rem 1.85rem 2rem;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(122, 181, 28, 0.2), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(56, 189, 248, 0.12), transparent 45%),
    linear-gradient(145deg, #062a42 0%, #0b4a73 48%, #0f5f8a 100%);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(6, 42, 66, 0.28);
}

.contact-cta--form {
  grid-template-columns: minmax(0, 1.45fr) minmax(17.5rem, 0.78fr);
  gap: 1.35rem 1.5rem;
}

.contact-cta-intro {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-cta-intro h2 {
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.contact-cta-intro p {
  max-width: 36rem;
}

.contact-cta-intro .hero-actions {
  margin-top: 0;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.contact-aside-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  padding: 1.25rem 1.2rem 1.3rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.contact-aside h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.contact-aside-note {
  margin: auto 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
}

.contact-dl {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-dl > div {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.contact-dl dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.contact-dl dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #fff;
  word-break: normal;
  overflow-wrap: break-word;
}

.contact-dl a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(163, 230, 53, 0.45);
}

.contact-dl a:hover {
  color: #d9f99d;
  border-bottom-color: #a3e635;
}

.contact-form {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  padding: 1.3rem 1.35rem 1.35rem;
  min-width: 0;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.contact-form-head {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(11, 74, 115, 0.1);
}

.contact-form-head h3 {
  margin: 0 0 0.28rem;
  font-size: 1.12rem;
  color: var(--ink);
}

.contact-form-head p {
  margin: 0 !important;
  font-size: 0.88rem !important;
  color: var(--ink-soft) !important;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
  align-items: start;
}

.contact-form label,
.contact-form-full {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  min-width: 0;
}

.contact-label-text {
  display: block;
  line-height: 1.35;
  min-height: 1.35em;
  white-space: nowrap;
}

.contact-form .req {
  color: #65a30d;
  margin-left: 0.2rem;
  font-weight: 700;
}

.contact-form-full {
  margin-top: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.72rem 0.8rem;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input,
.contact-form select {
  height: 2.85rem;
  min-height: 2.85rem;
}

.contact-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 1.05rem) calc(50% - 0.12rem),
    calc(100% - 0.72rem) calc(50% - 0.12rem);
  background-size: 0.34rem 0.34rem, 0.34rem 0.34rem;
  background-repeat: no-repeat;
  padding-right: 2.1rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(11, 74, 115, 0.45);
  box-shadow: 0 0 0 3px rgba(11, 74, 115, 0.12);
}

.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.05rem;
}

.contact-form .btn-ghost {
  border-color: var(--line) !important;
  color: var(--ink) !important;
  background: #fff !important;
}

.contact-form .btn-ghost:hover {
  border-color: var(--blue) !important;
  color: var(--blue-deep) !important;
  background: rgba(11, 74, 115, 0.04) !important;
}

.contact-form-hint,
.contact-form-status {
  margin: 0.75rem 0 0 !important;
  font-size: 0.78rem !important;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-soft) !important;
}

.contact-form-status.is-err {
  color: #b91c1c !important;
}

.contact-form-status.is-ok {
  color: #3f6212 !important;
}

@media (max-width: 960px) {
  .contact-cta--form {
    grid-template-columns: 1fr;
  }

  .contact-aside {
    order: 2;
  }
}

@media (max-width: 720px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-cta {
    padding: 1.35rem 1.2rem 1.5rem;
  }
}

.contact-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
}

.contact-cta > * {
  position: relative;
  z-index: 1;
}

.contact-cta h2 {
  color: #fff;
  margin: 0 0 0.45rem;
}

.contact-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.contact-channels {
  display: grid;
  gap: 0.65rem;
}

.contact-channels a,
.contact-channels .channel {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.contact-channels a:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.contact-channels .dot-lime {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
}

.contact-channels strong {
  display: block;
  font-size: 0.92rem;
}

.contact-channels span {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Insights */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 1.6rem;
}

.filter-btn {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  border-radius: 10px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.filter-btn[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.post-list {
  display: grid;
  gap: 0.85rem;
}

.post-item {
  display: grid;
  gap: 0.4rem;
  padding: 1.15rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(10, 31, 46, 0.03);
  min-width: 0;
}

.post-item.has-image {
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.95rem 1.1rem;
  align-items: stretch;
  padding: 0.85rem 1rem 0.85rem 0.85rem;
}

.post-thumb {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--thumb-illu-bg);
  min-height: 6.5rem;
}

.post-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 6.5rem;
  object-fit: cover;
}

.post-copy {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  align-content: start;
  padding-block: 0.15rem;
}

.post-item:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.article-hero {
  margin: 1.1rem 0 1.35rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--thumb-illu-bg);
}

.article-hero img {
  display: block;
  width: 100%;
  max-height: 22rem;
  object-fit: cover;
}

@media (max-width: 640px) {
  .post-item.has-image {
    grid-template-columns: 1fr;
    padding: 0.85rem;
  }

  .post-thumb {
    min-height: 9rem;
  }

  .post-thumb img {
    min-height: 9rem;
    max-height: 12rem;
  }
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  background: var(--bg-deep);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
}

.badge-news { background: #e4f0d4; }
.badge-gov { background: #d7e8f4; }
.badge-funding { background: #eef5d8; }

.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--ink-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
}

.article {
  max-width: 46rem;
}

.related-services {
  margin-top: 1.8rem;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--lime-soft) 55%, var(--card));
}

.related-services h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.related-services p {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.related-services-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.related-services-links .btn {
  min-height: 2.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
}

.article .disclaimer {
  margin-top: 1.8rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--lime);
  background: rgba(122, 181, 28, 0.08);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* CTA band (legacy) */
.cta-band {
  margin: 1rem 0 3rem;
  padding: 1.9rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 20%, rgba(122, 181, 28, 0.2), transparent 36%),
    linear-gradient(135deg, #073657 0%, #0b4a73 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  margin: 0.3rem 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.cta-band .btn-primary {
  background: var(--lime);
  color: #0a1f2e;
}

.cta-band .btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 1.8rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  background: var(--footer-bg);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.6rem 2.4rem;
  align-items: start;
}

.footer-brand {
  min-width: 0;
}

.footer-brand strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin-bottom: 0.55rem;
}

.footer-brand p,
.footer-col p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.55;
  max-width: 38rem;
}

.footer-brand p + p,
.footer-col p + p {
  margin-top: 0.28rem;
}

.footer-brand a,
.footer-col a,
.footer-bottom a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-brand a:hover,
.footer-col a:hover,
.footer-bottom a:hover {
  color: var(--blue);
  border-bottom-color: rgba(11, 74, 115, 0.35);
}

.footer-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.5rem;
  min-width: 0;
}

.footer-col h4 {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.42rem;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.4;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-bottom {
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.55rem 1.5rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 44rem;
}

.footer-copy {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.contact-channels .channel span span {
  white-space: normal;
  line-height: 1.4;
}

@media (max-width: 860px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .footer-meta {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-copy {
    white-space: normal;
  }
}

/* Light-surface ghost buttons */
.btn-ghost.on-light {
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost.on-light:hover {
  border-color: var(--blue);
  color: var(--blue-deep);
  background: transparent;
}

/* Dark bands: keep high-contrast white ghost buttons */
.contact-cta-intro .btn-ghost,
.cta-band .btn-ghost,
.hero-logo .btn-ghost,
.hero-photo .btn-ghost,
.page-banner .btn-ghost,
.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.7) !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
}

.contact-cta-intro .btn-ghost:hover,
.cta-band .btn-ghost:hover,
.hero-logo .btn-ghost:hover,
.hero-photo .btn-ghost:hover,
.page-banner .btn-ghost:hover,
.hero .btn-ghost:hover {
  border-color: #fff !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .badge-news { background: #2a3d1c; color: #d7efb0; }
html[data-theme="dark"] .badge-gov { background: #1c3344; color: #b7daf0; }
html[data-theme="dark"] .badge-funding { background: #3a3d1c; color: #e6efb0; }
html[data-theme="dark"] .brand-mark { background: var(--sea); }
html[data-theme="dark"] .stats-bar,
html[data-theme="dark"] .trust-card,
html[data-theme="dark"] .testimonial,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .post-item,
html[data-theme="dark"] .empty-state {
  background: var(--card);
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-ring,
  .hero-logo-ring--slow,
  .hero-logo-mark,
  .page-banner::before,
  .page-banner img,
  .scene-track {
    animation: none !important;
  }

  .page-banner img {
    transform: translateY(-50%);
  }

  .stat-item .num {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-enter .hero-enter-item,
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .pillar-card:hover,
  .pillar-card:hover .pillar-media img {
    transform: none;
  }
}

@media (max-width: 920px) {
  .hero,
  .grid-3,
  .grid-2,
  .icon-grid,
  .process,
  .split-visual,
  .stats-bar,
  .trust-grid,
  .testimonial-grid,
  .scene-showcase,
  .pillar-grid,
  .security-intel-grid,
  .cloud-strip-panel,
  .feature-grid,
  .contact-cta {
    grid-template-columns: 1fr;
  }

  .cloud-strip-media {
    min-height: 180px;
  }

  .section-visual {
    min-height: 200px;
  }

  .icon-grid,
  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.85rem;
  }

  .stat-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .hero-side {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .scene-showcase {
    grid-template-columns: 1fr;
  }

  .security-intel .hkcert-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-logo,
  .hero-logo--bleed,
  .hero-photo--bleed {
    min-height: min(78vh, 620px);
  }

  .hero-logo-mark {
    width: min(58vw, 220px);
    height: min(58vw, 220px);
    opacity: 0.88;
  }

  .hero-logo-copy,
  .hero-photo--bleed .hero-photo-copy {
    padding: 2.4rem 0 2.2rem;
  }

  .hero-brand {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .page-banner img {
    width: min(28%, 120px);
    right: 4%;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    inset: calc(100% + 1px) 1rem auto;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.6rem;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .header-tools {
    margin-left: auto;
  }

  .header-inner {
    position: relative;
  }

  .hero {
    margin-top: 0.8rem;
  }

  .hero-main,
  .hero-photo-copy,
  .page-banner .copy,
  .contact-cta {
    padding: 1.6rem 1.4rem;
  }

  .hero-photo {
    min-height: 420px;
    margin-top: 0.8rem;
  }

  .hero-photo--bleed {
    min-height: 68vh;
    margin-top: 0;
  }

  .icon-grid,
  .stats-bar,
  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-bottom: 1px solid var(--line);
  }

  .stat-item:last-child {
    border-bottom: 0;
  }
}

/* Conversion micro: pricing note + landing links */
.pricing-note {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.landing-links {
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.landing-links a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.landing-links a:hover {
  color: var(--lime-deep);
  text-decoration: underline;
}

.hero-actions .btn-primary {
  box-shadow: 0 8px 22px color-mix(in srgb, var(--lime) 35%, transparent);
}

/* Mobile sticky WhatsApp / call bar */
.sticky-contact {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: 0 -6px 24px rgba(7, 54, 87, 0.12);
}

.sticky-contact a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.65rem;
  border-radius: 0.55rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.sticky-contact .sticky-call {
  background: var(--blue);
  color: #fff;
}

.sticky-contact .sticky-wa {
  background: var(--lime);
  color: #0a1f2e;
}

body.has-sticky-contact {
  padding-bottom: 4.5rem;
}

@media (max-width: 760px) {
  .sticky-contact {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-actions .btn-primary {
    box-shadow: none;
  }

  .sticky-contact {
    backdrop-filter: none;
  }
}

/* —— 2026 介面對齊：公開站卡片／預約／頁尾間距 —— */
.site-header {
  backdrop-filter: blur(12px);
}

.site-footer {
  margin-top: 2.5rem;
}

.card,
.service-card,
.insight-card,
.appt-panel,
.contact-card {
  border-radius: calc(var(--radius) + 2px);
}

.appt-panel,
.section .card {
  box-shadow: var(--shadow);
}

.appt-form label,
.appt-lookup label {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.appt-form input,
.appt-form select,
.appt-form textarea,
.appt-lookup input {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0.7rem 0.85rem;
}

.appt-msg {
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
}

#appt-calendar-actions .btn {
  min-height: 2.5rem;
}

.footer-inner {
  gap: 1.5rem;
}

.footer-brand strong {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

/* —— Compass icon system —— */
.c-icon {
  display: inline-block;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: -0.2em;
  color: currentColor;
  fill: currentColor;
  stroke: currentColor;
}

.c-icon--sm { width: 1rem; height: 1rem; }
.c-icon--md { width: 1.25rem; height: 1.25rem; }
.c-icon--lg { width: 2rem; height: 2rem; }
.c-icon--xl { width: 3rem; height: 3rem; }

.c-icon--duotone {
  color: var(--blue);
}

html[data-theme="dark"] .c-icon--duotone {
  color: var(--blue-mid);
}

.appt-type-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 0.35rem;
}

@media (max-width: 640px) {
  .appt-type-cards { grid-template-columns: 1fr; }
}

.appt-type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 0.55rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.appt-type-card:hover {
  border-color: var(--blue-mid);
}

.appt-type-card:has(input:checked),
.appt-type-card.is-selected {
  border-color: var(--blue);
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.08), transparent 70%);
  box-shadow: 0 0 0 1px var(--blue);
}

.appt-type-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.appt-type-card .c-icon {
  color: var(--blue);
}

.appt-type-card strong {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ink);
}

.appt-type-card span.hint {
  font-size: 0.75rem;
  color: var(--ink-soft);
  line-height: 1.3;
}

.svc-icon-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
}

@media (max-width: 800px) {
  .svc-icon-row { grid-template-columns: repeat(2, 1fr); }
}

.svc-icon-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.svc-icon-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.svc-icon-item .c-icon {
  color: var(--blue);
}

.svc-icon-item strong {
  font-size: 0.95rem;
}

.svc-icon-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.icon-card .c-icon.c-icon--xl {
  margin: 1.1rem 1.25rem 0.25rem;
  color: var(--blue);
}

.type-icon-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.type-icon-inline .c-icon { color: var(--blue); }

.pillar-copy .c-icon {
  color: var(--blue);
  margin-bottom: 0.35rem;
}

/* —— 月費計劃比較 —— */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
  align-items: start;
}

.plan-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.plan-card--featured {
  border-top: 4px solid var(--lime);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.plan-tier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 2.6rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--lime-soft);
  color: var(--lime-deep);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.plan-price {
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.3;
}

.plan-price strong {
  font-size: 2rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
}

.plan-price span {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

.plan-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}

.plan-card li + li {
  margin-top: 0.35rem;
}

.plan-card .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* —— 技術棧單行 —— */
.tech-stack-line {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0;
  padding: 1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* —— 棄用頁面提示 —— */
.deprecated-banner {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 12px;
  color: #7c2d12;
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  align-items: center;
}

html[data-theme="dark"] .deprecated-banner {
  background: #2a1b0f;
  border-color: #9a3412;
  color: #fed7aa;
}

.deprecated-banner a {
  color: var(--blue);
  font-weight: 600;
}

@media (max-width: 760px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .plan-card--featured {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plan-card--featured {
    transform: none;
  }
}
