/* ========== Common Styles ========== */
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans SC', sans-serif; }

/* Hero gradient animation */
.hero-bg {
  background: linear-gradient(135deg, #0f1d36 0%, #1e3a5f 40%, #1d4ed8 70%, #0f1d36 100%);
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Floating particles */
.particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.particle { position: absolute; border-radius: 50%; background: rgba(0, 212, 255, 0.15); animation: float linear infinite; }
@keyframes float {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* Page hero banner (sub-pages) */
.page-hero {
  background: linear-gradient(135deg, #0f1d36 0%, #1e3a5f 50%, #1d4ed8 100%);
  padding: 140px 0 60px;
  text-align: center;
}

/* Glow effect on cards */
.card-glow { transition: all 0.4s ease; }
.card-glow:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.2), 0 0 30px rgba(0, 212, 255, 0.1);
}

/* Fade in on scroll */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Section counter */
.section-num {
  font-size: 6rem; font-weight: 900; color: rgba(59, 130, 246, 0.06);
  position: absolute; top: -1rem; left: -0.5rem; line-height: 1; user-select: none;
}

/* Nav blur */
.nav-blur { backdrop-filter: blur(16px); background: rgba(15, 29, 54, 0.85); }

/* Accent line */
.accent-line { width: 48px; height: 3px; background: linear-gradient(90deg, #3b82f6, #00d4ff); border-radius: 2px; }

/* CTA button pulse */
.cta-pulse { animation: pulse 2.5s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(59, 130, 246, 0); }
}

/* Hero Mockup */
.hero-mockup { position: relative; transform: perspective(1000px) rotateY(-5deg) rotateX(2deg); transition: transform 0.5s ease; }
.hero-mockup:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }
.mockup-window { background: #1a1f36; border-radius: 12px; overflow: hidden; box-shadow: 0 25px 80px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); }
.mockup-titlebar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #0f1225; }
.mockup-dot { width: 8px; height: 8px; border-radius: 50%; }
.mockup-title { color: rgba(255,255,255,0.5); font-size: 11px; margin-left: 10px; }
.mockup-body { display: flex; min-height: 260px; }
.mockup-sidebar { width: 120px; background: #0f1225; padding: 12px 8px; border-right: 1px solid rgba(255,255,255,0.06); }
.mockup-nav-item { padding: 6px 10px; border-radius: 6px; font-size: 11px; color: rgba(255,255,255,0.4); margin-bottom: 2px; cursor: default; }
.mockup-nav-item.active { background: rgba(59,130,246,0.2); color: #60a5fa; }
.mockup-content { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.mockup-stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.mockup-stat-card { background: rgba(255,255,255,0.05); border-radius: 8px; padding: 8px 10px; }
.mockup-stat-label { font-size: 9px; color: rgba(255,255,255,0.4); }
.mockup-stat-value { font-size: 18px; font-weight: 800; color: #00d4ff; }
.mockup-chart-area { flex: 1; background: rgba(255,255,255,0.03); border-radius: 8px; padding: 10px; }
.mockup-chart-title { font-size: 10px; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.mockup-bars { display: flex; align-items: flex-end; gap: 12px; height: 100px; padding-top: 10px; }
.mockup-bar { flex: 1; background: linear-gradient(to top, #3b82f6, #00d4ff); border-radius: 4px 4px 0 0; position: relative; min-height: 20px; }
.mockup-bar span { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 9px; color: rgba(255,255,255,0.4); }

/* Product Tabs */
.product-tab { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; border: 1px solid transparent; background: #f9fafb; color: #6b7280; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; text-align: left; }
.product-tab:hover { background: #f0f4ff; color: #1e40af; border-color: #dbeafe; }
.product-tab.active { background: white; color: #1e40af; border-color: #3b82f6; box-shadow: 0 2px 8px rgba(59,130,246,0.15); font-weight: 600; }
.product-tab svg { flex-shrink: 0; }
.product-panel { display: none; }
.product-panel.active { display: block; }

/* Scenario Carousel */
.scenario-carousel { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
.scenario-carousel::-webkit-scrollbar { display: none; }
.scenario-track { display: flex; gap: 20px; padding: 4px 0; }
.scenario-card { flex: 0 0 280px; scroll-snap-align: start; background: white; border: 1px solid #e5e7eb; border-radius: 16px; padding: 24px; transition: all 0.3s ease; }
.scenario-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); border-color: #bfdbfe; }
.scenario-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.scenario-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: white; border: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.06); z-index: 2; }
.scenario-arrow:hover { background: #f0f4ff; border-color: #3b82f6; color: #3b82f6; }
.scenario-arrow-left { left: -20px; }
.scenario-arrow-right { right: -20px; }

/* Industry Cards */
.industry-card { transition: all 0.4s ease; }
.industry-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }

/* Architecture Diagram */
.arch-diagram { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0; }
.arch-layer { width: 100%; border-radius: 16px; padding: 24px; text-align: center; position: relative; }
.arch-layer-label { font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.arch-layer-items { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.arch-layer-items span { padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; }
.arch-app { background: linear-gradient(135deg, #eff6ff, #dbeafe); border: 1px solid #bfdbfe; }
.arch-app .arch-layer-label { color: #1e40af; }
.arch-app .arch-layer-items span { background: white; color: #1e40af; border: 1px solid #bfdbfe; }
.arch-core { background: linear-gradient(135deg, #1e3a5f, #1d4ed8); }
.arch-core .arch-layer-label { color: white; font-size: 16px; }
.arch-core .arch-layer-items span { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.2); }
.arch-highlight { background: rgba(0,212,255,0.2) !important; border-color: rgba(0,212,255,0.4) !important; color: #00d4ff !important; }
.arch-foundation { background: #f9fafb; border: 1px solid #e5e7eb; }
.arch-foundation .arch-layer-label { color: #374151; }
.arch-foundation .arch-layer-items span { background: white; color: #6b7280; border: 1px solid #e5e7eb; }
.arch-arrow { padding: 8px 0; color: #93c5fd; }

.bah:hover {
  color: #007bff;
}
