:root {
  --bg-primary: #071A2B;
  --bg-secondary: #0D2940;
  --bg-panel: #123650;
  --sky-blue: #62B6E8;
  --aviation-cyan: #75D6D0;
  --warm-signal: #E6A64A;
  --cloud: #EAF2F5;
  --white: #FFFFFF;
  --muted-blue-grey: #9EB2C0;
  --borders: #28506A;
  
  --font-heading: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  
  --transition: all 0.3s ease;
  --container-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--cloud);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; color: var(--white); margin-bottom: 1rem; line-height: 1.2; }
h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1.5rem; color: var(--cloud); }
a { color: var(--sky-blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--aviation-cyan); }

.tech-label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--aviation-cyan);
  margin-bottom: 0.5rem;
  border: 1px solid var(--borders);
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
}

/* Layout */
.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; border-bottom: 1px solid var(--borders); }

/* Header & Nav */
header {
  background-color: rgba(7, 26, 43, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--borders);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.brand { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--white); letter-spacing: -0.02em; }
.brand span { color: var(--sky-blue); }
nav ul { display: flex; list-style: none; gap: 1.5rem; }
nav a { font-size: 0.9rem; font-weight: 500; color: var(--cloud); }
nav a:hover, nav a.active { color: var(--aviation-cyan); }
.mobile-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--bg-panel);
  color: var(--white);
  border: 1px solid var(--borders);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.btn:hover { background-color: var(--borders); color: var(--aviation-cyan); }
.btn-primary { background-color: var(--sky-blue); color: var(--bg-primary); border-color: var(--sky-blue); }
.btn-primary:hover { background-color: var(--aviation-cyan); border-color: var(--aviation-cyan); color: var(--bg-primary); }

/* Hero */
.hero {
  padding: 8rem 0 5rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(7, 26, 43, 0.95) 0%, rgba(7, 26, 43, 0.6) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-buttons { display: flex; gap: 1rem; margin-top: 2rem; }

/* Cards & Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--borders);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.card:hover { border-color: var(--sky-blue); transform: translateY(-3px); }
.card-img { width: 100%; height: 200px; object-fit: cover; border-bottom: 1px solid var(--borders); }
.card-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; color: var(--muted-blue-grey); flex-grow: 1; }
.card .btn { margin-top: 1.5rem; align-self: flex-start; }

/* Interactive Sections */
.interactive-tabs { display: flex; border-bottom: 1px solid var(--borders); margin-bottom: 2rem; }
.tab-btn {
  background: none; border: none; color: var(--muted-blue-grey); padding: 1rem 2rem;
  font-size: 1rem; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent;
}
.tab-btn.active { color: var(--aviation-cyan); border-bottom-color: var(--aviation-cyan); }
.tab-content { display: none; background: var(--bg-secondary); padding: 2rem; border: 1px solid var(--borders); }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Cockpit Hotspots */
.cockpit-container { position: relative; max-width: 100%; border: 1px solid var(--borders); }
.cockpit-img { width: 100%; display: block; }
.hotspot {
  position: absolute; width: 24px; height: 24px; background: var(--warm-signal);
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px rgba(230, 166, 74, 0.3); z-index: 10;
}
.hotspot::before { content: '+'; color: var(--bg-primary); font-weight: bold; font-size: 14px; }
.hotspot-info {
  position: absolute; background: var(--bg-panel); border: 1px solid var(--sky-blue);
  padding: 1rem; width: 250px; z-index: 20; display: none;
  color: var(--white); font-size: 0.85rem; box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.hotspot:hover .hotspot-info, .hotspot:focus .hotspot-info { display: block; }

/* Timelines */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--borders); }
.timeline-item { position: relative; margin-bottom: 3rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -2.35rem; top: 5px; width: 12px; height: 12px;
  background: var(--sky-blue); border-radius: 50%; box-shadow: 0 0 0 4px var(--bg-primary);
}
.timeline-date { color: var(--aviation-cyan); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.5rem; }

/* Glossary & FAQ */
.search-bar { width: 100%; padding: 1rem; background: var(--bg-secondary); border: 1px solid var(--borders); color: var(--white); margin-bottom: 2rem; font-size: 1rem; }
.search-bar:focus { outline: none; border-color: var(--sky-blue); }

.glossary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.glossary-term { background: var(--bg-panel); padding: 1.5rem; border: 1px solid var(--borders); }
.glossary-term dt { color: var(--sky-blue); font-weight: 700; margin-bottom: 0.5rem; font-size: 1.1rem; }
.glossary-term dd { font-size: 0.9rem; color: var(--cloud); margin: 0; }

details { background: var(--bg-secondary); border: 1px solid var(--borders); margin-bottom: 1rem; }
summary { padding: 1.5rem; cursor: pointer; font-weight: 600; color: var(--white); list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--sky-blue); font-size: 1.5rem; }
details[open] summary::after { content: '-'; }
details .faq-content { padding: 0 1.5rem 1.5rem; color: var(--muted-blue-grey); font-size: 0.95rem; border-top: 1px solid var(--borders); margin-top: 1rem; padding-top: 1rem; }

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--sky-blue); }
.form-control { width: 100%; padding: 0.75rem; background: var(--bg-secondary); border: 1px solid var(--borders); color: var(--white); font-family: var(--font-body); }
.form-control:focus { outline: none; border-color: var(--sky-blue); }
textarea.form-control { resize: vertical; min-height: 150px; }

/* Comparison Table */
.comparison-wrapper { overflow-x: auto; }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 800px; text-align: left; }
.comparison-table th, .comparison-table td { padding: 1rem; border: 1px solid var(--borders); }
.comparison-table th { background: var(--bg-panel); color: var(--aviation-cyan); font-weight: 600; }
.comparison-table tbody tr:nth-child(even) { background: var(--bg-secondary); }

/* Footer */
footer { background: var(--bg-secondary); border-top: 1px solid var(--borders); padding: 4rem 0 2rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.footer-brand p { color: var(--muted-blue-grey); font-size: 0.9rem; }
.footer-links h4 { color: var(--sky-blue); font-size: 1rem; margin-bottom: 1.5rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--muted-blue-grey); font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }
.footer-disclaimer { border-top: 1px solid var(--borders); padding-top: 2rem; font-size: 0.8rem; color: var(--muted-blue-grey); text-align: center; }

/* Cookie Banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-panel);
  border-top: 1px solid var(--sky-blue); padding: 1.5rem; z-index: 9999;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  transform: translateY(100%); transition: transform 0.5s ease; visibility: hidden;
}
.cookie-banner.show { transform: translateY(0); visibility: visible; }
.cookie-content { flex: 1; min-width: 300px; }
.cookie-content p { margin: 0; font-size: 0.85rem; }
.cookie-buttons { display: flex; gap: 0.5rem; }

/* Page Header */
.page-header { padding: 8rem 0 4rem; background: var(--bg-secondary); border-bottom: 1px solid var(--borders); text-align: center; }
.page-header h1 { margin-bottom: 1rem; }
.page-header p { max-width: 700px; margin: 0 auto; font-size: 1.1rem; color: var(--muted-blue-grey); }

/* Content Formatting */
.content-section { max-width: 800px; margin: 0 auto; }
.content-section h2 { margin-top: 3rem; color: var(--aviation-cyan); }
.content-section h3 { margin-top: 2rem; font-size: 1.25rem; }
.content-section ul { margin-bottom: 1.5rem; padding-left: 1.5rem; color: var(--cloud); }
.content-section li { margin-bottom: 0.5rem; }

/* Responsive */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .mobile-toggle { display: block; }
  nav { display: none; width: 100%; padding: 1rem 0; background: var(--bg-secondary); position: absolute; top: 70px; left: 0; border-bottom: 1px solid var(--borders); }
  nav.active { display: block; }
  nav ul { flex-direction: column; gap: 1rem; align-items: center; }
  
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  h1 { font-size: 2.5rem; }
  .hero { padding-top: 6rem; text-align: center; }
  .hero-buttons { justify-content: center; flex-direction: column; }
  
  .interactive-tabs { flex-wrap: wrap; }
  .tab-btn { width: 50%; text-align: center; padding: 0.75rem; border-bottom: 1px solid var(--borders); }
  
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .cookie-banner { flex-direction: column; text-align: center; }
  .cookie-buttons { width: 100%; flex-direction: column; }
  .cookie-buttons .btn { width: 100%; }
}
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .tab-btn { width: 100%; }
  section { padding: 3rem 0; }
  .hotspot-info { width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}