/* VIVA Digital Company Profile - Premium Tech Styling (Final Theme & Architecture) */

/* ==========================================
   1. Design System Variables & Imports
   ========================================== */
@import url('https://cdn.inall.vivatech.cn/public/newweb/asset/css/fonts.css');

:root {
  /* Dark Mode Default Theme Variables */
  --bg-primary: #030712;
  --bg-secondary: #080f25;
  --surface: rgba(17, 24, 39, 0.7);
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-border-hover: rgba(59, 130, 246, 0.4);
  
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.15);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.15);
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.15);
  --error: #ef4444;
  --error-glow: rgba(239, 68, 68, 0.15);
  --purple: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.15);
  --pink: #ec4899;
  --pink-glow: rgba(236, 72, 153, 0.15);

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #6b7280;

  /* Layout & Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --container-width: 1200px;
  --transition-speed: 0.3s;
}

/* Light Mode Overrides */
:root.light-mode {
  --bg-primary: #f8fafc;
  --bg-secondary: #eff6ff;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-border: rgba(0, 0, 0, 0.08);
  --surface-border-hover: rgba(59, 130, 246, 0.5);
  
  --primary: #2563eb;
  --primary-glow: rgba(37, 99, 235, 0.08);
  --cyan: #0891b2;
  --cyan-glow: rgba(8, 145, 178, 0.08);
  --success: #059669;
  --success-glow: rgba(5, 150, 105, 0.08);
  --error: #dc2626;
  --error-glow: rgba(220, 38, 38, 0.08);
  --purple: #9333ea;
  --purple-glow: rgba(147, 51, 234, 0.08);
  --pink: #db2777;
  --pink-glow: rgba(219, 39, 119, 0.08);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dark: #94a3b8;
}

/* ==========================================
   2. Reset & General Settings
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  transition: background-color var(--transition-speed);
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background: radial-gradient(circle at 50% 0%, var(--bg-secondary) 0%, var(--bg-primary) 70%);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background var(--transition-speed), color var(--transition-speed);
}

:root.light-mode body {
  background: radial-gradient(circle at 50% 0%, #e0f2fe 0%, #f8fafc 70%);
}

/* Background Matrix Grid Overlay */
.matrix-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 600px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  z-index: -1;
  pointer-events: none;
}

:root.light-mode .matrix-bg {
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 4px;
}
:root.light-mode ::-webkit-scrollbar-thumb {
  background: #e2e8f0;
}
::-webkit-scrollbar-thumb:hover {
  background: #374151;
}
:root.light-mode ::-webkit-scrollbar-thumb:hover {
  background: #cbd5e1;
}

/* ==========================================
   3. Typography & Layout Utilities
   ========================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: 60px 0;
  position: relative;
}

.section-header {
  margin-bottom: 40px;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 12px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Glowing Badges & Buttons */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.badge-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
}
:root.light-mode .badge-blue {
  background: rgba(37, 99, 235, 0.05);
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.15);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.1);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.2);
}
:root.light-mode .badge-cyan {
  background: rgba(8, 145, 178, 0.05);
  color: #0891b2;
  border-color: rgba(8, 145, 178, 0.15);
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
:root.light-mode .badge-success {
  background: rgba(5, 150, 105, 0.05);
  color: #059669;
  border-color: rgba(5, 150, 105, 0.15);
}

.badge-purple {
  background: rgba(168, 85, 247, 0.1);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.2);
}
:root.light-mode .badge-purple {
  background: rgba(147, 51, 234, 0.05);
  color: #9333ea;
  border-color: rgba(147, 51, 234, 0.15);
}

.badge-pink {
  background: rgba(236, 72, 153, 0.1);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.2);
}
:root.light-mode .badge-pink {
  background: rgba(219, 39, 119, 0.05);
  color: #db2777;
  border-color: rgba(219, 39, 119, 0.15);
}

/* ==========================================
   4. Header & Navigation & Theme Toggle
   ========================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(3, 7, 18, 0.8);
  border-bottom: 1px solid var(--surface-border);
  transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

:root.light-mode .header {
  background-color: rgba(248, 250, 252, 0.8);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

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

.logo-text-en {
  color: #ffffff;
  transition: color var(--transition-speed);
}
:root.light-mode .logo-text-en {
  color: var(--text-main);
}

.logo-text-cn {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  border-left: 1px solid var(--surface-border);
  padding-left: 8px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-speed);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover {
  color: var(--text-main);
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Selector Component */
.theme-selector {
  position: relative;
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  font-family: 'Material Symbols Outlined';
  font-size: 20px;
  transition: all var(--transition-speed);
}

:root.light-mode .theme-toggle-btn {
  background: rgba(0, 0, 0, 0.03);
}

.theme-toggle-btn:hover {
  color: var(--text-main);
  border-color: var(--surface-border-hover);
  background: rgba(255, 255, 255, 0.08);
}

:root.light-mode .theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.theme-dropdown {
  position: absolute;
  top: 48px;
  right: 0;
  background: #0b0f19;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 6px;
  min-width: 130px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 200;
}

:root.light-mode .theme-dropdown {
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.theme-dropdown.show {
  display: flex;
}

.theme-option {
  background: none;
  border: none;
  outline: none;
  padding: 8px 12px;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-radius: 6px;
  text-align: left;
  transition: all var(--transition-speed);
}

.theme-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

:root.light-mode .theme-option:hover {
  background: rgba(0, 0, 0, 0.04);
}

.theme-option.active {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.08);
}

:root.light-mode .theme-option.active {
  background: rgba(37, 99, 235, 0.06);
}

.theme-option-icon {
  font-family: 'Material Symbols Outlined';
  font-size: 18px;
}

/* SKILL ACTIVE status indicator with breathing pulse effect */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--success);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.05);
  transition: all var(--transition-speed);
  user-select: none;
}

:root.light-mode .status-indicator {
  background: rgba(5, 150, 105, 0.05);
  border-color: rgba(5, 150, 105, 0.15);
  box-shadow: none;
}

.status-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
}

.status-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--success);
  border-radius: 50%;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* ==========================================
   5. Hero Section & Terminal
   ========================================== */
.hero-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 30px 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-title-pref {
  font-size: 0.875rem;
  color: var(--cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(to right, var(--text-main), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-left: 3px solid var(--cyan);
  padding-left: 16px;
}

.hero-ai-tip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.15);
  padding: 6px 12px;
  border-radius: 6px;
  align-self: flex-start;
  margin-top: 8px;
  margin-bottom: -4px;
  font-weight: 500;
  user-select: none;
}

.hero-ai-tip .material-symbols-outlined {
  font-size: 16px;
}

:root.light-mode .hero-ai-tip {
  background: rgba(8, 145, 178, 0.04);
  border-color: rgba(8, 145, 178, 0.12);
}

.hero-ai-prompt-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.725rem;
}

:root.light-mode .hero-ai-prompt-box {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(8, 145, 178, 0.2);
}

.hero-ai-prompt-box code {
  color: var(--text-main);
}

.hero-ai-copy-btn {
  background: none;
  border: none;
  outline: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'Material Symbols Outlined';
  font-size: 14px;
  display: flex;
  align-items: center;
  transition: color var(--transition-speed);
}

.hero-ai-copy-btn:hover {
  color: var(--cyan);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 600;
  transition: all var(--transition-speed);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border: 1px solid var(--surface-border);
}

:root.light-mode .btn-secondary {
  background-color: rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

:root.light-mode .btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
}

/* Simulated terminal typewriter effects */
.terminal-line {
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(4px);
  animation: fade-in-line 0.4s forwards;
}

.line-1 { animation-delay: 0.3s; }
.line-2 { animation-delay: 1.4s; }
.line-3 { animation-delay: 2.4s; }
.line-4 { animation-delay: 3.4s; }
.line-5 { animation-delay: 4.4s; }
.line-6 { animation-delay: 5.4s; }

@keyframes fade-in-line {
  to { opacity: 1; transform: translateY(0); }
}

/* Terminal Window follows theme mode */
.terminal-window {
  background: #050811;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(59, 130, 246, 0.05);
  transition: background var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
}

:root.light-mode .terminal-window {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06), 0 0 30px rgba(37, 99, 235, 0.03);
}

.terminal-header {
  background: #0b0f19;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition-speed), border-color var(--transition-speed);
}

:root.light-mode .terminal-header {
  background: #f1f5f9;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: #6b7280;
  font-weight: 500;
  transition: color var(--transition-speed);
}

:root.light-mode .terminal-title {
  color: #94a3b8;
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: #e5e7eb;
  min-height: 260px;
  transition: color var(--transition-speed);
}

:root.light-mode .terminal-body {
  color: #334155;
}

.terminal-controls {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-dot.close {
  background-color: #ff5f56;
}

.terminal-dot.minimize {
  background-color: #ffbd2e;
}

.terminal-dot.expand {
  background-color: #27c93f;
}

.terminal-prompt {
  color: var(--cyan);
  margin-right: 8px;
}

.terminal-cmd {
  color: #ffffff;
  transition: color var(--transition-speed);
}

:root.light-mode .terminal-cmd {
  color: #0f172a;
}

.terminal-success {
  color: var(--success);
}

.terminal-info {
  color: var(--primary);
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background-color: var(--text-main);
  margin-left: 4px;
  animation: blink-cursor 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink-cursor {
  from, to { background-color: transparent }
  50% { background-color: var(--text-main) }
}

/* ==========================================
   6. Statistics Counter Section
   ========================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  background: linear-gradient(135deg, rgba(11, 15, 25, 0.9) 0%, rgba(3, 7, 18, 0.9) 100%);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0 40px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-speed);
}

:root.light-mode .stats-grid {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(243, 244, 246, 0.9) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-item:not(:last-child) {
  border-right: 1px solid var(--surface-border);
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--text-main) 40%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================
   7. Three-Column Pillars Layout Section
   ========================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.8) 0%, rgba(3, 7, 18, 0.8) 100%);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition-speed);
}

:root.light-mode .pillar-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.pillar-card.ops {
  border-color: rgba(168, 85, 247, 0.2);
}
.pillar-card.design {
  border-color: rgba(236, 72, 153, 0.2);
}
.pillar-card.tech {
  border-color: rgba(6, 182, 212, 0.2);
}

.pillar-card.ops:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 15px var(--purple-glow);
  transform: translateY(-4px);
}
:root.light-mode .pillar-card.ops:hover {
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.06);
}

.pillar-card.design:hover {
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(236, 72, 153, 0.15);
  transform: translateY(-4px);
}
:root.light-mode .pillar-card.design:hover {
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.06);
}

.pillar-card.tech:hover {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 15px var(--cyan-glow);
  transform: translateY(-4px);
}
:root.light-mode .pillar-card.tech:hover {
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.06);
}

.pillar-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pillar-icon {
  font-family: 'Material Symbols Outlined';
  font-size: 28px;
}

.ops .pillar-icon { color: var(--purple); }
.design .pillar-icon { color: #ec4899; }
.tech .pillar-icon { color: var(--cyan); }

.pillar-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  transition: color var(--transition-speed);
}
:root.light-mode .pillar-title {
  color: var(--text-main);
}

.pillar-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pillar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--surface-border);
  padding-top: 16px;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pillar-item-icon {
  font-family: 'Material Symbols Outlined';
  font-size: 15px;
  margin-top: 4px;
  flex-shrink: 0;
}

.ops .pillar-item-icon { color: var(--purple); }
.design .pillar-item-icon { color: #ec4899; }
.tech .pillar-item-icon { color: var(--cyan); }

/* ==========================================
   8. FDE Service Blueprint Section
   ========================================== */
.fde-section {
  background: linear-gradient(180deg, rgba(8, 15, 37, 0.7) 0%, rgba(3, 7, 18, 0.7) 100%);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.03);
  transition: all var(--transition-speed);
}

:root.light-mode .fde-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 249, 255, 0.9) 100%);
  border-color: rgba(8, 145, 178, 0.15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.02);
}

.fde-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--surface-border);
  padding-bottom: 24px;
}

.fde-title-block {
  max-width: 700px;
}

.fde-tag {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}

.fde-main-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin: 6px 0 10px 0;
  transition: color var(--transition-speed);
}
:root.light-mode .fde-main-title {
  color: var(--text-main);
}

.fde-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.fde-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}

.fde-step-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 20px;
  position: relative;
  transition: all var(--transition-speed);
}

:root.light-mode .fde-step-card {
  background: rgba(255, 255, 255, 0.8);
}

.fde-step-card:hover {
  border-color: var(--surface-border-hover);
  background: rgba(6, 182, 212, 0.02);
  transform: translateY(-2px);
}

.fde-step-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(6, 182, 212, 0.2);
  position: absolute;
  top: 12px;
  right: 16px;
}

.fde-step-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  transition: color var(--transition-speed);
}
:root.light-mode .fde-step-title {
  color: var(--text-main);
}

.fde-step-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Arrow between steps */
.fde-step-card:not(:last-child)::after {
  content: '➔';
  position: absolute;
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
  color: rgba(6, 182, 212, 0.3);
  font-size: 14px;
  z-index: 10;
  pointer-events: none;
}

/* ==========================================
   9. Capability Matrix (Detailed Cards Grid)
   ========================================== */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.cap-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 32px 24px;
  transition: all var(--transition-speed);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

:root.light-mode .cap-card {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.cap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-speed);
  pointer-events: none;
}

.cap-card:hover {
  transform: translateY(-5px);
  border-color: var(--surface-border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 15px var(--primary-glow);
}
:root.light-mode .cap-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

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

.cap-code {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dark);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.cap-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.06);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.cap-icon {
  font-family: 'Material Symbols Outlined';
  font-size: 28px;
}

.cap-card:nth-child(1) .cap-icon-wrapper {
  color: var(--purple);
  background: rgba(168, 85, 247, 0.06);
  border-color: rgba(168, 85, 247, 0.15);
}
.cap-card:nth-child(2) .cap-icon-wrapper {
  color: var(--pink);
  background: rgba(236, 72, 153, 0.06);
  border-color: rgba(236, 72, 153, 0.15);
}
.cap-card:nth-child(3) .cap-icon-wrapper {
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.06);
  border-color: rgba(6, 182, 212, 0.15);
}
.cap-card:nth-child(4) .cap-icon-wrapper {
  color: var(--success);
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.15);
}

.cap-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
  transition: color var(--transition-speed);
}
:root.light-mode .cap-title {
  color: var(--text-main);
}

.cap-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.cap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--surface-border);
  padding-top: 16px;
}

.cap-item {
  font-size: 0.825rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cap-check {
  font-family: 'Material Symbols Outlined';
  font-size: 16px;
  color: var(--cyan);
  flex-shrink: 0;
}

/* ==========================================
   10. Real-world Cases Section
   ========================================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 32px;
  transition: all var(--transition-speed);
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

:root.light-mode .case-card {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.case-card:hover {
  border-color: var(--surface-border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(6, 182, 212, 0.1);
  transform: translateY(-4px);
}
:root.light-mode .case-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.case-card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  transition: color var(--transition-speed);
}
:root.light-mode .case-title {
  color: var(--text-main);
}

.case-period {
  align-self: flex-start;
  font-size: 0.725rem;
  font-weight: 500;
}

.case-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.case-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--surface-border);
  padding-top: 16px;
  margin-top: auto;
}

.case-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-detail-symbol {
  color: var(--cyan);
  font-weight: bold;
}

/* ==========================================
   11. Agent Recommendation Routing (Match vs Drop)
   ========================================== */
.routing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.route-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 40px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all var(--transition-speed);
}

:root.light-mode .route-card {
  background: rgba(255, 255, 255, 0.85);
}

.route-card.match {
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.02) 0%, rgba(3, 7, 18, 0) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(16, 185, 129, 0.1);
}
:root.light-mode .route-card.match {
  border-color: rgba(5, 150, 105, 0.2);
  background: linear-gradient(180deg, rgba(5, 150, 105, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
}

.route-card.drop {
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.02) 0%, rgba(3, 7, 18, 0) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(239, 68, 68, 0.1);
}
:root.light-mode .route-card.drop {
  border-color: rgba(220, 38, 38, 0.2);
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
}

.route-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.route-header-icon {
  font-family: 'Material Symbols Outlined';
  font-size: 28px;
}

.match .route-header-icon { color: var(--success); }
.drop .route-header-icon { color: var(--error); }

.route-title {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.match .route-title { color: #34d399; }
:root.light-mode .match .route-title { color: var(--success); }
.drop .route-title { color: #f87171; }
:root.light-mode .drop .route-title { color: var(--error); }

.route-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.route-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.route-tag {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--surface-border);
}

.match .route-tag {
  background: rgba(16, 185, 129, 0.05);
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.15);
}
:root.light-mode .match .route-tag {
  color: var(--success);
}

.drop .route-tag {
  background: rgba(239, 68, 68, 0.05);
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.15);
}
:root.light-mode .drop .route-tag {
  color: var(--error);
}

/* ==========================================
   12. Footer Section
   ========================================== */
.footer {
  border-top: 1px solid var(--surface-border);
  background-color: #02050c;
  padding: 60px 0 40px 0;
  margin-top: auto;
  transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

:root.light-mode .footer {
  background-color: #f1f5f9;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  transition: color var(--transition-speed);
}
:root.light-mode .footer-logo {
  color: var(--text-main);
}

.footer-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  transition: color var(--transition-speed);
}
:root.light-mode .footer-links-title {
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.825rem;
  color: var(--text-muted);
  transition: color var(--transition-speed);
}

.footer-link:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--surface-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.775rem;
  color: var(--text-dark);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

/* AI Skill Installation Guide styling */
.install-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.install-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.8) 0%, rgba(3, 7, 18, 0.8) 100%);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition-speed);
}

:root.light-mode .install-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
}

.install-card:hover {
  border-color: var(--surface-border-hover);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

:root.light-mode .install-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
}

.install-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
}

.install-platform-icon {
  font-family: 'Material Symbols Outlined';
  font-size: 24px;
}

.install-platform-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

:root.light-mode .install-platform-title {
  color: var(--text-main);
}

.install-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.code-block-wrapper {
  background: #050811;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.775rem;
}

.code-text {
  color: #e5e7eb;
  word-break: break-all;
}

.copy-btn {
  background: none;
  border: none;
  outline: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'Material Symbols Outlined';
  font-size: 18px;
  transition: color var(--transition-speed);
}

.copy-btn:hover {
  color: var(--text-main);
}

/* ==========================================
   12. Partner Clients Logo Grid Styling
   ========================================== */
.clients-container {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 28px 16px;
  width: 100%;
  list-style: none;
  padding: 0;
  justify-content: center;
  align-items: center;
}
.client-logo-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px 24px 8px;
  background: transparent;
  border: none;
  transition: transform var(--transition-speed) ease;
  cursor: pointer;
  min-height: 96px;
}
.client-logo-item:hover {
  transform: translateY(-6px);
}
.client-logo-img {
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
  /* Dark Mode Default: Premium Metallic Silver (#c0c0c0) */
  filter: brightness(0) saturate(100%) invert(75%) sepia(2%) saturate(222%) hue-rotate(176deg) brightness(96%) contrast(87%) opacity(0.7);
  transition: all var(--transition-speed) ease;
  background-color: transparent;
  padding: 6px 12px;
  border-radius: 6px;
}
:root.light-mode .client-logo-img {
  /* Light Mode: Premium Metallic Gold (#d4af37) */
  filter: brightness(0) saturate(100%) invert(68%) sepia(34%) saturate(1450%) hue-rotate(359deg) brightness(97%) contrast(87%) opacity(0.85);
}
.client-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  color: color-mix(in srgb, var(--text-main) 78%, var(--primary));
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.client-logo-item:hover .client-logo-img {
  filter: none;
  opacity: 1;
  background-color: #ffffff; /* Dark Mode Hover: White background for contrast */
}
:root.light-mode .client-logo-item:hover .client-logo-img {
  background-color: transparent; /* Light Mode Hover: No white background needed */
}
.client-logo-name {
  position: absolute;
  bottom: 4px;
  font-size: 0.725rem;
  color: var(--text-dark);
  text-align: center;
  font-weight: 500;
  transition: color var(--transition-speed) ease, opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}
.client-logo-item:hover .client-logo-name {
  color: var(--primary);
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   13. Responsive Design (Media Queries)
   ========================================== */
@media (max-width: 1024px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .fde-flow {
    grid-template-columns: repeat(3, 1fr);
  }
  .fde-step-card:nth-child(3)::after {
    display: none;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .clients-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 40px 0;
  }
  .header-container {
    height: 64px;
  }
  .nav {
    display: none;
  }
  .logo-text-cn {
    display: none;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .stats-item:nth-child(3) {
    border-right: none;
  }
  .fde-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .fde-step-card::after {
    display: none !important;
  }
  .cases-grid {
    grid-template-columns: 1fr;
  }
  .routing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-top {
    flex-direction: column;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .install-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 12px;
  }
}
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(even) {
    border-right: none;
  }
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 8px;
  }
}
