/* ==========================================================================
   Defo Intelligence - Corporate site
   Modern responsive stylesheet. No framework, no external font requests.
   ========================================================================== */

:root {
  --brand: #0b63d6;
  --brand-dark: #08459c;
  --brand-soft: #e8f1ff;
  --accent: #e8752c;
  --ink: #14213d;
  --ink-2: #22304b;
  --muted: #5c6b83;
  --line: #e3e9f2;
  --surface: #ffffff;
  --soft: #f4f7fb;
  --deep: #0b1f3a;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(20, 33, 61, .05);
  --shadow: 0 10px 34px rgba(20, 33, 61, .09);
  --shadow-lg: 0 22px 60px rgba(11, 31, 58, .16);
  --container: 1180px;
  --header-h: 76px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 56px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.35; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: #fff; }

/* ---------- utilities ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section--soft { background: var(--soft); }
.section--tight { padding: 64px 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 999;
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em;
  color: var(--brand); text-transform: uppercase; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.01em; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 16px; }
.section-head--light h2 { color: #fff; }
.section-head--light p { color: rgba(255, 255, 255, .72); }
.section-head--light .eyebrow { color: #8fc0ff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 26px; border: 1px solid transparent;
  border-radius: 10px; font-size: 15px; font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(11, 99, 214, .24); }
.btn--primary:hover { background: var(--brand-dark); box-shadow: 0 12px 26px rgba(11, 99, 214, .3); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(232, 117, 44, .24); }
.btn--accent:hover { background: #d4631f; }
.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .34); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn svg { width: 17px; height: 17px; flex: none; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; font-size: 14px; }
.text-link:hover { color: var(--brand-dark); }
.text-link svg { width: 15px; height: 15px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 168px; height: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  display: block; padding: 10px 15px; border-radius: 8px;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--brand); background: var(--brand-soft); }
.site-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.header-cta { flex: none; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  align-items: center; justify-content: center; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1100px 620px at 78% 22%, #1b4a91 0%, transparent 62%),
              linear-gradient(122deg, #08192f 0%, #0d2b55 55%, #0b3f86 100%);
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(115deg, transparent 12%, #000 60%, transparent 96%);
  -webkit-mask-image: linear-gradient(115deg, transparent 12%, #000 60%, transparent 96%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; width: 440px; height: 440px; right: -140px; bottom: -230px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 50%; pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 56px;
  padding-top: 88px; padding-bottom: 88px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border: 1px solid rgba(255,255,255,.26); border-radius: 100px;
  font-size: 13px; color: #cfe3ff; letter-spacing: .04em; margin-bottom: 26px;
}
.hero-badge i { width: 7px; height: 7px; border-radius: 50%; background: #6de2b1; box-shadow: 0 0 0 4px rgba(109,226,177,.16); }
.hero h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.2; letter-spacing: .01em; color: #fff; }
.hero h1 em { font-style: normal; color: #7fc0ff; }
.hero-sub { margin-top: 22px; max-width: 500px; font-size: 16.5px; line-height: 1.9; color: rgba(255,255,255,.76); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-figure { position: relative; }
.hero-figure img {
  width: 100%; border-radius: 16px;
  filter: drop-shadow(0 30px 46px rgba(0, 0, 0, .34));
}
.hero-float {
  position: absolute; left: -22px; bottom: 26px;
  background: #fff; color: var(--ink); border-radius: 12px;
  padding: 13px 18px; box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.hero-float strong { color: var(--brand); font-size: 20px; line-height: 1; }
.hero-stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-stat { padding: 26px 0 30px; display: flex; align-items: baseline; gap: 12px; }
.hero-stat + .hero-stat { padding-left: 34px; border-left: 1px solid rgba(255,255,255,.14); }
.hero-stat strong { font-size: 26px; color: #fff; letter-spacing: -.02em; }
.hero-stat span { font-size: 14px; color: rgba(255,255,255,.66); }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #c9daf5; }

.service-card { padding: 34px 30px 32px; text-align: left; }
.service-icon {
  width: 76px; height: 76px; margin-bottom: 22px;
  display: grid; place-items: center; border-radius: 20px; background: var(--soft);
}
.service-icon img { width: 64px; height: 64px; }
.service-card h3 { font-size: 20px; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: 14.5px; line-height: 1.85; min-height: 82px; }
.service-card .text-link { margin-top: 20px; }

.product-card { overflow: hidden; display: flex; flex-direction: column; }
.product-media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: #eef2f7; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 25, 47, .4)); opacity: 0; transition: opacity .3s;
}
.product-card:hover .product-media::after { opacity: 1; }
.product-body { padding: 20px 20px 24px; flex: 1; display: flex; flex-direction: column; }
.product-body .tag { font-size: 12px; color: var(--brand); font-weight: 700; letter-spacing: .08em; margin-bottom: 8px; }
.product-body h3 { font-size: 17px; line-height: 1.5; margin-bottom: 8px; }
.product-body p { font-size: 13.5px; color: var(--muted); line-height: 1.75; flex: 1; }
.product-body .text-link { margin-top: 16px; }
.product-card:hover .text-link { color: var(--brand-dark); }
.product-card:hover .text-link svg { transform: translateX(4px); }

/* Neutral placeholder for products without a photo yet */
.product-media--placeholder, .work-media--placeholder {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #eef4fc, #e0ebf9);
  color: #8ba0bd;
}
.placeholder-inner { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 20px; }
.placeholder-inner svg { width: 40px; height: 40px; }
.placeholder-inner span { font-size: 13px; letter-spacing: .06em; }

/* ---------- intro / about ---------- */
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 68px; align-items: center; }
.intro-copy h2 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 22px; }
.intro-copy p { color: var(--muted); margin-bottom: 16px; font-size: 15.5px; line-height: 1.95; }
.intro-copy .btn { margin-top: 18px; }
.value-list { display: grid; gap: 14px; }
.value-item {
  display: flex; gap: 16px; padding: 20px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.value-num {
  flex: none; width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.value-item h3 { font-size: 16px; margin-bottom: 5px; }
.value-item p { font-size: 14px; color: var(--muted); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-figure { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #fff; border: 1px solid var(--line); }
.about-figure img { width: 100%; }
.lead-text { font-size: 17px; line-height: 2; color: var(--ink-2); }
.body-text { color: var(--muted); line-height: 2; margin-top: 16px; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(115deg, #0b2a55, #0b63d6);
  color: #fff; padding: 62px 0;
}
.cta-band::after {
  content: ""; position: absolute; width: 340px; height: 340px; right: 4%; top: -190px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 50%;
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-inner h2 { color: #fff; font-size: clamp(24px, 2.8vw, 34px); }
.cta-inner p { color: rgba(255,255,255,.76); margin-top: 10px; }

/* ---------- page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(125deg, #0a1e38, #103c78);
  color: #fff; padding: 72px 0 78px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 72%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 44px); }
.page-hero p { color: rgba(255,255,255,.72); margin-top: 14px; max-width: 660px; margin-left: auto; margin-right: auto; }
.crumb { display: flex; justify-content: center; gap: 9px; font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.crumb a:hover { color: #fff; text-decoration: underline; }

/* ---------- works ---------- */
.subnav {
  position: sticky; top: var(--header-h); z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.subnav ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 12px 0; }
.subnav a {
  display: block; padding: 8px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--muted); transition: .2s;
}
.subnav a:hover { color: var(--brand); background: var(--brand-soft); }
.category { scroll-margin-top: calc(var(--header-h) + 62px); padding: 76px 0 8px; }
.category-head { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 32px; }
.category-index {
  font-size: 40px; font-weight: 800; line-height: 1;
  color: #d5e3f8; letter-spacing: -.04em;
}
.category-head h2 { font-size: clamp(24px, 2.8vw, 32px); }
.category-head p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.work-card { overflow: hidden; }
.work-media { position: relative; display: block; aspect-ratio: 63 / 38; overflow: hidden; background: #eef2f7; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work-card:hover .work-media img { transform: scale(1.045); }
.zoom-hint {
  position: absolute; right: 14px; bottom: 14px;
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.94);
  display: grid; place-items: center; color: var(--ink); box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(6px); transition: .25s;
}
.work-card:hover .zoom-hint, .work-media:focus-visible .zoom-hint { opacity: 1; transform: none; }
.zoom-hint svg { width: 18px; height: 18px; }
.work-body { padding: 24px 26px 28px; }
.work-body h3 { font-size: 19px; margin-bottom: 10px; }
.work-body p { color: var(--muted); font-size: 14.5px; line-height: 1.9; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: start; }
.info-card {
  display: flex; gap: 16px; padding: 22px; margin-bottom: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.info-icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center;
}
.info-icon svg { width: 21px; height: 21px; }
.info-card h3 { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .06em; margin-bottom: 4px; }
.info-card p { font-size: 16px; font-weight: 600; }
.info-card a:hover { color: var(--brand); text-decoration: underline; }
.qr-card { padding: 24px; text-align: center; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); }
.qr-card > a { display: block; width: 168px; margin: 0 auto; }
.qr-card img { width: 168px; height: 168px; margin: 0 auto 14px; border-radius: 10px; background: #fff; padding: 6px; }
.qr-card p { color: var(--muted); font-size: 14px; }
.qr-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.qr-actions .btn { flex: 1 1 auto; }

.form-card { padding: 36px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-card h2 { font-size: 24px; margin-bottom: 8px; }
.form-card > p { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field label .req { color: var(--accent); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fbfcfe; font-size: 15px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 99, 214, .12);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #d64545; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; line-height: 1.7; }
.form-status { margin-top: 14px; font-size: 14px; font-weight: 600; min-height: 20px; }
.form-status[data-type="error"] { color: #c33b3b; }
.form-status[data-type="ok"] { color: #197a4d; }
.form-card .btn { width: 100%; }

/* ---------- download ---------- */
.download-card { padding: 32px 30px; }
.download-card .badge {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 20px;
}
.download-card .badge svg { width: 24px; height: 24px; }
.download-card h3 { font-size: 19px; margin-bottom: 10px; }
.download-card p { font-size: 14.5px; color: var(--muted); line-height: 1.85; }
.download-card ul { margin-top: 18px; display: grid; gap: 9px; }
.download-card li { display: flex; gap: 9px; font-size: 14px; color: var(--ink-2); }
.download-card li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--accent); }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 110px 0 120px; }
.error-code {
  font-size: clamp(100px, 18vw, 190px); font-weight: 800; line-height: 1;
  letter-spacing: -.06em;
  background: linear-gradient(120deg, #0b63d6, #7fc0ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-page h1 { font-size: 28px; margin: 12px 0 14px; }
.error-page p { color: var(--muted); margin-bottom: 32px; }
.error-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- FAQ / GEO ---------- */
.section--faq { background: #f4f8fe; }
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq-item[open] { border-color: rgba(11,99,214,.28); box-shadow: var(--shadow); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 22px; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.faq-item h3 { font-size: 17px; line-height: 1.5; margin: 0; }
.faq-mark { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(11,99,214,.08); color: var(--brand); position: relative; transition: transform .2s ease, background .2s ease; }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.8px; background: currentColor; transform: translate(-50%,-50%); border-radius: 2px; }
.faq-mark::after { transform: translate(-50%,-50%) rotate(90deg); transition: opacity .2s ease; }
.faq-item[open] .faq-mark { background: var(--brand); color: #fff; }
.faq-item[open] .faq-mark::after { opacity: 0; }
.faq-answer { padding: 0 22px 20px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.faq-answer p { margin: 0; }
.faq-more { text-align: center; margin: 26px 0 0; font-size: 14px; color: var(--muted); }
.faq-more a { font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: rgba(255,255,255,.68); padding: 66px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr .9fr; gap: 44px; padding-bottom: 48px; }
.footer-brand img { width: 170px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; line-height: 1.9; max-width: 290px; }
.footer-col h3 { color: #fff; font-size: 15px; margin-bottom: 20px; }
.footer-col li + li { margin-top: 11px; }
.footer-col a { font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: #7fc0ff; }
.footer-col address { font-style: normal; font-size: 14px; line-height: 1.95; }
.footer-qr { width: 108px; height: 108px; border-radius: 8px; background: #fff; padding: 5px; }
.footer-qr + p { font-size: 12px; margin-top: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.11); padding: 22px 0 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  font-size: 13px;
}
.footer-bottom > p { margin: 0; white-space: nowrap; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
.beian { display: flex; align-items: center; flex-wrap: wrap; row-gap: 8px; }
.beian a { display: inline-flex; align-items: center; gap: 6px; line-height: 1.7; white-space: nowrap; }
.beian a + a::before {
  content: ""; flex: none; width: 1px; height: 12px;
  margin: 0 15px; background: rgba(255,255,255,.26);
}
.beian img { display: block; flex: none; width: 16px; height: 16px; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(6, 16, 31, .88); backdrop-filter: blur(4px);
}
.lightbox.is-open { display: flex; }
.lightbox-inner { max-width: 900px; width: 100%; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.lightbox img { width: 100%; max-height: 62vh; object-fit: contain; background: #eef2f7; }
.lightbox-caption { padding: 20px 26px 26px; }
.lightbox-caption h3 { font-size: 20px; margin-bottom: 8px; }
.lightbox-caption p { color: var(--muted); font-size: 14.5px; }
.lightbox-close {
  position: absolute; top: 22px; right: 26px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff;
  font-size: 26px; line-height: 1; display: grid; place-items: center;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  width: 46px; height: 46px; border: 0; border-radius: 12px;
  background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(11,99,214,.32);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- reveal ----------
   Content is visible by default. Visibility must never depend on JavaScript. */
.reveal { transition: opacity .6s ease, transform .6s ease; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .section { padding: 72px 0; }
  .header-inner { gap: 18px; }
  .brand img { width: 148px; }
  .site-nav a { padding: 9px 10px; font-size: 14px; }
  .hero-inner { gap: 34px; padding-top: 66px; padding-bottom: 66px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .intro-grid, .about-grid { gap: 40px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .footer-col--qr { grid-column: 2 / -1; }
  .contact-grid { gap: 36px; }
}

@media (max-width: 800px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    margin: 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .site-nav.is-open { max-height: 420px; }
  .site-nav ul { display: block; padding: 12px 24px 20px; }
  .site-nav a { padding: 13px 14px; font-size: 15px; border-radius: 8px; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .hero-inner { grid-template-columns: 1fr; padding-top: 60px; padding-bottom: 54px; }
  .hero-figure { max-width: 560px; margin: 0 auto; }
  .hero-float { left: 0; bottom: 12px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { padding: 16px 0; }
  .hero-stat + .hero-stat { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .intro-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .subnav ul { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 10px 24px; -webkit-overflow-scrolling: touch; }
  .subnav a { white-space: nowrap; }
  .category { padding-top: 58px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col--qr { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .beian { flex-direction: column; align-items: flex-start; gap: 8px; }
  .beian a + a::before { display: none; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .section { padding: 58px 0; }
  .section-head { margin-bottom: 34px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 15px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .service-card p { min-height: 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 26px 20px; }
  .category-head { gap: 12px; }
  .category-index { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .page-hero { padding: 54px 0 58px; }
  .cta-band { padding: 48px 0; }
  .lightbox-caption { padding: 16px 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .to-top, .cta-band, .subnav, .nav-toggle { display: none !important; }
  body { color: #000; }
}
