/* ===================================================================
   CDR — Cyber Digital Research Limited
   Inspired by AGH design system + CDR cyber-blue twist
   =================================================================== */

/* ---------- 1. Design tokens (CDR-specific) ---------- */
:root {
  --color-navy:        #1F4E79;
  --color-navy-dark:   #14365A;
  --color-navy-light:  #2C5F8F;
  --color-white:       #FFFFFF;
  --color-black:       #0A0A0A;
  --color-grey:        #616161;
  --color-grey-light:  #9E9E9E;
  --color-grey-dark:   #424242;
  --color-grey-bg:     #E8E8E8;
  --color-grey-bg-light: #F5F5F5;

  --cdr-accent-cyan:     #06B6D4;
  --cdr-accent-electric: #00D4FF;
  --cdr-accent-glow:     rgba(6, 182, 212, 0.4);

  --cdr-moat-gov:        #1F4E79;
  --cdr-moat-cyberport:  #06B6D4;
  --cdr-moat-pki:        #FFD166;
  --cdr-moat-soc:        #2E7D32;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 24px var(--cdr-accent-glow);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               'PingFang SC', 'PingFang TC', 'Hiragino Sans GB', 'Hiragino Sans TC',
               'Microsoft YaHei', 'Microsoft JhengHei',
               'Source Han Sans SC', 'Source Han Sans TC', 'Source Han Sans CN',
               'Noto Sans SC', 'Noto Sans TC', 'Noto Sans CJK SC', 'Noto Sans CJK TC',
               'Helvetica Neue', sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Cascadia Code', 'JetBrains Mono', Menlo, Consolas, monospace;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-grey-dark);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--color-navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cdr-accent-cyan); }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.2; color: var(--color-black); }
p { margin: 0 0 1em; }
ul { list-style: none; padding: 0; margin: 0; }
button { font: inherit; cursor: pointer; }

.mono { font-family: var(--font-mono); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 3. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-grey-bg);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--color-navy);
  font-size: 14px;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: block;
  height: 64px;
  width: auto;
  object-fit: contain;
  /* logo image (463x123 aspect 3.77:1) — height 64px, width auto ~241px */
}
.brand-name-zh {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.2;
  display: block;
  letter-spacing: 0.02em;
}
.brand-name-en {
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  color: var(--color-navy);
  line-height: 1.2;
  display: block;
  letter-spacing: -0.01em;
}
.brand-footer .brand-mark {
  height: 52px;
}
.brand-name {
  font-size: 14px;
  color: var(--color-grey-dark);
}
.primary-nav {
  display: flex;
  gap: 28px;
  margin-left: 16px;
  flex: 1;
}
.primary-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-grey-dark);
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}
.primary-nav a:hover { color: var(--color-navy); }
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--cdr-accent-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.primary-nav a:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--color-grey-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.lang-switch button {
  background: transparent;
  border: 0;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-grey);
  border-right: 1px solid var(--color-grey-bg);
}
.lang-switch button:last-child { border-right: 0; }
.lang-switch button.active {
  background: var(--color-navy);
  color: var(--color-white);
}

/* ---------- 4. Buttons ---------- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.cta-btn-primary {
  background: var(--color-navy);
  color: var(--color-white);
  box-shadow: var(--shadow-glow);
}
.cta-btn-primary:hover {
  background: var(--color-navy-dark);
  color: var(--color-white);
  box-shadow: 0 0 32px var(--cdr-accent-glow);
  transform: translateY(-1px);
}
.cta-btn-ghost {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-grey-bg);
}
.cta-btn-ghost:hover {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}
.cta-btn-large {
  padding: 14px 28px;
  font-size: 15px;
}

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 60%, #1A4060 100%);
  color: var(--color-white);
  padding: 80px 0 96px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.threat-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  animation: grid-pulse 8s ease-in-out infinite;
}
@keyframes grid-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cdr-accent-cyan);
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.1;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin-bottom: 32px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--cdr-accent-electric);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  line-height: 1.3;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-inner .hero-ctas {
  justify-content: center;
}
.hero-ctas .cta-btn-ghost {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.3);
}
.hero-ctas .cta-btn-ghost:hover {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}

.threat-feed {
  background: rgba(5, 10, 20, 0.6);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-xl), inset 0 0 32px rgba(6, 182, 212, 0.08);
}
.feed-header {
  color: var(--cdr-accent-cyan);
  font-size: 11px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}
.feed-list { display: flex; flex-direction: column; gap: 10px; }
.feed-list li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.feed-time { color: var(--color-grey-light); flex-shrink: 0; }
.feed-tag {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.tag-ok      { background: rgba(46, 125, 50, 0.25); color: #66BB6A; }
.tag-mitigated { background: rgba(6, 182, 212, 0.25); color: var(--cdr-accent-electric); }
.tag-block   { background: rgba(192, 0, 0, 0.25); color: #EF5350; }
.feed-msg { color: rgba(255, 255, 255, 0.85); }

/* ---------- 6. Sections (generic) ---------- */
.section {
  padding: 88px 0;
}
.section-light { background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%); }
.section-dark {
  background: linear-gradient(135deg, #050a14 0%, #0a1428 30%, #0d1a35 60%, #050a14 100%);
  color: var(--color-white);
}
.section-dark .section-title { color: var(--color-white); }
.section-dark .section-lede { color: rgba(255, 255, 255, 0.75); }
.section-compact { padding: 64px 0; }

.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cdr-accent-cyan);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-grey);
  max-width: 720px;
  margin-bottom: 48px;
}

/* ---------- 7. Timeline (News) ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.timeline-item {
  background: var(--color-white);
  border: 1px solid var(--color-grey-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: all var(--transition);
}
.timeline-item:hover {
  border-color: var(--cdr-accent-cyan);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.timeline-year {
  display: inline-block;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.timeline-title {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--color-navy);
}
.timeline-body {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-grey);
  margin: 0;
}

/* ---------- 8. Moat pillars ---------- */
.moat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.moat-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
  overflow: hidden;
}
.moat-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 32px rgba(6, 182, 212, 0.15);
}
.moat-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.moat-gov .moat-top { background: var(--cdr-moat-gov); }
.moat-cyberport .moat-top { background: var(--cdr-moat-cyberport); }
.moat-pki .moat-top { background: var(--cdr-moat-pki); }
.moat-soc .moat-top { background: var(--cdr-moat-soc); }

.moat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.12);
  color: var(--cdr-accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.moat-icon svg { width: 22px; height: 22px; }
.moat-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
  line-height: 1.3;
}
.moat-body {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

/* ---------- 9. Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-card {
  display: block;
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-grey-bg);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: all var(--transition);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}
.service-card:hover {
  border-color: var(--color-navy);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  color: inherit;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--cdr-accent-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 40px;
  height: 40px;
  color: var(--color-navy);
  margin-bottom: 16px;
}
.service-icon svg { width: 32px; height: 32px; }
.service-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}
.service-tag {
  font-size: 12px;
  color: var(--color-grey);
  line-height: 1.45;
  margin-bottom: 12px;
}
.service-for {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cdr-accent-cyan);
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin: 0;
  padding-right: 24px;
}
.service-arrow {
  position: absolute;
  bottom: 16px;
  right: 20px;
  color: var(--color-grey-light);
  font-size: 16px;
  transition: all var(--transition);
}
.service-card:hover .service-arrow {
  color: var(--color-navy);
  transform: translateX(4px);
}

/* ---------- 10. Case studies ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
/* 4 case cards (NGO added): 2-up on narrower desktops, 1-up at <=1024 (responsive block below) */
@media (max-width: 1200px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
}
.case-card {
  background: var(--color-white);
  border: 1px solid var(--color-grey-bg);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.case-card:hover {
  border-color: var(--color-navy);
}
.case-sector {
  font-size: 11px;
  font-weight: 700;
  color: var(--cdr-accent-cyan);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.case-title {
  font-size: 16px;
  line-height: 1.35;
  color: var(--color-navy);
  margin-bottom: 16px;
}
.case-challenge, .case-solution {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-grey-dark);
  margin-bottom: 12px;
}
.case-challenge strong, .case-solution strong { color: var(--color-navy); }

/* ---------- 11. Partners ---------- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.partner-logo {
  background: var(--color-white);
  border: 1px solid var(--color-grey-bg);
  border-radius: var(--radius-md);
  padding: 28px 16px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-grey);
  letter-spacing: 0.02em;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}
.partner-logo:hover {
  border-color: var(--cdr-accent-cyan);
  color: var(--color-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.partner-logo-img {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  max-height: 60px;
  margin: 0 auto 10px;
  object-fit: contain;
  object-position: center;
  filter: grayscale(20%);
  transition: filter 0.2s ease;
}
.partner-logo-img[alt="Kaspersky"],
.partner-logo-img[alt="Ensign InfoSecurity"] {
  filter: none;
}
.partner-logo-img:hover {
  filter: grayscale(0%);
}
.partner-logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(31, 78, 121, 0.08);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.partner-logo-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(31, 78, 121, 0.2);
  border-color: rgba(31, 78, 121, 0.25);
}
.partner-name {
  font-size: 11px;
  font-weight: 500;
  color: #4B5563;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.partner-logo-link:hover .partner-name {
  color: #4B5563;
}
.partners-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(31, 78, 121, 0.1);
  border-radius: 14px;
  padding: 32px 28px;
}
.section-partners {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}
.partner-logo-link:focus-visible {
  outline: 2px solid var(--cdr-accent-cyan);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---------- 11b. Certifications ---------- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  align-items: center;
}
.cert-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: transform 0.25s ease;
}
.cert-badge:hover {
  transform: translateY(-2px);
}
.cert-badge img {
  max-width: 100%;
  height: auto;
  display: block;
}
.section-certs {
  background: linear-gradient(180deg, #ffffff 0%, #eef3f9 60%, #ffffff 100%);
}
.section-certs .section-title {
  font-size: 32px;
  color: #1F4E79;
  text-align: left;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.section-certs .section-h3 {
  font-size: 17px;
  font-weight: 400;
  color: var(--color-grey);
  margin-bottom: 36px;
}
@media (max-width: 1100px) {
  .certs-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 800px) {
  .certs-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .certs-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .section-certs .section-title { font-size: 24px; margin-bottom: 24px; }
}

/* ---------- 12. CTA ---------- */
.section-cta {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  color: var(--color-white);
  text-align: center;
}
.cta-inner {
  max-width: 700px;
  margin: 0 auto;
}
.cta-title {
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--color-white);
  margin-bottom: 16px;
}
.cta-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  line-height: 1.55;
}

/* ---------- 13. Footer (v0.4 — white + brand block) ---------- */
.site-footer {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  color: var(--color-grey);
  padding: 64px 0 24px;
  border-top: 1px solid var(--color-grey-bg);
}
.footer-brand-block {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--color-grey-bg);
}
.footer-agh-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.agh-brand-mark {
  display: block;
  height: 48px;
  width: auto;
  flex-shrink: 0;
}
.agh-brand-text {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 800;
  color: var(--color-grey-dark);
  letter-spacing: -0.02em;
}
.footer-cdr-info {
  margin-bottom: 24px;
}
.footer-cdr-info .brand-mark {
  height: 56px;
}
.footer-agh-tagline {
  display: flex;
  align-items: center;
  gap: 16px;
}
.agh-mark {
  display: block;
  height: 36px;
  width: auto;
  flex-shrink: 0;
}
.agh-mark-link {
  display: block;
  line-height: 0;
  border-radius: 2px;
  transition: opacity var(--transition);
}
.agh-mark-link:hover { opacity: 0.82; }
.footer-tag {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-grey-dark);
  font-weight: 500;
  margin: 0;
  max-width: 560px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1.5fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-col p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-grey-dark);
  margin-bottom: 8px;
}
.brand-footer {
  margin-bottom: 12px;
  color: var(--color-navy);
}
.footer-tag {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-grey);
}
.footer-h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cdr-accent-cyan);
  margin-bottom: 16px;
}
.footer-col a { color: var(--color-navy); }
.footer-col a:hover { color: var(--cdr-accent-cyan); }
.footer-phone { color: var(--color-navy); }
.footer-bottom {
  border-top: 1px solid var(--color-grey-bg);
  padding-top: 24px;
  font-size: 11px;
  color: var(--color-grey);
  text-align: center;
}

/* ---------- 14. Bilingual (FIXED v0.2) ---------- */
/* Logic moved to script.js — it swaps textContent based on
   data-en / data-zh / data-zh-hant attributes. CSS no longer
   hides elements via [data-zh] / [data-zh-hant] selectors,
   so the default page (lang=en) shows all content correctly. */

/* ---------- 15. Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .timeline, .moat-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .cases-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .primary-nav { display: none; }
  .header-inner { gap: 12px; height: 64px; }
  /* mobile header: logo was flex-shrunk to 44px wide (unreadable) and crowded
     the language switcher - matches agh.com.hk mobile behaviour */
  .brand { flex: 0 0 auto; }
  .brand-mark { height: 36px; width: auto; flex: 0 0 auto; }
  .header-cta { display: none; }
  .hero { padding: 56px 0 64px; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .timeline, .moat-grid, .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 56px 0; }
}
/* Partners grid - breakpoints aligned with agh.com.hk */
@media (max-width: 700px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-panel { padding: 24px 16px; }
}

.footer-cdr-info {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-cdr-name-zh {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.2;
}
.footer-cdr-name-en {
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  color: var(--color-navy);
  line-height: 1.2;
}


/* ---------- 15. About CDR panel (footer) — added v10.9 ---------- */
.footer-brand-block {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}
.footer-brand-left { min-width: 0; }
.footer-about { min-width: 0; }
.about-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cdr-accent-cyan);
  margin-bottom: 10px;
}
.about-intro {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-grey-dark);
  max-width: 940px;
  margin-bottom: 18px;
}
.about-h {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-navy);
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--color-grey-bg);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 32px;
  margin-bottom: 18px;
}
.about-item-h {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.4;
  margin-bottom: 5px;
}
.about-item-p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--color-grey-dark);
  margin-bottom: 5px;
}
.about-list { list-style: disc; padding-left: 18px; margin: 0; }
.about-list li {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--color-grey-dark);
}
.about-list li::marker { color: var(--cdr-accent-cyan); }
.about-customers {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--color-grey-dark);
  border-top: 1px solid var(--color-grey-bg);
  padding-top: 12px;
}
.about-customers-l {
  font-weight: 700;
  color: var(--color-navy);
  margin-right: 6px;
}
/* language variants (footer About block) */
.footer-about .lang-zh,
.footer-about .lang-zh-hant { display: none; }
html[data-lang="zh"] .footer-about .lang-en { display: none; }
html[data-lang="zh"] .footer-about .lang-zh { display: block; }
html[data-lang="zh-hant"] .footer-about .lang-en { display: none; }
html[data-lang="zh-hant"] .footer-about .lang-zh-hant { display: block; }
@media (max-width: 1024px) {
  .footer-brand-block { grid-template-columns: 1fr; gap: 24px; }
  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-intro { font-size: 13.5px; }
}

/* ---------- 16. Service card details (v10.10, six categories) ---------- */
.service-note {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--color-grey-dark);
  margin-bottom: 6px;
}
.service-note-l {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cdr-accent-cyan);
  margin-right: 5px;
  white-space: nowrap;
}
.service-note-t { display: inline; }

/* ---------- 17. Header fit with the new Products tab (v10.20, 7 nav items) ----------
   Adding a 7th nav item pushed the header past the viewport in the 641-960px band,
   where the nav was already overflowing before this change. Tighten the nav and
   drop the header CTA (it is repeated in the CTA section and in the footer) so the
   row stays on one line without a horizontal scrollbar. */
@media (max-width: 1100px) {
  .primary-nav { gap: 20px; }
  .primary-nav a { font-size: 13px; }
}
@media (max-width: 900px) {
  .header-inner { gap: 16px; }
  .primary-nav { gap: 14px; margin-left: 8px; }
  .primary-nav a { font-size: 12.5px; }
  .brand-mark { height: 52px; }
  .header-cta { display: none; }
}
@media (max-width: 780px) {
  .site-header .container { padding: 0 16px; }
  .brand-mark { height: 44px; }
  .primary-nav { gap: 11px; }
  .primary-nav a { font-size: 12px; }
}
@media (max-width: 680px) {
  .primary-nav { display: none; }
}
