/* ============================================================
   Carl Global — Professional Design System
   Compact, clean, white/blue-gray, blue for emphasis only
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC",
    "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Surfaces */
  --bg: #ffffff;
  --bg-page: #f4f6f8;
  --bg-subtle: #f0f2f5;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-soft: #f0f2f5;

  /* Borders */
  --border: #dfe3e8;
  --border-light: #e8eaed;
  --border-focus: #2563eb;

  /* Text */
  --text-primary: #111827;
  --text-body: #374151;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;

  /* Brand */
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-light: #eff6ff;
  --blue-subtle: #dbeafe;
  --blue-text: #1e40af;

  /* Status */
  --green: #16a34a;
  --green-light: #f0fdf4;
  --amber: #d97706;
  --amber-light: #fffbeb;
  --red: #dc2626;
  --red-light: #fef2f2;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 10px 15px rgba(0, 0, 0, 0.07), 0 4px 6px rgba(0, 0, 0, 0.04);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Layout */
  --shell-width: 90%;
  --shell-padding: clamp(16px, 4vw, 24px);
  --header-height: 64px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  /* Z-index */
  --z-header: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;

  /* Transitions */
  --ease: 150ms ease;
  --ring: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-page);
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--ease);
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); }
h3 { font-size: 1.0625rem; }
h4 { font-size: 0.9375rem; }

p {
  margin-bottom: 0.75rem;
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: 600;
}

.muted {
  color: var(--text-secondary) !important;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-text);
}

/* ---------- Article hero ---------- */
.hero.hero-article .shell {
  display: block;
  max-width: 760px;
}

.hero-article .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(37, 99, 235, 0.08);
}

.hero-article h1 {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-article .meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.85rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.hero-article .meta-row span {
  display: inline-flex;
  align-items: center;
}

.hero-article .meta-row span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: 1.25rem;
  border-radius: 50%;
  background: var(--border);
}

.hero-article .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-article .tag-row .tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blue-text);
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-pill);
}

/* ---------- Layout ---------- */
.shell {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 var(--shell-padding);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.section {
  padding: clamp(32px, 5vw, 56px) 0;
}

.section + .section {
  border-top: 1px solid var(--border-light);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.stack.tight {
  gap: var(--space-4);
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: start;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.grid {
  display: grid;
  gap: var(--space-4);
}

.grid.two {
  grid-template-columns: 1fr;
}

.grid.three {
  grid-template-columns: 1fr;
}

.grid.four {
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 640px) {
  .grid.two {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 640px) {
  .grid.four {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flex {
  display: flex;
}

.flex.col { flex-direction: column; }
.flex.wrap { flex-wrap: wrap; }
.flex.center { align-items: center; justify-content: center; }
.flex.between { justify-content: space-between; }
.flex.gap-sm { gap: var(--space-2); }
.flex.gap-md { gap: var(--space-4); }
.flex.gap-lg { gap: var(--space-6); }

/* ---------- Header ---------- */
.announcement-bar {
  background: #0e1b39;
  color: #fff;
  padding: 10px 0;
  font-size: 0.875rem;
  border-bottom: 1px solid #1a2d54;
}
.announcement-bar .shell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}
.announcement-bar .trust-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.announcement-bar .trust-divider {
  color: rgba(255, 255, 255, 0.4);
  padding: 0 8px;
}
.announcement-bar .trust-contact a {
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}
.announcement-bar .trust-contact a:hover {
  border-bottom-color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--text-primary);
  font-size: 1.125rem;
}

.brand:hover {
  text-decoration: none;
  color: var(--text-primary);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  font-size: 1.375rem;
  box-shadow: 0 4px 12px rgba(54, 101, 243, 0.25);
}

.brand-name {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

/* Nav */
.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav ul {
  display: flex;
  gap: 2px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background var(--ease), color var(--ease);
  text-decoration: none;
}

.nav a:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
  text-decoration: none;
}

.nav a.active {
  color: var(--blue);
  background: var(--blue-light);
  font-weight: 600;
}

.nav a.nav-cta {
  background: var(--blue);
  color: #fff;
}

.nav a.nav-cta:hover {
  background: var(--blue-hover);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1;
}

/* Dropdown */
.nav .dropdown {
  position: relative;
}

.nav .dropdown > a {
  padding-right: 1.4rem;
}

.nav .dropdown > a::after {
  content: "\2304";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.625rem;
  opacity: 0.5;
}

.nav .dropdown:hover > a::after {
  opacity: 1;
  transform: translateY(-50%) rotate(180deg);
}

.nav .dropdown-menu {
  display: block;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 190px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--ease);
  padding: 4px 0;
  margin-top: 0;
  z-index: var(--z-header);
}

.nav .dropdown:hover .dropdown-menu,
.nav .dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav .dropdown-menu li {
  list-style: none;
  margin: 0;
}

.nav .dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.8125rem;
  border-radius: 0;
  background: transparent;
}

.nav .dropdown-menu a:hover {
  background: var(--blue-light);
  color: var(--blue);
  text-decoration: none;
}

.nav .dropdown-menu a.active {
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(32px, 5vw, 56px) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}

.hero .shell {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
  align-items: center;
}

.hero.has-ambient {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero.has-ambient > :not(.hero-ambient):not(.hero-ambient-grid) {
  position: relative;
  z-index: 1;
}

.hero-ambient,
.hero-ambient-grid {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.hero-ambient {
  top: clamp(-88px, -9vw, -28px);
  left: 50%;
  z-index: 0;
  width: min(1200px, 100%);
  max-width: none;
  opacity: 0.9;
  transform: translateX(-50%);
}

.hero-ambient-grid {
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

@media (min-width: 768px) {
  .hero .shell {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  }
}

.hero-copy {
  min-width: 0;
  max-width: 64ch;
}

.hero-copy h1 {
  max-width: 16ch;
  font-size: clamp(2rem, 4.6vw, 3.65rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

@media (min-width: 768px) {
  .hero-copy h1 {
    max-width: 12ch;
  }
}

.hero-copy .lede {
  max-width: 56ch;
  font-size: 1rem;
  line-height: 1.72;
}

.hero-copy .btn-row,
.hero-copy .trust-row {
  max-width: 100%;
}

.hero h1 {
  margin-bottom: 0.5rem;
}

.hero .lede {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

/* Pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.75rem;
}

.pill.primary {
  background: var(--blue-light);
  border-color: var(--blue);
  color: var(--blue);
}

.pill.success {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--green);
}

.pill.warning {
  background: var(--amber-light);
  border-color: var(--amber);
  color: var(--amber);
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.pill-grid .pill {
  background: var(--blue-light);
  border-color: var(--blue-subtle);
  color: var(--blue-text);
}

/* Hero panel */
.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-sm);
}

.panel > :last-child {
  margin-bottom: 0;
}

.hud-panel {
  background: var(--bg-elevated);
}

.hud-illus {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.panel-title {
  margin-bottom: 0.5rem;
}

/* Metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

@media (min-width: 480px) {
  .metrics {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric {
  appearance: none;
  width: 100%;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: var(--space-3) 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card-soft);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: box-shadow var(--ease), border-color var(--ease);
  line-height: 1.4;
}

.metric:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.metric:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-color: var(--blue);
}

.metric strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.125rem;
}

.metric small {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

/* Trust row */
.trust-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: var(--space-4);
}

.trust-row strong {
  color: var(--text-primary);
}

.trust-sep {
  color: var(--text-tertiary);
  user-select: none;
}

.trust-item {
  white-space: nowrap;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-pill);
  background: #f5f8ff;
  border: 1px solid var(--blue-subtle);
  color: var(--blue-text);
  font-weight: 600;
}

.trust-badge strong {
  color: var(--blue);
  font-weight: 800;
  font-size: 1rem;
}

/* ---------- Buttons ---------- */
.btn-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.5625rem 1rem;
  min-height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.8125rem;
  background: var(--bg-card);
  transition: all var(--ease);
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}

.btn:hover {
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

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

.btn.primary:hover {
  background: var(--blue-hover);
  box-shadow: var(--shadow-md);
}

.btn.ghost {
  background: transparent;
  border-color: var(--border);
}

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

.btn.sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  min-height: 34px;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.btn-label {
  position: relative;
  z-index: 1;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease), border-color var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card.soft {
  background: var(--bg-card-soft);
  border-color: var(--border-light);
  box-shadow: none;
}

.card.soft:hover {
  box-shadow: var(--shadow-sm);
}

.card.interactive {
  cursor: pointer;
}

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

.card h4 {
  margin-bottom: 0.375rem;
}

/* Case card */
.case-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.case-card h3 {
  margin-bottom: 0.25rem;
}

.case-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.case-card-link {
  font-weight: 600;
  font-size: 0.8125rem;
  margin-top: auto;
}

/* Testimonial */
.testimonial-card {
  background: var(--bg-card-soft);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-5);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.testimonial-duration {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.testimonial-quote {
  margin: 0 0 var(--space-3);
  padding: 0;
  border: none;
  background: none;
}

.testimonial-quote p {
  font-style: italic;
  color: var(--text-body);
  line-height: 1.65;
  margin: 0;
}

.testimonial-result {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-light);
}

.testimonial-result strong {
  color: var(--blue);
}

/* FAQ card */
.faq-card {
  display: flex;
  flex-direction: column;
}

.faq-card h3 {
  flex-shrink: 0;
}

.faq-card p {
  flex: 1;
}

/* Service card */
.service-card {
  display: flex;
  flex-direction: column;
}

.service-card-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
  border: 1px solid var(--border-light);
}

.service-card-top {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-bottom: var(--space-2);
}

.service-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--blue-text);
  background: var(--bg-card-soft);
  border: 1px solid var(--border-light);
}

.service-icon svg {
  width: 18px;
  height: 18px;
}

.service-card h3 {
  margin-bottom: 0.25rem;
}

.service-card:hover {
  border-color: var(--blue);
}

.service-meta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.service-proof {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
}

.service-proof .muted {
  margin-bottom: var(--space-2);
}

.service-proof .plain {
  margin-bottom: var(--space-3);
}

.service-proof-cta {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: var(--space-2) 0;
  color: var(--blue);
}

.service-proof-cta:hover {
  text-decoration: underline;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1875rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--blue-light);
  color: var(--blue-text);
  font-weight: 600;
  font-size: 0.6875rem;
  line-height: 1.4;
}

.badge.green {
  background: var(--green-light);
  color: var(--green);
}

.badge.cat-google {
  background: var(--blue-light);
  color: var(--blue-text);
}

.badge.cat-seo {
  background: var(--green-light);
  color: #065f46;
}

.badge.cat-marketing {
  background: var(--amber-light);
  color: #92400e;
}

.badge.cat-ecommerce {
  background: #f3e8ff;
  color: #6b21a8;
}

/* ---------- Table ---------- */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  font-size: 0.8125rem;
}

.table th,
.table td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--text-primary);
  font-weight: 600;
  background: var(--bg-subtle);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.table thead th {
  border-bottom: 2px solid var(--border);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:nth-child(even) td {
  background: var(--bg-subtle);
}

.table tbody tr:hover td {
  background: var(--blue-light);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-4) 0;
  border-radius: var(--radius-md);
}

.table-sm th,
.table-sm td {
  padding: 0.5rem 0.625rem;
  font-size: 0.75rem;
}

/* ---------- Lists ---------- */
.list-check {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.list-check li {
  display: flex;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.list-check li::before {
  content: "\2713";
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: rgba(8, 145, 178, 0.08);
  color: var(--blue);
  border: 1px solid rgba(37, 99, 235, 0.12);
  font-weight: 700;
  font-size: 0.6875rem;
  flex: 0 0 auto;
  flex-shrink: 0;
}

.list-cross {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.list-cross li {
  display: flex;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.list-cross li::before {
  content: "\2717";
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--red-light);
  color: var(--red);
  font-weight: 700;
  font-size: 0.6875rem;
  flex: 0 0 auto;
  flex-shrink: 0;
}

/* Plain list */
.plain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.plain li {
  font-size: 0.875rem;
  line-height: 1.5;
}

.plain a {
  color: var(--text-body);
  text-decoration: none;
}

.plain a:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* ---------- Blockquote ---------- */
blockquote {
  margin: var(--space-4) 0;
  padding: var(--space-3) var(--space-5);
  border-left: 3px solid var(--blue);
  background: var(--blue-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* ---------- Code ---------- */
code {
  background: var(--bg-card-soft);
  padding: 0.125rem 0.25rem;
  border-radius: 3px;
  font-size: 0.8125em;
  color: var(--blue-text);
  font-family: var(--font-mono);
}

pre {
  background: var(--bg-card-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.6;
}

pre code {
  background: none;
  padding: 0;
  color: var(--text-body);
}

/* ---------- CTA ---------- */
.cta {
  padding: clamp(28px, 4vw, 44px) 0;
}

.cta .cta-card {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  align-items: center;
  background: var(--bg-card-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
}

@media (min-width: 640px) {
  .cta .cta-card {
    grid-template-columns: 1fr auto;
  }
}

.cta-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ---------- Scenario list ---------- */
.scenario-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
}

@media (min-width: 640px) {
  .scenario-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .scenario-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.scenario-item {
  display: flex;
  flex-direction: column;
  padding: 0.875rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--ease);
}

@media (min-width: 640px) {
  .scenario-item {
    border-bottom: none;
    border-right: 1px solid var(--border-light);
  }

  .scenario-item:nth-child(2n) {
    border-right: none;
  }
}

.scenario-item:last-child {
  border-bottom: none;
}

.scenario-item:hover {
  background: var(--blue-light);
  text-decoration: none;
}

.scenario-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.scenario-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.scenario-arrow {
  display: none;
}

/* ---------- Article card ---------- */
.articles-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.875rem;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 100%;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease), border-color var(--ease);
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
  text-decoration: none;
}

.article-card h3 {
  margin: 0;
  line-height: 1.4;
  font-size: 0.875rem;
}

.article-card h3 > a {
  color: var(--text-primary);
}

.article-card h3 > a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.article-card p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
  font-size: 0.78125rem;
}

.article-card .meta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 0.6875rem;
  margin-top: auto;
}

.article-card .meta > span:not(.badge) {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-tertiary);
}

/* ---------- Contact ---------- */
.contact-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

@media (min-width: 640px) {
  .contact-card {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-details {
  margin-top: var(--space-6);
}

.qr-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  text-align: center;
}

.qr-box img {
  margin: 0 auto;
  border-radius: var(--radius-sm);
  border: 4px solid var(--bg-elevated);
  box-shadow: var(--shadow-md);
}

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .timeline {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

.timeline .step {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-4) var(--space-4) 2.5rem;
  background: var(--bg-card-soft);
}

.timeline .step::before {
  content: attr(data-step);
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
}

.timeline .step .step-title {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ---------- Metric cards ---------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-3);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.metric-card .metric-value {
  display: block;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
  margin-bottom: 0.125rem;
}

.metric-card .metric-label {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.metric-card .metric-sub {
  display: block;
  font-size: 0.625rem;
  color: var(--text-tertiary);
  margin-top: 0.125rem;
}

/* ---------- Results ---------- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.result-item {
  background: var(--bg-card-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-2);
  text-align: center;
}

.result-item .num {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--blue);
  margin-bottom: 0.125rem;
}

.result-item .num.green {
  color: var(--green);
}

.result-item .label {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ---------- Case detail ---------- */
.case-detail {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
}

.case-detail-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.case-metric {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.case-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

@media (min-width: 640px) {
  .case-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.case-kpi {
  text-align: center;
  padding: var(--space-3);
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
}

.case-kpi strong {
  display: block;
  font-size: 1.125rem;
  color: var(--blue);
  margin-bottom: 0.125rem;
}

.case-kpi span {
  font-size: 0.6875rem;
  color: var(--text-secondary);
}

.case-quote {
  border-left: 3px solid var(--blue);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-4) 0 0;
  background: var(--blue-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.case-quote p {
  font-style: italic;
  margin: 0;
  color: var(--text-secondary);
}

/* ---------- Case filter ---------- */
.case-filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding: var(--space-3) 0;
}

.case-filter-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.case-filter-btn {
  display: inline-block;
  padding: 0.3125rem 0.625rem;
  font-size: 0.75rem;
  color: var(--text-body);
  background: var(--bg-card-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--ease);
}

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

/* ---------- Tool stack ---------- */
.tool-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tool-tag {
  display: inline-block;
  padding: 0.1875rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: var(--radius-sm);
}

/* ---------- Related articles ---------- */
.related-articles {
  padding: var(--space-3) 0;
}

.related-articles h3 {
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
  margin-top: 0;
}

.related-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
}

.related-articles li {
  font-size: 0.8125rem;
}

.related-articles a {
  color: var(--blue);
  text-decoration: none;
}

.related-articles a:hover {
  text-decoration: underline;
}

/* ---------- Service cross-recommend ---------- */
.service-cross-recommend {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
}

.service-cross-recommend h4 {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.service-cross-recommend .recommend-links {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.service-cross-recommend .recommend-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.375rem 0.75rem;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
}

.service-cross-recommend .recommend-link:hover {
  background: var(--blue-subtle);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
  grid-column: 1 / -1;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.breadcrumb .sep {
  color: var(--text-tertiary);
  font-size: 0.625rem;
}

.breadcrumb .current {
  color: var(--text-body);
  font-weight: 500;
}

/* ---------- Filter row ---------- */
.filter-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3);
  align-items: center;
}

.filter-row button,
.filter-row a {
  border: 1px solid var(--border);
  background: var(--bg-card-soft);
  color: var(--text-body);
  border-radius: var(--radius-sm);
  padding: 0.4375rem 0.75rem;
  cursor: pointer;
  transition: all var(--ease);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  text-decoration: none;
  font-size: 0.8125rem;
}

.filter-row button:hover,
.filter-row a:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}

.filter-row button.active,
.filter-row a.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* ---------- Blog tools ---------- */
.blog-tools {
  margin-top: var(--space-3);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
}

.blog-search {
  width: 100%;
  min-height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 0.5rem 0.625rem;
  font-size: 0.8125rem;
  color: var(--text-body);
  outline: none;
}

.blog-search:focus {
  border-color: var(--blue);
  box-shadow: var(--ring);
}

.blog-search-status {
  grid-column: 1 / -1;
}

/* ---------- Pager ---------- */
.pager {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-3);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.pager-info {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

/* ---------- Metric modal ---------- */
body.modal-open {
  overflow: hidden;
}

.metric-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.metric-modal[hidden] {
  display: none;
}

.metric-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.metric-modal-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(80vh, 760px);
  overflow: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-5);
}

.metric-modal-eyebrow {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
}

.metric-modal-title {
  margin: 0.25rem 0 0;
}

.metric-modal-close {
  appearance: none;
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-modal-close:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.metric-modal-body {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.metric-modal-body h4 {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
}

/* ---------- HUD divider ---------- */
.hud-divider {
  position: relative;
  height: 20px;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-page);
}

.hud-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hud-divider-line {
  stroke-width: 1;
  stroke-linecap: round;
  stroke: var(--border-light);
}

.hud-divider-line--glow {
  display: none;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 0;
  padding: clamp(32px, 4vw, 48px) 0 clamp(20px, 2vw, 28px);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1.1fr 0.95fr 0.8fr 0.8fr;
  }
}

.site-footer h4 {
  margin: 0 0 var(--space-3);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
}

.site-footer .brand {
  margin-bottom: var(--space-3);
}

.site-footer .brand-mark {
  width: 28px;
  height: 28px;
  font-size: 0.875rem;
}

.site-footer .brand-name {
  font-size: 0.875rem;
}

.site-footer p,
.site-footer li {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.site-footer .plain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1875rem;
}

.site-footer .plain a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8125rem;
}

.site-footer .plain a:hover {
  color: var(--blue);
  text-decoration: none;
}

.footer-wechat-qr {
  display: inline-flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.footer-qr-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.footer-qr-img {
  width: 90px;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.footer-bottom {
  margin-top: var(--space-8);
  padding: 1rem 0;
  background: #0e1b39;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78125rem;
}

.footer-nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem 1rem;
  width: 100%;
  justify-content: center;
}

.footer-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.78125rem;
  text-decoration: none;
  white-space: nowrap;
}

.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-copyright {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

.footer-articles li {
  margin-bottom: 0.125rem;
  line-height: 1.4;
}

.footer-articles li a {
  font-size: 0.75rem !important;
}

.footer-date {
  font-size: 0.625rem;
  display: block;
  color: var(--text-tertiary);
}

.footer-sub {
  font-size: 0.75rem;
  margin-top: var(--space-2);
}

/* ---------- Trust grid ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4);
}

.trust-item {
  text-align: center;
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 0.125rem;
}

.trust-item strong {
  font-size: 0.8125rem;
  color: var(--text-primary);
}

.trust-item span {
  font-size: 0.6875rem;
}

/* ---------- Skills ---------- */
.skills-title {
  margin: 0 0 var(--space-2);
  font-size: 0.875rem;
  font-weight: 600;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.skills span {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card-soft);
  border: 1px solid var(--border-light);
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.75rem;
}

/* ---------- Floating contact ---------- */
.floating-contact {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-5);
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.floating-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--ease);
  color: #fff !important;
  text-decoration: none;
}

.floating-contact-btn:hover {
  transform: scale(1.05);
  text-decoration: none;
}

.floating-contact-btn.wechat {
  background: #07c160;
}

.floating-contact-btn.whatsapp {
  background: #25d366;
}

.floating-contact-btn.email {
  background: #ea4335;
}

.floating-contact-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms ease, transform 300ms ease;
}

[data-reveal].is-revealed,
[data-reveal]:not(.is-revealed) {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Article body ---------- */
.article-body {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  line-height: 1.75;
  max-width: 820px;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.article-body h1 { font-size: 1.5rem; }
.article-body h2 { font-size: 1.25rem; }
.article-body h3 { font-size: 1.0625rem; }

.article-body p {
  color: var(--text-body);
  font-size: 0.9375rem;
}

.article-body blockquote {
  border-left-color: var(--blue);
  background: var(--bg-card-soft);
}

/* ---------- TOC ---------- */
.page-post .article-toc {
  position: sticky;
  top: calc(var(--header-height) + 12px);
  align-self: start;
  max-height: calc(100vh - 80px);
  overflow: auto;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.page-post .article-toc-title {
  font-weight: 600;
  font-size: 0.8125rem;
  margin-bottom: var(--space-3);
}

.page-post .article-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.page-post .article-toc-item a {
  display: block;
  padding: 0.3125rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.75rem;
  line-height: 1.4;
}

.page-post .article-toc-item a:hover {
  background: var(--blue-light);
  color: var(--blue);
}

.page-post .article-toc-item a.active {
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 600;
}

.page-post .article-toc-item.level-h3 a {
  padding-left: 0.875rem;
  font-size: 0.6875rem;
}

/* ---------- Mobile CTA bar ---------- */
.mobile-cta-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: none;
  gap: var(--space-3);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 40;
}

.mobile-cta-bar .btn {
  flex: 1;
  justify-content: center;
  min-height: 38px;
}

/* ---------- Founder section ---------- */
.founder-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-8);
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}

.founder-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.founder-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.founder-avatar svg {
  width: 100%;
  height: 100%;
}

.founder-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-light);
  padding: 0.1875rem 0.5rem;
  border-radius: var(--radius-pill);
}

.founder-copy .pill {
  margin-bottom: var(--space-2);
  display: inline-block;
}

.founder-copy h2 {
  margin-top: 0;
  font-size: 1.375rem;
}

.founder-copy .lede {
  font-size: 0.875rem;
  color: var(--text-body);
  margin-bottom: var(--space-3);
}

.founder-stats {
  display: flex;
  gap: var(--space-4);
  margin: var(--space-4) 0;
  flex-wrap: wrap;
}

.founder-stat {
  text-align: center;
}

.founder-stat strong {
  display: block;
  font-size: 1.125rem;
  color: var(--blue);
  line-height: 1.2;
}

.founder-stat span {
  font-size: 0.6875rem;
  color: var(--text-secondary);
}

/* ---------- Pricing ---------- */
.pricing-card h3 {
  margin-top: var(--space-2);
  font-size: 1rem;
}

.pricing-card .list-check {
  text-align: left;
  margin: var(--space-3) 0;
  width: 100%;
}

/* ---------- Utility ---------- */
.u-text-center { text-align: center !important; }
.u-justify-center { justify-content: center !important; }
.u-mt-1 { margin-top: var(--space-2) !important; }
.u-mt-12 { margin-top: 0.75rem; }

.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;
  top: 12px;
  left: 12px;
  z-index: var(--z-toast);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-body);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8125rem;
  box-shadow: var(--shadow-sm);
  transform: translateY(-200%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  box-shadow: var(--shadow-md), var(--ring);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg-card-soft);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--bg-card-soft);
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(37, 99, 235, 0.1);
  color: var(--text-body);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    z-index: calc(var(--z-header) + 1);
  }

  .nav ul {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    flex-direction: column;
    width: 240px;
    background: var(--bg-elevated);
    padding: var(--space-4);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--ease);
    overflow-y: auto;
  }

  .nav ul.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav ul > li {
    width: 100%;
  }

  .nav ul > li > a {
    width: 100%;
    justify-content: flex-start;
    padding: 0.625rem 0;
  }

  .nav .dropdown-menu {
    position: static !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: none !important;
    width: 100%;
    box-shadow: none;
    border: none;
    background: var(--bg-card-soft);
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all var(--ease);
  }

  .nav .dropdown.open .dropdown-menu {
    max-height: 500px;
    box-shadow: var(--shadow-sm);
    opacity: 1 !important;
    visibility: visible !important;
    padding: 4px 0;
    margin-top: 4px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
  }

  .nav .dropdown::before,
  .nav .dropdown::after {
    display: none;
  }

  .nav .dropdown > a::after {
    right: 0;
    transform: none;
  }

  .nav .dropdown.open > a::after {
    transform: rotate(180deg);
  }

  .nav .dropdown-menu a {
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
  }

  .mobile-cta-bar {
    display: flex;
  }

  body.page-post {
    padding-bottom: 80px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 0 var(--space-3);
  }

  h1 { font-size: 1.375rem; }
  h2 { font-size: 1.125rem; }

  .section {
    padding: var(--space-8) 0;
  }

  .grid {
    gap: var(--space-3);
  }

  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  .hero .shell {
    gap: var(--space-6);
  }

  .panel {
    padding: var(--space-4);
  }

  .btn-row {
    flex-direction: column;
    gap: var(--space-2);
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .card {
    padding: var(--space-4);
  }

  .split {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article-body {
    padding: var(--space-4);
  }

  .founder-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .founder-stats {
    justify-content: center;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scenario-list {
    grid-template-columns: 1fr;
  }

  .case-detail {
    padding: var(--space-4);
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 52px;
  }

  .shell {
    padding: 0 12px;
  }

  h1 {
    font-size: 1.25rem;
  }

  .btn {
    padding: var(--space-2) var(--space-4);
    font-size: 0.75rem;
  }

  .grid.four {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .floating-contact {
    right: var(--space-3);
    bottom: var(--space-3);
  }

  .floating-contact-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .nav,
  .site-footer,
  .btn,
  .cta,
  .floating-contact,
  .mobile-cta-bar {
    display: none !important;
  }

  body {
    font-size: 11pt;
    line-height: 1.5;
  }

  a {
    color: #000 !important;
    text-decoration: underline;
  }

  .card {
    border: 1px solid #000;
    box-shadow: none;
    break-inside: avoid;
  }
}

/* ---------- Dark mode (subtle) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --bg-page: #0c1220;
    --bg-subtle: #1e293b;
    --bg-elevated: #1e293b;
    --bg-card: #1e293b;
    --bg-card-soft: #263044;
    --border: #334155;
    --border-light: #3d4f66;
    --text-primary: #f1f5f9;
    --text-body: #cbd5e1;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --blue-light: #1e3a5f;
    --blue-subtle: #1e3a5f;
    --blue-text: #93c5fd;
    --green-light: #052e16;
    --amber-light: #451a03;
    --red-light: #450a0a;
  }

  .site-header {
    background: rgba(15, 23, 42, 0.92);
  }

  .badge.green {
    background: #052e16;
    color: #6ee7b7;
  }

  .article-body blockquote {
    background: #1e3a3a;
  }

  .skills span {
    background: #263044;
    border-color: #334155;
    color: #cbd5e1;
  }

  .cta .cta-card {
    background: linear-gradient(135deg, #1e293b, #1e3a5a);
  }

  .metric-modal-backdrop {
    background: rgba(2, 6, 23, 0.65);
  }

  .metric-modal-close {
    background: rgba(0, 0, 0, 0.55);
  }

  .blog-search {
    background: #1e293b;
  }
}

/* ---------- Homepage redesign overrides ---------- */
.page-home .site-header {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid #e6ebf1 !important;
  backdrop-filter: blur(14px) !important;
}

.page-home .nav a {
  padding: 0.4rem 0.7rem !important;
  font-size: 0.8rem !important;
  color: #526173 !important;
}

.page-home .nav a.active {
  color: #1f4fa3 !important;
  background: #eef4ff !important;
}

.page-home .home-hero {
  padding: clamp(34px, 5vw, 68px) 0 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%) !important;
}

.page-home .home-hero .shell {
  display: grid !important;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr) !important;
  gap: clamp(28px, 4vw, 44px) !important;
  align-items: start !important;
}

.page-home .hero-copy {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  gap: 0.85rem !important;
  max-width: none !important;
  padding: 0 !important;
  border-right: 0 !important;
}

.page-home .hero-copy::before,
.page-home .hero-copy::after {
  display: none !important;
}

.page-home .hero-copy > * {
  width: 100% !important;
  max-width: none !important;
}

.page-home .hero-copy .pill:first-child,
.page-home .hero .pill:first-child {
  width: fit-content !important;
  min-height: 30px !important;
  padding: 0.28rem 0.72rem !important;
  border: 1px solid #d7e3f6 !important;
  background: #f6f9ff !important;
  color: #2956a5 !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  text-transform: none !important;
  box-shadow: none !important;
}

.page-home .hero h1,
.page-home .hero-copy h1 {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  font-size: clamp(2.1rem, 4.2vw, 3.3rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.045em !important;
  color: #122033 !important;
  text-wrap: pretty !important;
}

.page-home .hero .lede,
.page-home .hero-copy .lede {
  width: 100% !important;
  max-width: 60ch !important;
  margin: 0 !important;
  font-size: 0.98rem !important;
  line-height: 1.72 !important;
  color: #5a6a7d !important;
}

.page-home .hero .btn-row {
  margin-top: 0.1rem !important;
  gap: 0.75rem !important;
}

.page-home .hero .btn-row .btn {
  width: auto !important;
  min-height: 42px !important;
  padding: 0.72rem 1.05rem !important;
  font-size: 0.84rem !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.page-home .hero .trust-row {
  gap: 0.25rem 0.7rem !important;
  margin-top: 0.15rem !important;
  font-size: 0.8rem !important;
  color: #647385 !important;
}

.page-home .home-hero .hero-panel {
  padding: 1.15rem !important;
  border-radius: 14px !important;
  border: 1px solid #dbe3ee !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06) !important;
}

.page-home .home-hero .hero-panel h2 {
  margin: 0 0 0.8rem !important;
  font-size: 1.12rem !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
}

.page-home .home-hero .hero-panel .metrics {
  gap: 0.55rem !important;
}

.page-home .home-hero .hero-panel .metric {
  padding: 0.72rem 0.55rem !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
}

.page-home .home-hero .hero-panel .metric strong {
  font-size: clamp(1.25rem, 1.8vw, 1.62rem) !important;
  margin: 0.15rem 0 !important;
}

.page-home .home-hero .hero-panel .metric .muted:first-child {
  font-size: 0.68rem !important;
  letter-spacing: 0.03em !important;
}

.page-home .home-hero .hero-panel .metric .muted:last-child,
.page-home .home-hero .hero-panel > .muted.u-mt-1 {
  font-size: 0.78rem !important;
  line-height: 1.5 !important;
}

.page-home .hud-divider {
  height: 10px !important;
  background: transparent !important;
}

.page-home .hud-divider svg {
  opacity: 0.45 !important;
}

.page-home .section-home-scenarios h2 {
  max-width: 28ch !important;
}

.page-home .scenario-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  border-radius: 14px !important;
  border-color: #e5eaf0 !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04) !important;
}

.page-home .scenario-item {
  padding: 0.95rem 1rem !important;
  min-height: 118px !important;
  background: #ffffff !important;
}

.page-home .scenario-item:nth-child(2n) {
  border-right: 0 !important;
}

.page-home .scenario-label {
  font-size: 0.88rem !important;
  line-height: 1.45 !important;
}

.page-home .scenario-desc {
  margin-top: 0.15rem !important;
  font-size: 0.8rem !important;
  line-height: 1.55 !important;
}

.page-home .home-featured-articles .articles-grid,
.page-home .articles-grid {
  gap: 0.85rem !important;
}

.page-home .article-card {
  padding: 0.95rem !important;
  border-radius: 12px !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04) !important;
}

.page-home .article-card h3 {
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
}

.page-home .article-card p {
  font-size: 0.8rem !important;
  line-height: 1.6 !important;
  color: #607084 !important;
}

.page-home .article-card .meta {
  gap: 0.45rem !important;
  font-size: 0.72rem !important;
}

.page-home .cta .cta-card {
  padding: 1.15rem 1.2rem !important;
  border-radius: 14px !important;
}

.page-home .site-footer {
  padding-top: 36px !important;
}

.page-home .footer-grid {
  gap: 1.5rem !important;
}

.page-home .site-footer .plain {
  gap: 0.12rem !important;
}

@media (max-width: 860px) {
  .page-home .home-hero .shell {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .page-home .hero-copy {
    gap: 0.72rem !important;
  }

  .page-home .hero h1,
  .page-home .hero-copy h1 {
    font-size: clamp(1.95rem, 8vw, 2.5rem) !important;
    line-height: 1.1 !important;
  }

  .page-home .hero .btn-row .btn {
    width: 100% !important;
  }
}

@media (max-width: 640px) {
  .page-home .scenario-list {
    grid-template-columns: 1fr !important;
  }

  .page-home .scenario-item {
    min-height: auto !important;
    border-right: 0 !important;
  }
}

/* ---------- Announcement Bar ---------- */
.announcement-bar {
  background: linear-gradient(90deg, #1e40af, #2563eb);
  color: #fff;
  text-align: center;
  padding: 8px 0;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.announcement-bar .shell {
  max-width: 100%;
}

/* ---------- Header CTA ---------- */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #2563eb;
  color: #fff !important;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s;
}
.header-cta:hover {
  background: #1d4ed8;
}

/* ---------- Hero Formula ---------- */
.hero-formula {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
.formula-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  min-width: 140px;
}
.formula-result {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}
.formula-icon {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}
.formula-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
}
.formula-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}
.formula-op {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  flex-shrink: 0;
}

/* ---------- Process Grid ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.process-step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.process-step:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
}
.process-num {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  background: #2563eb;
  border-radius: var(--radius-pill);
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  margin-bottom: 0.75rem;
}
.process-step h3 {
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
}

/* ---------- Services Grid (4-col) ---------- */
.services-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}
.service-card {
  transition: border-color 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 768px) {
  .hero-formula {
    flex-direction: column;
    gap: 0.5rem;
  }
  .formula-op {
    font-size: 1.2rem;
  }
  .formula-item {
    min-width: 100%;
    flex-direction: row;
    gap: 0.75rem;
    text-align: left;
    padding: 0.75rem 1rem;
  }
  .header-cta {
    display: none;
  }
}
@media (max-width: 640px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ---------- About Section ---------- */
.about-split {
  gap: 3rem;
  align-items: center;
}
.about-text h2 {
  margin-bottom: 1rem;
}
.about-text p {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}
.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}
.about-stat {
  display: flex;
  flex-direction: column;
}
.about-stat strong {
  font-size: 1.5rem;
  color: #2563eb;
}
.about-stat span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.about-card {
  padding: 2rem;
}
.about-card h3 {
  margin-bottom: 1rem;
}
.about-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.about-list li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
}
.about-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 700;
}

/* ---------- Concerns Grid ---------- */
.concerns-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}
.concern-card {
  text-align: center;
  padding: 1.5rem;
}
.concern-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}
.concern-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* ---------- Trust Badges ---------- */
.trust-badges {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.trust-badge-group h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}
.trust-badge-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-badge-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 200px;
  transition: border-color 0.2s;
}
.trust-badge-item:hover {
  border-color: var(--blue);
}
.trust-badge-name {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: #2563eb;
}
.trust-badge-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ---------- Keywords Grid ---------- */
.keywords-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.keyword-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  transition: border-color 0.2s;
}
.keyword-item:hover {
  border-color: var(--green);
}
.keyword-rank {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.keyword-text {
  font-weight: 600;
  flex: 1;
}
.keyword-status {
  font-size: 0.75rem;
  color: #10b981;
  white-space: nowrap;
}

/* ---------- Plans Grid ---------- */
.plan-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.plan-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
  width: fit-content;
}
.plan-card h3 {
  margin-bottom: 0.5rem;
}
.plan-card p {
  margin-bottom: 1rem;
  flex: 1;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.plan-features li {
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.85rem;
}
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 700;
}
.plan-card-featured {
  border-color: #2563eb;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
  position: relative;
}
.plan-card-featured::before {
  content: "推荐";
  position: absolute;
  top: -1px;
  right: 1.5rem;
  background: #2563eb;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* ---------- Articles Home Grid ---------- */
.articles-home-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}
.article-home-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.article-home-card:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
}
.article-home-card h3 {
  font-size: 0.95rem;
  margin: 0.75rem 0 0.5rem;
}
.article-home-card p {
  flex: 1;
}
.article-home-date {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

/* ---------- Responsive for new sections ---------- */
@media (max-width: 1024px) {
  .keywords-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .concerns-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 768px) {
  .about-split {
    flex-direction: column;
  }
  .about-stats {
    gap: 1.5rem;
  }
  .trust-badge-row {
    flex-direction: column;
    align-items: center;
  }
  .keywords-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .articles-home-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 640px) {
  .concerns-grid {
    grid-template-columns: 1fr !important;
  }
  .keywords-grid {
    grid-template-columns: 1fr;
  }
  .articles-home-grid {
    grid-template-columns: 1fr !important;
  }
}
