/* ============================================================
   智软科技 - Precision Blue Design System
   方向: 精密蓝 / Clean Architectural Blue
   白底 + 深蓝主色 + 锐利排版 + 建筑感留白
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  --surface: #f8fafc;
  --surface-alt: #f1f5f9;
  --surface-warm: #f0f4f8;
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --brand: #1e40af;
  --brand-deep: #1e3a8a;
  --brand-bright: #2563eb;
  --brand-light: #3b82f6;
  --brand-pale: #eff6ff;
  --brand-surface: #dbeafe;
  --accent: #0284c7;
  --accent-light: #e0f2fe;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);
  --page-x: max(28px, calc((100vw - 1200px) / 2));
  --font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 900;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.015em;
}

h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: var(--brand);
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 var(--page-x);
  transition: background 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo), color 0.3s ease;
}

.site-header.is-solid {
  color: var(--ink);
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header.is-hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  color: #fff;
  background: var(--brand);
  font-size: 16px;
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  opacity: 0.6;
  transition: opacity 0.2s ease, color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.nav a:hover,
.nav a.is-active {
  opacity: 1;
  color: var(--brand);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease-out-expo);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

/* Transparent header for dark hero */
.site-header:not(.is-solid) { color: #fff; }
.site-header:not(.is-solid) .nav a:hover,
.site-header:not(.is-solid) .nav a.is-active { color: #fff; opacity: 1; }
.site-header:not(.is-solid) .nav a::after { background: #fff; }
.site-header:not(.is-solid) .brand-mark { background: #fff; color: var(--brand); }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 0.3s var(--ease-out-expo), opacity 0.2s ease;
}

main { min-height: 100vh; }

/* ---- Section Shared ---- */
.section {
  padding: clamp(80px, 10vw, 130px) var(--page-x);
}

.section-head {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-head .eyebrow { margin-bottom: 24px; }
.section-head h2 { margin-bottom: 20px; }

.section-head p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.85;
}

/* ---- Buttons ---- */
.btn-primary,
.btn-ghost,
.btn-light {
  min-height: 48px;
  padding: 0 28px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.22s var(--ease-out-expo);
  cursor: pointer;
  border: 0;
  letter-spacing: 0.02em;
}

.btn-primary {
  color: #fff;
  background: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(30, 64, 175, 0.22);
}

.btn-ghost {
  color: var(--ink-soft);
  border: 1.5px solid var(--line-strong);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-pale);
}

.btn-light {
  color: var(--brand);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.btn-light:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

/* ============================================================
   HOMEPAGE - Hero
   Deep blue + left-aligned typography + abstract geometry + visual anchor card
   ============================================================ */
.zr-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #0a1628;
  color: #fff;
  overflow: hidden;
}

.zr-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(155deg, #091328 0%, #0f1f44 30%, #132d6b 60%, #0e2352 100%);
}

.zr-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 8% 20%, rgba(59, 130, 246, 0.22) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 55%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(2, 132, 199, 0.08) 0%, transparent 40%);
}

.zr-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image:
    linear-gradient(rgba(255,255,255,0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.8) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 30% 40%, black 40%, transparent 70%);
}

/* ---- Abstract Geometry Decoration ---- */
.zr-hero-geo {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.geo-ring {
  position: absolute;
  width: clamp(300px, 40vw, 560px);
  height: clamp(300px, 40vw, 560px);
  border-radius: 50%;
  border: 1.5px solid rgba(96, 165, 250, 0.12);
  top: -15%;
  right: -8%;
}

.geo-block {
  position: absolute;
  border-radius: 4px;
}

.geo-block-1 {
  width: clamp(60px, 8vw, 100px);
  height: clamp(60px, 8vw, 100px);
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.18);
  top: 22%;
  right: 18%;
  transform: rotate(15deg);
  animation: geo-float-1 8s ease-in-out infinite;
}

.geo-block-2 {
  width: clamp(40px, 5vw, 64px);
  height: clamp(40px, 5vw, 64px);
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.22);
  top: 58%;
  right: 32%;
  transform: rotate(-8deg);
  animation: geo-float-2 6.5s ease-in-out infinite;
}

.geo-block-3 {
  width: clamp(24px, 3vw, 40px);
  height: clamp(24px, 3vw, 40px);
  background: rgba(96, 165, 250, 0.16);
  border: 1px solid rgba(147, 197, 253, 0.2);
  top: 35%;
  right: 38%;
  transform: rotate(22deg);
  animation: geo-float-1 7.2s ease-in-out 1.5s infinite;
}

.geo-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(147, 197, 253, 0.5);
}

.geo-dot-1 { top: 18%; right: 28%; }
.geo-dot-2 { top: 42%; right: 24%; animation: geo-pulse 3s ease-in-out infinite; }
.geo-dot-3 { top: 68%; right: 40%; animation: geo-pulse 3s ease-in-out 1s infinite; }
.geo-dot-4 { top: 30%; right: 44%; }

.geo-cross {
  position: absolute;
  color: rgba(147, 197, 253, 0.25);
  font-size: 18px;
  font-weight: 100;
}

.geo-cross-1 { top: 52%; right: 20%; animation: geo-pulse 4s ease-in-out 0.5s infinite; }
.geo-cross-2 { top: 25%; right: 35%; animation: geo-pulse 4s ease-in-out 2s infinite; }

.geo-cross::before { content: "+"; }

@keyframes geo-float-1 {
  0%, 100% { transform: rotate(15deg) translateY(0); }
  50% { transform: rotate(15deg) translateY(-14px); }
}

@keyframes geo-float-2 {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-8deg) translateY(-10px); }
}

@keyframes geo-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.4); }
}

/* ---- Hero Layout ---- */
.zr-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 140px var(--page-x) 80px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.zr-hero-copy { max-width: 680px; }

.zr-hero-copy .eyebrow {
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}

.zr-hero-copy .eyebrow::before {
  background: rgba(96, 165, 250, 0.5);
}

.zr-hero-copy h1 {
  margin-bottom: 28px;
  font-size: clamp(50px, 7.6vw, 96px);
  line-height: 1.04;
  color: #fff;
  letter-spacing: -0.03em;
}

.zr-lead {
  max-width: 560px;
  margin-bottom: 40px;
  color: rgba(255,255,255,0.5);
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.95;
}

.zr-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.zr-hero-actions .btn-primary {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.zr-hero-actions .btn-primary:hover {
  background: rgba(255,255,255,0.93);
  box-shadow: 0 14px 36px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.zr-hero-actions .btn-ghost {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.18);
}

.zr-hero-actions .btn-ghost:hover {
  color: var(--ink);
  border-color: #fff;
  background: #fff;
}

/* Hero Stats */
.zr-proof-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 2px solid rgba(96, 165, 250, 0.4);
}

.zr-proof-row span {
  padding: 14px 0 14px 20px;
  display: grid;
  gap: 2px;
  color: rgba(255,255,255,0.42);
  font-size: 13px;
}

.zr-proof-row span small {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  display: block;
  margin-top: 1px;
}

.zr-proof-row b {
  color: #fff;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ---- Hero Visual Anchor (right side card) ---- */
.zr-hero-visual {
  justify-self: end;
  width: min(420px, 100%);
}

.zr-hero-card {
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.zr-hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.zr-hero-card-badge {
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
}

.zr-hero-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.zr-hero-card-tags span {
  padding: 7px 14px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.25s ease;
}

.zr-hero-card-tags span:hover {
  color: #fff;
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(96, 165, 250, 0.4);
}

.zr-hero-card-stat strong {
  display: block;
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  color: #60a5fa;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.zr-hero-card-stat span {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}

/* ============================================================
   HOMEPAGE - Services (Clean grid, blue accent)
   ============================================================ */
.zr-service-section {
  background: #fff;
}

.zr-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.zr-service-card {
  padding: 44px 40px;
  background: #fff;
  transition: background 0.3s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.zr-service-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out-expo);
}

.zr-service-card:hover { background: var(--brand-pale); }
.zr-service-card:hover::after { transform: scaleX(1); }

.zr-service-card span {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 32px;
}

.zr-service-card h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.zr-service-card p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 460px;
}

/* ============================================================
   HOMEPAGE - Cases
   ============================================================ */
.zr-cases-section {
  background: var(--surface-alt);
}

.zr-case-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.zr-case-card {
  display: grid;
  grid-template-rows: 1fr auto;
  background: #fff;
  transition: background 0.3s var(--ease-out-expo);
}

.zr-case-card:hover { background: var(--brand-pale); }

.zr-case-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, var(--brand-deep), #2563eb);
  overflow: hidden;
}

.zr-case-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    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: 32px 32px;
}

.zr-case-visual span {
  position: relative;
  z-index: 1;
  font-size: 40px;
  font-weight: 900;
  color: rgba(255,255,255,0.9);
}

.zr-case-body { padding: 28px 32px; }

.zr-case-body p {
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.zr-case-body h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.35;
}

.zr-case-body span {
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
}

/* ============================================================
   HOMEPAGE - Delivery Flow
   ============================================================ */
.zr-flow-section { background: #fff; }

.zr-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.zr-flow article {
  padding: 36px 28px;
  background: #fff;
  transition: background 0.3s var(--ease-out-expo);
}

.zr-flow article:hover { background: var(--brand-pale); }

.zr-flow b {
  display: block;
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  color: var(--brand);
  opacity: 0.25;
  margin-bottom: 28px;
  transition: opacity 0.3s var(--ease-out-expo);
}

.zr-flow article:hover b { opacity: 0.6; }

.zr-flow h3 { margin-bottom: 10px; font-size: 20px; }
.zr-flow p { color: var(--muted); line-height: 1.8; font-size: 14px; }

/* ============================================================
   HOMEPAGE - Why Us
   ============================================================ */
.zr-why-section {
  background: var(--brand-deep);
  color: #fff;
}

.zr-why-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 7vw, 88px);
  align-items: start;
}

.zr-why-copy .eyebrow {
  color: rgba(255,255,255,0.5);
}

.zr-why-copy .eyebrow::before {
  background: rgba(255,255,255,0.35);
}

.zr-why-copy h2 { color: #fff; margin-bottom: 20px; }

.zr-why-copy p:not(.eyebrow) {
  max-width: 500px;
  color: rgba(255,255,255,0.52);
  line-height: 1.9;
  margin-bottom: 28px;
  font-size: 16px;
}

.zr-why-copy .btn-primary {
  background: #fff;
  color: var(--brand);
}

.zr-why-copy .btn-primary:hover {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.zr-why-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}

.zr-why-list article {
  padding: 32px 28px;
  background: rgba(255,255,255,0.04);
  transition: background 0.3s var(--ease-out-expo);
}

.zr-why-list article:hover { background: rgba(255,255,255,0.08); }

.zr-why-list strong {
  display: block;
  margin-bottom: 14px;
  font-size: 30px;
  color: #60a5fa;
  font-weight: 800;
}

.zr-why-list span {
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  font-size: 14px;
}

/* ---- CTA ---- */
.zr-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(36px, 5vw, 60px);
  border: 1px solid var(--line);
  background: #fff;
}

.zr-cta h2 { margin-bottom: 12px; font-size: clamp(28px, 4vw, 44px); }
.zr-cta p:not(.eyebrow) { color: var(--muted); max-width: 480px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 48px var(--page-x) 28px;
  background: var(--ink);
  color: rgba(255,255,255,0.45);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 36px;
}

.footer-col h4 {
  margin-bottom: 14px;
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s ease;
  line-height: 1.7;
}

.footer-col a:hover { color: rgba(255,255,255,0.75); }

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   PAGE HERO (sub-pages)
   ============================================================ */
.page-hero {
  padding: 140px var(--page-x) 64px;
  background: var(--brand-deep);
  color: #fff;
}

.page-hero h1 { margin-bottom: 16px; }

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255,255,255,0.52);
  font-size: 17px;
  line-height: 1.85;
}

.page-hero .eyebrow {
  color: rgba(255,255,255,0.5);
}

.page-hero .eyebrow::before {
  background: rgba(255,255,255,0.35);
}

.cases-hero { padding-top: 136px; padding-bottom: 48px; }
.about-hero { padding-top: 120px; padding-bottom: 40px; }

/* ---- Cases Board ---- */
.cases-board-section { padding-top: 36px; }

.cases-board {
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
}

.cases-filter-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.cases-filter-head .eyebrow { margin-bottom: 8px; }
.cases-filter-head .eyebrow::before { background: var(--brand); }
.cases-filter-head h2 { font-size: clamp(24px, 3vw, 34px); margin: 0; }

.cases-filter-head > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.cases-filter-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin-bottom: 22px;
}

.filter-group {
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.filter-group h3 {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  min-height: 36px;
  padding: 0 16px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-out-expo);
}

.chip:hover { border-color: var(--brand); color: var(--brand); }

.chip.is-active {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

/* ---- Card Grids ---- */
.card-grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.card h3 { margin-bottom: 10px; font-size: 20px; }
.card p { color: var(--muted); line-height: 1.8; font-size: 15px; }

.card:hover {
  border-color: var(--brand-light);
  box-shadow: 0 4px 20px rgba(30, 64, 175, 0.06);
}

.cases-grid-compact { gap: 14px; }

.case-card-compact {
  padding: 18px;
  transition: transform 0.25s var(--ease-out-expo), border-color 0.25s ease, box-shadow 0.25s ease;
}

.case-card-compact:hover {
  transform: translateY(-3px);
  border-color: var(--brand-light);
  box-shadow: 0 8px 28px rgba(30, 64, 175, 0.08);
}

.case-card-compact .case-image { aspect-ratio: 18 / 9; margin-bottom: 14px; }
.case-card-compact h3 { margin-bottom: 8px; font-size: 19px; }
.case-card-compact .case-result { margin-bottom: 8px; }

/* ---- Case Image Placeholder ---- */
.case-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-bright));
  position: relative;
  overflow: hidden;
}

.case-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    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: 24px 24px;
}

.case-result { color: var(--brand); font-weight: 700; font-size: 14px; }

.meta-link {
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s ease;
}

.meta-link:hover { color: var(--brand-bright); }

/* ---- Tags ---- */
.tag-row {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 11px;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  background: var(--brand-pale);
  color: var(--brand);
}

/* ---- Case Detail ---- */
.case-detail-wrap {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
}

.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-cloud span {
  padding: 6px 12px;
  border-radius: 2px;
  background: var(--brand-pale);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-hero {
  position: relative;
  padding: 140px var(--page-x) 56px;
  color: #fff;
  background: var(--brand-deep);
  overflow: hidden;
}

.services-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(#fff 1px, transparent 1px),
    linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 64px 64px;
}

.services-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.services-hero-inner .eyebrow {
  color: rgba(255,255,255,0.5);
}

.services-hero-inner .eyebrow::before {
  background: rgba(255,255,255,0.35);
}

.services-hero h1 { margin-bottom: 18px; }

.services-hero p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255,255,255,0.52);
  font-size: 17px;
  line-height: 1.85;
}

.services-matrix-section { padding-top: 48px; padding-bottom: 72px; }

.services-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-solution-card {
  padding: 36px 32px;
  background: #fff;
  transition: background 0.3s var(--ease-out-expo), transform 0.25s var(--ease-out-expo);
}

.service-solution-card:hover {
  background: var(--brand-pale);
  transform: translateY(-3px);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  color: var(--brand);
  background: var(--brand-pale);
  font-size: 22px;
  font-weight: 900;
}

.service-solution-card h3 { margin-bottom: 10px; font-size: 20px; }

.service-solution-card p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags span {
  padding: 5px 10px;
  border-radius: 2px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
}

.services-why-section {
  padding-top: 72px;
  padding-bottom: 80px;
  background: var(--surface-alt);
}

.service-section-title { margin-bottom: 36px; }
.service-section-title h2 { margin-bottom: 14px; }
.service-section-title p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.service-section-title .eyebrow::before { background: var(--brand); }

.service-advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-advantage-card {
  padding: 28px 24px;
  background: #fff;
  transition: background 0.3s var(--ease-out-expo);
}

.service-advantage-card:hover { background: var(--brand-pale); }

.service-advantage-card > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  color: var(--brand);
  background: var(--brand-pale);
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 16px;
}

.service-advantage-card h3 { margin-bottom: 8px; font-size: 18px; }
.service-advantage-card p { color: var(--muted); line-height: 1.7; font-size: 14px; }

/* Stats Band */
.services-stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-stat {
  min-height: 170px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  border-left: 1px solid var(--line);
  gap: 8px;
}

.service-stat:first-child { border-left: 0; }

.service-stat strong {
  color: var(--brand);
  font-size: clamp(38px, 4.6vw, 52px);
  line-height: 1;
  font-weight: 900;
}

.service-stat span { color: var(--muted); font-weight: 600; font-size: 14px; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-section { padding-top: 36px; padding-bottom: 52px; }
.about-compact-section { padding-top: 42px; padding-bottom: 52px; }

.about-intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  background: var(--brand-deep);
}

.about-intro-panel .eyebrow {
  color: rgba(255,255,255,0.5);
}

.about-intro-panel .eyebrow::before {
  background: rgba(255,255,255,0.35);
}

.about-intro-copy h2 {
  max-width: 880px;
  margin-bottom: 16px;
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.3;
}

.about-intro-copy p:not(.eyebrow) {
  max-width: 880px;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.52);
  line-height: 1.8;
}

.about-stat-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  align-self: stretch;
}

.about-stat-stack article {
  padding: 20px;
  background: rgba(255,255,255,0.04);
  display: grid;
  align-content: end;
}

.about-stat-stack strong {
  display: block;
  margin-bottom: 6px;
  color: #60a5fa;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

.about-stat-stack span {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  font-weight: 600;
}

.about-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.about-section-head .eyebrow { margin-bottom: 8px; }
.about-section-head .eyebrow::before { background: var(--brand); }
.about-section-head h2 { margin: 0; font-size: clamp(30px, 3.6vw, 44px); }

.about-principles,
.core-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.about-principles article,
.core-team-card {
  padding: 28px 24px;
  background: #fff;
  transition: background 0.3s var(--ease-out-expo);
}

.about-principles article:hover,
.core-team-card:hover { background: var(--brand-pale); }

.about-principles b,
.core-team-card span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.about-principles h3,
.core-team-card h3 { margin-bottom: 10px; font-size: 20px; }

.about-principles p,
.core-team-card p { color: var(--muted); line-height: 1.75; font-size: 14px; }

.history-timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.history-timeline article {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  background: #fff;
  transition: background 0.3s var(--ease-out-expo);
}

.history-timeline article:hover { background: var(--brand-pale); }

.history-timeline time {
  color: var(--brand);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}

.history-timeline h3 { margin-bottom: 6px; font-size: 18px; }
.history-timeline p { color: var(--muted); line-height: 1.75; font-size: 14px; }

/* Member Grid */
.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.member-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  margin-bottom: 14px;
  background: linear-gradient(150deg, var(--brand-pale), var(--brand-surface));
  border: 1px solid var(--line);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-hero {
  padding: 140px var(--page-x) 52px;
  color: #fff;
  background: var(--brand-deep);
}

.contact-hero .eyebrow {
  color: rgba(255,255,255,0.5);
}

.contact-hero .eyebrow::before {
  background: rgba(255,255,255,0.35);
}

.contact-hero-inner { max-width: 820px; }
.contact-hero h1 { margin-bottom: 14px; }

.contact-hero p:not(.eyebrow) {
  max-width: 660px;
  color: rgba(255,255,255,0.52);
  font-size: 17px;
  line-height: 1.85;
}

.contact-page-section { padding-top: 42px; }

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 16px;
  align-items: stretch;
}

.contact-info-panel,
.contact-form-panel {
  border: 1px solid var(--line);
  background: #fff;
  height: 100%;
}

.contact-info-panel {
  padding: 32px;
  color: #fff;
  background: var(--brand-deep);
  border-color: transparent;
}

.contact-info-panel .eyebrow {
  color: rgba(255,255,255,0.5);
}

.contact-info-panel .eyebrow::before {
  background: rgba(255,255,255,0.35);
}

.contact-info-panel h2,
.contact-form-panel h2 { margin-bottom: 20px; font-size: 28px; }

.contact-info-grid { display: grid; gap: 10px; }

.contact-info-grid article {
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}

.contact-info-grid span {
  display: block;
  margin-bottom: 6px;
  color: #60a5fa;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.contact-info-grid p {
  color: rgba(255,255,255,0.52);
  line-height: 1.75;
  word-break: break-word;
  font-size: 14px;
}

.contact-info-grid a { transition: color 0.2s ease; }
.contact-info-grid a:hover { color: rgba(255,255,255,0.9); }

.contact-form-panel { padding: 32px; }

.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 14px;
  font: inherit;
  font-size: 15px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.08);
}

.field textarea { min-height: 120px; resize: vertical; }

.contact-form-panel .btn-primary {
  border: 0;
  cursor: pointer;
  width: 100%;
}

.contact-note {
  margin-top: 12px;
  color: var(--muted-light);
  font-size: 13px;
}

.thanks {
  display: none;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 2px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 14px;
  font-weight: 600;
}

.thanks.is-visible { display: block; }

.branch-strip {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.branch-strip article {
  padding: 20px;
  border: 1px solid var(--line);
  background: #fff;
}

.branch-strip span {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.branch-strip strong { color: var(--ink); line-height: 1.7; font-size: 14px; }

/* Legacy contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 16px;
}

.contact-info { list-style: none; }

.contact-info li { margin-bottom: 16px; color: var(--muted); }

.contact-info strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
  font-size: 14px;
}

.qr-box {
  width: 170px;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

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

@keyframes slide-left {
  to { transform: translateX(-50%); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1120px) {
  .zr-hero-inner { grid-template-columns: 1fr; }
  .zr-hero-visual { justify-self: start; width: min(420px, 100%); }
  .zr-why-layout { grid-template-columns: 1fr; }
  .zr-services-grid { grid-template-columns: repeat(2, 1fr); }
  .zr-case-track { grid-template-columns: repeat(2, 1fr); }
  .zr-flow { grid-template-columns: repeat(3, 1fr); }
  .zr-proof-row { grid-template-columns: repeat(2, 1fr); }
  .services-matrix { grid-template-columns: repeat(2, 1fr); }
  .service-advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .services-stats-band { grid-template-columns: repeat(2, 1fr); }
  .card-grid.grid-3, .member-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header { height: 64px; }
  .nav { display: none; }
  .menu-toggle { display: block; }

  .site-header.is-open {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .site-header.is-open .nav {
    position: absolute;
    display: grid;
    left: 16px;
    right: 16px;
    top: 72px;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    overflow: hidden;
  }

  .site-header.is-open .nav a {
    padding: 14px 16px;
    border-top: 1px solid var(--line);
    opacity: 1;
  }

  .site-header.is-open .nav a:first-child { border-top: 0; }

  .zr-hero-inner { padding: 112px var(--page-x) 60px; }
  .zr-hero-visual { justify-self: start; width: 100%; }
  .zr-hero-card { padding: 22px; }

  .zr-proof-row,
  .zr-services-grid,
  .zr-case-track,
  .zr-flow,
  .zr-why-list { grid-template-columns: 1fr; }

  .zr-proof-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    border-left: 2px solid rgba(96, 165, 250, 0.4);
  }

  .zr-proof-row span { padding: 10px 0 10px 16px; }
  .zr-proof-row b { font-size: 28px; }
  .zr-service-card { padding: 28px 24px; }
  .zr-case-body { padding: 22px; }
  .zr-flow article { padding: 24px 20px; }
  .zr-cta { flex-direction: column; align-items: flex-start; }

  .card-grid.grid-3,
  .card-grid.grid-4,
  .member-grid,
  .footer-grid,
  .about-intro-panel,
  .case-detail-wrap,
  .contact-wrap,
  .contact-form-row,
  .branch-strip,
  .services-matrix,
  .service-advantage-grid,
  .services-stats-band,
  .about-principles,
  .core-team-grid,
  .history-timeline,
  .cases-filter-grid { grid-template-columns: 1fr; }

  .about-stat-stack { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .history-timeline article { grid-template-columns: 1fr; gap: 8px; }
  .service-stat { min-height: 130px; border-left: 0; border-top: 1px solid var(--line); }
  .service-stat:first-child { border-top: 0; }
  .about-section-head { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
