/* ============================================
   数字纪元 · 官方网站 · 全局样式 v2
   科技暗黑风 · Glassmorphism · Glow · 3D Cards
   P0+P1+P2 全面升级版
   ============================================ */

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

:root {
  /* Background layers - Optimized deep blue-slate for Dark Mode */
  --bg-deep: #060b18;
  --bg-mid: #0a112c;
  --bg-surface: rgba(10, 17, 44, 0.45);
  --bg-elevated: rgba(13, 22, 56, 0.85);
  --bg-card: rgba(11, 18, 48, 0.55);
  --bg-card-hov: rgba(18, 29, 72, 0.8);
  --border: rgba(59, 130, 246, 0.12);
  --border-hov: rgba(59, 130, 246, 0.28);

  /* Primary Blue Theme (rgb(59 130 246)) */
  --cyan: #3b82f6;
  --cyan-soft: rgba(59, 130, 246, 0.12);
  --cyan-glow: rgba(59, 130, 246, 0.25);
  --blue: #60a5fa;

  /* Purple / Indigo secondary */
  --purple: #4f46e5;
  --purple-end: #818cf8;
  --purple-mid: #6366f1;
  --purple-soft: rgba(79, 70, 229, 0.12);
  --purple-glow: rgba(79, 70, 229, 0.25);

  /* Green */
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.1);
  --green-glow: rgba(52, 211, 153, 0.2);

  /* Gold & Rose */
  --gold: #fbbf24;
  --gold-soft: rgba(251, 191, 36, 0.1);
  --gold-glow: rgba(251, 191, 36, 0.2);

  --rose: #f87171;
  --rose-soft: rgba(248, 113, 113, 0.1);
  --rose-glow: rgba(248, 113, 113, 0.2);

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Fonts */
  --font-sans: 'Outfit', 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'Inter', 'SF Mono', monospace;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Transitions */
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s ease;

  /* Scrolled header and mobile nav variables */
  --bg-mid-scrolled: rgba(6, 11, 24, 0.88);
  --nav-mobile-bg: rgba(6, 11, 24, 0.98);

  /* ---- LIQUID GLASS SYSTEM ---- */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(28px) saturate(180%);
  --glass-blur-heavy: blur(44px) saturate(200%);
  --glass-border-top: rgba(255, 255, 255, 0.16);
  --glass-border-side: rgba(255, 255, 255, 0.07);
  --glass-shine: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100%);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --glass-shadow-hover: 0 24px 64px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --glass-shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Light Theme Variables (Artistic Crisp Slate Style) */
[data-theme="light"] {
  /* Warm cream/sand base layers updated to slate-light */
  --bg-deep: #f8fafc;
  --bg-mid: #f1f5f9;
  --bg-surface: rgba(241, 245, 249, 0.45);
  --bg-elevated: rgba(255, 255, 255, 0.85);
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hov: rgba(255, 255, 255, 0.9);
  --border: rgba(59, 130, 246, 0.1);
  --border-hov: rgba(59, 130, 246, 0.22);

  /* High contrast readable blue */
  --cyan: #1d4ed8;
  --cyan-soft: rgba(59, 130, 246, 0.08);
  --cyan-glow: rgba(59, 130, 246, 0.18);
  --blue: #3b82f6;

  /* Deep Indigo & Purple */
  --purple: #4f46e5;
  --purple-end: #7e22ce;
  --purple-mid: #6366f1;
  --purple-soft: rgba(99, 102, 241, 0.08);
  --purple-glow: rgba(99, 102, 241, 0.18);

  /* Forest Green */
  --green: #047857;
  --green-soft: rgba(4, 120, 87, 0.08);
  --green-glow: rgba(4, 120, 87, 0.15);

  /* Amber Gold & Crimson Rose */
  --gold: #b45309;
  --gold-soft: rgba(180, 83, 9, 0.08);
  --gold-glow: rgba(180, 83, 9, 0.15);

  --rose: #be123c;
  --rose-soft: rgba(190, 18, 60, 0.08);
  --rose-glow: rgba(190, 18, 60, 0.15);

  /* Contrast-optimized Slate typography */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  /* Light theme scrolled header and mobile nav */
  --bg-mid-scrolled: rgba(241, 245, 249, 0.88);
  --nav-mobile-bg: rgba(241, 245, 249, 0.98);

  /* ---- LIQUID GLASS (Light Mode) ---- */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-hover: rgba(255, 255, 255, 0.75);
  --glass-border-top: rgba(255, 255, 255, 0.95);
  --glass-border-side: rgba(255, 255, 255, 0.6);
  --glass-shine: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --glass-shadow-hover: 0 24px 64px rgba(15, 23, 42, 0.14), 0 4px 16px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --glass-shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

/* Global transitions for theme toggling */
body,
.logo-text,
.logo-accent,
.nav-item,
.nav-cta,
.btn-primary,
.btn-secondary,
.service-card,
.service-card *,
.tech-tag,
.portfolio-card,
.portfolio-card *,
.adv-card,
.adv-card *,
.data-wall,
.data-num,
.data-lbl,
.partner-logo,
.step-node,
.step-content *,
.info-item,
.info-icon,
.site-footer,
.site-footer *,
.contact-card-premium,
.contact-card-premium * {
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease, transform 0.35s ease;
}

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

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

input,
textarea,
select,
button {
  font-family: var(--font-sans);
}

/* ============================================
   CANVAS · 3D PARTICLE SPHERE
   ============================================ */
#particle-sphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

#bg-canvas {
  display: none;
}

/* HERO GRID OVERLAY */
.hero-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 242, 254, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 254, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(800px) rotateX(60deg);
  transform-origin: center top;
  animation: gridPan 20s linear infinite;
  mask-image: radial-gradient(ellipse at center top, black 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at center top, black 0%, transparent 65%);
}

@keyframes gridPan {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 60px;
  }
}

.hero-radial-glow {
  position: fixed;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  height: 70vh;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(0, 242, 254, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 30%, rgba(127, 0, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* CURSOR GLOW */
#cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: 0.08s ease;
  will-change: transform;
}

/* FLOATING SUPPORT FAB */
.fab-support {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border: none;
  color: #ffffff;
  cursor: pointer;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 242, 254, 0.35);
  transition: var(--transition);
  animation: fabFloat 3.5s ease-in-out infinite;
  will-change: transform;
}

.fab-support:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 242, 254, 0.5);
}

.fab-status {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--bg-deep);
  box-shadow: 0 0 8px var(--green-glow);
  animation: fabPulse 2s ease-in-out infinite;
}

@keyframes fabFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes fabPulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 255, 135, 0.4);
  }

  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 6px transparent;
  }
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 32px;
  transition: var(--transition);
}

#navbar.scrolled {
  background: var(--bg-mid-scrolled);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-bottom: 1px solid var(--glass-border-side);
  box-shadow: 0 1px 0 var(--glass-border-top), 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Theme Switcher Button Styling */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-hov);
  background: var(--bg-card-hov);
  transform: scale(1.05);
}

.theme-toggle svg {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover svg {
  transform: rotate(20deg);
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
  display: block;
}

/* Light Theme overrides for title gradients and canvas */
[data-theme="light"] .title-gradient {
  text-shadow: 0 0 40px rgba(109, 40, 217, 0.1);
}

[data-theme="light"] .hero-radial-glow {
  background: radial-gradient(ellipse at center, rgba(15, 118, 110, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 30%, rgba(109, 40, 217, 0.02) 0%, transparent 50%);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(45, 106, 226, 0.45));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

.logo:hover .logo-img {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 0 16px rgba(45, 106, 226, 0.8));
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-en {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-accent {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.nav-item {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-item span {
  position: relative;
  z-index: 2;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: width 0.35s ease;
}

.nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-item:hover::after {
  width: calc(100% - 28px);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  animation: navBorderPulse 3s ease-in-out infinite;
}

.nav-cta:hover {
  background: var(--cyan);
  color: var(--bg-deep);
  box-shadow: 0 0 24px var(--cyan-glow);
  animation: none;
}

@keyframes navBorderPulse {

  0%,
  100% {
    box-shadow: 0 0 6px rgba(0, 242, 254, 0.2);
  }

  50% {
    box-shadow: 0 0 18px rgba(0, 242, 254, 0.5);
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.6;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 60px;
  line-height: 1.7;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.reveal.visible,
body:not(.js-enabled) .reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--bg-deep);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(0, 242, 254, 0.35);
  transform: translateY(-2px);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--glass-bg);
  border-top: 1px solid var(--glass-border-top);
  border-left: 1px solid var(--glass-border-side);
  border-right: 1px solid var(--glass-border-side);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow-sm);
}

.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-shine);
  border-radius: inherit;
  pointer-events: none;
}

.btn-secondary:hover {
  background: var(--glass-bg-hover);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-2px);
}

/* Ripple effect */
.ripple-btn {
  position: relative;
  overflow: hidden;
}

.ripple-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ============================================
   HERO
   ============================================ */
.section-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 32px 80px;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cyan);
  background: var(--glass-bg);
  border-top: 1px solid var(--glass-border-top);
  border-left: 1px solid var(--glass-border-side);
  border-right: 1px solid var(--glass-border-side);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 32px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow-sm);
  animation: fadeInDown 0.8s ease forwards;
  position: relative;
  overflow: hidden;
}

.hero-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-shine);
  border-radius: inherit;
  pointer-events: none;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.5);
  }

  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 5px rgba(0, 242, 254, 0);
  }
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s 0.1s ease both;
}

.title-line {
  display: inline-block;
}

.hero-title .title-line:first-child {
  animation-delay: 0.1s;
}

.hero-title .title-line:last-child {
  animation-delay: 0.3s;
}

.title-gradient {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 50%, var(--purple-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  position: relative;
  text-shadow: 0 0 40px rgba(0, 242, 254, 0.3), 0 0 80px rgba(127, 0, 255, 0.15);
}

.title-gradient::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  animation: lightSweep 3.5s ease-in-out infinite;
}

@keyframes lightSweep {

  0%,
  100% {
    left: -100%;
  }

  50% {
    left: 120%;
  }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 44px;
  letter-spacing: 0.04em;
  animation: fadeInUp 0.8s 0.2s ease both;
  position: relative;
  display: inline-block;
}

.hero-subtitle::after {
  content: '';
  display: block;
  margin: 12px auto 0;
  width: 100px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--purple-end), var(--cyan));
  background-size: 200% 100%;
  animation: underlineFlow 3s linear infinite;
}

@keyframes underlineFlow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 70px;
  animation: fadeInUp 0.8s 0.3s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 24px 40px;
  background: var(--bg-elevated);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 16px;
  animation: fadeInUp 0.8s 0.4s ease both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 36px;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-plus {
  font-size: 1.5rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  animation: fadeIn 1s 1s ease both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--border), transparent);
  animation: scrollDrop 1.8s ease-in-out infinite;
}

@keyframes scrollDrop {
  0% {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }

  100% {
    opacity: 0;
    transform: scaleY(1);
    transform-origin: bottom;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ============================================
   SERVICES (3D Tilt + Connection Lines)
   ============================================ */
.section-services {
  position: relative;
  padding: 130px 0;
  z-index: 2;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  position: relative;
  perspective: 1200px;
}

.services-connect {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  width: 100%;
  height: 240px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.flow-line {
  stroke: rgba(0, 242, 254, 0.25);
  stroke-width: 1;
  stroke-dasharray: 8 12;
  fill: none;
  animation: flowDash 2s linear infinite;
}

@keyframes flowDash {
  to {
    stroke-dashoffset: -40;
  }
}

.service-card {
  position: relative;
  background: rgba(12, 20, 55, 0.35);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border-top);
  border-left: 1px solid var(--glass-border-side);
  border-right: 1px solid var(--glass-border-side);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: var(--glass-shadow);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.07), transparent 50%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
  z-index: 0;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-shine);
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

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

.service-card:hover {
  background: rgba(15, 25, 65, 0.5);
  border-top-color: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-4px);
}

[data-theme="light"] .service-card {
  background: var(--glass-bg);
  border-top-color: var(--glass-border-top);
  border-left-color: var(--glass-border-side);
  border-right-color: var(--glass-border-side);
}

[data-theme="light"] .service-card:hover {
  background: var(--glass-bg-hover);
}

.card-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  pointer-events: none;
  transition: var(--transition-slow);
  opacity: 0;
}

.service-card:hover .card-glow {
  opacity: 1;
}

.glow-cyan {
  background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, transparent 70%);
}

.glow-purple {
  background: radial-gradient(circle, rgba(127, 0, 255, 0.15) 0%, transparent 70%);
}

.glow-green {
  background: radial-gradient(circle, rgba(0, 255, 135, 0.12) 0%, transparent 70%);
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.service-card:hover .service-icon-wrap svg {
  animation: iconSpin 1.5s ease;
}

@keyframes iconSpin {
  0% {
    transform: rotate(0) scale(1);
  }

  50% {
    transform: rotate(15deg) scale(1.1);
  }

  100% {
    transform: rotate(0) scale(1);
  }
}

.icon-cyan {
  background: var(--cyan-soft);
  color: var(--cyan);
}

.icon-purple {
  background: var(--purple-soft);
  color: var(--purple-mid);
}

.icon-green {
  background: var(--green-soft);
  color: var(--green);
}

.service-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.card-cyan .service-tag {
  color: var(--cyan);
}

.card-purple .service-tag {
  color: var(--purple-mid);
}

.card-green .service-tag {
  color: var(--green);
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  position: relative;
  z-index: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  position: relative;
  z-index: 1;
}

.service-tags li {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}

.service-card:hover .service-tags li {
  border-color: var(--border-hov);
  color: var(--text-secondary);
}

.service-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.metric-value {
  font-size: 1.3rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

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

.card-cyan .metric-value {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-purple .metric-value {
  background: linear-gradient(135deg, var(--purple), var(--purple-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-green .metric-value {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.service-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.card-cyan:hover .card-arrow {
  color: var(--cyan);
}

.card-purple:hover .card-arrow {
  color: var(--purple-mid);
}

.card-green:hover .card-arrow {
  color: var(--green);
}

/* ============================================
   TECH STACK WALL
   ============================================ */
.section-techstack {
  position: relative;
  padding: 80px 0;
  z-index: 2;
}

.techstack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.tech-tag {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 50px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border-top);
  border-left: 1px solid var(--glass-border-side);
  border-right: 1px solid var(--glass-border-side);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  will-change: transform;
  box-shadow: var(--glass-shadow-sm);
  position: relative;
  overflow: hidden;
}

.tech-tag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-shine);
  border-radius: inherit;
  pointer-events: none;
}

.tech-tag:hover {
  color: var(--cyan);
  border-top-color: rgba(59, 130, 246, 0.4);
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px var(--cyan-glow), var(--glass-shadow-sm);
  background: rgba(59, 130, 246, 0.08);
}

.tech-tag:nth-child(3n+1) {
  animation: techFloat 4s ease-in-out infinite;
}

.tech-tag:nth-child(3n+2) {
  animation: techFloat 4s 1s ease-in-out infinite;
}

.tech-tag:nth-child(3n+3) {
  animation: techFloat 4s 2s ease-in-out infinite;
}

@keyframes techFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

/* ============================================
   PORTFOLIO (Masonry)
   ============================================ */
.section-portfolio {
  position: relative;
  padding: 130px 0;
  z-index: 2;
}

/* PORTFOLIO SPLIT LAYOUT (Left Title, Right Vertical Cards) */
.portfolio-split-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: start;
  position: relative;
}

.portfolio-header-col {
  position: sticky;
  top: 120px;
}

.portfolio-header-col .section-label,
.portfolio-header-col .section-title {
  text-align: left;
  display: block;
}

.portfolio-header-col .section-label::before {
  display: block;
}

.portfolio-header-col .section-desc {
  margin-bottom: 0;
  max-width: 100%;
}

.portfolio-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.portfolio-cards-stack .portfolio-card {
  width: 100%;
  flex: 1 1 auto;
}

@media (max-width: 1024px) {
  .portfolio-split-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .portfolio-header-col {
    position: static;
  }
}

.portfolio-card {
  flex: 0 0 620px;
  max-width: 92vw;
  scroll-snap-align: start;
  background: rgba(10, 18, 50, 0.38);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border-top);
  border-left: 1px solid var(--glass-border-side);
  border-right: 1px solid var(--glass-border-side);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: var(--glass-shadow);
}

.portfolio-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-shine);
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.portfolio-card:hover {
  border-top-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--glass-shadow-hover), 0 0 40px var(--cyan-glow);
}

[data-theme="light"] .portfolio-card {
  background: var(--glass-bg);
}

[data-theme="light"] .portfolio-card:hover {
  background: var(--glass-bg-hover);
  box-shadow: var(--glass-shadow-hover), 0 0 30px var(--cyan-glow);
}

.p-card-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  position: relative;
  z-index: 1;
}

.p-card-large .p-card-inner {
  flex-direction: row;
  gap: 28px;
  align-items: center;
}

.p-card-wide .p-card-inner {
  flex-direction: row;
  gap: 40px;
  align-items: center;
}

.p-card-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.p-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}

.badge-cyan {
  background: var(--cyan-soft);
  color: var(--cyan);
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.badge-purple {
  background: var(--purple-soft);
  color: var(--purple-mid);
  border: 1px solid rgba(127, 0, 255, 0.2);
}

.badge-rose {
  background: var(--rose-soft);
  color: var(--rose);
  border: 1px solid rgba(255, 61, 113, 0.2);
}

.badge-gold {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(255, 182, 39, 0.2);
}

.p-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

.p-card-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.feat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-cyan {
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan-glow);
}

.dot-purple {
  background: var(--purple-mid);
  box-shadow: 0 0 6px var(--purple-glow);
}

.dot-rose {
  background: var(--rose);
  box-shadow: 0 0 6px var(--rose-glow);
}

.dot-gold {
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold-glow);
}

.p-card-stack {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.stack-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.15);
  color: var(--cyan);
  letter-spacing: 0.03em;
}

/* Portfolio Card External Link Indicator */
.p-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--cyan-soft);
  border: 1px solid rgba(59, 130, 246, 0.25);
  width: fit-content;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.p-card-action svg {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .p-card-action {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 16px var(--cyan-glow);
}

.portfolio-card:hover .p-card-action svg {
  transform: translate(3px, -3px);
}

/* Dashboard Mock */
.p-card-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-dashboard {
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  width: 100%;
  max-width: 280px;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.mock-dots {
  display: flex;
  gap: 4px;
}

.mock-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-hov);
}

.mock-title {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.mock-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-stat-row {
  display: flex;
  gap: 8px;
}

.mock-stat {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
}

.mock-stat-val {
  font-size: 0.95rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.cyan-text {
  color: var(--cyan);
}

.green-text {
  color: var(--green);
}

.purple-text {
  color: var(--purple-mid);
}

.mock-stat-lbl {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.mock-chart {
  height: 60px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  align-items: flex-end;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  width: 100%;
  height: 100%;
}

.chart-bar {
  flex: 1;
  background: rgba(0, 242, 254, 0.2);
  border-radius: 2px 2px 0 0;
  transition: var(--transition);
}

.chart-bar.active {
  background: linear-gradient(to top, var(--cyan), var(--blue));
  box-shadow: 0 0 10px var(--cyan-glow);
}

.portfolio-card:hover .chart-bar {
  background: rgba(0, 242, 254, 0.3);
}

.mock-models {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.model-chip {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid;
}

.chip-cyan {
  color: var(--cyan);
  border-color: rgba(0, 242, 254, 0.25);
  background: var(--cyan-soft);
}

.chip-purple {
  color: var(--purple-mid);
  border-color: rgba(127, 0, 255, 0.25);
  background: var(--purple-soft);
}

.chip-green {
  color: var(--green);
  border-color: rgba(0, 255, 135, 0.2);
  background: var(--green-soft);
}

.chip-default {
  color: var(--text-muted);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

/* Calendar Mock */
.p-card-visual-mini {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-mock {
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  width: 100%;
  max-width: 210px;
}

.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cal-month {
  font-size: 0.75rem;
  font-weight: 600;
}

.cal-nav {
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  letter-spacing: 0.1em;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  border-radius: 4px;
  cursor: default;
  position: relative;
}

.day-label {
  color: var(--text-muted);
  font-size: 0.58rem;
  font-weight: 600;
}

.has-event::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

.event-cyan::after {
  background: var(--cyan);
  box-shadow: 0 0 4px var(--cyan-glow);
}

.event-purple::after {
  background: var(--purple-mid);
  box-shadow: 0 0 4px var(--purple-glow);
}

.today {
  background: linear-gradient(135deg, rgba(127, 0, 255, 0.3), rgba(225, 0, 255, 0.2));
  border: 1px solid rgba(127, 0, 255, 0.4);
  color: white;
  font-weight: 700;
}

.cal-sync-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 0.65rem;
  color: var(--green);
}

.sync-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: dotPulse 2s infinite;
}

/* Light Theme Overrides for Mock Visuals */
[data-theme="light"] .mock-dashboard,
[data-theme="light"] .cal-mock {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .mock-header {
  background: rgba(0, 0, 0, 0.015);
  border-bottom-color: var(--border);
}

[data-theme="light"] .mock-stat {
  background: rgba(0, 0, 0, 0.015);
  border-color: var(--border);
}

[data-theme="light"] .mock-chart {
  background: rgba(0, 0, 0, 0.015);
  border-color: var(--border);
}

[data-theme="light"] .chart-bar {
  background: rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .portfolio-card:hover .chart-bar {
  background: rgba(59, 130, 246, 0.25);
}

[data-theme="light"] .chip-default {
  background: rgba(0, 0, 0, 0.02);
  border-color: var(--border);
  color: var(--text-muted);
}

[data-theme="light"] .cal-grid {
  color: var(--text-primary);
}

[data-theme="light"] .today {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.15));
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--cyan);
}

/* ERP Mock */
.erp-mock {
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  width: 100%;
  max-width: 260px;
}

.erp-row {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.erp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.erp-dot.red {
  background: #FF5F57;
}

.erp-dot.yellow {
  background: #FEBC2E;
}

.erp-dot.green {
  background: #28C840;
}

.erp-charts {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
  margin-bottom: 12px;
}

.erp-bar {
  flex: 1;
  background: rgba(0, 242, 254, 0.2);
  border-radius: 3px 3px 0 0;
  transition: var(--transition);
}

.erp-bar.rose {
  background: var(--rose-soft);
}

.erp-summary {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.erp-summary b {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 700;
  font-family: var(--font-mono);
}

/* RPA Flow Mock */
.p-card-visual-wide {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rpa-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.rpa-node {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.15);
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.rpa-node::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 12px;
  border: 1px solid var(--gold);
  opacity: 0;
  transition: var(--transition);
}

.rpa-node.rpa-end {
  background: var(--gold-soft);
  border-color: rgba(255, 182, 39, 0.2);
  color: var(--gold);
}

.rpa-arrow {
  color: var(--text-muted);
  font-size: 1rem;
}

.portfolio-card:hover .rpa-node {
  background: rgba(0, 242, 254, 0.12);
  color: var(--cyan);
}

/* ============================================
   ABOUT / ADVANTAGES
   ============================================ */
.section-about {
  position: relative;
  padding: 130px 0;
  z-index: 2;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.about-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.about-btn {
  display: inline-flex;
}

.advantages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.adv-card {
  background: rgba(10, 18, 50, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.adv-card::before {
  display: none;
}

.adv-card:hover {
  background: rgba(14, 24, 65, 0.7);
  border-top-color: rgba(96, 165, 250, 0.5);
  border-color: rgba(96, 165, 250, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 20px var(--cyan-glow);
}

[data-theme="light"] .adv-card {
  background: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 1);
  border-left: 1px solid rgba(59, 130, 246, 0.12);
  border-right: 1px solid rgba(59, 130, 246, 0.12);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .adv-card:hover {
  background: #ffffff;
  border-top-color: rgba(29, 78, 216, 0.4);
  border-color: rgba(29, 78, 216, 0.3);
  box-shadow: 0 10px 28px rgba(29, 78, 216, 0.14);
}

.adv-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.adv-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.adv-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Data Wall */
.data-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 80px;
  padding: 40px;
  background: rgba(8, 14, 42, 0.45);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border-top: 1px solid var(--glass-border-top);
  border-left: 1px solid var(--glass-border-side);
  border-right: 1px solid var(--glass-border-side);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.data-wall::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-shine);
  pointer-events: none;
}

[data-theme="light"] .data-wall {
  background: var(--glass-bg);
}

.data-wall-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.data-num {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.data-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ============================================
   PARTNERS LOGO SCROLL
   ============================================ */
.section-partners {
  position: relative;
  padding: 80px 0;
  z-index: 2;
  overflow: hidden;
}

.section-partners .section-label,
.section-partners .section-title {
  text-align: center;
  display: block;
}

.section-partners .section-label::before {
  display: none;
}

.section-partners .section-label {
  justify-content: center;
}

.partners-track-wrap {
  overflow: hidden;
  margin-top: 40px;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.partners-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: partnersScroll 25s linear infinite;
}

.partner-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0.6;
  transition: var(--transition);
  padding: 8px 0;
}

.partner-logo:hover {
  opacity: 1;
  color: var(--text-secondary);
}

@keyframes partnersScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ============================================
   PROCESS — HORIZONTAL TIMELINE
   ============================================ */
.section-process {
  position: relative;
  padding: 130px 0;
  z-index: 2;
}

.process-horizontal {
  position: relative;
  margin-top: 60px;
}

.process-h-track {
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 1;
}

[data-theme="light"] .process-h-track {
  background: rgba(59, 130, 246, 0.15);
}

.process-h-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--cyan), var(--blue), var(--purple-end));
  transition: width 0.8s ease;
  box-shadow: 0 0 12px var(--cyan-glow);
  border-radius: 2px;
}

.process-h-steps {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.process-h-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.step-node {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  font-family: var(--font-mono);
  transition: var(--transition);
  position: relative;
  z-index: 3;
}

.process-h-step.visible .step-node,
.process-step.visible .step-node {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px var(--cyan-glow);
  background: var(--bg-mid);
  /* Solid color to mask the timeline track line */
}

.step-content {
  padding-top: 4px;
}

.step-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 8px;
}

.step-deliverable {
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.deliverable-time {
  color: var(--cyan);
  font-weight: 600;
}

/* ============================================
   CONTACT — PREMIUM WECHAT & DIRECT CHANNELS
   ============================================ */
.section-contact {
  position: relative;
  padding: 130px 0;
  z-index: 2;
}

.contact-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-intro {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
}

.contact-info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  width: 100%;
  margin-top: 40px;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.info-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 48px 32px 32px;
}

.site-footer .container {
  padding: 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .portfolio-card {
    flex: 0 0 540px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .data-wall {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .process-h-steps {
    flex-wrap: wrap;
    gap: 24px;
  }

  .process-h-step {
    flex: 0 0 30%;
  }

  .process-h-track {
    display: none;
  }
}

@media (max-width: 768px) {
  .contact-info {
    flex-direction: column;
    gap: 16px;
  }

  .container {
    padding: 0 20px;
  }

  #navbar {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(20px);
    padding: 16px 0 24px;
    border-bottom: 1px solid var(--border);
  }

  .nav-item {
    width: 100%;
    padding: 14px 28px;
    border-radius: 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

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

  .section-hero {
    padding: 120px 20px 80px;
  }

  .section-services,
  .section-portfolio,
  .section-about,
  .section-process,
  .section-contact,
  .section-techstack,
  .section-partners {
    padding: 70px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .data-wall {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 24px;
  }

  .data-num {
    font-size: 1.8rem;
  }

  .portfolio-card {
    flex: 0 0 88vw;
  }

  .p-card-large .p-card-inner {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .p-card-large .p-card-info {
    display: contents;
  }

  .p-card-large .p-card-visual {
    order: 1;
    margin-top: 10px;
    align-self: stretch;
  }

  .p-card-large .p-card-action {
    order: 2;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer-links {
    gap: 16px;
  }

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

  .contact-form {
    padding: 28px 20px;
  }

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

  .fab-support {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }

  .hero-grid-overlay {
    display: none;
  }

  #cursor-glow {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 0.72rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .stat-item {
    padding: 0 16px;
  }

  .data-wall {
    grid-template-columns: 1fr;
  }

  .form-step-btns {
    flex-direction: column;
  }

  .btn-form-next,
  .btn-form-back,
  .btn-submit {
    width: 100%;
  }
}

/* ============================================
   EPOX BRAND CONCEPT SECTION
   ============================================ */
.brand-concept-wrap {
  margin-top: 48px;
  padding: 32px 36px;
  background: rgba(8, 14, 42, 0.45);
  border-top: 1px solid var(--glass-border-top);
  border-left: 1px solid var(--glass-border-side);
  border-right: 1px solid var(--glass-border-side);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.brand-concept-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple));
}

.brand-concept-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.brand-concept-logo {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(45, 106, 226, 0.4));
}

.brand-concept-title-group h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-concept-title-group .phonetic {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--cyan-soft);
  padding: 2px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
}

.brand-concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .brand-concept-grid {
    grid-template-columns: 1fr;
  }
}

.brand-concept-item {
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.brand-concept-item::before {
  display: none;
}

.brand-concept-item:hover {
  transform: translateY(-4px);
  border-top-color: rgba(96, 165, 250, 0.5);
  border-color: rgba(96, 165, 250, 0.25);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25), 0 0 20px var(--cyan-glow);
}

.brand-concept-item .item-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-concept-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.brand-concept-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Light Theme Overrides for Brand Concept Card */
[data-theme="light"] .brand-concept-wrap {
  background: rgba(255, 255, 255, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  border-right: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(59, 130, 246, 0.12);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .brand-concept-item {
  background: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 1);
  border-left: 1px solid rgba(59, 130, 246, 0.12);
  border-right: 1px solid rgba(59, 130, 246, 0.12);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .brand-concept-item:hover {
  background: #ffffff;
  border-top-color: rgba(29, 78, 216, 0.4);
  border-color: rgba(29, 78, 216, 0.3);
  box-shadow: 0 10px 28px rgba(29, 78, 216, 0.14);
}

[data-theme="light"] .brand-concept-title-group .phonetic {
  color: #1d4ed8;
  background: rgba(29, 78, 216, 0.08);
  border-color: rgba(29, 78, 216, 0.2);
}

[data-theme="light"] .brand-concept-item .item-tag {
  color: #1d4ed8;
}