/* ============================================
   ZIYIN TECH — Global Stylesheet
   Teal Futuristic Communications Theme
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --teal-900: #0a2e2e;
  --teal-800: #0d3d3d;
  --teal-700: #0f4c4c;
  --teal-600: #137a7a;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-300: #5eead4;
  --teal-200: #99f6e4;
  --teal-100: #ccfbf1;
  --teal-glow: rgba(20, 184, 166, 0.35);
  --teal-glow-strong: rgba(20, 184, 166, 0.6);
  --dark-bg: #060e12;
  --dark-surface: #0b1a1f;
  --dark-card: #0f2228;
  --dark-card-hover: #132d35;
  --dark-border: rgba(20, 184, 166, 0.15);
  --dark-border-hover: rgba(20, 184, 166, 0.4);
  --text-primary: #e8f5f3;
  --text-secondary: #94b8b4;
  --text-muted: #5f8a84;
  --white: #ffffff;
  --font-primary: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --shadow-glow: 0 0 20px var(--teal-glow);
  --shadow-glow-strong: 0 0 40px var(--teal-glow-strong);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: var(--teal-400);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--teal-300);
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--teal-700);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--teal-600);
}

/* --- Utility --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--teal-500);
  box-shadow: 0 0 8px var(--teal-glow);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-title .highlight {
  color: var(--teal-400);
  text-shadow: 0 0 30px var(--teal-glow);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.8;
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle {
  margin: 0 auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* --- Animations (only hide when JS is ready) --- */
.js-ready .fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-ready .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.js-ready .fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-ready .fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.js-ready .fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-ready .fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.js-ready .scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-ready .scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children */
.js-ready .stagger-children .fade-in:nth-child(1) { transition-delay: 0s; }
.js-ready .stagger-children .fade-in:nth-child(2) { transition-delay: 0.1s; }
.js-ready .stagger-children .fade-in:nth-child(3) { transition-delay: 0.2s; }
.js-ready .stagger-children .fade-in:nth-child(4) { transition-delay: 0.3s; }
.js-ready .stagger-children .fade-in:nth-child(5) { transition-delay: 0.4s; }
.js-ready .stagger-children .fade-in:nth-child(6) { transition-delay: 0.5s; }

/* --- Background Effects --- */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 184, 166, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 166, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-orb {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

.bg-glow-orb.orb-1 {
  top: -200px;
  right: -200px;
}

.bg-glow-orb.orb-2 {
  bottom: -300px;
  left: -200px;
  opacity: 0.15;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-normal);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(6, 14, 18, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
}

.nav-logo span {
  color: var(--teal-400);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal-400);
  background: rgba(20, 184, 166, 0.08);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--teal-400);
  border-radius: 1px;
  box-shadow: 0 0 8px var(--teal-glow);
}

.nav-cta {
  padding: 8px 22px !important;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500)) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-glow);
}

.nav-cta:hover {
  box-shadow: var(--shadow-glow-strong) !important;
  transform: translateY(-1px);
}

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(20, 184, 166, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(20, 184, 166, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--dark-bg) 0%, transparent 30%, transparent 70%, var(--dark-bg) 100%);
}

.hero-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-glow), transparent);
  animation: hero-line-flow 8s linear infinite;
}

.hero-line:nth-child(1) { top: 20%; width: 300px; left: -300px; animation-delay: 0s; }
.hero-line:nth-child(2) { top: 40%; width: 200px; left: -200px; animation-delay: 2s; }
.hero-line:nth-child(3) { top: 60%; width: 400px; left: -400px; animation-delay: 4s; }
.hero-line:nth-child(4) { top: 80%; width: 250px; left: -250px; animation-delay: 6s; }

@keyframes hero-line-flow {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(100vw + 400px)); }
}

.hero-particles {
  position: absolute;
  inset: 0;
}

.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--teal-400);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--teal-glow);
  animation: float-particle 12s ease-in-out infinite;
}

.hero-particle:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.hero-particle:nth-child(2) { top: 25%; left: 85%; animation-delay: 2s; }
.hero-particle:nth-child(3) { top: 55%; left: 70%; animation-delay: 4s; }
.hero-particle:nth-child(4) { top: 75%; left: 20%; animation-delay: 1s; }
.hero-particle:nth-child(5) { top: 40%; left: 50%; animation-delay: 3s; }
.hero-particle:nth-child(6) { top: 65%; left: 40%; animation-delay: 5s; }
.hero-particle:nth-child(7) { top: 85%; left: 60%; animation-delay: 2.5s; }
.hero-particle:nth-child(8) { top: 30%; left: 30%; animation-delay: 4.5s; }

@keyframes float-particle {
  0%, 100% { transform: translate(0, 0); opacity: 0.4; }
  25% { transform: translate(20px, -30px); opacity: 1; }
  50% { transform: translate(-15px, -60px); opacity: 0.6; }
  75% { transform: translate(25px, -20px); opacity: 0.9; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid var(--dark-border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--teal-400);
  margin-bottom: 28px;
  letter-spacing: 1px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--teal-400);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--teal-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero-title .line {
  display: block;
}

.hero-title .highlight {
  color: var(--teal-400);
  text-shadow: 0 0 40px var(--teal-glow);
}

.hero-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--dark-border);
}

.hero-stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--teal-400);
  text-shadow: 0 0 20px var(--teal-glow);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow-strong);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--teal-400);
  border: 1px solid var(--dark-border-hover);
}

.btn-outline:hover {
  background: rgba(20, 184, 166, 0.08);
  border-color: var(--teal-400);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- Cards --- */
.card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal-500), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card:hover {
  border-color: var(--dark-border-hover);
  background: var(--dark-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), var(--shadow-glow);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all var(--transition-normal);
}

.card:hover .card-icon {
  background: rgba(20, 184, 166, 0.18);
  border-color: var(--dark-border-hover);
  box-shadow: var(--shadow-glow);
}

.card-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--teal-400);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Feature List --- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.feature-list li svg {
  width: 18px;
  height: 18px;
  fill: var(--teal-400);
  flex-shrink: 0;
  margin-top: 3px;
}

/* --- Data Center Map Section --- */
.dc-map-section {
  position: relative;
}

.dc-world-visual {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background:
    radial-gradient(ellipse 100% 100% at 50% 50%, rgba(20, 184, 166, 0.06) 0%, transparent 70%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--dark-border);
  overflow: hidden;
}

.dc-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}

.dc-node-dot {
  width: 14px;
  height: 14px;
  background: var(--teal-400);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--teal-glow-strong);
  position: relative;
  z-index: 2;
}

.dc-node-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid var(--teal-400);
  border-radius: 50%;
  animation: pulse-ring 2.5s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}

.dc-node-label {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal-300);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.dc-connection-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, var(--teal-glow), transparent);
  transform-origin: left center;
  z-index: 1;
}

/* --- Region Cards --- */
.region-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.region-card:hover {
  border-color: var(--dark-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), var(--shadow-glow);
}

.region-card-header {
  padding: 28px 28px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--dark-border);
}

.region-flag {
  font-size: 2rem;
  line-height: 1;
}

.region-card-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.region-card-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.region-card-body {
  padding: 24px 28px;
}

.region-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.region-spec {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(20, 184, 166, 0.06);
}

.region-spec:last-child {
  border-bottom: none;
}

.region-spec-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.region-spec-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-300);
}

.region-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid var(--dark-border);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal-400);
  margin-top: 16px;
}

.region-badge.ddos {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* --- SLA Table --- */
.sla-table-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid var(--dark-border);
  overflow: hidden;
  background: var(--dark-card);
}

.sla-table {
  width: 100%;
  border-collapse: collapse;
}

.sla-table thead th {
  padding: 18px 24px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal-400);
  background: rgba(20, 184, 166, 0.06);
  border-bottom: 1px solid var(--dark-border);
}

.sla-table tbody td {
  padding: 16px 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(20, 184, 166, 0.05);
}

.sla-table tbody tr:last-child td {
  border-bottom: none;
}

.sla-table tbody tr:hover {
  background: rgba(20, 184, 166, 0.04);
}

.sla-table .check {
  color: var(--teal-400);
  font-weight: 700;
}

.sla-table .featured {
  background: rgba(20, 184, 166, 0.06);
  font-weight: 600;
  color: var(--teal-300);
}

/* --- Topology / Diagram placeholders --- */
.topology-placeholder {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.topology-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 48%, rgba(20, 184, 166, 0.04) 49%, rgba(20, 184, 166, 0.04) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(20, 184, 166, 0.04) 49%, rgba(20, 184, 166, 0.04) 51%, transparent 52%);
  background-size: 30px 30px;
}

.topology-nodes {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.topology-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.topology-node-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--teal-500);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 184, 166, 0.08);
  box-shadow: var(--shadow-glow);
}

.topology-node-circle svg {
  width: 26px;
  height: 26px;
  fill: var(--teal-400);
}

.topology-node span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-300);
}

/* --- Rack Options --- */
.rack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.rack-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
}

.rack-card.popular {
  border-color: var(--teal-500);
  box-shadow: var(--shadow-glow);
}

.rack-card.popular::before {
  content: '热门';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 10px;
  background: var(--teal-500);
  color: var(--white);
  border-radius: 50px;
}

.rack-card:hover {
  border-color: var(--dark-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), var(--shadow-glow);
}

.rack-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--teal-400);
}

.rack-card .rack-type {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.rack-card .rack-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.rack-card .rack-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.rack-card .rack-features li svg {
  width: 16px;
  height: 16px;
  fill: var(--teal-400);
  flex-shrink: 0;
}

/* --- Stat Bars --- */
.stat-bar-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stat-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-bar-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.stat-bar-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-400);
}

.stat-bar-track {
  height: 6px;
  background: rgba(20, 184, 166, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-600), var(--teal-400));
  border-radius: 3px;
  box-shadow: 0 0 10px var(--teal-glow);
  transition: width 1.5s ease;
  width: var(--bar-width);
}

.js-ready .stat-bar-fill {
  width: 0;
}

.js-ready .stat-bar-fill.animated {
  width: var(--bar-width);
}

/* --- Contact --- */
.contact-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--teal-500), transparent);
}

.contact-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.contact-icon svg {
  width: 36px;
  height: 36px;
  fill: var(--teal-400);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--teal-400);
  padding: 14px 28px;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  margin-top: 16px;
  transition: all var(--transition-normal);
  word-break: break-all;
}

.contact-email:hover {
  border-color: var(--teal-500);
  box-shadow: var(--shadow-glow);
  color: var(--teal-300);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--dark-border);
  padding: 60px 0 32px;
  background: rgba(6, 14, 18, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 300px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 5px 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--teal-400);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--dark-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Page Header Banner --- */
.page-header {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(20, 184, 166, 0.1) 0%, transparent 60%),
    linear-gradient(180deg, var(--dark-bg) 0%, transparent 40%, transparent 60%, var(--dark-bg) 100%);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header .section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
}

/* --- DDoS Badge --- */
.ddos-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f87171;
}

.ddos-badge svg {
  width: 16px;
  height: 16px;
  fill: #f87171;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4, .rack-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .hero-stats {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: rgba(6, 14, 18, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 4px;
    transition: right var(--transition-normal);
    border-left: 1px solid var(--dark-border);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    padding: 14px 18px;
    width: 100%;
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .grid-2, .grid-3, .grid-4, .rack-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .hero-stat {
    flex: 0 0 calc(50% - 12px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    text-align: center;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .sla-table {
    font-size: 0.8rem;
  }

  .sla-table thead th,
  .sla-table tbody td {
    padding: 12px 10px;
  }

  .contact-card {
    padding: 32px 20px;
  }

  .contact-email {
    font-size: 0.9rem;
    padding: 12px 16px;
  }

  .topology-nodes {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: column;
  }

  .hero-stat {
    flex: 1;
  }

  .card {
    padding: 24px;
  }
}

/* --- Backdrop overlay --- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}
