/* ==========================================================================
   Design System & Variables
   ========================================================================== */
:root {
  --bg-primary: #080a10;
  --bg-secondary: #0e121a;
  --bg-card: rgba(20, 26, 38, 0.6);
  --bg-card-hover: rgba(28, 36, 51, 0.8);
  --accent-orange: #ff5722;
  --accent-orange-rgb: 255, 87, 34;
  --accent-orange-hover: #ff7043;
  --accent-blue: #0088cc;
  --accent-teal: #00d2ff;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 87, 34, 0.2);
  --border-glow-active: rgba(255, 87, 34, 0.6);
  --font-heading: 'Outfit', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1280px;
}

/* ==========================================================================
   Base resets & layouts
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.container-narrow {
  max-width: 680px;
}

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

button, input, select, textarea {
  font-family: inherit;
}

/* Decorative Background Glows */
.glow-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: screen;
}

.glow-1 {
  background: radial-gradient(circle, rgba(255,87,34,0.3) 0%, rgba(255,87,34,0) 70%);
  width: 600px;
  height: 600px;
  top: -100px;
  right: -200px;
}

.glow-2 {
  background: radial-gradient(circle, rgba(0,136,204,0.2) 0%, rgba(0,136,204,0) 70%);
  width: 500px;
  height: 500px;
  top: 500px;
  left: -200px;
}

.glow-3 {
  background: radial-gradient(circle, rgba(255,87,34,0.15) 0%, rgba(255,87,34,0) 70%);
  width: 700px;
  height: 700px;
  bottom: 200px;
  right: -100px;
}

/* ==========================================================================
   Typography & Headers
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

h1 {
  font-size: 3rem;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  text-align: center;
}

/* Sections */
.section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  max-width: 800px;
  margin: 0 auto 60px auto;
  text-align: center;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--accent-orange);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(var(--accent-orange-rgb), 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(var(--accent-orange-rgb), 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

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

.btn-accent {
  background-color: rgba(0, 136, 204, 0.1);
  border: 1px solid rgba(0, 136, 204, 0.4);
  color: #00d2ff;
}

.btn-accent:hover {
  background-color: rgba(0, 136, 204, 0.2);
  border-color: #00d2ff;
  transform: translateY(-2px);
}

.btn-danger {
  background-color: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.4);
  color: #ff8a80;
}

.btn-danger:hover {
  background-color: rgba(244, 67, 54, 0.2);
  border-color: #ff5252;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(8, 10, 16, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  height: 44px;
  width: 200px;
}

.logo img {
  height: 100%;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-menu a:hover {
  color: #ffffff;
}

.nav-cta {
  background-color: rgba(255, 87, 34, 0.1);
  color: var(--accent-orange) !important;
  border: 1px solid rgba(255, 87, 34, 0.25);
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 600;
}

.nav-cta:hover {
  background-color: var(--accent-orange) !important;
  color: #ffffff !important;
  border-color: var(--accent-orange);
}

/* Language selector */
.lang-selector {
  position: relative;
  margin-left: 12px;
}

.lang-current {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.lang-current:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.lang-current .chevron {
  transition: var(--transition);
}

.lang-selector.active .lang-current .chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  width: 120px;
  padding: 6px;
  display: none;
  z-index: 101;
  backdrop-filter: blur(20px);
}

.lang-selector.active .lang-dropdown {
  display: block;
}

.lang-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
}

.lang-dropdown button:hover {
  background-color: rgba(255, 87, 34, 0.1);
  color: #ffffff;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 180px 0 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero-badge-wrapper {
  margin-bottom: 16px;
}

.hero-badge {
  background-color: rgba(255, 87, 34, 0.1);
  border: 1px solid rgba(255, 87, 34, 0.2);
  color: #ff8a50;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: inline-block;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-primary-actions,
.hero-actions {
  display: flex;
  gap: 16px;
  max-width: 580px;
  width: 100%;
}

.hero-primary-actions {
  margin-bottom: 16px;
}

.hero-actions {
  margin-bottom: 40px;
}

.hero-primary-actions .btn,
.hero-actions .btn {
  flex: 1;
  min-width: 0;
  height: 56px;
  justify-content: center;
  border-radius: 12px;
  padding: 0 28px;
  font-size: 1rem;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-demo {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #ff3d00 100%);
  border: 1px solid rgba(255, 87, 34, 0.4);
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(255, 87, 34, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  gap: 10px;
}

.btn-demo:hover {
  background: linear-gradient(135deg, #ff6e40 0%, var(--accent-orange) 100%);
  box-shadow: 0 8px 30px rgba(255, 87, 34, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.btn-telegram {
  background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
  border: 1px solid rgba(0, 136, 204, 0.4);
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 136, 204, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  gap: 10px;
}

.btn-telegram:hover {
  background: linear-gradient(135deg, #00a2f2 0%, #0088cc 100%);
  box-shadow: 0 8px 30px rgba(0, 136, 204, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.hero-actions .btn-primary {
  background: linear-gradient(135deg, #ff5722 0%, #d84315 100%);
  border: 1px solid rgba(255, 87, 34, 0.3);
  box-shadow: 0 4px 20px rgba(255, 87, 34, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-actions .btn-primary:hover {
  background: linear-gradient(135deg, #ff7043 0%, #e64a19 100%);
  box-shadow: 0 8px 30px rgba(255, 87, 34, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(-3px);
}

.hero-stat-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
}

.hero-stat-box span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Mesh Graphic Animation */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.mesh-graphic {
  width: 420px;
  height: 420px;
  position: relative;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.05);
}

.mesh-node {
  position: absolute;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 2;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.main-node {
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, #ff6c37 0%, #d83b01 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  top: 50%;
  left: 50%;
  box-shadow: 0 0 35px rgba(255, 108, 55, 0.4), inset 0 2px 10px rgba(255, 255, 255, 0.2);
}

.main-node:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 0 45px rgba(255, 108, 55, 0.6), inset 0 2px 10px rgba(255, 255, 255, 0.3);
}

.main-node .node-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.main-node:hover .node-icon-wrapper {
  transform: scale(1.08);
}

.main-node .node-label {
  position: absolute;
  top: 102px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent-orange);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
  text-shadow: 0 0 10px rgba(255, 108, 55, 0.2);
}

.sub-node {
  width: 58px;
  height: 58px;
  background-color: rgba(15, 17, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.7);
}

.sub-node:hover {
  border-color: var(--brand-orange);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(255, 108, 55, 0.35), 0 10px 30px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%) scale(1.08);
}

.node-1 { top: 15%; left: 15%; }
.node-2 { top: 15%; left: 85%; }
.node-3 { top: 85%; left: 85%; }
.node-4 { top: 85%; left: 15%; }

.node-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.sub-node:hover .node-icon-wrapper {
  transform: scale(1.1);
}

.node-status-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid #0f1117;
  box-shadow: 0 0 8px #10b981;
}

.sub-node .node-label {
  position: absolute;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.3s ease;
}

.sub-node:hover .node-label {
  color: #ffffff;
}

/* Tooltip Styling */
.node-tooltip {
  position: absolute;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(15, 17, 23, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 14px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 10;
}

.main-node .node-tooltip {
  bottom: 106px;
}

.mesh-node:hover .node-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tooltip-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.tooltip-ip {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: monospace;
  margin-bottom: 2px;
}

.tooltip-status {
  font-size: 0.7rem;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tooltip-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

.tooltip-ping {
  font-size: 0.7rem;
  color: var(--accent-orange);
  margin-top: 2px;
}

.connection-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.connection-lines line,
.connection-lines path {
  stroke-linecap: round;
}

.line-coord {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1.5;
}

.line-p2p {
  stroke: var(--accent-orange);
  stroke-width: 2;
  stroke-dasharray: 8 6;
  animation: dash 12s linear infinite;
  opacity: 0.6;
}

@keyframes dash {
  to {
    stroke-dashoffset: -200;
  }
}

/* ==========================================================================
   Features Grid
   ========================================================================== */
.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: 16px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(255, 87, 34, 0.05);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 87, 34, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Interactive Simulator Section
   ========================================================================== */
.simulator-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
}

.simulator-display {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  height: 400px;
}

.sim-canvas-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background-color: #05070a;
  -webkit-overflow-scrolling: touch;
  height: 100%;
}

.sim-canvas {
  background-color: #05070a;
  background-image: 
    radial-gradient(rgba(255,255,255,0.03) 1px, transparent 0),
    radial-gradient(rgba(255,255,255,0.02) 2px, transparent 0);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.sim-node {
  position: absolute;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  z-index: 10;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  pointer-events: none;
  white-space: nowrap;
}

.sim-node.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.sim-node.coordinator {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 240px;
  background-color: rgba(0, 136, 204, 0.15);
  border-color: rgba(0, 136, 204, 0.4);
  color: #ffffff;
  opacity: 1;
  cursor: pointer;
  user-select: none;
  pointer-events: auto !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sim-node.coordinator:hover {
  background-color: rgba(0, 136, 204, 0.25);
  border-color: rgba(0, 136, 204, 0.6);
  transform: translate(-50%, -50%) scale(1.03);
}

.sim-node.coordinator.offline {
  background-color: rgba(244, 67, 54, 0.15);
  border-color: rgba(244, 67, 54, 0.5);
  color: #f44336;
  box-shadow: 0 0 20px rgba(244, 67, 54, 0.25);
}

.sim-node.coordinator.offline .sim-node-icon {
  color: #f44336;
}

.sim-node.coordinator.bottleneck {
  border-color: #f44336;
  background-color: rgba(244, 67, 54, 0.2);
  box-shadow: 0 0 25px rgba(244, 67, 54, 0.4);
  animation: pulse-red 2s infinite ease-in-out;
}

.bottleneck-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f44336;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 850;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  display: none;
  animation: bounce-badge 1s infinite alternate;
  z-index: 20;
}

.sim-node.coordinator.bottleneck .bottleneck-badge {
  display: block;
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 15px rgba(244, 67, 54, 0.3); }
  50% { box-shadow: 0 0 25px rgba(244, 67, 54, 0.6); }
  100% { box-shadow: 0 0 15px rgba(244, 67, 54, 0.3); }
}

@keyframes bounce-badge {
  from { transform: translate(-50%, 0); }
  to { transform: translate(-50%, -3px); }
}

.coordinator-cluster-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
}

.cluster-status {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  justify-content: center;
}

.cluster-dot {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  pointer-events: auto !important;
}

.cluster-dot.online {
  background-color: rgba(76, 175, 80, 0.15);
  color: #4caf50;
  border-color: rgba(76, 175, 80, 0.4);
}

.cluster-dot.online:hover {
  background-color: rgba(76, 175, 80, 0.3);
  border-color: rgba(76, 175, 80, 0.7);
}

.cluster-dot.offline {
  background-color: rgba(244, 67, 54, 0.15);
  color: #f44336;
  border-color: rgba(244, 67, 54, 0.4);
}

.cluster-dot.offline:hover {
  background-color: rgba(244, 67, 54, 0.3);
  border-color: rgba(244, 67, 54, 0.7);
}


.sim-node.coordinator .sim-node-icon {
  color: var(--accent-teal);
}

.sim-canvas-hint {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 12;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}


.sim-node-icon {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
}

/* Dynamic coordinates handled in JavaScript */

.sim-svg-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.sim-line {
  stroke-width: 2;
  stroke-linecap: round;
  transition: stroke 0.4s, stroke-dasharray 0.4s;
}

.sim-line.control {
  stroke: rgba(0, 136, 204, 0.3);
  stroke-dasharray: 4 4;
}

.sim-line.p2p-direct {
  stroke: var(--accent-teal);
  stroke-width: 2.5;
  stroke-dasharray: 8 6;
  filter: drop-shadow(0 0 4px var(--accent-teal));
  animation: dash 5s linear infinite;
}

.sim-line.blocked {
  stroke: #f44336;
  stroke-dasharray: 4 6;
  stroke-width: 1.5;
  opacity: 0.4;
}

.sim-line.classic-active {
  stroke: var(--accent-orange);
  stroke-width: 2;
  stroke-dasharray: 10 10;
  filter: drop-shadow(0 0 2px var(--accent-orange));
  animation: dash 12s linear infinite;
}


/* Terminal Log */
.sim-terminal {
  background-color: #030406;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  font-family: 'Courier New', Courier, monospace;
}

.terminal-header {
  background-color: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-dots span:nth-child(1) { background-color: #ff5f56; }
.terminal-dots span:nth-child(2) { background-color: #ffbd2e; }
.terminal-dots span:nth-child(3) { background-color: #27c93f; }

.terminal-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: bold;
}

.terminal-body {
  padding: 16px;
  flex-grow: 1;
  overflow-y: auto;
  font-size: 0.85rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-line {
  color: #27c93f;
}
.log-line.text-muted {
  color: var(--text-muted);
}
.log-line.text-warning {
  color: #ffbd2e;
}
.log-line.text-error {
  color: #ff5f56;
}

.sim-controls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.sim-controls-group {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.sim-controls-group h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
}

.sim-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-grow: 1;
}

.sim-buttons-row .sim-btn {
  flex: 1 1 calc(50% - 5px);
  padding: 8px 10px;
  font-size: 0.8rem;
  line-height: 1.2;
}

.sim-controls-group:last-child .sim-buttons-row .sim-btn {
  flex: 1 1 100%;
}

@media (max-width: 992px) {
  .sim-controls-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sim-controls-group:last-child {
    grid-column: span 2;
  }
  .sim-buttons-row {
    flex-direction: column !important;
  }
  .sim-buttons-row .sim-btn {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 600px) {
  .sim-controls-grid {
    grid-template-columns: 1fr;
  }
  .sim-controls-group:last-child {
    grid-column: span 1;
  }
  .sim-controls-group:last-child .sim-buttons-row {
    flex-direction: column;
  }
  .sim-controls-group:last-child .sim-buttons-row .sim-btn {
    flex: 1 1 100%;
  }
  .sim-buttons-row .sim-btn {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   Services Tabs
   ========================================================================== */
.services-tabs-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.tabs-header {
  display: flex;
  justify-content: flex-start;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 6px;
  align-self: center;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

.tabs-header::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}

.tab-btn.active {
  background-color: var(--bg-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
}

.tab-btn:hover:not(.active) {
  color: #ffffff;
}

.tabs-content {
  position: relative;
  min-height: 320px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.tab-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #ffffff;
}

.tab-text p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.tab-text strong {
  color: #ffffff;
  font-weight: 600;
}

.tab-visual-demo {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  height: 380px; /* Increased from 280px to prevent clipping and fit more tools */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

#tab-maintenance .tab-visual-demo {
  height: auto;
  min-height: 530px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 16px 20px;
}

#tab-networks .tab-visual-demo {
  height: auto;
  min-height: 480px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 16px 20px;
}

#tab-virtualization .tab-visual-demo,
#tab-business .tab-visual-demo {
  height: auto;
  min-height: 380px;
}

/* Tab specific visual demos styling */
.tech-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 440px; /* Wider container to allow side-by-side wrapping */
}

.tech-icon-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.85rem;
  color: var(--accent-orange);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: var(--transition);
}

.tech-icon-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 87, 34, 0.15);
}

/* Security defaults box stylings */
.sec-defaults-box {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: left;
}

.sec-defaults-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-defaults-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent-orange);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-orange);
}

.sec-defaults-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sec-defaults-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.sec-defaults-list li::before {
  content: "•";
  color: var(--accent-orange);
  font-weight: bold;
  display: inline-block;
  width: 8px;
  margin-right: 2px;
}

.sec-defaults-list li strong {
  color: #ffffff;
}

.sec-commercial-note {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

.sec-commercial-note .note-tag {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: block;
  font-style: italic;
  margin-bottom: 4px;
}

.sec-commercial-note .note-content {
  font-size: 0.82rem;
  color: #ffffff;
  line-height: 1.4;
}

.sec-commercial-note .note-content strong {
  color: var(--accent-orange);
}

#tab-security .tab-visual-demo {
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  height: auto;
  min-height: 420px;
}

/* Radar screen for security tab */
.security-radar {
  width: 200px;
  height: 200px;
  border: 2px solid rgba(0, 210, 255, 0.2);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background-color: #030406;
}

.radar-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(0, 210, 255, 0.4);
}

.radar-scan {
  position: absolute;
  width: 100%;
  height: 100%;
  background: conic-gradient(from 0deg at 50% 50%, rgba(0, 210, 255, 0.3) 0deg, rgba(0, 210, 255, 0) 90deg);
  border-radius: 50%;
  animation: rotRadar 4s linear infinite;
  transform-origin: center;
}

@keyframes rotRadar {
  to { transform: rotate(360deg); }
}

.radar-ping {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.radar-ping.node-threat {
  background-color: #f44336;
  box-shadow: 0 0 10px #f44336;
}

.radar-ping.node-ok {
  background-color: #4caf50;
  box-shadow: 0 0 10px #4caf50;
}

/* Incident Response Simulator styling */
.incident-simulator {
  width: 100%;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  margin-top: 16px;
}

.sim-sec-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sim-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-pulse-dot.ok {
  background-color: #4caf50;
  box-shadow: 0 0 10px #4caf50;
  animation: pulseOk 2s infinite;
}

.status-pulse-dot.threat {
  background-color: #f44336;
  box-shadow: 0 0 12px #f44336;
  animation: pulseThreat 0.6s infinite;
}

@keyframes pulseOk {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 14px #4caf50; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

@keyframes pulseThreat {
  0% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 18px #f44336; }
  100% { transform: scale(0.8); opacity: 0.6; }
}

.status-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.status-text.threat-active {
  color: #ff5f56;
}

.sim-sec-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.sec-sim-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 8px 2px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: center;
}

.sec-sim-btn:hover {
  background: rgba(255, 87, 34, 0.1);
  border-color: var(--accent-orange);
  transform: translateY(-1px);
}

.sec-sim-btn:active {
  transform: translateY(1px);
}

.sec-sim-btn.active-sim {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.3);
}

.sec-sim-console {
  background: #020305;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px;
  height: 110px;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: left;
}

.sec-sim-console::-webkit-scrollbar {
  width: 4px;
}
.sec-sim-console::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.console-line {
  margin-bottom: 4px;
  color: #e0e0e0;
}

.console-line.threat-log {
  color: #ff5f56;
}

.console-line.action-log {
  color: #00d2ff;
}

.console-line.success-log {
  color: #4caf50;
  font-weight: bold;
}

/* Backup flow style */
.backup-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

.backup-box {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.backup-box.main-data { border-left: 3px solid var(--accent-teal); }
.backup-box.backup-local { border-left: 3px solid #ffbd2e; }
.backup-box.backup-cloud { border-left: 3px solid var(--accent-orange); }

.backup-arrow {
  color: var(--text-muted);
  font-weight: bold;
}

/* RMM Preview */
.rmm-dashboard-preview {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rmm-row {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
}

.badge.status-ok { background-color: rgba(76, 175, 80, 0.15); color: #4caf50; }
.badge.status-warning { background-color: rgba(255, 189, 46, 0.15); color: #ffbd2e; }
.badge.status-online { background-color: rgba(0, 136, 204, 0.15); color: #00d2ff; }

/* ==========================================================================
   Pricing Calculator
   ========================================================================== */
.calculator-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.calculator-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}

.slider-group {
  margin-bottom: 30px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 1rem;
}

.slider-label strong {
  font-size: 2rem;
  color: var(--accent-orange);
  font-family: var(--font-heading);
}

.hosts-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  outline: none;
  border: 1px solid var(--border-color);
}

.hosts-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-orange);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(var(--accent-orange-rgb), 0.5);
  transition: var(--transition);
}

.hosts-slider::-webkit-slider-thumb:hover {
  background: var(--accent-orange-hover);
  transform: scale(1.1);
}

.hosts-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-orange);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(var(--accent-orange-rgb), 0.5);
  transition: var(--transition);
}

.hosts-slider::-moz-range-thumb:hover {
  background: var(--accent-orange-hover);
  transform: scale(1.1);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  padding: 10px 4px 0 4px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.price-display-wrapper {
  text-align: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.price-value {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 6px;
}

.price-currency {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.calculator-included {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
}

.calculator-included h3 {
  font-size: 1.35rem;
  margin-bottom: 24px;
}

.included-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.included-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.4;
}

.included-list li svg {
  color: var(--accent-orange);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   FAQ Section Accordions
   ========================================================================== */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-question .chevron {
  transition: var(--transition);
  color: var(--text-muted);
}

.faq-item.active {
  border-color: var(--border-glow);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-question .chevron {
  transform: rotate(180deg);
  color: var(--accent-orange);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-answer p {
  padding: 0 24px 24px 24px;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* ==========================================================================
   Contact Form Card
   ========================================================================== */
.form-section {
  position: relative;
  overflow: hidden;
}

.form-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.form-card h2 {
  margin-bottom: 12px;
}

.form-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 36px;
  font-size: 1.05rem;
}

#lead-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group label .audit-link {
  color: var(--accent-orange);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.form-group label .audit-link:hover {
  opacity: 0.8;
}

.form-group input {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 10px rgba(var(--accent-orange-rgb), 0.15);
}

.form-status {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  margin-top: 20px;
  font-size: 0.95rem;
  font-weight: 500;
}

.status-success {
  background-color: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #81c784;
}

.status-error {
  background-color: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #e57373;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-section {
  background: linear-gradient(to bottom, #070a12, #040508);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0 40px 0;
  position: relative;
  overflow: hidden;
}

.footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-orange-rgb), 0.4), transparent);
  box-shadow: 0 0 15px rgba(var(--accent-orange-rgb), 0.6);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

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

.footer-logo {
  height: 32px;
  align-self: flex-start;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.03);
}

.footer-description {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0;
}

.footer-socials {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  width: 100%;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(var(--accent-orange-rgb), 0.06);
  border: 1px solid rgba(var(--accent-orange-rgb), 0.15);
  color: var(--accent-orange);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  white-space: nowrap;
}

.social-icon-btn svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.social-icon-btn:hover {
  background: var(--accent-orange);
  color: #0b0f19;
  box-shadow: 0 4px 16px rgba(var(--accent-orange-rgb), 0.35);
  transform: translateY(-2px);
}

.social-icon-btn:hover svg {
  transform: scale(1.1);
}

.footer-col-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin: 0 0 20px 0;
  font-weight: 700;
  position: relative;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 24px;
  height: 2px;
  background: var(--accent-orange);
  border-radius: 2px;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list li {
  position: relative;
}

.footer-links-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-left: 0;
}

.footer-links-list a::before {
  content: '→';
  position: absolute;
  left: -12px;
  opacity: 0;
  color: var(--accent-orange);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: monospace;
  font-weight: 700;
}

.footer-links-list a:hover {
  color: #ffffff;
  padding-left: 14px;
}

.footer-links-list a:hover::before {
  opacity: 1;
  left: 0;
}

.footer-contacts-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contacts-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.contact-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: white;
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 8px;
  max-width: 240px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.secure-badge:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.badge-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.badge-text {
  display: flex;
  flex-direction: column;
}

.badge-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

.badge-subtitle {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.2;
  margin-top: 2px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
}

.copyright-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-legal-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: var(--accent-orange);
}

.separator {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  
  .hero-badge-wrapper {
    display: flex;
    justify-content: center;
  }
  
  .hero-primary-actions,
  .hero-actions,
  .hero-compliance-actions {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
  
  .hero-stat-box {
    justify-content: center;
    max-width: 550px;
    margin: 0 auto;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .mesh-graphic {
    margin: 0 auto;
  }
  
  .grid-2x2 {
    grid-template-columns: 1fr;
  }
  
  .simulator-display {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .sim-canvas {
    height: 350px;
  }
  
  @media (max-width: 768px) {
    .sim-canvas {
      min-width: 740px;
    }
  }
  
  .sim-terminal {
    height: 200px;
  }
  
  .tab-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .tab-visual-demo {
    order: -1;
  }
  
  .calculator-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) and (min-width: 1101px) {
  .nav-menu {
    gap: 14px;
  }
  .nav-menu a {
    font-size: 0.85rem;
  }
  .uptime-badge {
    margin-left: 14px;
    margin-right: 4px;
  }
  .lang-selector {
     margin-left: 10px;
  }
}

@media (max-width: 1100px) {
  .section {
    padding: 60px 0;
  }

  .logo {
    order: 1;
    width: 140px;
    height: 32px;
  }
  
  .uptime-badge {
    order: 2;
    margin-left: 20px;
    margin-right: 0;
  }
  
  .lang-selector {
    order: 3;
    margin-left: auto;
    margin-right: 16px;
  }
  
  .mobile-toggle {
    order: 4;
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-primary);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transition: var(--transition);
    border-top: 1px solid var(--border-color);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-cta {
    width: 100%;
    text-align: center;
  }
  
  .simulator-controls {
    grid-template-columns: repeat(2, 1fr);
  }
  
  #btn-reset {
    grid-column: span 2;
  }
  
  .form-card {
    padding: 30px 20px;
  }
  
  .footer-section {
    padding: 48px 0 24px 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
  }
  
  .footer-brand-col {
    text-align: center;
    align-items: center;
  }
  
  .footer-logo {
    align-self: center;
  }
  
  .footer-socials {
    justify-content: center;
  }
  
  .footer-col-title {
    margin-bottom: 12px;
    text-align: center;
  }
  
  .footer-col-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links-list {
    align-items: center;
  }
  
  .footer-links-list a:hover {
    padding-left: 0;
    color: var(--accent-orange);
  }
  
  .footer-links-list a::before {
    display: none !important;
  }
  
  .footer-contacts-list {
    align-items: center;
  }
  
  .secure-badge {
    margin: 0 auto;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .footer-legal-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .footer-legal-links .separator {
    display: none;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .hero-primary-actions,
  .hero-actions,
  .hero-compliance-actions {
    flex-direction: column;
  }
  
  .simulator-controls {
    grid-template-columns: 1fr;
  }
  
  #btn-reset {
    grid-column: span 1;
  }
  
  .price-value {
    font-size: 2.2rem;
  }

  /* Security Incident Simulator adaptation */
  .sim-sec-buttons {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .sec-sim-btn {
    padding: 10px 16px;
    font-size: 0.8rem;
    white-space: normal;
  }
  
}

/* ==========================================================================
   Enriched Open Source Spotlight Styles
   ========================================================================== */
.open-source-section {
  padding: 80px 0;
  position: relative;
}

.open-source-card {
  background: linear-gradient(135deg, rgba(20, 26, 38, 0.4) 0%, rgba(10, 14, 22, 0.7) 100%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 60px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.open-source-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.05) 0%, rgba(255, 87, 34, 0) 70%);
  z-index: 1;
  pointer-events: none;
}

.open-source-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.open-source-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.open-source-heading {
  text-align: left;
  font-size: 1.8rem;
  line-height: 1.35;
  margin-bottom: 0;
}

.open-source-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.open-source-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* TCO Savings Calculator */
.tco-calculator {
  background: rgba(15, 20, 30, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.tco-calculator h4 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

.tco-slider-group {
  margin-bottom: 20px;
}

.tco-slider-group label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tco-slider-group label strong {
  color: var(--accent-orange);
  font-size: 0.95rem;
}

.tco-slider {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  transition: background 0.3s;
}

.tco-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-orange);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.5);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.tco-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #ff7043;
}

.tco-results {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.tco-result-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.tco-cost-prop {
  color: #f44336;
  font-weight: 600;
}

.tco-cost-os {
  color: #4caf50;
  font-weight: 600;
}

.tco-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 12px 0;
}

.tco-savings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tco-savings-row span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

.tco-saved-val {
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--accent-teal);
  text-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

/* ==========================================================================
   Contact Grid & Direct Sidebar Styles
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: stretch;
}

.contact-info-card {
  background: linear-gradient(135deg, rgba(20, 26, 38, 0.3) 0%, rgba(10, 12, 18, 0.5) 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  backdrop-filter: blur(10px);
}

.contact-info-card h2 {
  text-align: left;
  font-size: 2rem;
  margin-bottom: 0;
}

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

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: 12px;
  transition: var(--transition);
}

.contact-method-item:hover {
  border-color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.1);
}

.method-icon {
  background-color: rgba(255, 87, 34, 0.1);
  color: var(--accent-orange);
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.method-details span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.method-details strong {
  font-size: 1.1rem;
  color: #ffffff;
  font-family: var(--font-heading);
}

/* Captcha Style */
.captcha-input-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
}

.captcha-input-wrapper input {
  flex: 1;
}

.btn-refresh {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
  padding: 0;
  user-select: none;
}

.captcha-canvas {
  vertical-align: middle;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  margin-left: 8px;
  background: #0a0f1d;
  display: inline-block;
}

.btn-refresh:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Preference Selector */
.pref-selector {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.pref-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  color: var(--text-muted);
}

.pref-option input[type="radio"] {
  accent-color: var(--accent-orange);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.pref-option:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.pref-option:has(input[type="radio"]:checked) {
  border-color: var(--accent-orange);
  color: #ffffff;
  background-color: rgba(255, 87, 34, 0.05);
}

#contact-detail-group {
  animation: fadeIn 0.4s ease;
}

/* ==========================================================================
   Responsive updates for new components
   ========================================================================== */
@media (max-width: 1024px) {
  .open-source-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .open-source-content {
    align-items: center;
  }

  .open-source-heading {
    text-align: center;
  }

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

  .contact-info-card {
    padding: 30px;
  }

  .contact-info-card h2 {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .tabs-header {
    justify-content: flex-start;
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
    align-self: stretch;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    width: auto;
  }

  /* Network Simulator controls stack vertically & compactly on mobile */
  .sim-buttons-row {
    flex-direction: column !important;
  }
  .sim-buttons-row .sim-btn {
    flex: 1 1 100% !important;
    width: 100% !important;
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
  }

  .open-source-card {
    padding: 40px 24px;
  }
  
  .simulator-controls {
    grid-template-columns: repeat(2, 1fr);
  }
  
  #btn-reset {
    grid-column: span 2;
  }

  .feature-card,
  .calculator-card,
  .calculator-included,
  .auditor-card {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .pref-selector {
    flex-direction: column;
    gap: 10px;
  }
}

/* ==========================================================================
   Simulator Mode Toggle Switcher
   ========================================================================== */
.sim-mode-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 30px;
  margin: 0 auto 30px auto;
  width: calc(100% - 32px);
  max-width: 440px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.sim-mode-toggle .mode-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.sim-mode-toggle .mode-btn.active {
  background: var(--accent-orange);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
}

.sim-mode-toggle .mode-btn:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 480px) {
  .sim-mode-toggle {
    flex-direction: column;
    border-radius: 16px;
    padding: 8px;
    gap: 6px;
  }
  .sim-mode-toggle .mode-btn {
    border-radius: 10px;
    padding: 10px 16px;
  }
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, border-color 0.3s;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  outline: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  border-color: var(--accent-orange);
  transform: translateY(-3px);
}

.back-to-top .progress-ring {
  position: absolute;
  top: 1px;
  left: 1px;
  transform: rotate(-90deg);
}

.back-to-top .progress-ring-circle {
  stroke-dasharray: 100.53;
  stroke-dashoffset: 100.53;
  transition: stroke-dashoffset 0.1s;
  stroke-linecap: round;
}

.back-to-top .arrow-up {
  position: relative;
  z-index: 2;
  transition: transform 0.3s;
}

.back-to-top:hover .arrow-up {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    z-index: 10000;
  }
}

/* ==========================================================================
   Animate on Scroll (AOS) reveal styles
   ========================================================================== */
.reveal-init {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-init.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Delayed reveals for layouts */
.tab-grid.reveal-init,
.contact-grid.reveal-init {
  transition-delay: 0.1s;
}

/* ==========================================================================
   Legacy vs NetBird Comparison Section
   ========================================================================== */
.legacy-comp-section {
  padding: 100px 0;
  background: radial-gradient(circle at bottom center, rgba(255, 108, 55, 0.05), transparent 60%), var(--bg-dark);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.comp-toggle-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.comp-toggle-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 3px;
  width: 104px;
  height: 38px;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.comp-toggle-switch:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 108, 55, 0.3);
}

.toggle-segment {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 6px;
  transition: all 0.2s ease;
}

/* When NetBird is ON (default state, has active class) */
.comp-toggle-switch.active .toggle-segment.segment-on {
  background: var(--brand-orange);
  color: #ffffff;
}
.comp-toggle-switch.active .toggle-segment.segment-off {
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
}

/* When NetBird is OFF (no active class) */
.comp-toggle-switch:not(.active) .toggle-segment.segment-on {
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
}
.comp-toggle-switch:not(.active) .toggle-segment.segment-off {
  background: rgba(255, 255, 255, 0.9);
  color: #111111;
}

.comp-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.netbird-logo-mini {
  filter: drop-shadow(0 0 4px rgba(255, 108, 55, 0.4));
}

.comp-description {
  max-width: 680px;
  margin: 0 auto 40px auto;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  min-height: 50px;
}

.comp-diagram-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0;
  min-height: 620px;
}

.comp-svg-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* SVG Line Styles */
.comp-p2p-line, .comp-s2s-line {
  fill: none;
  stroke: var(--brand-orange);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.85;
  transition: all 0.4s ease;
}

.comp-p2p-line.glow, .comp-s2s-line.glow {
  filter: drop-shadow(0 0 5px rgba(255, 108, 55, 0.7));
  stroke-dasharray: 8 6;
  animation: tunnelFlow 30s linear infinite;
}

@keyframes tunnelFlow {
  from { stroke-dashoffset: 500; }
  to { stroke-dashoffset: 0; }
}

.comp-control-line {
  fill: none;
  stroke: rgba(255, 108, 55, 0.3);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  opacity: 0.6;
  transition: all 0.4s ease;
}

.comp-legacy-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 2;
  opacity: 0.8;
  transition: all 0.4s ease;
}

/* SVG Text elements */
.comp-svg-text-primary {
  fill: var(--text-main);
  font-size: 0.7rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.comp-svg-text-secondary {
  fill: var(--brand-orange);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.02em;
}

.comp-bracket-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 1.5;
}

.comp-bracket-text {
  fill: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Diagram Grid */
.comp-grid {
  display: grid;
  grid-template-columns: 280px 1fr 300px;
  gap: 24px;
  position: relative;
  z-index: 2;
  align-items: center;
}

.comp-col {
  display: flex;
  flex-direction: column;
  gap: 160px;
}

/* Node Card Styles */
.comp-card-node {
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.comp-card-node:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.comp-diagram-container:not(.legacy-mode) .comp-card-node {
  border-color: rgba(255, 108, 55, 0.2);
  box-shadow: 0 10px 30px rgba(255, 108, 55, 0.05);
}

.comp-card-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.comp-diagram-container:not(.legacy-mode) .comp-card-badge {
  border-color: rgba(255, 108, 55, 0.3);
  color: var(--brand-orange);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.comp-diagram-container:not(.legacy-mode) .badge-dot {
  background: var(--brand-orange);
  box-shadow: 0 0 8px var(--brand-orange);
  animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.comp-card-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.comp-avatar {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-orange);
  transition: all 0.3s ease;
}

.comp-card-text h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text-main);
}

.comp-card-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* Multi-Item nodes (Cloud, Datacenter) */
.comp-card-multi {
  padding: 16px;
}

.comp-multi-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
}

.comp-multi-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  text-align: center;
}

.comp-item-icon {
  font-size: 1.4rem;
  height: 38px;
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.comp-multi-item span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.comp-diagram-container:not(.legacy-mode) .comp-multi-item span {
  color: var(--text-main);
}

.comp-multi-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.08);
}

/* Center Area columns */
.comp-col-center {
  position: relative;
  height: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Control plane styling (ON) */
.comp-center-netbird {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}

.netbird-glow-box {
  background: rgba(15, 15, 15, 0.8);
  border: 1px solid rgba(255, 108, 55, 0.4);
  border-radius: 16px;
  padding: 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 40px rgba(255, 108, 55, 0.15), inset 0 0 20px rgba(255, 108, 55, 0.05);
  backdrop-filter: blur(20px);
}

.control-plane-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  margin: 0;
}

.control-plane-subtitle {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.logo-animation {
  filter: drop-shadow(0 0 10px rgba(255, 108, 55, 0.6));
  animation: logo-float 4s ease-in-out infinite;
}

@keyframes logo-float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Complexity Pills layout (OFF) */
.comp-center-complexity {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.complexity-group {
  position: absolute;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  max-width: 320px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Positioning each complexity tunnel path group */
.path-john-cloud {
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.path-marta-dc {
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.path-cloud-dc {
  top: 50%;
  right: -10px;
  transform: translate(50%, -50%);
  flex-direction: column;
  max-width: 120px;
}

.comp-badge-pill {
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  transition: all 0.3s ease;
}

.comp-badge-pill:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-main);
  background: rgba(244, 67, 54, 0.1);
}

/* Toggle visibility rules depending on mode */
.comp-diagram-container:not(.legacy-mode) .comp-center-complexity {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.comp-diagram-container.legacy-mode .comp-center-netbird {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.comp-diagram-container.legacy-mode .comp-center-complexity {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Mobile responsive layout */
@media (max-width: 991px) {
  .comp-grid {
    grid-template-columns: 1fr;
    gap: 80px;
  }
  
  .comp-col {
    gap: 30px;
  }
  
  .comp-col-center {
    min-height: 200px;
  }
  
  .complexity-group {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 20px auto;
    max-width: 100%;
    flex-direction: row !important;
  }
  
  .comp-svg-lines {
    display: none;
  }
}

/* Mesh Graphic mobile responsiveness */
@media (max-width: 480px) {
  .mesh-graphic {
    width: 320px;
    height: 320px;
  }
  .main-node {
    width: 72px;
    height: 72px;
  }
  .main-node .node-label {
    top: 84px;
    font-size: 0.75rem;
  }
  .sub-node {
    width: 46px;
    height: 46px;
  }
  .sub-node .node-label {
    top: 52px;
    font-size: 0.65rem;
  }
  .node-tooltip {
    bottom: 60px;
    padding: 6px 10px;
    font-size: 0.7rem;
  }
  .main-node .node-tooltip {
    bottom: 88px;
  }
  
  /* Simulator canvas mobile responsiveness */
  .sim-canvas {
    height: 300px;
  }
  .sim-node {
    padding: 6px 10px;
    font-size: 0.75rem;
    gap: 6px;
  }
  .sim-node-icon {
    font-size: 1rem;
  }
  .sim-node-icon svg {
    width: 16px;
    height: 16px;
  }
  .sim-node.coordinator {
    width: auto;
    min-width: 160px;
    max-width: 90%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    padding: 6px 12px;
  }
  .cluster-status {
    gap: 4px;
    margin-top: 3px;
  }
  .cluster-dot {
    font-size: 0.55rem;
    padding: 1px 4px;
  }
}

@media (max-width: 375px) {
  .mesh-graphic {
    width: 270px;
    height: 270px;
  }
  .main-node {
    width: 64px;
    height: 64px;
  }
  .main-node .node-label {
    top: 74px;
    font-size: 0.7rem;
  }
  .sub-node {
    width: 40px;
    height: 40px;
  }
  .sub-node .node-label {
    top: 46px;
    font-size: 0.6rem;
  }
  .node-tooltip {
    bottom: 52px;
  }
  .main-node .node-tooltip {
    bottom: 78px;
  }
  
  /* Simulator canvas extra small responsiveness */
  .sim-canvas {
    height: 260px;
  }
  .sim-node.coordinator {
    width: auto;
    min-width: 140px;
    max-width: 90%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    font-size: 0.65rem;
    padding: 5px 10px;
  }
  .sim-node {
    padding: 4px 8px;
    font-size: 0.65rem;
    gap: 4px;
  }
  .sim-node-icon {
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   Ultimate Interactive Sandboxes Styles
   ========================================================================== */

/* Hero Interactivity Overrides */
.mesh-node {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mesh-node:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.5) !important;
  border-color: rgba(0, 242, 254, 0.8) !important;
}
.mesh-node.offline {
  filter: grayscale(85%) contrast(70%);
  border-color: rgba(239, 68, 68, 0.4) !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2) !important;
}
.mesh-node.offline .status-dot {
  background-color: #ef4444 !important;
  box-shadow: 0 0 10px #ef4444, 0 0 20px #ef4444 !important;
  animation: none !important;
}

/* Helper Hint Badge */
.hero-hint-badge {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #34d399;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(5px);
  animation: bounce-gentle 2.5s infinite ease-in-out;
  pointer-events: none;
}
@keyframes bounce-gentle {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -4px); }
}

/* DRP Simulator */
.drp-simulator {
  background: rgba(15, 22, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  margin-top: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-align: left;
}
.drp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}
.drp-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: white;
}
.drp-status-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}
.drp-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.drp-status-indicator.ok {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.drp-status-indicator.critical {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
  animation: alarm-pulse-border 1.5s infinite;
}
@keyframes alarm-pulse-border {
  0%, 100% { border-color: rgba(239, 68, 68, 0.25); box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
  50% { border-color: rgba(239, 68, 68, 0.8); box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }
}
.drp-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}
.drp-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  text-align: center;
}
.drp-btn-crash {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.drp-btn-crash:hover {
  background: #ef4444;
  color: white;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}
.drp-btn-restore {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #0b0f19;
  font-weight: 700;
}
.drp-btn-restore:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
}
.drp-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.drp-progress-container {
  margin: 15px 0;
  display: none;
}
.drp-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.drp-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00f2fe, #4facfe);
  transition: width 0.1s linear;
  box-shadow: 0 0 8px #00f2fe;
}
.drp-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 5px;
}
.drp-console {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px;
  font-family: monospace;
  font-size: 0.8rem;
  color: #a3e635;
  height: 130px;
  overflow-y: auto;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
  margin-top: 10px;
}
.drp-console-line {
  margin-bottom: 6px;
  line-height: 1.4;
}
.drp-console-line.alert { color: #f87171; }
.drp-console-line.info { color: #38bdf8; }
.drp-console-line.success { color: #4ade80; }
.drp-console-line.muted { color: rgba(255,255,255,0.4); }
.drp-stats-badge {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #38bdf8;
  text-align: center;
  font-weight: 500;
  display: none;
  background: rgba(56, 189, 248, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

/* RMM Dashboard */
.rmm-dashboard {
  width: 100%;
  box-sizing: border-box;
  background: rgba(15, 22, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  margin-top: 15px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-align: left;
}
.rmm-dashboard h4 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: white;
}
.rmm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 480px) {
  .rmm-grid {
    grid-template-columns: 1fr;
  }
}
.rmm-metric-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease;
}
.rmm-metric-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
}
.rmm-metric-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}
.rmm-metric-status {
  font-weight: 700;
  color: #34d399;
  transition: color 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.rmm-metric-status.warning { color: #fbbf24; }
.rmm-metric-status.critical { color: #f87171; }
.rmm-metric-value-group {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.rmm-metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  font-family: monospace;
  transition: color 0.3s ease;
}
.rmm-metric-value.warning { color: #fbbf24; }
.rmm-metric-value.critical { color: #f87171; }
.rmm-metric-unit {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.rmm-metric-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}
.rmm-metric-bar-fill {
  height: 100%;
  background: #10b981;
  border-radius: 3px;
  transition: width 0.5s ease, background-color 0.5s ease;
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
  width: 15%;
}
.rmm-metric-bar-fill.warning {
  background: #fbbf24;
  box-shadow: 0 0 5px rgba(251, 191, 36, 0.5);
}
.rmm-metric-bar-fill.critical {
  background: #ef4444;
  box-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
}
.rmm-action-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rmm-btn-spike {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.rmm-btn-spike:hover:not(:disabled) {
  background: #fbbf24;
  color: #0b0f19;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}
.rmm-btn-spike:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.rmm-alert-box {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 12px;
  display: none;
  align-items: center;
  gap: 10px;
  animation: slide-up-fade 0.3s ease-out;
}
.rmm-alert-icon {
  font-size: 1.2rem;
  animation: bounce-alert 0.8s infinite;
}
@keyframes bounce-alert {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}
.rmm-alert-text {
  font-size: 0.85rem;
  color: #f87171;
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
}
.rmm-console {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  height: 80px;
  overflow-y: auto;
  display: none;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.4);
}
.rmm-console-line {
  margin-bottom: 4px;
}
.rmm-console-line.alert { color: #f87171; }
.rmm-console-line.remedy { color: #38bdf8; }
.rmm-console-line.success { color: #4ade80; }

/* Zero Trust Sandbox */
.zt-sandbox {
  width: 100%;
  box-sizing: border-box;
  background: rgba(15, 22, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  margin-top: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-align: left;
}
.zt-sandbox h4 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: white;
}
.zt-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.zt-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.zt-rule-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}
.zt-rule-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
}
.zt-rule-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.zt-rule-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
}
.zt-rule-status {
  font-size: 0.7rem;
  color: #34d399;
}
.zt-rule-status.blocked { color: #f87171; }

/* Custom Switch Toggle */
.zt-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.zt-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.zt-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 24px;
}
.zt-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .zt-slider {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
}
input:checked + .zt-slider:before {
  transform: translateX(20px);
}

.zt-visual-panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  height: 240px;
  width: 290px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
}
.zt-canvas-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.zt-node {
  position: absolute;
  width: 50px; height: 50px;
  background: rgba(25, 33, 49, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.zt-node:hover {
  transform: scale(1.1);
  border-color: #00f2fe;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}
.zt-node-icon {
  font-size: 1.1rem;
}
.zt-node-label {
  position: absolute;
  top: 56px;
  font-size: 0.65rem;
  white-space: nowrap;
  color: var(--text-muted);
  font-weight: 500;
}
.zt-node-btn {
  position: absolute;
  bottom: -22px;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #0b0f19;
  border: none;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.55rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,242,254,0.3);
  white-space: nowrap;
}
.zt-node-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 10px rgba(0,242,254,0.5);
}
.zt-node-btn:active {
  transform: scale(0.95);
}
.zt-firewall-shield {
  position: absolute;
  width: 22px; height: 22px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 4;
  color: #f87171;
  font-size: 0.7rem;
  opacity: 1;
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(239,68,68,0.3);
}
.zt-firewall-shield.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}
.zt-packet-dot {
  position: absolute;
  width: 8px; height: 8px;
  background: #00f2fe;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  box-shadow: 0 0 8px #00f2fe, 0 0 15px #00f2fe;
  pointer-events: none;
  display: none;
}
.zt-explain-box {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
  margin-top: 8px;
}

/* ==========================================================================
   Cookie Consent Banner & Legal Modals
   ========================================================================== */

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: calc(100% - 48px);
  max-width: 540px;
  background-color: #030406;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  transform: translateY(150%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s, visibility 0.4s;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-title {
  margin: 0 0 12px 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.cookie-text {
  margin: 0 0 20px 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #a0a5b1;
}

.cookie-text a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.cookie-text a:hover {
  color: var(--accent-orange);
}

.cookie-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-link {
  font-size: 0.88rem;
  color: #a0a5b1;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
  cursor: pointer;
}

.cookie-link:hover {
  color: #ffffff;
}

.cookie-btn.btn-primary {
  background: var(--accent-orange);
  color: #ffffff;
  border: none;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-btn.btn-primary:hover {
  background: #ff7d4d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 108, 55, 0.25);
}

.cookie-btn.btn-primary:active {
  transform: translateY(0);
}

@media (max-width: 576px) {
  .cookie-banner {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    padding: 20px;
  }
  
  .cookie-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 16px;
    text-align: center;
  }

  .cookie-btn.btn-primary {
    width: 100%;
    text-align: center;
  }
}

/* Modals styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 11, 19, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 16px;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-dialog {
  background: rgba(15, 22, 36, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 254, 0.05);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-dialog {
  transform: scale(1);
}
.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: white;
  font-weight: 600;
}
.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  margin: 0;
  transition: color 0.2s ease;
}
.modal-close-btn:hover {
  color: white;
}
.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}
.modal-body h4 {
  color: white;
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}
.modal-body h4:first-child {
  margin-top: 0;
}
.modal-body p {
  margin-top: 0;
  margin-bottom: 16px;
}
.modal-body p:last-child {
  margin-bottom: 0;
}
.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: flex-end;
}
.modal-close-btn-footer {
  background: rgba(255, 255, 255, 0.06);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.modal-close-btn-footer:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Beautiful custom scrollbar for modal body */
.modal-body::-webkit-scrollbar {
  width: 6px;
}
.modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}
.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Multilingual modal switcher logic */
.lang-content {
  display: none;
}
html[lang="ru"] .lang-content[lang="ru"] {
  display: block;
}
html[lang="uz"] .lang-content[lang="uz"] {
  display: block;
}
html[lang="en"] .lang-content[lang="en"] {
  display: block;
}


/* ==========================================================================
   IT Security & Risk Auditor Styles
   ========================================================================== */
.auditor-section {
  position: relative;
  background-color: var(--bg-primary);
  overflow: hidden;
  padding: 100px 0;
}

.auditor-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
  margin-top: 20px;
}

@media (max-width: 1024px) {
  .auditor-container {
    grid-template-columns: 1fr;
  }
}

.auditor-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 35px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auditor-card:hover {
  border-color: rgba(255, 87, 34, 0.15);
  box-shadow: 0 16px 48px rgba(255, 87, 34, 0.03);
}

.questions-card {
  min-height: 480px;
}

/* Progress bar for wizard */
.auditor-progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  margin-bottom: 30px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-orange) 0%, #ff8a65 100%);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Question block animation */
.auditor-question-block {
  display: none;
  opacity: 0;
  transform: translateX(15px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.auditor-question-block.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.question-title {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.5rem;
  font-family: var(--font-heading);
  margin-bottom: 25px;
  text-align: left;
}

.question-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 87, 34, 0.15);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid rgba(255, 87, 34, 0.3);
}

.option-chips {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.option-chip {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-main);
  position: relative;
}

.option-chip:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.option-chip.active {
  background: rgba(255, 87, 34, 0.06);
  border-color: var(--accent-orange);
  box-shadow: 0 4px 20px rgba(255, 87, 34, 0.1);
}

.chip-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.option-chip.active .chip-radio {
  border-color: var(--accent-orange);
}

.option-chip.active .chip-radio::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-orange);
}

.chip-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 15px;
}

.chip-label {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.chip-risk {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.chip-risk.high {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.chip-risk.medium {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.chip-risk.low {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.auditor-nav {
  display: flex;
  gap: 15px;
  margin-top: auto;
  padding-top: 30px;
}

/* Gauge details */
.results-card {
  align-items: center;
}

.gauge-container {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 8px;
}

.gauge-meter {
  fill: none;
  stroke: var(--accent-orange);
  stroke-width: 8px;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.6s ease;
}

.gauge-overlay {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.gauge-percent {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1;
}

.gauge-level-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 4px;
}

.results-summary {
  width: 100%;
}

.results-section-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
  text-align: left;
}

.results-section-title.animate-delay-1 {
  margin-top: 20px;
}

.risk-map-list, .plan-actions-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.risk-map-list li, .plan-actions-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: left;
}

.risk-map-list li svg {
  color: #ef4444;
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-actions-list li svg {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

.btn-apply-audit {
  margin-top: 25px;
  box-shadow: 0 0 20px rgba(255, 87, 34, 0.15);
}

.btn-apply-audit:hover {
  box-shadow: 0 0 30px rgba(255, 87, 34, 0.3);
}

/* Style overrides for lead-form message textarea */
textarea#client-message {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea#client-message:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.25);
}

/* Auditor Completion Screen Styling */
.auditor-complete-block {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 20px 10px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.auditor-success-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
  animation: pulse-green 2s infinite;
}

.auditor-success-icon {
  width: 40px;
  height: 40px;
  color: #10b981;
}

.auditor-complete-title {
  font-size: 1.6rem;
  font-family: var(--font-heading);
  margin-bottom: 12px;
  color: #fff;
}

.auditor-complete-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 400px;
  margin-bottom: 30px;
  line-height: 1.5;
}

.auditor-complete-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
  max-width: 320px;
}

.auditor-complete-actions .btn {
  width: 100%;
}

.auditor-complete-actions .btn-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

.auditor-complete-actions .btn-link:hover {
  color: var(--accent-orange);
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Confetti canvas */
#auditor-confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* 3-column Form Grid */
.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 15px;
  }
}

/* Ensure the complete block remains flex when active to center contents correctly */
.auditor-question-block.auditor-complete-block.active {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 380px;
}

/* Defensive center alignment for completion block contents */
.auditor-complete-block .auditor-success-icon-wrapper {
  margin-left: auto !important;
  margin-right: auto !important;
}

.auditor-complete-block .auditor-complete-desc {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.auditor-complete-block .auditor-complete-actions {
  margin-left: auto !important;
  margin-right: auto !important;
  align-items: center !important;
}

/* Infrastructure size question inputs container */
.auditor-infrastructure-inputs {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
  margin-top: 20px;
  max-width: 450px;
  width: 100%;
}

.auditor-question-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  text-align: left;
  line-height: 1.5;
}

/* Results Infrastructure Size Summary Component */
.results-infra-summary {
  margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
}

.results-infra-summary .results-section-title {
  margin-bottom: 10px;
  border-bottom: none;
  padding-bottom: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.infra-metrics-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.infra-metrics-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  line-height: 1.4;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.infra-metrics-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.infra-metrics-list li span {
  color: var(--text-muted);
}

.infra-metrics-list li strong {
  color: var(--accent-orange);
  font-weight: 600;
}

/* Auditor Left Status Panel */
.auditor-left-status {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auditor-left-status .gauge-container {
  margin-bottom: 0;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.auditor-left-status .gauge-percent {
  font-size: 1.8rem;
}

.auditor-left-status .gauge-level-badge {
  font-size: 0.52rem;
  letter-spacing: 0.5px;
  margin-top: 2px;
  padding: 1px 4px;
  max-width: 76px;
  line-height: 1.15;
  white-space: normal;
  text-align: center;
  display: inline-block;
  word-break: break-word;
}

.auditor-left-status .results-infra-summary {
  margin-bottom: 0;
  flex: 1;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
}

@media (max-width: 768px) {
  .auditor-left-status {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  .auditor-left-status .results-infra-summary {
    width: 100%;
  }
}

/* ==========================================
   ADDED: Partners Logo Ticker CSS (Task 3)
   ========================================== */
.tech-ticker-section {
  padding: 30px 0;
  background: rgba(10, 10, 15, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}

.tech-ticker-section::before,
.tech-ticker-section::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.tech-ticker-section::before {
  left: 0;
  background: linear-gradient(to right, #0a0a0f, transparent);
}

.tech-ticker-section::after {
  right: 0;
  background: linear-gradient(to left, #0a0a0f, transparent);
}

.ticker-title {
  text-align: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
  font-weight: 600;
}

.ticker-wrapper {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-slide 35s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 25px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease, transform 0.3s ease;
  user-select: none;
}

.ticker-item:hover {
  color: #fff;
  transform: translateY(-2px);
}

.tech-logo-svg {
  width: 20px;
  height: 20px;
  opacity: 0.6;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.ticker-item:hover .tech-logo-svg {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.5));
}

.ticker-logo {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@keyframes ticker-slide {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ==========================================
   ADDED: Uptime / SLA Status Badge (Task 4)
   ========================================== */
.uptime-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  margin-left: 16px;
  margin-right: 4px;
}

.uptime-badge:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

@media (max-width: 768px) {
  .uptime-badge {
    display: none !important;
  }
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  position: relative;
}

.status-dot.pulsing::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.4);
  animation: uptime-pulse 2s infinite;
}

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

.status-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #10b981;
  letter-spacing: 0.02em;
}

/* Uptime Tooltip Popover */
.uptime-tooltip {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.1) inset;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.uptime-badge:hover .uptime-tooltip,
.uptime-tooltip.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.tooltip-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tooltip-sla {
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
}

.tooltip-nodes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tooltip-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.node-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
}

.node-dot.online {
  background-color: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.node-name {
  color: rgba(255, 255, 255, 0.8);
  flex: 1;
  text-align: left;
}

.node-ping {
  color: var(--text-muted);
  font-family: monospace;
}

/* ==========================================
   ADDED: Visual Polish / Glassmorphism (Task 6)
   ========================================== */
header {
  background: rgba(10, 10, 15, 0.8) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.auditor-card,
.simulator-card,
.pricing-card {
  background: rgba(15, 15, 25, 0.6) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.auditor-card:hover,
.simulator-card:hover,
.pricing-card:hover {
  border-color: rgba(59, 130, 246, 0.25) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.08);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5), 0 0 12px rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

.auditor-complete-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ==========================================
   ADDED: Print PDF Audit Styles (Task 5)
   ========================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
  }

  /* Hide UI elements that shouldn't be printed */
  header, 
  footer, 
  .hero-section, 
  .tech-ticker-section, 
  .core-tech-section, 
  .simulator-section, 
  .pricing-section, 
  .faq-section, 
  .contact-section, 
  .cookies-banner, 
  .auditor-nav, 
  .auditor-card:not(.results-card),
  .btn-apply-audit,
  .uptime-badge,
  #auditor-confetti-canvas,
  .auditor-success-icon-wrapper {
    display: none !important;
  }

  .auditor-section {
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
  }

  .auditor-grid {
    display: block !important;
  }

  .results-card {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
  }

  .results-card::before {
    content: "NETBIRD.UZ — ОТЧЕТ ОБ АУДИТЕ ИТ-БЕЗОПАСНОСТИ";
    display: block;
    font-size: 16pt;
    font-weight: bold;
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #000000;
    color: #000000;
  }

  .results-section-title {
    color: #000000 !important;
    border-bottom: 1px solid #cccccc !important;
    margin-top: 25px !important;
    font-size: 12pt !important;
    padding-bottom: 5px !important;
  }

  .risk-map-list li, 
  .plan-actions-list li {
    color: #222222 !important;
    font-size: 10.5pt !important;
    border-bottom: 1px solid #eeeeee !important;
    padding: 6px 0 !important;
    list-style-type: square !important;
    margin-left: 20px !important;
  }
  
  .risk-map-list li svg,
  .plan-actions-list li svg {
    display: none !important;
  }

  .auditor-left-status {
    border-top: 1px solid #cccccc !important;
    margin-top: 30px !important;
    padding-top: 20px !important;
    color: #000000 !important;
  }

  .gauge-track {
    stroke: #dddddd !important;
  }

  .gauge-meter {
    stroke: #000000 !important;
  }

  .gauge-percent {
    color: #000000 !important;
  }

  .gauge-level-badge {
    color: #000000 !important;
    border: 1px solid #000000 !important;
    background: transparent !important;
  }

  .results-infra-summary {
    background: #f5f5f5 !important;
    border: 1px solid #cccccc !important;
    color: #000000 !important;
  }

  .infra-metrics-list li {
    border-bottom: 1px dashed #cccccc !important;
    color: #333333 !important;
  }

  .infra-metrics-list li strong {
    color: #000000 !important;
  }

  .results-card::after {
    content: "Отчет сгенерирован автоматически на портале netbird.uz. Рекомендуется внедрить архитектуру Zero Trust VPN для защиты инфраструктуры.";
    display: block;
    font-size: 9pt;
    text-align: center;
    color: #555555;
    margin-top: 40px;
    border-top: 1px solid #cccccc;
    padding-top: 12px;
  }
}

/* ==========================================================================
   Failsafe Mobile Override: Network Simulator Buttons Vertical Stacking
   ========================================================================== */
@media (max-width: 992px) {
  .sim-buttons-row {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    height: auto !important;
    width: 100% !important;
  }
  .sim-buttons-row .sim-btn {
    display: inline-flex !important;
    width: 100% !important;
    flex: none !important;
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    height: auto !important;
    box-sizing: border-box !important;
    white-space: normal !important;
  }
}

/* ==========================================================================
   Simplified Product Showcase Grid (DevOps & Business Systems)
   ========================================================================== */

/* Layout & Wrapper */
.devops-dashboard-wrapper,
.biz-dashboard-wrapper {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Category Chips Bar */
.devops-chips-bar,
.biz-chips-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none; /* Firefox */
  justify-content: flex-start;
}
.devops-chips-bar::-webkit-scrollbar,
.biz-chips-bar::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

.devops-chip,
.biz-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.devops-chip:hover,
.biz-chip:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.devops-chip.active,
.biz-chip.active {
  background: rgba(255, 87, 34, 0.12);
  border-color: var(--accent-orange);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 87, 34, 0.2);
}

/* Dynamic Product Grid */
.devops-product-grid,
.biz-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Product Card */
.prod-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 22, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px 16px;
  border-radius: 14px;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.prod-card:hover {
  border-color: rgba(255, 87, 34, 0.35);
  background: rgba(255, 87, 34, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 87, 34, 0.12);
}

/* Product Icon */
.prod-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.prod-card:hover .prod-icon {
  transform: scale(1.12);
}

/* Product Info Text */
.prod-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prod-name {
  font-size: 0.86rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
}

.prod-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .devops-dashboard-wrapper,
  .biz-dashboard-wrapper {
    max-width: 100%;
  }
  .devops-product-grid,
  .biz-product-grid {
    grid-template-columns: 1fr; /* Single column stack on mobile screen sizes */
    gap: 10px;
  }
  .prod-card {
    padding: 12px 14px;
  }
  .devops-chips-bar,
  .biz-chips-bar {
    justify-content: flex-start;
  }
}

/* Auditor Mobile Option Chips Layout to prevent badge overflow */
@media (max-width: 480px) {
  .chip-content {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  .option-chip {
    padding: 12px 16px !important;
    gap: 12px !important;
  }
  .chip-label {
    font-size: 0.9rem !important;
  }
}

/* Disclaimer & Project Links Styles */
.footer-disclaimer-wrapper {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  margin-top: 24px;
}

.footer-disclaimer-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid rgba(var(--accent-orange-rgb), 0.5); /* Sleek glowing accent border */
  padding: 16px 20px;
  border-radius: 8px;
}

.footer-disclaimer-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  opacity: 0.85;
}

.footer-disclaimer-text strong {
  color: var(--text-light); /* Make the warning title pop */
}

.footer-disclaimer-text a {
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-disclaimer-text a:hover {
  color: #ff7043;
  text-decoration: underline;
}

.social-icon-btn.outline-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.social-icon-btn.outline-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* Hero compliance actions row */
.hero-compliance-actions {
  display: flex;
  gap: 16px;
  max-width: 580px;
  width: 100%;
  margin-bottom: 40px;
}

.hero-actions {
  margin-bottom: 16px !important;
}

.hero-compliance-actions .btn {
  flex: 1;
  min-width: 0;
  height: 56px;
  justify-content: center;
  border-radius: 12px;
  padding: 0 28px;
  font-size: 1rem;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-compliance-actions .btn-compliance-site,
.hero-compliance-actions .btn-compliance-github {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-compliance-actions .btn-compliance-site:hover,
.hero-compliance-actions .btn-compliance-github:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(-3px);
}


