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

/* Color Variables and Design System */
:root {
  --bg-dark: #090d16;
  --bg-main: #0f1524;
  --bg-card: #151d30;
  --bg-card-hover: #1c263e;
  --border-color: #222f4c;
  --border-hover: #31446c;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.15);
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.15);
  --warning: #f59e0b;
  --warning-glow: rgba(245, 158, 11, 0.15);
  --danger: #ef4444;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --border-radius: 12px;
  --transition-speed: 0.3s;
}

/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

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

.btn-secondary {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 12px 28px;
  font-size: 1rem;
  border-radius: 10px;
}

/* Navbar */
.navbar {
  height: 80px;
  background-color: rgba(9, 13, 22, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.brand-logo svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a:not(.btn) {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:not(.btn):hover {
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  padding: 80px 0 100px 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(9, 13, 22, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

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

@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-glow);
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: hero-pulse 2s infinite;
}

@keyframes hero-pulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
  100% { transform: scale(0.9); opacity: 1; }
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

@media (max-width: 968px) {
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Dashboard Mockup Visual */
.hero-visual {
  display: flex;
  justify-content: center;
}

.dashboard-mockup {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.5s ease;
}

.dashboard-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
  height: 36px;
  background-color: rgba(21, 29, 48, 0.6);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 6px;
}

.mockup-header .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-color);
}

.mockup-header .dot:nth-child(1) { background-color: var(--danger); }
.mockup-header .dot:nth-child(2) { background-color: var(--warning); }
.mockup-header .dot:nth-child(3) { background-color: var(--success); }

.mockup-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 12px;
}

.mockup-body {
  height: 240px;
  display: flex;
}

.mockup-sidebar {
  width: 50px;
  border-right: 1px solid var(--border-color);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mockup-sidebar .bar-item {
  width: 20px;
  height: 20px;
  background-color: var(--border-color);
  border-radius: 4px;
}

.mockup-sidebar .bar-item.active {
  background-color: var(--primary-glow);
  border: 1px solid var(--primary);
}

.mockup-content {
  flex-grow: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mockup-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.m-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
}

.m-val {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--primary);
}

.m-lbl {
  font-size: 0.6rem;
  color: var(--text-secondary);
}

.mockup-graph {
  flex-grow: 1;
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(21, 29, 48, 0) 100%);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  position: relative;
}

.mockup-graph::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 10px;
  right: 10px;
  height: 2px;
  background-color: var(--primary-glow);
  box-shadow: 0 0 8px var(--primary);
}

/* Stats Banner */
.stats-banner {
  border-y: 1px solid var(--border-color);
  background-color: rgba(9, 13, 22, 0.4);
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-num {
  font-size: 2.75rem;
  font-weight: 800;
  font-family: var(--font-heading);
  background: linear-gradient(to bottom, #fff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.stat-lbl {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Solutions Section */
.solutions {
  padding: 100px 0;
}

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

.section-title {
  font-size: 2.25rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.section-desc {
  color: var(--text-secondary);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.solution-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-speed) ease;
}

.solution-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

/* Active glowing solution card */
.solution-card.active-solution {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
  position: relative;
}

.solution-card.active-solution:hover {
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
}

.solution-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-glow);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.solution-icon.grey {
  background-color: rgba(148, 163, 184, 0.05);
  color: var(--text-muted);
}

.solution-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.solution-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.solution-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  flex-grow: 1;
}

.solution-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

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

.status-pill.operational { background-color: var(--success); box-shadow: 0 0 6px var(--success); }
.status-pill.offline { background-color: var(--text-muted); }

.solution-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.solution-link:hover {
  text-decoration: underline;
}

.solution-link.disabled {
  color: var(--text-muted);
  cursor: not-allowed;
}

.solution-link.disabled:hover {
  text-decoration: none;
}

/* Features Section */
.features {
  padding: 80px 0;
  background-color: rgba(9, 13, 22, 0.2);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

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

/* About Section */
.about {
  padding: 100px 0;
  background-color: var(--bg-dark);
  position: relative;
}

.about-container {
  display: flex;
  justify-content: center;
  text-align: center;
}

.about-content {
  max-width: 800px;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-dark);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}
