/* ==================================================================
   TS-JC 同胜简测 · Shared Design System
   Style: Trust & Authority | Enterprise Engineering
   ================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Exo:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;500;600;700&display=swap');

/* ========== Design Tokens ========== */
:root {
  /* Colors - Trust & Authority Palette */
  --navy-950: #070D1A;
  --navy-900: #0B1426;
  --navy-800: #0F172A;
  --navy-700: #1E293B;
  --navy-600: #334155;
  --navy-500: #475569;

  --blue-700: #1D4ED8;
  --blue-600: #2563EB;
  --blue-500: #3B82F6;
  --blue-400: #60A5FA;
  --blue-100: #DBEAFE;

  --cyan-500: #06B6D4;
  --cyan-400: #22D3EE;

  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #FFFFFF;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-light: #CBD5E1;

  /* Functional */
  --color-bg: var(--white);
  --color-bg-alt: var(--slate-50);
  --color-bg-dark: var(--navy-900);
  --color-bg-darker: var(--navy-950);
  --color-primary: var(--blue-600);
  --color-primary-hover: var(--blue-700);
  --color-accent: var(--cyan-500);
  --color-border: rgba(15, 23, 42, 0.08);
  --color-border-light: rgba(15, 23, 42, 0.04);
  --color-border-dark: rgba(59, 130, 246, 0.12);

  /* Typography */
  --font-heading: 'Exo', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Roboto Mono', monospace;

  /* Spacing */
  --section-padding: 120px 0;
  --section-padding-mobile: 72px 0;
  --container-padding: 0 60px;
  --container-padding-mobile: 0 24px;
  --gap-sm: 16px;
  --gap-md: 24px;
  --gap-lg: 32px;
  --gap-xl: 48px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.10);
  --shadow-glow: 0 0 24px rgba(37, 107, 235, 0.25);
  --shadow-glow-lg: 0 8px 32px rgba(37, 107, 235, 0.30);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* Z-index scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 1000;
  --z-modal: 2000;
  --z-toast: 3000;
}

/* ========== Reset & Base ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ========== Container ========== */
.container { max-width: 1280px; margin: 0 auto; padding: var(--container-padding); }
@media (max-width: 768px) { .container { padding: var(--container-padding-mobile); } }

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
.gradient-text {
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.font-mono { font-family: var(--font-mono); }

/* ========== Section Headers ========== */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 16px;
  position: relative;
}
.section-header .tag::before,
.section-header .tag::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--blue-500);
  vertical-align: middle;
  margin: 0 12px;
  opacity: 0.4;
}
.section-header h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-header.light h2 { color: var(--white); }
.section-header.light p { color: var(--text-muted); }
.section-header.light .tag { color: var(--blue-400); }
.section-header.light .tag::before,
.section-header.light .tag::after { background: var(--blue-400); }

@media (max-width: 768px) {
  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: 28px; }
  .section-header p { font-size: 14px; }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-lg);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.btn-outline:hover {
  border-color: var(--blue-400);
  background: rgba(59, 130, 246, 0.08);
  box-shadow: var(--shadow-glow);
}
.btn-outline-dark {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--color-border);
}
.btn-outline-dark:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
  background: rgba(59, 130, 246, 0.04);
}

@media (max-width: 768px) {
  .btn { padding: 12px 24px; font-size: 14px; }
}

/* ========== Glass Card ========== */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
}
.glass-card:hover {
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-fixed);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  transition: all var(--duration-normal) ease;
  background: #FFFFFF;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: #FFFFFF;
  border-bottom-color: var(--color-border);
  height: 68px;
}
.header .logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header .logo .logo-img { height: 56px; width: auto; object-fit: contain; transition: height var(--duration-normal) ease; }
.header.scrolled .logo .logo-img { height: 48px; }

/* Nav */
.header .nav { display: flex; align-items: center; gap: 32px; }
.header .nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
  position: relative;
  padding: 4px 0;
}
.header .nav a:hover,
.header .nav a.active { color: var(--text-primary); }
.header .nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--blue-500);
  transition: width var(--duration-normal) var(--ease-out);
  border-radius: 1px;
}
.header .nav a:hover::after,
.header .nav a.active::after { width: 100%; }
.header .btn-contact {
  padding: 10px 28px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--blue-600);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--duration-normal) var(--ease-out);
  background: transparent;
}
.header .nav a.btn-contact:hover {
  box-shadow: var(--shadow-glow);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 28px;
  justify-content: center;
  cursor: pointer;
  z-index: calc(var(--z-fixed) + 1);
  position: relative;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(11, 20, 38, 0.98);
  backdrop-filter: blur(20px);
  z-index: calc(var(--z-fixed) - 1);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) ease;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--duration-fast) ease;
}
.mobile-nav a:hover,
.mobile-nav a.active { color: var(--white); }
.mobile-nav .btn-contact {
  margin-top: 16px;
  padding: 14px 40px;
  border: 1.5px solid var(--blue-500);
  border-radius: var(--radius-sm);
  color: var(--blue-400);
  font-size: 16px;
  font-weight: 600;
  transition: all var(--duration-normal) ease;
}
.mobile-nav .btn-contact:hover {
  background: var(--blue-600);
  color: var(--white);
}

@media (max-width: 768px) {
  .header { padding: 0 24px; height: 68px; }
  .header .nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
}

/* ========== Hero Shared ========== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-900) 0%, #0F2B5C 50%, var(--navy-900) 100%);
  overflow: hidden;
}
.hero canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
  padding: 0 24px;
}
.hero-content .subtitle-top {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--blue-400);
  margin-bottom: 28px;
  font-weight: 400;
  opacity: 0.7;
}
.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 68px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 10px;
}
.hero-content .hero-sub {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 8px;
  font-weight: 400;
  letter-spacing: 1px;
}
.hero-content .hero-desc {
  font-size: 16px;
  color: rgba(148, 163, 184, 0.6);
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; margin-bottom: 56px; }
.hero-tags { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.hero-tags span {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.5);
  letter-spacing: 2px;
  position: relative;
}
.hero-tags span + span::before {
  content: '//';
  position: absolute;
  left: -18px;
  color: var(--blue-500);
  opacity: 0.25;
  font-size: 11px;
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 36px; }
  .hero-content .hero-sub { font-size: 15px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 280px; }
}

/* ========== Page Hero (Sub-pages) ========== */
.page-hero {
  padding-top: 80px;
  background: linear-gradient(135deg, var(--navy-900) 0%, #0F2B5C 50%, var(--navy-900) 100%);
  text-align: center;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-hero .content { position: relative; z-index: 1; }
.page-hero .tag {
  font-family: var(--font-heading);
  font-size: 12px; letter-spacing: 5px;
  color: var(--blue-400); margin-bottom: 20px;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 52px; font-weight: 700; color: var(--white);
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 18px; color: var(--text-muted);
  max-width: 620px; margin: 0 auto; line-height: 1.8;
}
@media (max-width: 768px) {
  .page-hero { padding: 100px 0 72px; }
  .page-hero h1 { font-size: 32px; }
}

/* ========== Sections ========== */
.section-light { background: var(--white); padding: var(--section-padding); }
.section-alt { background: var(--color-bg-alt); padding: var(--section-padding); }
.section-dark { background: var(--color-bg-dark); padding: var(--section-padding); position: relative; overflow: hidden; }
.section-darker { background: var(--color-bg-darker); padding: var(--section-padding); }

@media (max-width: 768px) {
  .section-light, .section-alt, .section-dark, .section-darker { padding: var(--section-padding-mobile); }
}

/* Grid overlay for dark sections */
.section-dark .grid-overlay,
.section-darker .grid-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Section transition gradient bridges */
.section-bridge-top {
  position: relative;
}
.section-bridge-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 80px;
  background: linear-gradient(to bottom, var(--color-bg-alt), transparent);
  pointer-events: none;
  z-index: 1;
}
.section-bridge-dark-top {
  position: relative;
}
.section-bridge-dark-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 80px;
  background: linear-gradient(to bottom, var(--color-bg-dark), transparent);
  pointer-events: none;
  z-index: 1;
}

/* ========== Product Card ========== */
.product-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue-500), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal);
}
.product-card:hover::before { opacity: 1; }
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(59,130,246,0.15);
}
.product-card .icon-wrap {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(37,107,235,0.08), rgba(6,182,212,0.06));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.product-card .icon-wrap svg { width: 26px; height: 26px; }
.product-card .icon-wrap img { width: 44px; height: 44px; object-fit: contain; }
.product-card h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.product-card .desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
}
.product-card .spec {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-light);
}
.product-card .spec-label { font-size: 12px; color: var(--text-muted); }
.product-card .spec-value {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-600);
}
.product-card .specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-light);
}
.product-card .specs .spec-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}
.product-card .specs .spec-item .label { color: var(--text-muted); }
.product-card .specs .spec-item .value {
  font-family: var(--font-mono);
  color: var(--blue-600);
  font-weight: 600;
  font-size: 13px;
}

/* ========== Feature Card ========== */
.feature-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
  cursor: default;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59,130,246,0.10);
}
.feature-card .fc-icon {
  width: 60px; height: 60px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(37,107,235,0.08), rgba(6,182,212,0.06));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.feature-card .fc-icon svg { width: 28px; height: 28px; }
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Dark feature card (for dark sections) */
.feature-card-dark {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(59,130,246,0.10);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
  cursor: default;
}
.feature-card-dark:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(59,130,246,0.2);
  transform: translateY(-4px);
}
.feature-card-dark .fc-icon {
  width: 48px; height: 48px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, rgba(37,107,235,0.15), rgba(6,182,212,0.10));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.feature-card-dark .fc-icon .pulse-ring {
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 12px;
  border: 1px solid rgba(59,130,246,0.3);
  animation: pfPulse 2s ease-out infinite;
}
@keyframes pfPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
.feature-card-dark h4 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card-dark p {
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  line-height: 1.6;
}

/* ========== Stat Card ========== */
.stat-card {
  text-align: center;
  padding: 32px 16px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-500));
}
.stat-card .number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-card .number .suffix {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--blue-500);
}
.stat-card .label {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ========== Solution Card ========== */
.solution-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 320px;
  cursor: pointer;
  background: var(--navy-900);
}
.solution-card .sc-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy-900), #0F2B5C);
  transition: transform 0.6s var(--ease-out);
}
.solution-card:hover .sc-bg { transform: scale(1.05); }
.solution-card .sc-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.3) 60%, rgba(10,22,40,0.1) 100%);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.solution-card .sc-number {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 800;
  color: rgba(59,130,246,0.08);
  position: absolute;
  top: 16px; right: 24px;
  line-height: 1;
}
.solution-card h3 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.solution-card .sc-desc {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.solution-card .sc-link {
  color: var(--blue-400);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--duration-normal) var(--ease-out);
}
.solution-card:hover .sc-link { opacity: 1; transform: translateY(0); }

/* ========== Case Card ========== */
.case-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(59,130,246,0.08);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
}
.case-card:hover {
  border-color: rgba(59,130,246,0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.case-card .case-img {
  height: 200px;
  background: linear-gradient(135deg, #0F2B5C, #162D50);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.case-card .case-img .grid-pattern {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(59,130,246,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}
.case-card .case-img .case-icon {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.case-card .case-img .case-icon svg { width: 40px; height: 40px; opacity: 0.5; }
.case-card .case-img .case-icon span {
  font-size: 13px;
  color: var(--blue-400);
  letter-spacing: 1px;
  opacity: 0.5;
}
.case-card .case-body { padding: 28px; }
.case-card .case-body h4 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.case-card .case-body p {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  line-height: 1.7;
}
.case-card .case-body .case-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  border: 1px solid rgba(59,130,246,0.2);
  color: var(--blue-400);
}

/* ========== Progress Bars ========== */
.progress-item { margin-bottom: 28px; }
.progress-item:last-child { margin-bottom: 0; }
.progress-item .bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 8px;
}
.progress-item .bar-label .name { color: var(--text-primary); font-weight: 500; }
.progress-item .bar-label .pct { color: var(--blue-600); font-weight: 600; font-family: var(--font-mono); font-size: 14px; }
.progress-item .bar-track {
  height: 6px;
  background: rgba(15,23,42,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.progress-item .bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-500));
  width: 0%;
  transition: width 1.5s var(--ease-smooth);
}

/* ========== Radar Pulse Decoration ========== */
.radar-deco {
  position: absolute;
  top: 15%; right: 5%;
  width: 280px; height: 280px;
  pointer-events: none;
  opacity: 0.12;
}
.radar-deco .ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  border: 1px solid var(--blue-500);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  animation: radarPulse 3s ease-out infinite;
}
.radar-deco .ring:nth-child(2) { animation-delay: 1s; }
.radar-deco .ring:nth-child(3) { animation-delay: 2s; width: 50%; height: 50%; }
.radar-deco .ring:nth-child(4) { animation-delay: 0.5s; width: 50%; height: 50%; }
@keyframes radarPulse {
  0% { transform: translate(-50%,-50%) scale(0.3); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1); opacity: 0; }
}

/* ========== Dashboard Mockup ========== */
.dash-mockup {
  background: linear-gradient(160deg, #0F172A, #1A2540);
  border: 1px solid rgba(59,130,246,0.10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.4);
}
.dash-titlebar {
  display: flex; align-items: center;
  padding: 14px 20px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dash-titlebar .dots { display: flex; gap: 6px; }
.dash-titlebar .dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.dash-titlebar .dots span:nth-child(1) { background: #EF4444; }
.dash-titlebar .dots span:nth-child(2) { background: #F59E0B; }
.dash-titlebar .dots span:nth-child(3) { background: #10B981; }
.dash-titlebar .title {
  margin-left: 20px; font-size: 12px;
  color: rgba(255,255,255,0.25);
  font-family: var(--font-mono);
}
.dash-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.04);
}
.dash-panel {
  background: rgba(255,255,255,0.02);
  padding: 20px;
  min-height: 200px;
}
.dash-panel .panel-title {
  font-family: var(--font-heading);
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
@media (max-width: 1200px) { .dash-body { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .dash-body { grid-template-columns: 1fr; } }

/* ========== Gauge ========== */
.gauge-ring {
  width: 90px; height: 90px; border-radius: 50%;
  position: relative; flex-shrink: 0;
}
.gauge-ring svg { transform: rotate(-90deg); }
.gauge-ring .gv {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  color: var(--blue-500); font-size: 20px; font-weight: 700;
  font-family: var(--font-heading);
}
.gauge-info p { color: rgba(255,255,255,0.5); font-size: 13px; line-height: 1.8; }
.gauge-info .highlight { color: var(--blue-500); font-family: var(--font-mono); }

/* ========== Device / Alert List ========== */
.dev-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 13px;
}
.dev-item:last-child { border-bottom: none; }
.dev-item .name { color: rgba(255,255,255,0.6); }
.dev-item .status { display: flex; align-items: center; gap: 6px; }
.dev-item .status .dot { width: 6px; height: 6px; border-radius: 50%; }
.dev-item .status .dot.online { background: #10B981; box-shadow: 0 0 6px rgba(16,185,129,0.5); }
.dev-item .status .dot.warn { background: #F59E0B; }
.dev-item .status .dot.offline { background: #EF4444; }
.dev-item .val { color: rgba(255,255,255,0.6); font-family: var(--font-mono); font-size: 12px; }

.alert-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 12px;
}
.alert-item:last-child { border-bottom: none; }
.alert-item .al-icon {
  width: 22px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0;
  font-weight: 600;
}
.alert-item .al-icon.warn { background: rgba(245,158,11,0.15); color: #F59E0B; }
.alert-item .al-icon.err { background: rgba(239,68,68,0.15); color: #EF4444; }
.alert-item .al-icon.info { background: rgba(59,130,246,0.15); color: var(--blue-500); }
.alert-item .al-text { flex: 1; color: rgba(255,255,255,0.5); }
.alert-item .al-time { color: rgba(255,255,255,0.15); font-size: 11px; font-family: var(--font-mono); }

/* ========== Footer ========== */
.footer {
  background: var(--navy-950);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .fb-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand .fb-logo img { height: 40px; object-fit: contain; }
.footer-brand .fb-logo span {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
}
.footer-brand p {
  color: rgba(255,255,255,0.35);
  font-size: 14px;
  line-height: 1.8;
  max-width: 340px;
}
.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.35);
  font-size: 14px;
  margin-bottom: 12px;
  transition: color var(--duration-fast) ease;
}
.footer-col a:hover { color: var(--blue-400); }
.footer-contact p {
  color: rgba(255,255,255,0.35);
  font-size: 14px;
  margin-bottom: 8px;
}
.footer-contact p strong { color: rgba(255,255,255,0.7); font-weight: 500; }
#contact { scroll-margin-top: 100px; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  color: rgba(255,255,255,0.2);
  font-size: 13px;
}

@media (max-width: 1200px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding: 56px 0 24px; }
}

/* ========== Architecture Diagram ========== */
.arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.arch-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.arch-item {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  text-align: center;
  min-width: 120px;
  transition: all var(--duration-normal) var(--ease-out);
  cursor: default;
}
.arch-item:hover {
  border-color: var(--blue-500);
  box-shadow: 0 8px 24px rgba(59,130,246,0.08);
  transform: translateY(-2px);
}
.arch-item .ai-icon {
  width: 40px; height: 40px;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, rgba(37,107,235,0.08), rgba(6,182,212,0.06));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.arch-item .ai-icon svg { width: 20px; height: 20px; }
.arch-item .ai-label {
  font-size: 13px; font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.arch-arrow {
  color: var(--blue-500); font-size: 18px;
  opacity: 0.25;
}
.arch-devices {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.arch-devices .ad-item {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  border: 1px solid var(--color-border);
  color: var(--text-secondary);
  background: var(--white);
}

@media (max-width: 768px) {
  .arch-row { flex-direction: column; align-items: center; }
  .arch-item { min-width: 100px; padding: 16px 20px; }
}

/* ========== Scroll Reveal ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-smooth);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== Responsive Utilities ========== */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 768px) {
  .grid-4 { grid-template-columns: 1fr !important; }
  .grid-3 { grid-template-columns: 1fr !important; }
  .grid-2 { grid-template-columns: 1fr !important; }
}

/* ========== Print ========== */
@media print {
  .header { position: static; }
  .hero { height: auto; min-height: auto; padding: 60px 0; }
  .reveal { opacity: 1; transform: none; }
}
