/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1a1a2e;
  background: #f8f9fc;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ===== Variables ===== */
:root {
  --primary: #003399;
  --primary-light: #1a5cbf;
  --primary-dark: #001f5c;
  --accent: #f5a623;
  --accent-hover: #e09400;
  --bg-dark: #0a0f2c;
  --bg-alt: #eef1f8;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.3s;
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.25rem; font-weight: 700; color: var(--primary);
  display: flex; align-items: center; gap: 8px;
}
.nav-logo-img { height: 60px; width: auto; }
.nav-links {
  list-style: none; display: flex; gap: 32px; align-items: center;
}
.nav-links a {
  font-size: 0.95rem; font-weight: 500; color: var(--text);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: var(--white) !important;
  padding: 8px 20px; border-radius: 8px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--primary-light) !important; }
.nav-toggle {
  display: none; background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: var(--text);
}

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; background: var(--bg-dark); color: var(--white);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0,51,153,0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(245,166,35,0.2) 0%, transparent 50%),
    linear-gradient(135deg, #0a0f2c 0%, #162252 100%);
}
.hero-content {
  position: relative; z-index: 1; width: 100%;
  text-align: center;
}
.hero-text-col { max-width: 600px; margin: 0 auto; }
.hero h1 { font-size: 3.5rem; font-weight: 700; line-height: 1.1; margin-bottom: 16px; }
.hero-subtitle {
  font-size: 1.35rem; font-weight: 300; color: var(--accent);
  margin-bottom: 16px;
}
.hero-desc { font-size: 1.1rem; color: rgba(255,255,255,0.75); margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 8px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--bg-dark); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: 2.2rem; font-weight: 700; text-align: center;
  margin-bottom: 16px; color: var(--primary-dark);
}
.section-desc {
  text-align: center; color: var(--text-light);
  max-width: 700px; margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* ===== Grid Layouts ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

/* ===== Cards ===== */
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 40px 32px; box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 2.5rem; margin-bottom: 16px; }
.card h3 { font-size: 1.35rem; margin-bottom: 12px; color: var(--primary-dark); }
.card p { color: var(--text-light); }

/* ===== Tech Cards ===== */
.tech-card {
  background: var(--white); border-radius: var(--radius);
  padding: 36px 28px; box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}
.tech-number {
  font-size: 2rem; font-weight: 700; color: var(--accent);
  margin-bottom: 12px;
}
.tech-card h4 { font-size: 1.15rem; margin-bottom: 10px; color: var(--primary-dark); }
.tech-card p { color: var(--text-light); font-size: 0.95rem; }

/* ===== Features ===== */
.features-list { max-width: 750px; margin: 48px auto 0; }
.feature-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.feature-item:last-child { border-bottom: none; }
.feature-check {
  flex-shrink: 0; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: var(--white);
  border-radius: 50%; font-size: 1rem; font-weight: 700;
}
.feature-item h4 { font-size: 1.05rem; margin-bottom: 4px; color: var(--primary-dark); }
.feature-item p { color: var(--text-light); font-size: 0.95rem; }

/* ===== Filter Bar ===== */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end;
  background: var(--white); padding: 24px; border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 32px;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group label {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-light);
}
.filter-group select,
.filter-group input {
  padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px;
  font-size: 0.95rem; background: var(--white); color: var(--text);
  min-width: 160px;
}
.filter-group select:focus,
.filter-group input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,51,153,0.15);
}

/* ===== Chart ===== */
.chart-container {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; min-height: 450px;
}
.chart-placeholder {
  display: flex; align-items: center; justify-content: center;
  min-height: 400px; color: var(--text-light);
  font-size: 1.05rem;
}

/* ===== Stats Panel ===== */
.stats-panel {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 24px;
}
.stat-card {
  background: var(--white); border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 4px;
}
.stat-label {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-light);
}
.stat-value { font-size: 1.5rem; font-weight: 700; color: var(--primary-dark); }

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark); color: rgba(255,255,255,0.6);
  padding: 32px 0; text-align: center; font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.active {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); padding: 24px;
    box-shadow: var(--shadow-lg); gap: 16px;
  }
  .hero h1 { font-size: 2.4rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-panel { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { flex-direction: column; }
  .filter-group select,
  .filter-group input { min-width: auto; width: 100%; }
}
@media (max-width: 480px) {
  .stats-panel { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}

/* ===== Loading Spinner ===== */
.spinner {
  display: inline-block; width: 40px; height: 40px;
  border: 4px solid rgba(0,51,153,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
