@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

/* --- DESIGN SYSTEM & VARIABLES --- */
:root {
  --bg-primary: #04060f;
  --bg-secondary: #0b1126;
  --bg-card: rgba(11, 17, 38, 0.7);
  --bg-card-hover: rgba(16, 26, 56, 0.85);
  
  --primary: #00f0ff;
  --primary-glow: rgba(0, 240, 255, 0.4);
  --secondary: #7000ff;
  --secondary-glow: rgba(112, 0, 255, 0.4);
  
  --accent: #39ff14; /* Green for Active/Safe */
  --accent-glow: rgba(57, 255, 20, 0.3);
  --warning: #ff3e3e; /* Red for Fire/Alerts */
  --warning-glow: rgba(255, 62, 62, 0.3);
  --orange: #ff9d00; /* Orange for vehicles */
  
  --text-main: #f8fafc;
  --text-muted: #8a9fc4;
  --border-color: rgba(0, 240, 255, 0.12);
  --border-color-glow: rgba(0, 240, 255, 0.3);
  
  --font-family: 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-primary);
}

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

/* Cyber grid background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
  z-index: -2;
  pointer-events: none;
}

/* Glowing background ambient lights */
body::after {
  content: '';
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120vw;
  height: 120vh;
  background: 
    radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(112, 0, 255, 0.06) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

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

ul {
  list-style: none;
}

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

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--primary-glow);
}
::-webkit-scrollbar-thumb:hover {
  background: #00b8c4;
}

/* --- UTILITY CLASSES --- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.glow-btn {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

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

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

.glow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.6), 0 0 10px rgba(112, 0, 255, 0.4);
}

.glow-btn.secondary-btn {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  box-shadow: none;
}

.glow-btn.secondary-btn:hover {
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 15px var(--primary-glow);
}

.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: var(--transition);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem auto;
  font-size: 1.1rem;
}

/* --- HEADER & NAVIGATION --- */
header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: var(--max-width);
  z-index: 100;
  padding: 0.6rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-img {
  height: 80px;
  object-fit: contain;
  transition: var(--transition);
}
.logo-img:hover {
  transform: scale(1.03);
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav ul li a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
  box-shadow: 0 0 8px var(--primary);
}

nav ul li a:hover {
  color: var(--primary);
}

nav ul li a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.8rem;
  cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
  padding: 10rem 0 6rem 0;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.8rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
  margin-bottom: 0.3rem;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.hero-visual {
  position: relative;
}

.radar-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 450px;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: radial-gradient(circle, rgba(0, 240, 255, 0.02) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.05);
}

.radar-sweep {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary-glow) 0deg, transparent 90deg, transparent 360deg);
  animation: radar-rotate 4s linear infinite;
  pointer-events: none;
}

.radar-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(0, 240, 255, 0.15);
}

.radar-circle-1 { width: 80%; height: 80%; }
.radar-circle-2 { width: 60%; height: 60%; }
.radar-circle-3 { width: 40%; height: 40%; }

.radar-crosshair-h {
  position: absolute;
  width: 90%;
  height: 1px;
  background: rgba(0, 240, 255, 0.1);
}
.radar-crosshair-v {
  position: absolute;
  height: 90%;
  width: 1px;
  background: rgba(0, 240, 255, 0.1);
}

.hero-logo-large {
  position: absolute;
  width: 288px;
  height: 288px;
  object-fit: contain;
  z-index: 2;
  animation: floating 4s ease-in-out infinite;
  filter: drop-shadow(0 0 25px var(--primary-glow));
}

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

.radar-dot-1 { top: 25%; left: 30%; animation: pulse-glow 1.5s infinite; }
.radar-dot-2 { bottom: 30%; right: 25%; animation: pulse-glow 2s infinite; }

/* --- CORE IA CAPABILITIES --- */
.ai-capabilities {
  padding: 6rem 0;
  position: relative;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.capability-card {
  padding: 2.5rem 2rem;
  text-align: left;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.capability-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
}

.capability-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  transition: var(--transition);
}

.capability-card:hover::after {
  height: 100%;
}

.capability-icon-container {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1.6rem;
  transition: var(--transition);
}

.capability-card:hover .capability-icon-container {
  background: var(--primary);
  color: var(--bg-primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

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

.capability-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.capability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.capability-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- INTEGRATED SYSTEMS (CCTV & ALARMAS) --- */
.integrated-systems {
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent, rgba(11, 17, 38, 0.4), transparent);
}

.systems-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.system-column {
  padding: 3rem;
  height: 100%;
}

.system-tag {
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
  display: block;
}

.system-column h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.system-column p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.system-features {
  display: grid;
  gap: 1.2rem;
}

.sys-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.sys-feat-icon {
  color: var(--accent);
  font-size: 1.2rem;
  margin-top: 0.1rem;
}

.sys-feat-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.sys-feat-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- INTERACTIVE AI SIMULATOR --- */
.ai-simulator {
  padding: 6rem 0;
  position: relative;
}

.simulator-window {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  background: #02040a;
}

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

.sim-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.sim-status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-glow 1.5s infinite;
}

.sim-controls-indicators {
  display: flex;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.indicator-item span {
  color: var(--text-main);
  font-weight: 600;
}

.sim-body {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  min-height: 480px;
}

.sim-feed-area {
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#canvas-sim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.sim-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  animation: camera-pan 24s ease-in-out infinite alternate;
}

@keyframes camera-pan {
  0% {
    transform: scale(1.08) translate(-1.2%, -0.8%);
  }
  100% {
    transform: scale(1.08) translate(1.2%, 0.8%);
  }
}

.scanline-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  z-index: 3;
  pointer-events: none;
}

.scanline-overlay::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 5px;
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
  top: 0;
  animation: scanning 6s linear infinite;
}

.sim-controls-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.8rem;
  width: 90%;
  justify-content: center;
}

.sim-btn {
  background: rgba(6, 10, 22, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--text-main);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sim-btn:hover {
  border-color: var(--primary);
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.sim-btn.active {
  background: var(--primary);
  color: var(--bg-primary);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.sim-sidebar {
  background: #050812;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alert-counter {
  background: rgba(255, 62, 62, 0.15);
  color: var(--warning);
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 62, 62, 0.3);
}

.log-container {
  flex-grow: 1;
  background: #020409;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 0.8rem;
  overflow-y: auto;
  font-family: monospace;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 380px;
}

.log-item {
  border-left: 2px solid var(--primary);
  padding-left: 0.5rem;
  animation: fadeIn 0.3s ease-out;
}

.log-item.alert-log {
  border-left-color: var(--warning);
  background: rgba(255, 62, 62, 0.03);
}

.log-item.safe-log {
  border-left-color: var(--accent);
  background: rgba(57, 255, 20, 0.03);
}

.log-time {
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.log-text {
  color: var(--text-main);
}

/* --- SERVICE CALCULATOR (LA CALCULADORA DE SERVICIOS) --- */
.service-calculator {
  padding: 6rem 0;
  position: relative;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.calc-panel {
  padding: 2.5rem;
}

.calc-group {
  margin-bottom: 2rem;
}

.calc-group label {
  display: block;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.custom-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: transparent;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary-glow);
  margin-top: -7px;
  transition: transform 0.1s;
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-value {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
  width: 50px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Feature grid in calculator */
.calc-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.calc-checkbox-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.calc-checkbox-card:hover {
  border-color: rgba(0, 240, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.calc-checkbox-card.selected {
  border-color: var(--primary);
  background: rgba(0, 240, 255, 0.05);
  box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.05);
}

.calc-checkbox-card input[type="checkbox"] {
  display: none;
}

.calc-checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-muted);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--bg-primary);
  transition: var(--transition);
}

.calc-checkbox-card.selected .calc-checkbox-custom {
  border-color: var(--primary);
  background-color: var(--primary);
  color: var(--bg-primary);
}

.checkbox-label-content h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

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

/* Plan select in calculator */
.calc-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.calc-plan-card {
  padding: 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.calc-plan-card:hover {
  border-color: rgba(112, 0, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.calc-plan-card.selected {
  border-color: var(--secondary);
  background: rgba(112, 0, 255, 0.07);
  box-shadow: 0 0 15px rgba(112, 0, 255, 0.15);
}

.calc-plan-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.calc-plan-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Calc Results Panel */
.calc-results {
  padding: 2.5rem;
  border: 2px solid var(--border-color);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(11, 17, 38, 0.8) 100%);
  position: sticky;
  top: 6.5rem;
}

.calc-results h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

.result-breakdown {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.breakdown-row span:last-child {
  color: var(--text-main);
  font-weight: 600;
}

.breakdown-row.total-row {
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  padding-top: 1.2rem;
  font-size: 1.2rem;
}

.breakdown-row.total-row span:last-child {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

.calc-cta {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
}

/* --- OPERATION HUB / SLA --- */
.operation-hub {
  padding: 6rem 0;
  position: relative;
}

.hub-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.hub-info h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.hub-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hub-features {
  display: grid;
  gap: 1.5rem;
}

.hub-feat-item {
  display: flex;
  gap: 1rem;
}

.hub-feat-number {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.hub-feat-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.hub-feat-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.hub-visual-panel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}

.hub-img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
  opacity: 0.85;
}

.hub-stats-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(4, 6, 15, 0.95) 60%, transparent 100%);
  padding: 2rem;
  display: flex;
  justify-content: space-around;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.hub-stat h4 {
  color: var(--primary);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.hub-stat p {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- CONTACT SECTION --- */
.contact {
  padding: 6rem 0;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
}

.contact-info h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.contact-detail-text h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.1rem;
}

.contact-detail-text p {
  font-size: 1.05rem;
  color: var(--text-main);
  margin: 0;
}

.contact-form {
  padding: 2.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

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

.form-control {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  background: rgba(0, 240, 255, 0.03);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-submit {
  width: 100%;
  justify-content: center;
}

/* --- FOOTER --- */
footer {
  background: #020409;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0 2rem 0;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-links h3 {
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links ul li a {
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.footer-newsletter h3 {
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-newsletter p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex-grow: 1;
}

.newsletter-form .glow-btn {
  padding: 0.8rem 1.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

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

.footer-socials a {
  transition: var(--transition);
}

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

/* --- ANIMATIONS KEYFRAMES --- */
@keyframes radar-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse-glow {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.4);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(57, 255, 20, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0);
  }
}

@keyframes floating {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes scanning {
  0% {
    top: 0%;
  }
  50% {
    top: 100%;
  }
  100% {
    top: 0%;
  }
}

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

/* --- RESPONSIVE DESIGN (MEDIA QUERIES) --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .systems-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .calc-grid {
    grid-template-columns: 1fr;
  }
  
  .calc-results {
    position: static;
  }
  
  .hub-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    padding: 0.6rem 1.2rem;
  }
  
  nav {
    display: none; /* In a real project, this would trigger a mobile menu hamburger */
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero {
    padding-top: 8rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .calc-features-grid {
    grid-template-columns: 1fr;
  }
  
  .calc-plans {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .sim-body {
    grid-template-columns: 1fr;
  }
  
  .sim-sidebar {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    max-height: 250px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
  }
}

/* --- QUANTITY SELECTORS FOR CALCULATOR --- */
.calc-rows-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.calc-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  transition: var(--transition);
}

.calc-row-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(0, 240, 255, 0.15);
}

.calc-row-info h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.calc-row-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.2rem;
}

.qty-btn {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--primary);
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  outline: none;
}

.qty-btn:hover {
  background: var(--primary);
  color: var(--bg-primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

.qty-input {
  width: 35px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1rem;
  outline: none;
  font-family: var(--font-family);
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

