/* ========================================================================
   AeroSync AMS - Next-Gen Airport Management System Marketing Website
   Clean Aviation Light Theme with High-Contrast Foreground
======================================================================== */

:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border-color: #e2e8f0;
  --border-glow: rgba(2, 132, 199, 0.3);
  
  --color-primary: #0284c7;
  --color-primary-glow: rgba(2, 132, 199, 0.15);
  --color-secondary: #2563eb;
  --color-amber: #d97706;
  --color-green: #059669;
  --color-red: #dc2626;
  --color-purple: #7c3aed;
  
  /* High contrast foreground */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  position: relative;
  background: 
    radial-gradient(circle at 15% 15%, rgba(2, 132, 199, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 50%, rgba(37, 99, 235, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(5, 150, 105, 0.04) 0%, transparent 40%),
    var(--bg-primary);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
  color: var(--text-main);
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.brand-tag {
  font-size: 10px;
  font-weight: 800;
  background: rgba(2, 132, 199, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(2, 132, 199, 0.25);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 6px;
}

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

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  background: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

.btn-outline {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(2, 132, 199, 0.05);
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  position: relative;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.radar-dot {
  width: 8px;
  height: 8px;
  background: var(--color-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.hero-title {
  font-size: 54px;
  font-weight: 900;
  max-width: 960px;
  margin: 0 auto 24px;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.text-gradient {
  background: linear-gradient(135deg, #0f172a 30%, #0284c7 70%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

/* Authentic Airport Terminal FIDS Display Board */
.fids-preview-card {
  max-width: 1080px;
  margin: 0 auto;
  background: #030712;
  border: 1px solid #1f2937;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  overflow: hidden;
  text-align: left;
}

.fids-header-bar {
  background: #0a0f1d;
  padding: 16px 24px;
  border-bottom: 1px solid #1f2937;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fids-airport-tag {
  display: flex;
  align-items: center;
  gap: 12px;
}

.iata-badge {
  background: #1e293b;
  border: 1.5px solid #f59e0b;
  color: #f59e0b;
  font-family: var(--font-mono);
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 16px;
}

.fids-board-name {
  font-weight: 800;
  font-size: 18px;
  color: #f59e0b;
  letter-spacing: 2px;
}

.fids-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fids-tab {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #334155;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.fids-tab.active {
  background: #f59e0b;
  color: #000;
  border-color: #f59e0b;
}

.fids-table {
  width: 100%;
  border-collapse: collapse;
}

.fids-table th {
  padding: 12px 20px;
  background: #090e1a;
  color: #f59e0b;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.fids-table td {
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #f8fafc;
  border-bottom: 1px solid #111827;
}

.fids-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.status-on-time { color: #10b981; font-weight: 800; }
.status-boarding { color: #f59e0b; font-weight: 800; }
.status-delayed { color: #f97316; font-weight: 800; }

/* Stats Section */
.stats-section {
  padding: 50px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 36px;
  font-weight: 900;
  color: var(--color-primary);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Sections Common */
.section {
  padding: 80px 0;
}

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

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: 38px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
}

/* Modules Grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.module-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.module-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.module-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.module-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.module-features {
  list-style: none;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.module-features li {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-icon {
  color: var(--color-green);
  font-weight: 800;
}

/* Architecture Box */
.arch-box {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 44px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.arch-points {
  list-style: none;
}

.arch-point {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.arch-point-icon {
  width: 40px;
  height: 40px;
  background: rgba(2, 132, 199, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
  font-weight: 800;
}

.arch-code-preview {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #38bdf8;
  overflow-x: auto;
}

/* Interactive ROI Calculator */
.calc-card {
  max-width: 840px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.range-slider-group {
  margin-bottom: 24px;
}

.range-label {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-main);
}

input[type=range] {
  width: 100%;
  accent-color: var(--color-primary);
}

.calc-results {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.revenue-val {
  font-size: 38px;
  font-weight: 900;
  color: var(--color-green);
  font-family: var(--font-mono);
}

/* Comparison Table */
.comp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comp-table th, .comp-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.comp-table th {
  background: #f1f5f9;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.comp-highlight {
  background: rgba(2, 132, 199, 0.06);
  color: var(--color-primary);
  font-weight: 700;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 540px;
  padding: 36px;
  position: relative;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  background: #f1f5f9;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h5 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title { font-size: 40px; }
  .modules-grid { grid-template-columns: 1fr; }
  .arch-box { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 30px; }
  .hero-ctas { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
