/* ============================================================
   MothPay Homepage — Precision Finance v3
   Aesthetic: Sharp · Grid · Terminal · Data-Forward
   NOTE: Header/Footer/Nav styles have been moved to design-system.css
   so they apply globally across all pages.
============================================================ */

/* ========================= Hero Section ========================= */
.hero {
  position: relative;
  background: var(--bg-base);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 64px;
}

/* 移动端专属 Mini Stats (桌面端默认隐藏) */
.hero-mobile-stats {
  display: none;
}

/* ── Hero SVG noise filter ── */
.hero-noise-filter {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Focused 2-gradient backdrop: top-right blue source + subtle center depth */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 72% -5%, rgba(0, 102, 255, 0.32) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 45%, rgba(0, 50, 140, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* 防止 html 容器被子元素撑出横向滚动条 */
html, body {
  overflow-x: hidden;
}

/* ── Pixel grid — subtle blue-tinted grid ── */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 100, 220, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 100, 220, 0.06) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
  background-position: 0 0, 0 0;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
  opacity: 0; /* removed: adds page weight, zero visual benefit */
}

/* ── Background depth orbs — 2 focused light sources only ── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

/* Top-right electric blue — primary light source */
.hero-orb-1 {
  width: 680px;
  height: 680px;
  top: -200px;
  right: 4%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.45) 0%, rgba(0, 60, 180, 0.20) 40%, transparent 70%);
}

/* Bottom-center blue ambient (reduced, no saturated cyan) */
.hero-orb-2 {
  width: 400px;
  height: 400px;
  bottom: -150px;
  right: 25%;
  background: radial-gradient(circle, rgba(0, 90, 210, 0.18) 0%, rgba(0, 60, 160, 0.08) 50%, transparent 70%);
}

/* Mid-left purple accent orb — removed (crypto vibes, AI slop tell) */

/* NEW: Bottom-left deep cyan ambient — removed (redundant with orb-2) */

/* NEW: Top-left subtle purple haze — removed (purple = crypto signals) */

@keyframes orb-pulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.18); opacity: 0.70; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: var(--space-16);
  align-items: center;
  padding: clamp(2rem, 6vw, var(--space-20)) 0;
  width: 100%;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--data-accent-muted);
  border: 1px solid rgba(245,158,11,0.22);
  border-radius: var(--radius-full);
  padding: 4px var(--space-3) 4px var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: var(--data-accent);
  letter-spacing: 0.01em;
  margin-bottom: var(--space-6);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-green);
  box-shadow: 0 0 0 3px var(--status-green-muted);
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px var(--status-green-muted); }
  50%       { box-shadow: 0 0 0 6px rgba(0,200,83,0.06); }
}

/* Hero Title */
.hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: var(--fw-bold);
  color: var(--white);
  line-height: 1.10;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.hero-title em {
  font-style: normal;
  color: var(--brand-electric-lt);
}

/* Hero Description */
.hero-desc {
  font-size: var(--text-base);
  color: var(--white-50);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-8);
  max-width: 440px;
}

/* Hero CTA */
.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

/* Hero Trust */
.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-size: var(--text-xs);
  color: var(--white-50);
  font-family: var(--font-body);
  letter-spacing: 0;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-trust-item svg { color: var(--status-green); }

/* ── Hero Dashboard Visual ── */
.hero-visual {
  position: relative;
  overflow: visible;
  padding: 28px 48px 28px 20px;
}

.hero-dashboard {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow:
    0 0 0 1px rgba(0,102,255,0.10) inset,
    0 24px 64px rgba(0, 0, 0, 0.55);
}

/* Accent top line */
.hero-dashboard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--brand-electric) 50%, transparent 100%);
  opacity: 0.7;
  z-index: 3;
}

.dashboard-header {
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-dark);
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Single live-status indicator — replaces macOS traffic-light dots */
.dashboard-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-green);
  box-shadow: 0 0 0 2px var(--status-green-muted);
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}

.dashboard-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--white-50);
  letter-spacing: 0.02em;
}

.dashboard-body { padding: var(--space-5); }

/* Dashboard Stats */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.dash-stat {
  background: var(--bg-raised);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  position: relative;
  overflow: hidden;
}

/* Corner clip decoration */
.dash-stat::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 12px; height: 12px;
  background: var(--brand-electric);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: 0.4;
}

.dash-stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--white-50);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.dash-stat-value {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}

.dash-stat-change {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--status-green);
  margin-top: var(--space-2);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Transactions */
.dash-tx-label {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--white-50);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.dashboard-transactions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.tx-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3);
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-dark);
  transition: border-color var(--transition-fast);
}

.tx-item:hover { border-color: var(--border-dark-md); }

.tx-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tx-icon.green  { background: rgba(0,200,83,0.10);  border: 1px solid rgba(0,200,83,0.15); }
.tx-icon.blue   { background: rgba(0,102,255,0.10); border: 1px solid rgba(0,102,255,0.15); }
.tx-icon.orange { background: rgba(255,179,0,0.10); border: 1px solid rgba(255,179,0,0.15); }

.tx-info { flex: 1; overflow: hidden; }

.tx-name {
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: var(--white-70);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-time {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--white-50);
}

.tx-amount {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--white-70);
  white-space: nowrap;
}

.tx-amount.positive { color: var(--status-green); }

/* Floating Cards — subtle, no cyan glow border */
.hero-float-card {
  position: absolute;
  background: rgba(10, 22, 40, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.60);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--white);
  z-index: 10;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.float-card-label {
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  color: var(--white-50);
  letter-spacing: 0.01em;
  line-height: 1;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.float-card-value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--white);
  letter-spacing: -0.01em;
}

.float-card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.float-card-1 { top: -18px; left: -24px; z-index: 20; }
.float-card-2 { bottom: 36px; right: -36px; z-index: 12; }

/* ========================= Trust Bar ========================= */
.trust-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-5) 0;
  /* 移动端安全区适配 */
  padding-bottom: calc(var(--space-5) + var(--safe-bottom));
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.trust-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-300);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.trust-logo-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  opacity: 0.45;
  transition: opacity var(--transition-fast);
  filter: grayscale(100%);
}

.trust-logo-item:hover {
  opacity: 0.80;
  filter: grayscale(0%);
}

.trust-logo-name {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--ink-600);
  letter-spacing: 0.04em;
}

.trust-divider {
  width: 1px;
  height: 20px;
  background: var(--border-light-md);
}

/* ========================= Solutions Section ========================= */
.solutions {
  background: var(--bg-page);
  position: relative;
}

.solutions-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.solutions-header h2 {
  margin-bottom: var(--space-4);
}

.solutions-header p {
  max-width: 520px;
  margin: 0 auto;
  font-size: var(--text-base);
}

/* Tab Navigation */
.solutions-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: var(--space-1);
  margin-bottom: var(--space-10);
  overflow-x: auto;
  scrollbar-width: none;
}

.solutions-tabs::-webkit-scrollbar { display: none; }

.sol-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-xs);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--ink-500);
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  border: 1px solid transparent;
  background: none;
  letter-spacing: 0.01em;
}

.sol-tab:hover {
  color: var(--ink-800);
  background: var(--ink-50);
}

.sol-tab.active {
  background: var(--brand-electric);
  border-color: var(--brand-electric);
  color: var(--white);
  box-shadow: 0 0 16px var(--brand-electric-glow);
}

.sol-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  overflow: hidden;
}

.sol-tab-icon svg,
.sol-tab-icon i {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

/* Tab Panel */
.solutions-panel { display: none; animation: fadeInUp 0.35s ease; }

.solutions-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Sol Tag */
.sol-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--brand-electric-muted);
  color: var(--brand-electric);
  border: 1px solid rgba(0,102,255,0.20);
  border-radius: var(--radius-full);
  padding: 3px var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.sol-title {
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--ink-900);
  margin-bottom: var(--space-4);
  line-height: var(--lh-snug);
  letter-spacing: -0.025em;
}

.sol-desc {
  font-size: var(--text-sm);
  color: var(--ink-500);
  margin-bottom: var(--space-8);
  line-height: var(--lh-relaxed);
}

.sol-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.sol-feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast);
}

.sol-feature-item:hover { border-color: var(--border-light-md); }

.sol-feature-check {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-xs);
  background: var(--status-green-muted);
  border: 1px solid rgba(0,200,83,0.20);
  color: var(--status-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.sol-feature-check svg { width: 10px; height: 10px; stroke: var(--status-green); fill: none; }

.sol-feature-text {
  font-size: var(--text-sm);
  color: var(--ink-600);
  line-height: var(--lh-relaxed);
}

.sol-feature-text strong { color: var(--ink-900); font-weight: var(--fw-semibold); }

/* Solution Visual Card */
.sol-visual-wrap { position: relative; }

.sol-visual-card {
  background: var(--bg-base);
  border: 1px solid var(--border-dark-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.sol-visual-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-electric) 50%, transparent);
  opacity: 0.6;
}

.sol-visual-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-dark);
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

.sol-visual-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: var(--brand-electric-muted);
  border: 1px solid rgba(0,102,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sol-visual-title {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--white);
  letter-spacing: -0.01em;
  flex: 1;
}

.sol-visual-subtitle {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--white-50);
  letter-spacing: 0.04em;
  flex-basis: 100%;
  width: 100%;
}

.sol-visual-body { padding: var(--space-5); }

.sol-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.sol-metric {
  background: var(--bg-raised);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xs);
  padding: var(--space-4);
  position: relative;
}

.sol-metric::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 8px; height: 8px;
  background: var(--data-accent);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: 0.35;
}

.sol-metric-value {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  color: var(--data-accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.sol-metric-label {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--white-50);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.sol-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.sol-chip {
  background: rgba(0,102,255,0.08);
  color: var(--brand-electric-lt);
  border: 1px solid rgba(0,102,255,0.18);
  border-radius: var(--radius-full);
  padding: 2px var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0;
}

/* ========================= Products Section ========================= */
.products { background: var(--bg-card); }

.products-header { text-align: center; margin-bottom: var(--space-12); }
.products-header h2 { margin-bottom: var(--space-4); }
.products-header p { max-width: 500px; margin: 0 auto; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--border-light);
}

.product-card {
  background: var(--bg-card);
  padding: var(--space-8);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

/* Corner decoration */
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  border-left: 20px solid var(--brand-electric);
  border-bottom: 20px solid transparent;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.product-card:hover {
  background: var(--ink-50);
}

.product-card:hover::before { opacity: 1; }

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--brand-electric-muted);
  border: 1px solid rgba(0,102,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  flex-shrink: 0;
}

.product-card:hover .product-icon {
  border-color: var(--brand-electric);
  box-shadow: 0 0 12px var(--brand-electric-glow);
}

.product-icon svg { stroke: var(--brand-electric); }

.product-name {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--ink-900);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.product-desc {
  font-size: var(--text-sm);
  color: var(--ink-500);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-5);
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.product-feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--ink-500);
}

.product-feature::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--brand-electric);
  flex-shrink: 0;
  border-radius: 0;
}

.product-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  font-family: var(--font-mono);
  color: var(--brand-electric);
  letter-spacing: 0.02em;
  transition: gap var(--transition-fast);
}

.product-link:hover { gap: var(--space-3); }
.product-link:hover { color: var(--brand-electric-lt); }

/* ========================= Stats Section ========================= */
.stats {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: var(--space-8) var(--space-6);
  text-align: center;
  border-right: 1px solid var(--border-light);
}

.stat-item:last-child { border-right: none; }

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  font-weight: var(--fw-bold);
  color: var(--ink-900);
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: -0.03em;
}

.stat-value em {
  font-style: normal;
  color: var(--brand-electric);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--ink-400);
  line-height: var(--lh-relaxed);
  letter-spacing: 0.01em;
}

/* ========================= Cases Section ========================= */
.cases { background: var(--bg-page); }

.cases-header { text-align: center; margin-bottom: var(--space-12); }
.cases-header h2 { margin-bottom: var(--space-4); }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-16);
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

/* Left accent bar */
.case-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 2px;
  background: var(--brand-electric);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.case-card:hover {
  border-color: var(--border-light-md);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.case-card:hover::before { opacity: 1; }

.case-industry {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--brand-electric-muted);
  color: var(--brand-electric);
  border: 1px solid rgba(0,102,255,0.16);
  border-radius: var(--radius-full);
  padding: 3px var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.case-quote {
  font-size: var(--text-sm);
  color: var(--ink-700);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-6);
  position: relative;
  padding-left: var(--space-4);
  border-left: 2px solid var(--ink-200);
}

.case-metric {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.case-metric-value {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: var(--fw-semibold);
  color: var(--brand-electric);
  letter-spacing: -0.03em;
}

.case-metric-label {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--ink-400);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.case-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
}

.case-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: var(--brand-electric);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--white);
  font-weight: var(--fw-semibold);
  flex-shrink: 0;
}

.case-user-name {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--ink-800);
}

.case-user-title {
  font-size: var(--text-xs);
  color: var(--ink-400);
  margin-top: 1px;
}

/* Partner Logo Wall */
.partner-wall {
  border-top: 1px solid var(--border-light-md);
  padding-top: var(--space-10);
}

.partner-wall-label {
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--ink-500);
  margin-bottom: var(--space-6);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.partner-trust-statement {
  text-align: center;
  padding: var(--space-4) 0;
}

.partner-trust-text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--ink-500);
  letter-spacing: 0;
}

/* ========================= FAQ Section ========================= */
.faq { background: var(--bg-card); }

.faq-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-20);
  align-items: flex-start;
}

.faq-sidebar h2 { margin-bottom: var(--space-4); }
.faq-sidebar p { margin-bottom: var(--space-8); font-size: var(--text-sm); }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.open {
  border-color: var(--brand-electric);
  box-shadow: 0 0 0 1px var(--brand-electric-glow);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--ink-800);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-fast);
  letter-spacing: -0.01em;
}

.faq-question:hover { color: var(--brand-electric); }
.faq-item.open .faq-question { color: var(--brand-electric); }

.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-xs);
  background: var(--ink-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition-normal);
}

.faq-icon svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  background: var(--brand-electric);
  color: var(--white);
}

.faq-item.open .faq-icon svg { transform: rotate(45deg); }

.faq-answer {
  display: none;
}

.faq-answer > * {
  padding: 0 var(--space-5) var(--space-4);
  font-size: var(--text-sm);
  color: var(--ink-500);
  line-height: var(--lh-relaxed);
}

.faq-item.open .faq-answer {
  display: block;
}

/* ========================= CTA Banner ========================= */
.cta-banner {
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-dark-md);
}

/* Subtle top gradient accent */
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 480px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-electric), transparent);
  pointer-events: none;
}

/* Very soft center glow */
.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
}

.cta-copy {
  flex: 1;
  min-width: 0;
  max-width: 560px;
}

.cta-title {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: var(--fw-bold);
  color: var(--white);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
}

.cta-desc {
  font-size: var(--text-sm);
  color: var(--white-50);
  line-height: var(--lh-relaxed);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-4);
  flex-shrink: 0;
}

.cta-btn-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cta-note {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--white-30);
  letter-spacing: 0.05em;
  text-align: right;
}

/* ========================= Responsive ========================= */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: clamp(2rem, 8vw, var(--space-16)) 0;
  }

  .hero-desc  { margin: 0 auto var(--space-8); }
  .hero-cta   { justify-content: center; }
  .hero-trust { justify-content: center; flex-wrap: wrap; }

  /* 平板端保留 Dashboard 但居中并限制大小 */
  .hero-visual {
    display: flex;
    justify-content: center;
    padding: 0;
    margin-top: var(--space-8);
  }

  .hero-dashboard { max-width: 600px; margin: 0 auto; }
  .hero-float-card { display: none; }

  .solutions-panel.active { grid-template-columns: 1fr; }

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

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  .stat-item:nth-child(odd)      { border-right: 1px solid var(--border-light); }
  .stat-item:nth-last-child(-n+2){ border-bottom: none; }

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

  .faq-inner { grid-template-columns: 1fr; gap: var(--space-10); }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-8);
  }
  .cta-copy { max-width: 100%; }
  .cta-actions { align-items: flex-start; width: 100%; }
  .cta-btn-row { justify-content: flex-start; flex-wrap: wrap; }
  .cta-note { text-align: left; }
}

@media (max-width: 768px) {
  /* 手机端隐藏整个 Visual，显示 HTML 中新增的 mini-stats */
  .hero-visual { display: none; }

  .hero-mobile-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-6);
    flex-wrap: wrap;
    width: 100%;
  }

  .hm-stat {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-dark-md);
    border-radius: var(--radius-sm);
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    flex: 1;
  }

  .hm-stat-val {
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    font-weight: var(--fw-semibold);
    color: var(--data-accent);
    margin-bottom: 2px;
  }

  .hm-stat-lbl {
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    color: var(--white-50);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .trust-bar-inner { flex-direction: column; gap: var(--space-4); }
  .trust-divider   { display: none; }
  .trust-logos     { gap: var(--space-5); }

  .solutions-tabs { gap: var(--space-1); }
  .sol-tab span:not(.sol-tab-icon) { display: none; }

  .products-grid { grid-template-columns: 1fr; }
  .product-card:first-child {
    grid-column: auto;
  }
  .cases-grid    { grid-template-columns: 1fr; }
  .partner-logos { gap: var(--space-5); }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2rem, 8vw, 2.5rem); }
  .hero-cta { flex-direction: column; align-items: center; width: 100%; }
  .hero-cta .btn { width: 100%; max-width: 320px; justify-content: center; }

  .solutions-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    justify-content: flex-start;
  }
}

@media (max-width: 360px) {
  /* Stats 极小屏幕单列 */
  .stats-inner { grid-template-columns: 1fr; }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  .stat-item:last-child { border-bottom: none; }
}

/* ========================= Utility Classes ========================= */
/* Solution panel CTA row */
.sol-cta-row {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
}

/* Float card icon color variants */
.float-card-icon-green {
  background: rgba(0,200,83,0.10);
  border: 1px solid rgba(0,200,83,0.20);
}

.float-card-icon-blue {
  background: rgba(0,102,255,0.10);
  border: 1px solid rgba(0,102,255,0.20);
}

/* Icon color utilities for dashboard */
.icon-green { stroke: var(--status-green); color: var(--status-green); }
.icon-blue  { stroke: var(--brand-electric-lt); color: var(--brand-electric-lt); }
.icon-amber { stroke: var(--neon-amber); color: var(--neon-amber); }

/* ========================= Reduced Motion ========================= */
@media (prefers-reduced-motion: reduce) {
  .hero-orb-1,
  .hero-orb-2 {
    animation: none;
  }

  .hero-badge-dot,
  .dashboard-status-dot {
    animation: none;
  }

  .hero-float-card,
  .hero-float-card:nth-child(2) {
    animation: none;
  }

  .solutions-panel {
    animation: none;
  }

  /* Disable AOS transitions for users who prefer reduced motion */
  [data-aos] {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
