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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

:root {
  --bg-dark: #030303;
  --bg-darker: #000000;
  --bg-card: rgba(10, 11, 20, 0.4);
  --bg-card-inner: rgba(5, 6, 12, 0.85);
  --bg-card-hover: rgba(15, 17, 30, 0.65);
  --border-glow: rgba(0, 242, 254, 0.08);
  --border-glow-hover: rgba(155, 81, 224, 0.25);
  --primary: #00f2fe;
  --secondary: #9b51e0;
  --accent: #39ff14;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-primary: 0 0 25px rgba(0, 242, 254, 0.15);
  --shadow-secondary: 0 0 25px rgba(155, 81, 224, 0.15);
  
  color-scheme: dark;
}

h1, h2, h3, h4, h5, h6, .logo {
  font-family: var(--font-display) !important;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(0, 242, 254, 0.3) var(--bg-darker);
  scrollbar-width: thin;
  interpolate-size: allow-keywords;
}

.section-header h2,
.hero h1,
.cta h2 {
  text-wrap: balance;
}

.section-header p,
.hero p,
.features-grid p,
.testi-quote {
  text-wrap: pretty;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Background Canvas */
#networkCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  opacity: 0.6;
}

.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

.ambient-glow-2 {
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(155, 81, 224, 0.06) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

/* Utility Classes */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.2);
}

.gradient-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.45), 0 0 15px rgba(155, 81, 224, 0.3);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: var(--border-glow-hover);
  box-shadow: 0 10px 40px rgba(155, 81, 224, 0.1), inset 0 0 15px rgba(0, 242, 254, 0.05);
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 8% 0.5rem;
  background: transparent;
  z-index: 1000;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  justify-content: center;
}

.navbar-pill {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 2rem;
  background: rgba(10, 11, 20, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
  padding-top: 0.75rem;
}

.navbar.scrolled .navbar-pill {
  background: rgba(4, 5, 10, 0.85);
  border-color: rgba(0, 242, 254, 0.2);
  box-shadow: 0 15px 35px rgba(0, 242, 254, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
}

.logo i {
  color: var(--primary);
  filter: drop-shadow(0 0 8px var(--primary));
  font-size: 1.4rem;
}

.logo span {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:not(.btn-nav)::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px var(--primary);
}

.nav-links a:not(.btn-nav):hover::after {
  width: 100%;
}

.btn-nav-pill {
  padding: 0.4rem 0.4rem 0.4rem 1.2rem !important;
  border-radius: 100px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem !important;
  text-transform: none;
  text-decoration: none;
  border: none;
}

.btn-icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-nav-pill:hover .btn-icon-circle {
  transform: translateX(2px) scale(1.05);
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.menu-toggle {
  display: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-main);
  transition: color 0.3s;
  background: none;
  border: none;
  padding: 0;
}

.menu-toggle:hover {
  color: var(--primary);
}

/* Accessibility Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.menu-toggle:focus-visible,
.config-slider:focus-visible,
.map-hotspot:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

/* HERO SECTION */
.hero {
  min-height: 105vh;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  padding: 11rem 8% 6rem;
  gap: 5rem;
  position: relative;
  background-color: var(--bg-dark);
  /* Tech blueprint grid pattern */
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  overflow: hidden;
}

/* Animating glowing light spots */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  background: radial-gradient(circle, var(--primary) 0%, transparent 80%);
  top: -10%;
  left: 10%;
  animation: auroraA 25s infinite alternate ease-in-out;
}

.hero::after {
  background: radial-gradient(circle, var(--secondary) 0%, transparent 80%);
  bottom: -15%;
  right: 15%;
  animation: auroraB 30s infinite alternate ease-in-out;
}

@keyframes auroraA {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, 50px) scale(1.2); }
  100% { transform: translate(-50px, 120px) scale(0.9); }
}

@keyframes auroraB {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-120px, -60px) scale(0.85); }
  100% { transform: translate(60px, -150px) scale(1.1); }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.badge-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 242, 254, 0.04);
  border: 1px solid rgba(0, 242, 254, 0.2);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2rem;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.03);
  animation: fadeInDown 0.8s ease;
  position: relative;
  overflow: hidden;
}

.badge-top::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.15), transparent);
  animation: badgeShine 4s infinite;
}

@keyframes badgeShine {
  0% { left: -100%; }
  20%, 100% { left: 150%; }
}

.badge-top i {
  color: var(--accent);
  font-size: 0.8rem;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.hero h1 {
  font-size: clamp(3.5rem, 5.2vw, 5.2rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
  font-family: 'Outfit', sans-serif;
  max-width: 820px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #9b51e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 580px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-buttons .btn-primary {
  padding: 1rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
}

.gradient-btn {
  position: relative;
  overflow: hidden;
}

.gradient-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: none;
}

.gradient-btn:hover::after {
  animation: buttonShine 1.5s ease-in-out infinite;
}

@keyframes buttonShine {
  0% { left: -100%; }
  100% { left: 150%; }
}

.hero-buttons .btn-secondary {
  padding: 1rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.stats {
  display: flex;
  gap: 1.5rem;
  animation: fadeInUp 0.8s ease 0.8s both;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  background: rgba(13, 20, 38, 0.35);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 242, 254, 0.08);
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.stat-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.25);
  box-shadow: 0 10px 25px rgba(0, 242, 254, 0.08), inset 0 0 10px rgba(0, 242, 254, 0.02);
}

.stat-item h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.stat-item h3 span {
  color: var(--primary);
}

.stat-item p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-top: 0.2rem;
  margin-bottom: 0;
}

/* TERMINAL SIMULATOR (Hero Interactive) */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeIn 1.2s ease 0.4s both;
  z-index: 1;
}

.floating-widget {
  position: absolute;
  background: rgba(13, 20, 38, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 0 12px rgba(255, 255, 255, 0.01);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-widget:hover {
  transform: scale(1.05) translateY(-5px);
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 20px 40px rgba(0, 242, 254, 0.08);
}

.floating-widget .widget-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

.floating-widget .widget-header i {
  color: var(--primary);
}

.floating-widget .widget-body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.floating-widget .widget-body h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.floating-widget .widget-body p {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0;
}

/* Positioning & Floating Animations for each widget */
.widget-cpu {
  top: -20px;
  right: -30px;
  animation: floatCpu 6s ease-in-out infinite;
}

.widget-latency {
  bottom: 40px;
  right: -45px;
  animation: floatLatency 7s ease-in-out infinite;
}

.widget-cost {
  bottom: -15px;
  left: -40px;
  animation: floatCost 8s ease-in-out infinite;
}

@keyframes floatCpu {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px) translateX(3px); }
}

@keyframes floatLatency {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px) translateX(-4px); }
}

@keyframes floatCost {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px) translateX(5px); }
}

/* CPU Ring animation support */
.progress-ring {
  transform: rotate(-90deg);
}
.progress-ring__circle {
  transition: stroke-dashoffset 0.35s;
  transform-origin: 50% 50%;
}

/* Latency widget values */
.latency-value {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.status-indicator-led-active {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
  display: inline-block;
}
.cost-period {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.cost-spec {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.terminal-shell {
  width: 100%;
  max-width: 480px;
  height: 380px;
  background: rgba(5, 7, 18, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 242, 254, 0.15);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 242, 254, 0.06);
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-visual:hover .terminal-shell {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 45px rgba(0, 242, 254, 0.12);
}

.terminal-header {
  background: rgba(13, 20, 38, 0.85);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.t-btn {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.t-btn.close {
  background: #ff5f56;
}

.t-btn.minimize {
  background: #ffbd2e;
}

.t-btn.expand {
  background: #27c93f;
}

.terminal-tabs {
  display: flex;
  margin-left: 2rem;
  gap: 0.5rem;
}

.terminal-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.terminal-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.terminal-tab.active {
  color: var(--primary);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.15);
}

/* Metrics Panel inside terminal */
.metrics-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem 0;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 110px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-bar-container {
  flex-grow: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.metric-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-val {
  font-size: 0.75rem;
  color: #fff;
  width: 90px;
  text-align: right;
}

.cpu-live-graph {
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 0.8rem;
}

.graph-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.graph-title i {
  color: var(--primary);
}

.svg-graph {
  width: 100%;
  height: 70px;
  opacity: 0.7;
}

.svg-graph path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 0;
  animation: drawGraph 4s linear infinite;
}

@keyframes drawGraph {
  0% { stroke-dashoffset: 1000; }
  100% { stroke-dashoffset: 0; }
}

/* Latency Panel inside terminal */
.latency-panel {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.latency-node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.latency-node:hover {
  background: rgba(0, 242, 254, 0.03);
  border-color: rgba(0, 242, 254, 0.1);
}

.node-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.node-status.dot-green {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.node-name {
  font-size: 0.75rem;
  color: #fff;
  font-family: var(--font-mono);
}

.node-ping {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 700;
}

.terminal-status-node {
  margin-left: auto;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.8;
}

.status-node-led {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--accent);
  animation: ledPulse 1.8s infinite;
}

@keyframes ledPulse {
  0%, 100% { opacity: 0.4; box-shadow: 0 0 2px var(--accent); }
  50% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
}

.terminal-body {
  padding: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #fff;
  flex-grow: 1;
  overflow-y: auto;
  line-height: 1.5;
}

.terminal-input-line {
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.terminal-input-line span {
  color: #fff;
}

.terminal-log {
  margin-bottom: 0.4rem;
  opacity: 0.85;
}

.terminal-log.success {
  color: var(--accent);
  font-weight: 600;
}

.terminal-log.info {
  color: var(--secondary);
}

.terminal-deploy-trigger {
  margin-top: 1.5rem;
  background: rgba(0, 242, 254, 0.15);
  border: 1px dashed var(--primary);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.terminal-deploy-trigger:hover {
  background: rgba(0, 242, 254, 0.25);
  border-style: solid;
}

.terminal-deploy-trigger i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-right: 0.5rem;
}

.terminal-deploy-trigger span {
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
}

/* SECTION STRUCTURE */
section {
  padding: 7rem 8%;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4.5rem;
}

.section-tag {
  display: inline-block;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--primary);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

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

/* PRODUCT CONSOLE PREVIEW SECTION */
.product-preview {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.product-showcase {
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  background: rgba(6, 9, 22, 0.8);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 20, 38, 0.5);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}

.panel-title i {
  color: var(--primary);
}

.panel-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.panel-body {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 2rem;
}

.panel-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sidebar-metric {
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.metric-bar-outer {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.metric-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
  width: 75%;
  transition: width 0.5s ease;
}

.panel-main-view {
  background: rgba(3, 5, 10, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

.main-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.main-view-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

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

.graph-container {
  flex-grow: 1;
  height: 160px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding-top: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.graph-bar {
  flex-grow: 1;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(0, 242, 254, 0.05) 100%);
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  height: 50%;
  transition: height 0.3s ease;
}

.graph-bar:nth-child(even) {
  background: linear-gradient(180deg, var(--secondary) 0%, rgba(155, 81, 224, 0.05) 100%);
}

.panel-logs {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  height: 60px;
  overflow-y: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.8rem;
}

/* CONFIGURATOR (Interactive Server Builder) */
.configurator {
  background: var(--bg-dark);
}

.config-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.config-controls {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.control-group {
  display: flex;
  flex-direction: column;
}

.control-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.control-label span:first-child {
  font-weight: 600;
  font-size: 1.05rem;
}

.control-label .control-val {
  color: var(--primary);
  font-weight: 700;
  font-family: var(--font-mono);
  background: rgba(0, 242, 254, 0.06);
  padding: 0.2rem 0.7rem;
  border-radius: 5px;
  border: 1px solid rgba(0, 242, 254, 0.15);
}

.slider-wrapper {
  position: relative;
}

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

.config-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
  transition: transform 0.2s;
}

.config-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.config-summary {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  text-align: center;
}

.visual-server {
  width: 160px;
  height: 100px;
  margin: 0 auto 2.5rem;
  border: 2px solid var(--primary);
  border-radius: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 10px;
  background: rgba(0, 242, 254, 0.02);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.15);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.server-slot {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.server-slot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 20%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: pulse-width 2s infinite alternate;
}

@keyframes pulse-width {
  from {
    width: 10%;
  }

  to {
    width: 80%;
  }
}

.server-node {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  top: -3px;
  right: 15px;
  box-shadow: 0 0 8px var(--accent);
}

.config-price {
  margin-bottom: 2rem;
}

.price-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.price-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.price-number span {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.config-summary .btn-primary {
  width: 100%;
  padding: 1.1rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.05rem;
  text-align: center;
}

.config-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  text-align: left;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
}

.c-feat {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.c-feat i {
  color: var(--accent);
  font-size: 0.9rem;
}

/* CARACTERISTICAS / PRODUCT VALUE */
.caracteristicas {
  background: var(--bg-darker);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  padding: 3rem 2.2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left, rgba(0, 242, 254, 0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

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

.feature-card-icon {
  width: 65px;
  height: 65px;
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 1.8rem;
  transition: all 0.4s;
}

.feature-card:hover .feature-card-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: transparent;
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

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

/* EDGE LATENCY MAP SECTION */
.edge-map-section {
  background: var(--bg-dark);
}

.map-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  background: rgba(13, 20, 38, 0.3);
  padding: 2rem;
  overflow: hidden;
}

.world-map-svg {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.2;
}

.map-hotspot {
  position: absolute;
  cursor: pointer;
  z-index: 10;
}

.hotspot-dot {
  width: 10px;
  height: 10px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  transition: transform 0.3s;
}

.map-hotspot:hover .hotspot-dot {
  transform: scale(1.6);
  background-color: var(--accent);
  box-shadow: 0 0 15px var(--accent);
}

.hotspot-pulse {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  opacity: 0;
  animation: ping 2s infinite ease-out;
  pointer-events: none;
}

@keyframes ping {
  0% {
    transform: scale(0.2);
    opacity: 0.8;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Tooltip on Map */
.map-tooltip {
  position: absolute;
  background: rgba(5, 7, 18, 0.9);
  border: 1px solid var(--primary);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 242, 254, 0.1);
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transform: translate(-50%, -120%);
  display: none;
  z-index: 100;
  min-width: 160px;
}

.map-tooltip-city {
  font-weight: 700;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.map-tooltip-stat {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.map-tooltip-stat span.value {
  color: var(--accent);
  font-weight: 600;
}

/* TESTIMONIALS */
.testimonios {
  background: var(--bg-darker);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.testi-card {
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testi-quote {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 1.8rem;
  position: relative;
}

.testi-quote::before {
  content: '“';
  font-size: 4rem;
  color: var(--primary);
  position: absolute;
  top: -2.5rem;
  left: -1rem;
  opacity: 0.15;
  font-family: Georgia, serif;
}

.stars {
  color: #ffbd2e;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testi-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

.testi-meta strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
}

.testi-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* CTA */
.cta {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  text-align: center;
  padding: 8rem 8%;
  overflow: hidden;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
}

.cta p {
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-inline: auto;
}

.cta .btn-primary {
  padding: 1.1rem 2.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
}

/* FOOTER */
footer {
  background: var(--bg-darker);
  padding: 4rem 8% 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto 3.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-col ul a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.3s;
}

.footer-col ul a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 1.2rem;
}

.footer-socials a {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color 0.3s;
}

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

/* WhatsApp float button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s;
  z-index: 999;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 10rem;
    gap: 3rem;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .stats {
    justify-content: center;
  }

  .config-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .panel-body {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background: rgba(6, 9, 22, 0.98);
    border-left: 1px solid rgba(0, 242, 254, 0.1);
    flex-direction: column;
    padding: 3rem 0;
    transition: all 0.4s ease;
    align-items: center;
  }

  .nav-links.active {
    right: 0;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* SECCIÓN COMPARATIVA DEDICADO VS COMPARTIDO */
.comparativa-recursos {
  background: var(--bg-darker);
}

.comparativa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.comp-card {
  padding: 3.5rem 2.8rem;
  position: relative;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.comp-card.shared {
  background: rgba(13, 20, 38, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.comp-card.shared:hover {
  border-color: rgba(239, 68, 68, 0.2);
  box-shadow: 0 10px 40px rgba(239, 68, 68, 0.05);
}

.comp-card.dedicated {
  background: var(--bg-card);
  border: 1px solid var(--primary);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.1), inset 0 0 15px rgba(0, 242, 254, 0.02);
}

.comp-card.dedicated:hover {
  border-color: var(--secondary);
  box-shadow: 0 15px 50px rgba(155, 81, 224, 0.2), inset 0 0 20px rgba(0, 242, 254, 0.05);
}

.badge-top-card {
  position: absolute;
  top: -15px;
  left: 35px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(0, 242, 254, 0.3);
}

.comp-header {
  margin-bottom: 2.2rem;
  text-align: left;
}

.comp-header i {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
}

.comp-card.shared .comp-header i {
  color: var(--text-muted);
}

.comp-card.dedicated .comp-header i {
  color: var(--primary);
  filter: drop-shadow(0 0 10px var(--primary));
}

.comp-header h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.comp-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.comp-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

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

.comp-card.dedicated .comp-list li span {
  color: var(--text-main);
}

.comp-list li i {
  font-size: 1.2rem;
  margin-top: 0.1rem;
}

.error-icon {
  color: #ef4444;
}

.success-icon {
  color: var(--accent);
  filter: drop-shadow(0 0 5px rgba(57, 255, 20, 0.4));
}

@media (max-width: 900px) {
  .comparativa-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .comp-card {
    padding: 2.5rem 2rem;
  }
}

/* Animation Utilities */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   NEW PREMIUM UX INTERACTION STYLES
   ========================================== */



/* OS Selector & Region Selector Cards Grid */
.os-selector-grid,
.region-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 0.8rem;
}

.os-card,
.region-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.os-card i,
.region-card i {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.os-card span,
.region-card span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
}

.os-card:hover,
.region-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 242, 254, 0.25);
  transform: translateY(-2px);
}

.os-card.active,
.region-card.active {
  background: rgba(0, 242, 254, 0.06);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15), inset 0 0 8px rgba(0, 242, 254, 0.05);
}

.os-card.active i,
.region-card.active i {
  color: var(--primary);
  filter: drop-shadow(0 0 4px var(--primary));
}

.os-card.active span,
.region-card.active span {
  color: #fff;
  font-weight: 600;
}

/* Terminal Interactive Controls */
.terminal-controls {
  display: flex;
  justify-content: space-around;
  background: rgba(13, 20, 38, 0.7);
  padding: 0.8rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  gap: 0.6rem;
}

.t-cmd-btn {
  background: rgba(5, 7, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
  flex-grow: 1;
  justify-content: center;
}

.t-cmd-btn i {
  font-size: 0.8rem;
  opacity: 0.7;
}

.t-cmd-btn:hover {
  background: rgba(0, 242, 254, 0.05);
  border-color: rgba(0, 242, 254, 0.3);
  color: #fff;
}

.t-cmd-btn.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
  font-weight: 600;
}

.t-cmd-btn.active i {
  opacity: 1;
}

/* Map Ping test results & scan animation */
.radar-scanner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.5s;
}

.radar-scanner.scanning {
  opacity: 1;
  animation: radar-scan-pulse 2s infinite ease-in-out;
}

@keyframes radar-scan-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

.map-controls {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  z-index: 10;
  position: relative;
}

#btnStartPing {
  padding: 0.9rem 2rem;
  border-radius: 30px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ping-results-panel {
  margin-top: 2rem;
  background: rgba(5, 7, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 1.5rem;
  z-index: 10;
  position: relative;
  animation: slideDownFade 0.4s both;
}

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

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

.ping-results-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

#pingStatusText {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--primary);
  background: rgba(0, 242, 254, 0.06);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 242, 254, 0.15);
}

.ping-results-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.ping-result-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(5px);
  animation: slideDownFade 0.3s forwards;
}

.ping-result-item.best {
  border-color: var(--accent);
  background: rgba(57, 255, 20, 0.03);
}

.ping-result-item .city {
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
}

.ping-result-item .latency {
  color: var(--primary);
  font-weight: 600;
}

.ping-result-item.best .latency {
  color: var(--accent);
  filter: drop-shadow(0 0 3px rgba(57, 255, 20, 0.3));
}

/* Console Actions Styling */
.console-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.2rem;
}

.btn-console-action {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: #fff;
  padding: 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-console-action i {
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.btn-console-action:hover {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.btn-console-action:hover i {
  transform: rotate(15deg);
}

.btn-console-action.stop-btn:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.15);
}

.btn-console-action.stop-btn.running:hover {
  background: rgba(57, 255, 20, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.15);
}

.btn-console-action.purge-btn:hover {
  background: rgba(155, 81, 224, 0.08);
  border-color: var(--secondary);
  box-shadow: 0 0 15px rgba(155, 81, 224, 0.15);
}

/* Flash Animations */
@keyframes accent-flash {
  0% { box-shadow: 0 0 0 rgba(57, 255, 20, 0); }
  50% { box-shadow: 0 0 25px rgba(57, 255, 20, 0.4); border-color: var(--accent); }
  100% { box-shadow: 0 0 0 rgba(57, 255, 20, 0); }
}

.accent-flash-animation {
  animation: accent-flash 0.8s ease-in-out;
}

/* ==========================================
   10. ANTIGRAVITY CLI SECTION
   ========================================== */
.cli-section {
  padding: 8rem 8% 6rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cli-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.cli-text-content {
  display: flex;
  flex-direction: column;
}

.cli-description {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.cli-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cli-feature-item {
  display: flex;
  gap: 1.2rem;
}

.cli-feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
}

.cli-feat-text h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.cli-feat-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Columna de Visual Terminal */
.cli-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.terminal-mockup-wrapper {
  position: relative;
  width: 100%;
  height: 460px;
}

.terminal-mockup {
  position: absolute;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 254, 0.03);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s, color 0.4s, border-color 0.4s;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Terminal de Configuración (Fondo) */
.main-terminal {
  top: 0;
  left: 0;
  width: 78%;
  height: 380px;
  z-index: 1;
}

/* Terminal de Chat (Frente) */
.chat-terminal {
  bottom: 0;
  right: 0;
  width: 75%;
  height: 250px;
  z-index: 2;
  background: #141724;
  border-color: rgba(155, 81, 224, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(155, 81, 224, 0.08);
}

/* Cabecera de Terminal */
.terminal-header {
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.terminal-buttons {
  display: flex;
  gap: 6px;
  z-index: 2;
}

.terminal-buttons .t-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-buttons .t-btn.close { background: #ff5f56; }
.terminal-buttons .t-btn.minimize { background: #ffbd2e; }
.terminal-buttons .t-btn.expand { background: #27c93f; }

.terminal-title {
  position: absolute;
  width: 100%;
  text-align: center;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.5;
  pointer-events: none;
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.45;
  height: calc(100% - 36px);
  overflow-y: auto;
}

/* Estilos de la Terminal de Configuración */
.cli-logo-svg rect {
  transition: fill 0.3s;
}

.cli-welcome-msg {
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.cli-highlight {
  color: var(--primary);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.cli-menu-title {
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.cli-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cli-menu-list li {
  padding: 0.2rem 0 0.2rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  color: var(--text-muted);
}

.cli-menu-list li:hover {
  color: #fff;
  padding-left: 1.5rem;
}

.cli-menu-list li.active-item {
  color: var(--primary);
  font-weight: 600;
}

.cli-next-btn {
  margin-top: 1.2rem;
  color: var(--text-muted);
  font-weight: bold;
}

/* Estilos de la Terminal de Chat */
.chat-input-line {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.chat-prompt {
  color: var(--secondary);
  font-weight: 600;
  margin-right: 0.5rem;
}

.chat-typed-text {
  color: #fff;
}

.chat-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--primary);
  margin-left: 3px;
  animation: cliCursorBlink 0.8s infinite;
}

@keyframes cliCursorBlink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.chat-agent-response {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.chat-agent-response.visible {
  opacity: 1;
  transform: translateY(0);
}

.agent-name {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.code-diff {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
  font-size: 0.8rem;
}

.diff-line {
  display: block;
  padding: 0.1rem 0.5rem;
  border-radius: 2px;
}

.diff-del {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.diff-add {
  background: rgba(34, 197, 94, 0.12);
  color: var(--accent);
}

/* ==========================================
   THEMES PARA LA TERMINAL PRINCIPAL
   ========================================== */

/* 1. DARK THEME (Default) */
.terminal-mockup.theme-dark {
  background: #141724;
  border-color: rgba(255, 255, 255, 0.08);
}
.terminal-mockup.theme-dark .terminal-header {
  background: #0f111a;
  color: #fff;
}
.terminal-mockup.theme-dark .cli-welcome-msg {
  color: #f8fafc;
}

/* 2. LIGHT THEME */
.terminal-mockup.theme-light {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.terminal-mockup.theme-light .terminal-header {
  background: #e2e8f0;
  color: #1e293b;
  border-bottom: 1px solid #cbd5e1;
}
.terminal-mockup.theme-light .cli-welcome-msg {
  color: #0f172a;
}
.terminal-mockup.theme-light .cli-menu-title {
  color: #64748b;
}
.terminal-mockup.theme-light .cli-menu-list li {
  color: #64748b;
}
.terminal-mockup.theme-light .cli-menu-list li:hover {
  color: #0f172a;
}
.terminal-mockup.theme-light .cli-menu-list li.active-item {
  color: #7c3aed; /* Purple active in light */
}
.terminal-mockup.theme-light .cli-highlight {
  color: #7c3aed;
  text-shadow: none;
}
.terminal-mockup.theme-light .cli-next-btn {
  color: #64748b;
}

/* 3. SOLARIZED LIGHT */
.terminal-mockup.theme-solarized-light {
  background: #fdf6e3;
  border-color: #eee8d5;
}
.terminal-mockup.theme-solarized-light .terminal-header {
  background: #eee8d5;
  color: #586e75;
  border-bottom: 1px solid #eee8d5;
}
.terminal-mockup.theme-solarized-light .cli-welcome-msg {
  color: #586e75;
}
.terminal-mockup.theme-solarized-light .cli-menu-title {
  color: #93a1a1;
}
.terminal-mockup.theme-solarized-light .cli-menu-list li {
  color: #93a1a1;
}
.terminal-mockup.theme-solarized-light .cli-menu-list li:hover {
  color: #586e75;
}
.terminal-mockup.theme-solarized-light .cli-menu-list li.active-item {
  color: #b58900;
}
.terminal-mockup.theme-solarized-light .cli-highlight {
  color: #b58900;
  text-shadow: none;
}
.terminal-mockup.theme-solarized-light .cli-next-btn {
  color: #93a1a1;
}

/* 4. TOKYO NIGHT */
.terminal-mockup.theme-tokyo-night {
  background: #1a1b26;
  border-color: #24283b;
}
.terminal-mockup.theme-tokyo-night .terminal-header {
  background: #16161e;
  color: #a9b1d6;
}
.terminal-mockup.theme-tokyo-night .cli-welcome-msg {
  color: #a9b1d6;
}
.terminal-mockup.theme-tokyo-night .cli-menu-title {
  color: #565f89;
}
.terminal-mockup.theme-tokyo-night .cli-menu-list li {
  color: #565f89;
}
.terminal-mockup.theme-tokyo-night .cli-menu-list li:hover {
  color: #a9b1d6;
}
.terminal-mockup.theme-tokyo-night .cli-menu-list li.active-item {
  color: #7aa2f7;
}
.terminal-mockup.theme-tokyo-night .cli-highlight {
  color: #7aa2f7;
  text-shadow: 0 0 10px rgba(122, 162, 247, 0.3);
}
.terminal-mockup.theme-tokyo-night .cli-next-btn {
  color: #565f89;
}

/* 5. TERMINAL (Classic green-on-black) */
.terminal-mockup.theme-terminal {
  background: #000000;
  border-color: #39ff14;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(57, 255, 20, 0.1);
}
.terminal-mockup.theme-terminal .terminal-header {
  background: #111111;
  color: #39ff14;
  border-bottom: 1px solid #39ff14;
}
.terminal-mockup.theme-terminal .cli-welcome-msg {
  color: #39ff14;
}
.terminal-mockup.theme-terminal .cli-menu-title {
  color: #39ff14;
  opacity: 0.7;
}
.terminal-mockup.theme-terminal .cli-menu-list li {
  color: #39ff14;
  opacity: 0.7;
}
.terminal-mockup.theme-terminal .cli-menu-list li:hover {
  opacity: 1;
  padding-left: 1.5rem;
}
.terminal-mockup.theme-terminal .cli-menu-list li.active-item {
  opacity: 1;
  color: #39ff14;
  font-weight: bold;
}
.terminal-mockup.theme-terminal .cli-highlight {
  color: #39ff14;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
}
.terminal-mockup.theme-terminal .cli-next-btn {
  color: #39ff14;
}
/* For classic terminal theme, also change SVG logo rects to match color */
.terminal-mockup.theme-terminal .cli-logo-svg rect {
  fill: #39ff14 !important;
}

/* 6. SOLARIZED DARK */
.terminal-mockup.theme-solarized-dark {
  background: #002b36;
  border-color: #073642;
}
.terminal-mockup.theme-solarized-dark .terminal-header {
  background: #073642;
  color: #839496;
}
.terminal-mockup.theme-solarized-dark .cli-welcome-msg {
  color: #839496;
}
.terminal-mockup.theme-solarized-dark .cli-menu-title {
  color: #586e75;
}
.terminal-mockup.theme-solarized-dark .cli-menu-list li {
  color: #586e75;
}
.terminal-mockup.theme-solarized-dark .cli-menu-list li:hover {
  color: #839496;
}
.terminal-mockup.theme-solarized-dark .cli-menu-list li.active-item {
  color: #2aa198;
}
.terminal-mockup.theme-solarized-dark .cli-highlight {
  color: #2aa198;
  text-shadow: 0 0 10px rgba(42, 161, 152, 0.3);
}
.terminal-mockup.theme-solarized-dark .cli-next-btn {
  color: #586e75;
}

/* 7. COLORBLIND LIGHT */
.terminal-mockup.theme-colorblind-light {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.terminal-mockup.theme-colorblind-light .terminal-header {
  background: #e2e8f0;
  color: #0f172a;
}
.terminal-mockup.theme-colorblind-light .cli-welcome-msg {
  color: #0f172a;
}
.terminal-mockup.theme-colorblind-light .cli-menu-title {
  color: #475569;
}
.terminal-mockup.theme-colorblind-light .cli-menu-list li {
  color: #475569;
}
.terminal-mockup.theme-colorblind-light .cli-menu-list li:hover {
  color: #0f172a;
}
.terminal-mockup.theme-colorblind-light .cli-menu-list li.active-item {
  color: #0284c7; /* Sky blue for colorblind accessibility */
}
.terminal-mockup.theme-colorblind-light .cli-highlight {
  color: #0284c7;
  text-shadow: none;
}
.terminal-mockup.theme-colorblind-light .cli-next-btn {
  color: #475569;
}

/* 8. COLORBLIND DARK */
.terminal-mockup.theme-colorblind-dark {
  background: #18181b;
  border-color: #27272a;
}
.terminal-mockup.theme-colorblind-dark .terminal-header {
  background: #09090b;
  color: #f4f4f5;
}
.terminal-mockup.theme-colorblind-dark .cli-welcome-msg {
  color: #f4f4f5;
}
.terminal-mockup.theme-colorblind-dark .cli-menu-title {
  color: #a1a1aa;
}
.terminal-mockup.theme-colorblind-dark .cli-menu-list li {
  color: #a1a1aa;
}
.terminal-mockup.theme-colorblind-dark .cli-menu-list li:hover {
  color: #f4f4f5;
}
.terminal-mockup.theme-colorblind-dark .cli-menu-list li.active-item {
  color: #38bdf8;
}
.terminal-mockup.theme-colorblind-dark .cli-highlight {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}
.terminal-mockup.theme-colorblind-dark .cli-next-btn {
  color: #a1a1aa;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .cli-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  .cli-section {
    padding: 5rem 6% 4rem;
  }
  
  .terminal-mockup-wrapper {
    height: 380px;
  }
  
  .main-terminal {
    width: 90%;
    height: 300px;
  }
  
  .chat-terminal {
    width: 85%;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .terminal-mockup-wrapper {
    height: 320px;
  }
  
  .main-terminal {
    width: 100%;
    height: 260px;
  }
  
  .chat-terminal {
    display: none; /* Hide chat overlay on very small screens for spacing */
  }
}


/* ==========================================
   LOGO WALL STYLES
   ========================================== */
.logo-wall {
  padding: 4.5rem 0;
  background: var(--bg-darker);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wall-container {
  width: 100%;
  max-width: 1400px;
  overflow: hidden;
  position: relative;
}

.logo-wall-container::before,
.logo-wall-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.logo-wall-container::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-darker) 0%, transparent 100%);
}

.logo-wall-container::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-darker) 0%, transparent 100%);
}

.logo-wall-track {
  display: flex;
  gap: 6rem;
  width: max-content;
  animation: logoScroll 25s linear infinite;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
}

.logo-item img {
  height: 26px;
  opacity: 0.4;
  filter: grayscale(100%) brightness(1.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-item:hover img {
  opacity: 0.95;
  filter: grayscale(0%) brightness(1.5);
  transform: scale(1.08);
}

@keyframes logoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 3rem)); }
}


/* ==========================================
   DOUBLE-BEZEL (NESTED ARCHITECTURE)
   ========================================== */
.glass-card-bezel {
  background: var(--bg-card);
  padding: 8px;
  border-radius: 28px;
  border: 1px solid var(--border-glow);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-card-inner {
  background: var(--bg-card-inner);
  border-radius: 20px;
  padding: 2.2rem;
  height: 100%;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-bezel:hover {
  border-color: var(--border-glow-hover);
  box-shadow: 0 20px 45px rgba(155, 81, 224, 0.08);
  transform: translateY(-4px);
}

.glass-card-bezel:hover .glass-card-inner {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(8, 9, 18, 0.95);
}


/* ==========================================
   BENTO GRID STYLES
   ========================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}

.bento-card.col-span-2 {
  grid-column: span 2;
}

.bento-card.col-span-1 {
  grid-column: span 1;
}

.bento-card-content {
  display: flex;
  gap: 1.2rem;
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
}

.bento-text h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.bento-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}


/* ==========================================
   BENTO VISUAL DIAGRAMS
   ========================================== */
.bento-visual {
  width: 100%;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 100px;
}

/* NVMe Speed Visualizer */
.nvme-visual {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: stretch;
  justify-content: center;
}

.speed-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.speed-bar-fill {
  height: 100%;
  width: 85%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 10px;
  animation: speedBarMove 3s infinite ease-in-out;
}

@keyframes speedBarMove {
  0%, 100% { width: 70%; opacity: 0.7; }
  50% { width: 92%; opacity: 1; }
}

.speed-metric {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  justify-content: flex-end;
}

.speed-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.speed-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

/* DDoS Shield Visualizer */
.ddos-visual {
  position: relative;
}

.shield-core {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.08);
  border: 1.5px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  z-index: 2;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.shield-aura {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 50%;
  animation: shieldPulse 2s infinite ease-out;
  z-index: 1;
}

@keyframes shieldPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Anycast list visualizer */
.anycast-visual {
  padding: 0.8rem;
}

.node-status-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.node-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.node-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--accent);
  display: inline-block;
  margin-right: 0.5rem;
}

.node-name {
  color: #fff;
  flex-grow: 1;
  text-align: left;
}

.node-ping {
  color: var(--primary);
  font-weight: 600;
}

/* Serverless DB auto-scaling visualizer */
.db-visual {
  height: 100px;
}

.db-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  height: 100%;
  width: 100%;
  justify-content: center;
}

.db-bar {
  width: 16px;
  height: var(--h);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.db-bar.active {
  background: linear-gradient(to top, var(--primary), var(--secondary));
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
  animation: dbBarPulse 2s infinite alternate ease-in-out;
}

@keyframes dbBarPulse {
  0% { height: 25%; }
  100% { height: 85%; }
}

/* Docker container flow visualizer */
.docker-visual {
  height: 100px;
}

.flow-steps {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  width: 100%;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.flow-step.active {
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.03);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.flow-step i {
  font-size: 1.1rem;
}

.flow-step.active i {
  color: var(--primary);
  filter: drop-shadow(0 0 4px var(--primary));
}

.flow-arrow {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  animation: arrowGlow 2s infinite alternate ease-in-out;
}

@keyframes arrowGlow {
  0% { opacity: 0.3; color: rgba(255, 255, 255, 0.1); }
  100% { opacity: 1; color: var(--primary); }
}

/* Spacing and Bento Grid Collapse */
.caracteristicas {
  padding: 10rem 8% 8rem;
  background: var(--bg-dark);
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.col-span-2 {
    grid-column: span 1;
  }
  .glass-card-inner {
    padding: 1.6rem;
  }
}

/* ==========================================
   DASHBOARD CUSTOM STYLING (ETHEREAL GLASS)
   ========================================== */

.dashboard-body {
  background-color: #030303;
  color: var(--text-main);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  font-family: 'Geist', sans-serif;
}

.dashboard-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  position: relative;
  z-index: 1;
}

/* SIDEBAR STYLING */
.dashboard-sidebar {
  width: 280px;
  background: rgba(8, 9, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 1.8rem;
  z-index: 10;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-brand {
  margin-bottom: 3rem;
}

.sidebar-brand .logo {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-display) !important;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-brand .logo span {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.sidebar-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.8rem 1.2rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-nav li a i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.sidebar-nav li:hover a {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-nav li.active a {
  color: #fff;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.15);
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.05);
}

.sidebar-nav li.active a i {
  color: var(--primary);
  filter: drop-shadow(0 0 4px var(--primary));
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.user-info .user-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.user-info .user-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

/* MAIN CONTENT AREA */
.dashboard-main {
  flex: 1;
  padding: 2.5rem 3rem;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-title-wrapper h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-top: 0.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.system-status-indicator {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.system-status-indicator .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.green {
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.status-dot.red {
  background-color: #ff5f56;
  box-shadow: 0 0 8px #ff5f56;
}

.status-dot.orange {
  background-color: #ffbd2e;
  box-shadow: 0 0 8px #ffbd2e;
  animation: pulse-orange 1s infinite alternate;
}

@keyframes pulse-orange {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.btn-api-key {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-api-key:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* BENTO GRID LAYOUT */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  grid-auto-flow: dense;
}

.card-instances {
  grid-column: span 2;
  grid-row: span 2;
}

.card-metrics {
  grid-column: span 1;
}

.card-billing {
  grid-column: span 1;
}

.card-console {
  grid-column: span 2;
}

.card-deploy {
  grid-column: span 1;
}

/* Bento Cards Header */
.dashboard-grid .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.dashboard-grid .card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-grid .card-header h3 i {
  color: var(--primary);
  font-size: 1rem;
}

.count-badge {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.15);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 30px;
}

/* INSTANCES PANEL */
.instances-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  max-height: 380px;
}

.instance-row {
  display: grid;
  grid-template-columns: 2.2fr 2.5fr 1.3fr;
  align-items: center;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  transition: all 0.4s ease;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.03);
}

.instance-row:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.inst-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.inst-status-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60px;
  gap: 4px;
}

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

.inst-details h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.inst-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.inst-specs {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.inst-specs span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.inst-specs i {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
}

.inst-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-icon:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.btn-icon:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-start:not(:disabled):hover {
  color: var(--accent);
  border-color: rgba(57, 255, 20, 0.2);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.1);
}

.btn-stop:not(:disabled):hover {
  color: #ff5f56;
  border-color: rgba(255, 95, 86, 0.2);
  box-shadow: 0 0 10px rgba(255, 95, 86, 0.1);
}

.btn-reboot:not(:disabled):hover {
  color: var(--primary);
  border-color: rgba(0, 242, 254, 0.2);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

/* METRICS PANEL */
.metrics-chart-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 10px 0;
  position: relative;
}

.metrics-svg {
  width: 100%;
  height: 100%;
}

.metrics-legend {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
}

.metrics-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.metrics-legend span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-cpu::before { background: var(--primary); }
.legend-ram::before { background: var(--secondary); }

.metrics-realtime {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.metrics-realtime .metric-val {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.metrics-realtime .metric-val strong {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-mono);
}

/* BILLING PANEL */
.billing-radial-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.radial-progress-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
}

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

.radial-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.radial-center strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.radial-center span {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.billing-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spend-stat {
  display: flex;
  flex-direction: column;
}

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

.spend-stat strong {
  font-size: 1.25rem;
  font-weight: 800;
}

.quota-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.quota-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.quota-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.quota-labels span:last-child {
  font-family: var(--font-mono);
  color: #fff;
}

.quota-bar-wrapper {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.quota-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
}

/* TERMINAL SIMULATION */
.terminal-body {
  background: #050509;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #a9b2c3;
  min-height: 200px;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
}

.terminal-line.system {
  color: var(--primary);
  opacity: 0.85;
}

.terminal-line.success {
  color: var(--accent);
}

.terminal-line.error {
  color: #ff5f56;
}

.prompt-line {
  display: flex;
  align-items: center;
}

.prompt {
  color: var(--secondary);
  font-weight: bold;
  white-space: nowrap;
}

#terminalInput {
  background: transparent;
  border: none !important;
  outline: none !important;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  flex: 1;
  padding: 0 4px !important;
  box-shadow: none !important;
}

/* DEPLOY VPS FORM */
.deploy-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.deploy-form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.deploy-form input[type="text"], .deploy-form select {
  background-color: rgba(5, 6, 12, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-size: 0.85rem !important;
  font-family: 'Geist', sans-serif !important;
  color: #fff !important;
}

.deploy-form input[type="text"]:focus, .deploy-form select:focus {
  border-color: rgba(0, 242, 254, 0.3) !important;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.05) !important;
}

.deploy-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem;
}

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

.os-card {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.01);
  padding: 10px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.os-card input {
  display: none;
}

.os-card i {
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.os-card span {
  font-size: 0.75rem;
  font-weight: 500;
}

.os-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.os-card.active {
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.03);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 0 10px rgba(0, 242, 254, 0.05);
}

.os-card.active i {
  color: var(--primary);
}

.btn-deploy-vps {
  padding: 12px !important;
  margin-top: 5px;
  width: 100%;
}

/* RESPONSIVE LAYOUT FOR DASHBOARD */
@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-instances {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .dashboard-container {
    flex-direction: column;
  }
  .dashboard-sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: 1.2rem 1.8rem;
    align-items: center;
  }
  .sidebar-brand {
    margin-bottom: 0;
  }
  .sidebar-nav {
    display: none; /* In production we would have a dropdown or mobile drawer */
  }
  .sidebar-user {
    padding-top: 0;
    border-top: none;
  }
  .dashboard-main {
    padding: 1.5rem;
    height: auto;
    overflow-y: visible;
  }
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .card-instances, .card-console {
    grid-column: span 1;
  }
  .instance-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .inst-actions {
    justify-content: flex-start;
  }
  .inst-specs {
    justify-content: flex-start;
  }
}



