/* ====== Design Tokens ====== */
:root {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --primary-accent: #3b82f6;      /* Blue */
  --primary-accent-hover: #2563eb;
  --purple-accent: #8b5cf6;       /* Purple */
  --purple-accent-hover: #7c3aed;
  --green-accent: #10b981;        /* Green */
  --green-accent-hover: #059669;

  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 10px 40px -10px rgba(31, 38, 135, 0.08);
  
  /* Unified animation timing tokens — NEVER use linear */
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 200ms var(--ease-smooth);
  --transition-normal: 300ms var(--ease-smooth);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'PingFang SC', 'Helvetica Neue', 'Hiragino Sans GB', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* ====== Mesh Gradients ====== */
.mesh-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 20s infinite alternate;
}
.blob-purple {
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: var(--purple-accent);
  animation-delay: 0s;
}
.blob-blue {
  top: 20%;
  left: -150px;
  width: 600px;
  height: 600px;
  background: var(--primary-accent);
  animation-delay: -5s;
}
.blob-green {
  bottom: -200px;
  right: 10%;
  width: 400px;
  height: 400px;
  background: var(--green-accent);
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ====== Motion Entrance System ====== */
.motion-entrance {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease-smooth), transform 0.55s var(--ease-smooth);
}
.motion-entrance.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Title line 1 — subtle pop */
.title-line-1.motion-entrance {
  transform: translateY(20px);
}
.title-line-1.motion-entrance.visible {
  animation: titleLine1In 0.6s var(--ease-smooth) forwards;
}
@keyframes titleLine1In {
  0%   { opacity: 0; transform: translateY(20px); }
  70%  { opacity: 1; transform: translateY(-2px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* Title line 2 — scale + overshoot for emphasis */
.title-line-2.motion-entrance {
  transform: translateY(30px) scale(0.98);
}
.title-line-2.motion-entrance.visible {
  animation: titleLine2In 0.6s var(--ease-smooth) forwards;
}
@keyframes titleLine2In {
  0%   { opacity: 0; transform: translateY(30px) scale(0.98); }
  65%  { opacity: 1; transform: translateY(-3px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ====== Scroll Reveal for sections ====== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease-smooth), transform 0.55s var(--ease-smooth);
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== Navigation ====== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  z-index: 100;
  transition: var(--transition-normal);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: var(--transition-normal);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--purple-accent), var(--primary-accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.logo-icon.bg-gray { background: var(--text-secondary); }

/* Nav Links with Sliding Indicator */
.nav-links {
  display: flex;
  gap: 2.5rem;
  position: relative;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.2rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

/* Sliding indicator bar */
.nav-indicator {
  position: absolute;
  bottom: -6px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-accent), var(--purple-accent));
  border-radius: 2px;
  transition: left 0.35s var(--spring), width 0.35s var(--spring);
  pointer-events: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Enhanced Search with Dropdown */
.nav-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f1f5f9;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
  transition: all var(--transition-normal);
  color: var(--text-muted);
  position: relative;
}
.nav-search:focus-within {
  border-color: var(--primary-accent);
  background: white;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.nav-search input {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
  width: 140px;
  transition: width 0.3s ease;
}
.nav-search input::placeholder {
  color: var(--text-muted);
}
.nav-search:focus-within input {
  width: 200px;
}

/* Search Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 260px;
  background: var(--bg-surface);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  padding: 0.5rem;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: all var(--transition-normal);
  z-index: 200;
}
.search-dropdown.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.search-dropdown-header {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.75rem 0.25rem;
}
.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--transition-fast);
  text-decoration: none;
  color: var(--text-primary);
}
.search-dropdown-item:hover {
  background: #f1f5f9;
}
.search-dropdown-item .sdi-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.search-dropdown-item .sdi-text {
  display: flex;
  flex-direction: column;
}
.search-dropdown-item .sdi-name {
  font-size: 0.88rem;
  font-weight: 500;
}
.search-dropdown-item .sdi-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

/* ====== Buttons - Premium Micro-interactions ====== */
.btn-text {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}
.btn-text:hover { color: var(--text-primary); }

.btn-primary {
  background: var(--green-accent);
  color: white;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s var(--ease-smooth);
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: inherit;
}
.btn-primary:hover {
  background: var(--green-accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.45);
}
.btn-primary:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  transition: all 120ms var(--ease-smooth);
}

.btn-large {
  padding: 0.8rem 1.75rem;
  font-size: 1.05rem;
  border-radius: 10px;
}

.btn-outline {
  background: transparent;
  color: var(--primary-accent);
  border: 1px solid var(--primary-accent);
  padding: 0.8rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s var(--ease-smooth);
  cursor: pointer;
}
.btn-outline:hover {
  background: rgba(59, 130, 246, 0.06);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}
.btn-outline:active {
  transform: translateY(0) scale(0.96);
  transition: all 120ms var(--ease-smooth);
}

/* ====== Hero Section ====== */
.hero {
  padding: 8rem 0 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  z-index: 10;  /* Above particle canvas (5) */
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-accent);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-accent);
  border-radius: 50%;
  position: relative;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: var(--primary-accent);
  border-radius: 50%;
  opacity: 0.4;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

/* Particle text — full viewport overlay */
.hero-title-wrap {
  position: relative;
  width: 100%;
}
.particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 5;  /* Behind navbar(100), hero-content, buttons — above mesh bg(1) */
  pointer-events: none;
  background: transparent;
}
.hero-title-hidden {
  opacity: 0;
  /* Slow fade-in that syncs with particle dissolve (1.2s) */
  transition: opacity 1s ease-in;
}
.hero-title-hidden.revealed {
  opacity: 1 !important;
}
/* Canvas dissolves naturally via JS; this is the final cleanup */
.particle-canvas.done {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-accent), var(--purple-accent), var(--primary-accent));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShimmer 6s ease-in-out infinite;
}
@keyframes gradientShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.text-gradient-purple {
  background: linear-gradient(135deg, var(--purple-accent), #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* ====== Hero Stats with Tooltip & Trend ====== */
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  width: 100%;
}

.stat-item {
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: default;
}

/* Tooltip on hover */
.stat-item[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text-primary);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.stat-item[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Stat trend badges */
.stat-trend {
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  width: fit-content;
}
.stat-trend.trend-up {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green-accent);
}
.stat-trend.trend-stable {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-accent);
}
.stat-trend.trend-down {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* ====== Hero Visual Mockup ====== */
.hero-visual {
  position: relative;
  perspective: 1000px;
  z-index: 10;  /* Above particle canvas */
}

.glass-dashboard {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--glass-shadow);
  position: relative;
  will-change: transform;
  /* Idle breathing float — always alive */
  animation: dashboardBreathe 6s ease-in-out infinite;
  transition: transform 0.2s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

@keyframes dashboardBreathe {
  0%, 100% { transform: translateY(0) rotate(0deg); box-shadow: 0 10px 40px -10px rgba(31, 38, 135, 0.08); }
  50% { transform: translateY(-8px) rotate(-0.5deg); box-shadow: 0 20px 50px -10px rgba(31, 38, 135, 0.12); }
}

/* On hover: pause breathing, let 3D tilt take over */
.glass-dashboard.tilt-active {
  animation-play-state: paused;
}

.glass-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.glass-title h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.glass-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.dot-purple, .dot-green {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.dot-purple { background: var(--purple-accent); }
.dot-green { background: var(--green-accent); }

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green-accent);
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Chart area with animated line draw */
.chart-area {
  margin-bottom: 2rem;
  position: relative;
}

.line-chart .chart-line-main,
.line-chart .chart-line-secondary {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.line-chart.animate .chart-line-main {
  animation: drawChart 2s var(--ease-smooth) forwards;
}
.line-chart.animate .chart-line-secondary {
  animation: drawChart 2.5s var(--ease-smooth) 0.2s forwards;
}

@keyframes drawChart {
  to { stroke-dashoffset: 0; }
}

/* Interactive chart points */
.chart-point {
  fill: var(--primary-accent);
  opacity: 0;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.line-chart.animate .chart-point {
  opacity: 0.3;
  animation: fadeInPoint 0.3s var(--ease-out) forwards;
}
.line-chart.animate .chart-point:nth-child(1) { animation-delay: 0.5s; }
.line-chart.animate .chart-point:nth-child(2) { animation-delay: 0.8s; }
.line-chart.animate .chart-point:nth-child(3) { animation-delay: 1.0s; }
.line-chart.animate .chart-point:nth-child(4) { animation-delay: 1.2s; }
.line-chart.animate .chart-point:nth-child(5) { animation-delay: 1.6s; }
.line-chart.animate .chart-point:nth-child(6) { animation-delay: 2.0s; }
.line-chart.animate .chart-point:nth-child(7) { animation-delay: 2.3s; }

@keyframes fadeInPoint {
  0%  { opacity: 0; transform: scale(0.5); }
  70% { opacity: 0.6; transform: scale(1.3); }
  100% { opacity: 0.5; transform: scale(1); }
}

.chart-point:hover {
  opacity: 1 !important;
  r: 8;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.4));
}

/* Chart Tooltip */
.chart-tooltip {
  position: absolute;
  background: var(--text-primary);
  color: white;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  pointer-events: none;
  transform: translateX(-50%) translateY(-100%);
  transition: opacity var(--transition-fast);
  z-index: 5;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.chart-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--text-primary);
}

/* Bars with staggered entrance */
.bars-area {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 40px;
  margin-bottom: 2rem;
}

.bar {
  flex: 1;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 4px 4px 0 0;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.5s var(--spring), background 0.3s var(--ease-smooth);
}
.bar.animate {
  transform: scaleY(1);
}
.bar:nth-child(1) { transition-delay: 0.05s; }
.bar:nth-child(2) { transition-delay: 0.1s; }
.bar:nth-child(3) { transition-delay: 0.15s; }
.bar:nth-child(4) { transition-delay: 0.2s; }
.bar:nth-child(5) { transition-delay: 0.25s; }
.bar:nth-child(6) { transition-delay: 0.3s; }
.bar:nth-child(7) { transition-delay: 0.35s; }
.bar:nth-child(8) { transition-delay: 0.4s; }
.bar:nth-child(9) { transition-delay: 0.45s; }
.bar:nth-child(10) { transition-delay: 0.5s; }

.bar.bar-active {
  background: var(--green-accent);
}

.widgets-area {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.widget {
  background: white;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: all 0.25s var(--ease-smooth);
  animation: widgetBreathe 5s ease-in-out infinite;
}
.widget:nth-child(1) { animation-delay: 0s; }
.widget:nth-child(2) { animation-delay: -1.7s; }
.widget:nth-child(3) { animation-delay: -3.3s; }

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

.widget:hover {
  animation-play-state: paused;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.widget-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.bg-blue { background: var(--primary-accent); }
.bg-purple { background: var(--purple-accent); }
.bg-green { background: var(--green-accent); }

.widget-info {
  display: flex;
  flex-direction: column;
}

.widget-info span {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.widget-info strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
}
.text-green { color: var(--green-accent); }

/* Floating Pills with spring-physics */
.floating-pill {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 0.8rem 1.2rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-primary);
  /* Spring entrance */
  opacity: 0;
  transform: translateY(20px) scale(0.9);
}
.floating-pill.animate {
  animation: pillSpringIn 0.6s var(--spring) forwards;
}

@keyframes pillSpringIn {
  0%   { opacity: 0; transform: translateY(16px) scale(0.92); }
  60%  { opacity: 1; transform: translateY(-4px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.pill-1 {
  bottom: 20px;
  left: -40px;
}
.pill-1.animate {
  animation: pillSpringIn 0.6s var(--spring) 1.8s forwards,
             float-p1 6s infinite alternate ease-in-out 2.4s;
}
.pill-2 {
  top: 40px;
  right: -30px;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.pill-2.animate {
  animation: pillSpringIn 0.6s var(--spring) 2.0s forwards,
             float-p2 5.5s infinite alternate ease-in-out 2.6s;
}
.pill-2 strong {
  font-family: 'JetBrains Mono', monospace;
  color: var(--purple-accent);
  font-size: 1.2rem;
}

.badge-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-purple {
  background: rgba(139, 92, 246, 0.1);
  color: var(--purple-accent);
}
.muted { color: var(--text-muted); font-size: 0.75rem; }

@keyframes float-p1 {
  0% { transform: translateY(0) rotate(-1.5deg); }
  100% { transform: translateY(-12px) rotate(1.5deg); }
}

@keyframes float-p2 {
  0% { transform: translateY(0) rotate(1deg) scale(0.97); }
  100% { transform: translateY(-10px) rotate(-2deg) scale(1.03); }
}

/* ====== Agents Grid ====== */
.agents-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-badge {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-accent);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 4rem;
  max-width: 600px;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.agent-card {
  background: var(--bg-surface);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 20px;
  padding: 2rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s var(--ease-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  /* Subtle idle breathing — makes cards feel alive */
  animation: cardBreathe 6s ease-in-out infinite;
}
/* Stagger breathing across cards so they don't sync */
.agent-card:nth-child(1) { animation-delay: 0s; }
.agent-card:nth-child(2) { animation-delay: -1.5s; }
.agent-card:nth-child(3) { animation-delay: -3s; }
.agent-card:nth-child(4) { animation-delay: -0.8s; }
.agent-card:nth-child(5) { animation-delay: -2.2s; }
.agent-card:nth-child(6) { animation-delay: -4s; }

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

.agent-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: var(--primary-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-smooth);
}

.agent-card:hover {
  /* Pause breathing, do hover transform instead */
  animation-play-state: paused;
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.agent-card:hover::before {
  transform: scaleX(1);
}
.agent-card:hover .action-text {
  transform: translateX(5px);
  color: var(--primary-accent);
}

/* Agent card staggered entrance with micro-bounce */
.agent-card.card-entrance {
  opacity: 0;
  transform: translateY(16px);
  animation: cardSlideIn 0.5s var(--ease-smooth) forwards;
}
/* After entrance finishes, switch to breathing */
.agent-card.card-breathe {
  animation: cardBreathe 6s ease-in-out infinite;
}

@keyframes cardSlideIn {
  0%   { opacity: 0; transform: translateY(16px) scale(0.97); }
  70%  { opacity: 1; transform: translateY(-2px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.agent-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.bg-gradient-red { background: linear-gradient(135deg, #ef4444, #f97316); }
.bg-gradient-blue { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.bg-gradient-purple { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.bg-gradient-green { background: linear-gradient(135deg, #10b981, #14b8a6); }
.bg-gradient-orange { background: linear-gradient(135deg, #f59e0b, #ea580c); }

.agent-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.agent-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 2rem;
  flex: 1;
}

.agent-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 1rem;
}

.status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
}
.status.online {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green-accent);
}
.status.building {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.action-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

/* ====== Feature cards ====== */
.feature-card {
  cursor: default;
}
.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-accent);
  transition: all var(--transition-normal);
}
.feature-card:hover .feature-icon-wrap {
  background: linear-gradient(135deg, var(--primary-accent), var(--purple-accent));
  color: white;
  transform: scale(1.1); 
}

/* ====== 3D Features Section — Matching Site Light Theme ====== */
.features-3d-section {
  background: rgba(255, 255, 255, 0.4);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.features-3d-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.features-3d-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* Badge/title variants to work in light section */
.section-badge-dark {
  background: rgba(139, 92, 246, 0.1);
  color: var(--purple-accent);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.section-title-light {
  color: var(--text-primary);
}

.section-subtitle-light {
  color: var(--text-secondary);
  text-align: center;
  margin: 0 auto;
  max-width: 500px;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6, #3b82f6);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShimmer 6s ease-in-out infinite;
}

/* ====== 3D Viewport Container ====== */
.bridge-3d-viewport {
  width: 100%;
  height: 500px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  margin-bottom: 4rem;
  
  /* Light frame matching site */
  background: #eef2f7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
  
  cursor: grab;
}

.bridge-3d-viewport:active {
  cursor: grabbing;
}

.bridge-3d-viewport canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Viewport corner labels */
.viewport-labels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.viewport-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.6);
  padding: 0.5rem 0.85rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s var(--ease-smooth);
}

.viewport-label:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.1);
}

.label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: relative;
}

.label-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  opacity: 0.4;
  animation: pulse 2.5s infinite;
}

.dot-ai {
  background: #8b5cf6;
}
.dot-ai::after {
  background: #8b5cf6;
}

.dot-bridge {
  background: #06b6d4;
}
.dot-bridge::after {
  background: #06b6d4;
}

.dot-biz {
  background: #3b82f6;
}
.dot-biz::after {
  background: #3b82f6;
}

.label-ai {
  bottom: 1.5rem;
  left: 1.5rem;
}

.label-bridge {
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.label-biz {
  bottom: 1.5rem;
  right: 1.5rem;
}

/* ====== Feature Cards Grid (Light theme) ====== */
.features-grid-dark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card-dark {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: all 0.35s var(--ease-smooth);
  cursor: default;
}

.feature-card-dark:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(139, 92, 246, 0.15);
}

.feature-icon-dark {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.feature-icon-dark.icon-purple {
  background: rgba(139, 92, 246, 0.1);
  color: var(--purple-accent);
}
.feature-card-dark:hover .icon-purple {
  background: linear-gradient(135deg, var(--purple-accent), #d946ef);
  color: white;
  box-shadow: 0 8px 16px rgba(139, 92, 246, 0.25);
}

.feature-icon-dark.icon-cyan {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
}
.feature-card-dark:hover .icon-cyan {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: white;
  box-shadow: 0 8px 16px rgba(6, 182, 212, 0.25);
}

.feature-icon-dark.icon-blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-accent);
}
.feature-card-dark:hover .icon-blue {
  background: linear-gradient(135deg, var(--primary-accent), #6366f1);
  color: white;
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.25);
}

.feature-card-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feature-card-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ====== 3D Section Responsive ====== */
@media (max-width: 900px) {
  .bridge-3d-viewport {
    height: 350px;
  }
  .features-grid-dark {
    grid-template-columns: 1fr;
  }
  .label-ai, .label-biz {
    display: none;
  }
}

@media (max-width: 600px) {
  .features-3d-section {
    padding: 4rem 0;
  }
  .bridge-3d-viewport {
    height: 280px;
    border-radius: 14px;
    margin-bottom: 2.5rem;
  }
  .feature-card-dark {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem;
  }
}

/* ====== Empty State ====== */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.empty-state-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-accent);
  animation: emptyPulse 3s ease-in-out infinite;
}
@keyframes emptyPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}
.empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}
.empty-state-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 360px;
}

/* ====== Footer ====== */
.footer {
  background: #0f172a;
  color: white;
  padding: 2.5rem 2rem 1.5rem;
  margin-top: 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
}

.footer-brand .logo {
  color: white;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.link-group h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.link-group a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.link-group a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}

/* ====== Animations Reveal ====== */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ====== Modal Overlay ====== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--bg-surface);
  width: 90%;
  max-width: 500px;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s var(--spring);
  border: 1px solid rgba(255,255,255,0.2);
}
.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-accent), var(--purple-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.btn-close {
  background: none; border: none; font-size: 1.5rem; color: var(--text-secondary);
  cursor: pointer; transition: 0.2s;
}
.btn-close:hover { color: var(--text-primary); transform: rotate(90deg); }

.admin-form .form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.admin-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.admin-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.admin-form input, .admin-form select {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #f8fafc;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}
.admin-form input:focus, .admin-form select:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  background: white;
}
.btn-full {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.star {
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
  display: inline-block;
}
.star:hover {
  transform: scale(1.3);
  color: #f59e0b; /* highlight orange */
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* ====== Admin action bar on cards ====== */
.card-admin-bar {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.btn-card-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
  font-family: inherit;
}

.btn-card-action.btn-edit:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-accent);
  border-color: var(--primary-accent);
}

.btn-card-action.btn-del:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: #ef4444;
}

/* ====== Drag and Drop ====== */
.agent-card[draggable="true"] {
  cursor: grab;
}
.agent-card[draggable="true"]:active {
  cursor: grabbing;
}
.agent-card.dragging {
  opacity: 0.4;
  transform: scale(0.96);
  box-shadow: 0 0 0 2px var(--primary-accent);
}
.agent-card.drag-over {
  border: 2px dashed var(--primary-accent);
  background: rgba(59, 130, 246, 0.03);
  transform: scale(1.02);
  transition: all 0.15s ease;
}

/* ====== Mobile H5 Responsive (must be at end of file) ====== */

/* Tablet */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-content {
    align-items: center;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-description {
    margin: 0 auto;
  }
  .hero-stats {
    justify-content: center;
    gap: 2rem;
  }
  .nav-links {
    display: none;
  }
  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
  }
  .floating-pill {
    display: none;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .stat-item[data-tooltip]::after {
    display: none;
  }
  /* Disable particle effect on smaller screens */
  .particle-canvas {
    display: none !important;
  }
  .hero-title-hidden {
    opacity: 1 !important;
  }
}

/* Mobile Phone */
@media (max-width: 600px) {
  /* Global overflow fix */
  body {
    overflow-x: hidden;
  }

  /* Navbar */
  .navbar {
    padding: 0.5rem 0.5rem;
  }
  .nav-container {
    padding: 0.4rem 0.6rem;
    border-radius: 12px;
    gap: 0.4rem;
  }
  .logo {
    font-size: 1rem;
    gap: 0.4rem;
    flex-shrink: 0;
  }
  .logo-icon {
    width: 26px;
    height: 26px;
  }
  .nav-actions {
    gap: 0.4rem;
    flex-wrap: nowrap;
    min-width: 0;
  }
  .nav-search {
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
  }
  .nav-search input {
    width: 60px;
    font-size: 0.78rem;
  }
  .nav-search:focus-within input {
    width: 100px;
  }
  .nav-search svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }
  .btn-text {
    font-size: 0.75rem;
    white-space: nowrap;
  }

  /* Hero */
  .hero {
    padding: 5.5rem 0 2rem;
    min-height: auto;
  }
  .hero-container {
    padding: 0 1rem;
    gap: 1.5rem;
  }
  .hero-title {
    font-size: 1.75rem;
    line-height: 1.25;
    word-break: break-all;
  }
  .hero-description {
    font-size: 0.9rem;
    max-width: 100%;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    box-sizing: border-box;
  }
  .btn-large {
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
  }
  .hero-stats {
    flex-direction: row;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .stat-value {
    font-size: 1.3rem;
  }
  .stat-label {
    font-size: 0.72rem;
  }
  .badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
  .stat-item[data-tooltip]::after {
    display: none;
  }

  /* Hero visual dashboard */
  .hero-visual {
    max-width: 100%;
  }
  .glass-dashboard {
    padding: 1rem;
    border-radius: 14px;
  }
  .glass-header {
    margin-bottom: 0.8rem;
  }
  .glass-title h3 {
    font-size: 0.85rem;
  }
  .badge-success {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
  }
  .chart-area {
    margin-bottom: 1rem;
  }
  .bars-area {
    height: 28px;
    margin-bottom: 0.8rem;
  }
  .widgets-area {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
  }
  .widget {
    padding: 0.5rem;
    gap: 0.3rem;
    border-radius: 8px;
  }
  .widget-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
  }
  .widget-info span {
    font-size: 0.55rem;
  }
  .widget-info strong {
    font-size: 0.78rem;
  }

  /* Agents section */
  .agents-section {
    padding: 2.5rem 1rem;
  }
  .section-badge {
    font-size: 0.78rem;
    padding: 0.3rem 0.8rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .section-subtitle {
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
  }
  .agents-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .agent-card {
    padding: 1.25rem;
    border-radius: 14px;
  }
  .agent-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-bottom: 1rem;
  }
  .agent-name {
    font-size: 1.05rem;
  }
  .agent-desc {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  /* Admin bar on cards */
  .card-admin-bar {
    top: 8px;
    right: 8px;
    gap: 4px;
  }
  .btn-card-action {
    padding: 3px 7px;
    font-size: 0.68rem;
  }

  /* Modals */
  .modal-content {
    width: 92%;
    padding: 1.25rem;
    border-radius: 16px;
    max-height: 85vh;
    overflow-y: auto;
  }
  .modal-header {
    margin-bottom: 1rem;
  }
  .modal-header h3 {
    font-size: 1.15rem;
  }
  .admin-form .form-row {
    grid-template-columns: 1fr;
  }
  .admin-form input,
  .admin-form select {
    padding: 0.65rem 0.75rem;
    font-size: 0.88rem;
    border-radius: 10px;
  }
  .admin-form label {
    font-size: 0.8rem;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
  }
  .footer-brand {
    text-align: center;
  }

  /* Mesh bg overflow */
  .mesh-bg {
    overflow: hidden;
  }
  .mesh-blob {
    filter: blur(60px);
    opacity: 0.1;
  }

  /* Search dropdown mobile */
  .search-dropdown {
    left: auto;
    right: 0;
    min-width: 220px;
  }
}
