/* Cortex SCADA - Custom Styles */

:root {
  --navy: #0a0f1e;
  --charcoal: #111827;
  --card-bg: #1a2035;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --blue-glow: rgba(59, 130, 246, 0.15);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: #e5e7eb;
  overflow-x: hidden;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero gradient bg */
.hero-bg {
  background: linear-gradient(135deg, var(--navy) 0%, #0f172a 50%, #1e1b4b 100%);
  position: relative;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

/* Navbar */
.navbar {
  backdrop-filter: blur(12px);
  background: rgba(10, 15, 30, 0.85);
  border-bottom: 1px solid rgba(59,130,246,0.1);
}

/* Feature cards */
.feature-card {
  background: var(--card-bg);
  border: 1px solid rgba(59,130,246,0.1);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 8px 30px rgba(59,130,246,0.1);
}

/* Comparison table */
.compare-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
.compare-table th,
.compare-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.compare-table thead th {
  background: var(--card-bg);
  position: sticky;
  top: 0;
  font-weight: 600;
}
.compare-table thead th:first-child {
  border-radius: 8px 0 0 0;
}
.compare-table thead th:last-child {
  border-radius: 0 8px 0 0;
}
.compare-table .cortex-col {
  background: rgba(59,130,246,0.06);
  color: #60a5fa;
  font-weight: 600;
}
.compare-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

/* Pricing cards */
.pricing-card {
  background: var(--card-bg);
  border: 1px solid rgba(59,130,246,0.1);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
}
.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 40px rgba(59,130,246,0.15);
  position: relative;
}
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Form */
.form-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #fff;
  width: 100%;
  transition: border-color 0.2s;
  font-family: 'Inter', sans-serif;
}
.form-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.form-input::placeholder {
  color: rgba(255,255,255,0.3);
}

/* CTA buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: #e5e7eb;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

/* SVG Dashboard illustration */
.dashboard-svg {
  filter: drop-shadow(0 0 40px rgba(59,130,246,0.2));
}

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.2), transparent);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10,15,30,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(59,130,246,0.1);
  padding: 1rem;
}
.mobile-menu.open {
  display: block;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* Check icon for pricing */
.check-icon {
  color: #34d399;
  margin-right: 0.5rem;
}
