:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --surface-soft: #f3f4f6;
  --surface-accent: #fef7ed;
  --bg-gradient-start: #ffffff;
  --bg-gradient-end: #fafbfc;
  --section-warm: #faf8f5;
  --section-cool: #f5f7fa;
  --hero-gradient-start: #0f172a;
  --hero-gradient-mid: #1e293b;
  --hero-gradient-end: #162e50;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #0f172a;
  --primary-alt: #1e40af;
  --primary-light: #dbeafe;
  --accent: #dc2626;
  --accent-soft: #fef2f2;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.10);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  color: var(--text);
  line-height: 1.65;
}

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

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(248, 251, 255, 0.88);
  border-bottom: 1px solid rgba(219, 228, 240, 0.8);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.brand-name {
  display: block;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.22rem;
}

.brand-tag {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.7rem;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff !important;
  box-shadow: var(--shadow);
}

/* ===== Hero Full-Width ===== */
.hero-full {
  padding: 120px 0 80px;
  background: linear-gradient(160deg, var(--hero-gradient-start) 0%, var(--hero-gradient-mid) 50%, var(--hero-gradient-end) 100%);
  color: #fff;
}

.hero-full-inner {
  max-width: 760px;
}

.hero-full h1 {
  color: #fff;
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.hero-full .eyebrow {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
}

.hero-full .lead {
  color: rgba(255,255,255,0.75);
}

.hero-lead {
  font-size: 1.18rem;
  line-height: 1.7;
  max-width: 600px;
}

.btn-large {
  padding: 16px 28px;
  font-size: 1.02rem;
}

/* ===== Section Spacing ===== */
.section {
  padding: 28px 0;
}

.section-lg {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface);
}

.section-soft {
  background: var(--section-warm);
}

.section-heading {
  margin-bottom: 22px;
  max-width: 760px;
}

/* ===== Pillar Grid ===== */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.pillar {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius);
  transition: transform 0.2s ease;
}

.pillar:hover {
  transform: translateY(-4px);
}

.pillar-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.pillar h3 {
  font-size: 1.25rem;
}

.pillar p {
  color: var(--muted);
  max-width: 300px;
  margin: 0 auto 14px;
}

/* ===== Audience Strip ===== */
.audience-strip {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.audience-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: var(--section-warm);
  border: 1px solid var(--line);
  font-size: 1.1rem;
}

.audience-region {
  font-size: 1.6rem;
}

/* ===== Carousel ===== */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}

.carousel-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.carousel-slide:only-child {
  grid-template-columns: 1fr;
}

.carousel-slide .insight-slide-wrap {
  grid-column: 1 / -1;
  max-width: 680px;
}

.cap-card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  height: 100%;
}

.cap-card.alt {
  background: var(--section-warm);
}

.insight-slide-wrap {
  display: flex;
  justify-content: center;
}

.insight-slide {
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-width: 100%;
}

.insight-slide.full {
  background: var(--surface);
}

.insight-slide.alternate {
  background: var(--section-warm);
}

.insight-slide small {
  color: var(--muted);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.carousel-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s ease;
  box-shadow: var(--shadow);
}

.carousel-btn:hover {
  background: var(--section-warm);
}

.carousel-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}

.dot.active {
  background: var(--primary-alt);
  transform: scale(1.3);
}

/* ===== Step Carousel (Data Quality layers) ===== */
.step-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.step-carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}

.step-slide {
  min-width: 100%;
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.step-slide.alt {
  background: var(--section-warm);
}

.step-indicator {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

/* ===== Existing Components ===== */
.hero-grid,
.split-grid,
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: stretch;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split-grid { grid-template-columns: 1.1fr 0.9fr; }

.card,
.hero-panel,
.metric-panel,
.cta-box {
  background: var(--surface);
  border: 1px solid rgba(219, 228, 240, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 52px;
  background: linear-gradient(145deg, #ffffff 0%, #f2f6ff 100%);
}

.metric-panel { padding: 32px; }
.card { padding: 28px; }
.card.soft { background: var(--section-warm); }
.card.accent { background: var(--surface-accent); }

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--section-soft);
  color: var(--primary-alt);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.kicker.accent {
  background: #fef3c7;
  color: #92400e;
}

h1, h2, h3, h4 { margin: 0 0 14px; letter-spacing: -0.03em; }

h1 {
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 1.03;
}

h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.5rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.24;
}

.lead, p.lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 24px;
}

p { margin: 0 0 14px; }

.hero-actions,
.button-row,
.badge-row,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.16s ease, background 0.16s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary-alt); color: #fff; }
.btn-primary:hover { background: #15318a; }
.btn-secondary { background: #fff; border: 2px solid var(--line); color: var(--text); font-weight: 800; }
.btn-secondary:hover { background: var(--section-warm); }

.cta-box .btn-secondary {
  border-color: rgba(255,255,255,0.5);
  color: var(--text);
  background: #fff;
  font-weight: 800;
}

.btn-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.stat {
  padding: 18px;
  border-radius: 18px;
  background: var(--section-warm);
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.proof-strip { padding: 0 0 24px; }

.proof-box {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.proof-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--section-warm);
  color: var(--muted);
  font-weight: 600;
}

.list,
.check-list {
  margin: 0;
  padding-left: 18px;
}

.list li,
.check-list li {
  margin-bottom: 10px;
}

.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  position: relative;
  padding-left: 26px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

.feature-card { height: 100%; }

.quote {
  font-size: 1.06rem;
  color: var(--text);
}

.meta-table { display: grid; gap: 10px; }

.meta-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.meta-row:last-child { border-bottom: 0; }
.meta-row strong { color: var(--text); }
.meta-row span { color: var(--muted); }

.insight-card small,
.small {
  color: var(--muted);
}

.page-hero .card {
  padding: 42px;
  background: linear-gradient(145deg, #ffffff 0%, #f3f7ff 100%);
}

.cta { padding: 36px 0 60px; }

.cta-box {
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #18356e 100%);
  color: #fff;
}

.site-footer { padding: 0 0 40px; }

.footer-shell {
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 20px;
}

.footer-grid h4 { margin-bottom: 10px; }

.footer-links {
  flex-direction: column;
  gap: 10px;
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.badge-row a {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .proof-box,
  .carousel-slide,
  .cta-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-full { padding: 96px 0 60px; }

  .pillar-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .audience-strip {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .audience-item { flex: 1 1 calc(33% - 10px); justify-content: center; }

  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 78px;
    left: 16px;
    right: 16px;
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links.open { display: flex; }
  .hero-panel,
  .page-hero .card { padding: 32px 24px; }
  .metric-panel,
  .card,
  .cta-box { padding: 24px; }
}

@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 20px)); }
  .hero-full { padding: 80px 0 48px; }
  h1 { font-size: 2.35rem; }
  .hero-full h1 { font-size: 2.5rem; }
  .meta-row { grid-template-columns: 1fr; gap: 6px; }
  .section-lg { padding: 48px 0; }
  .pillar { padding: 24px 16px; }
  .audience-strip { flex-direction: column; }
  .audience-item { flex: 1 1 100%; width: 100%; }
}

/* ===== Hero Background Pattern ===== */
.hero-full {
  position: relative;
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-full-inner {
  position: relative;
  z-index: 1;
}

/* ===== Pillar Icon (SVG image) ===== */
.pillar-icon {
  width: 56px;
  height: 56px;
  display: block;
  margin: 0 auto 16px;
  font-size: inherit;
}

/* ===== Capability Card Icon ===== */
.cap-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

/* ===== Insight Card Left Border ===== */
.insight-slide {
  border-left: 4px solid var(--primary-alt);
}
.insight-slide.alternate {
  border-left: 4px solid #f59e0b;
}

/* ===== Map Section (About page) ===== */
.map-svg {
  margin: 24px auto 0;
  display: block;
  max-width: 600px;
  height: auto;
}

/* ===== Step Icon (Data Quality) ===== */
.step-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

/* ===== Footer Brand Strip ===== */
.site-footer::after {
  display: block;
  height: 4px;
  background: var(--primary-alt);
  border-radius: 0 0 var(--radius) var(--radius);
  margin-top: 8px;
}

.insight-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-bottom: 10px;
}
