/* Stealth Fighter Performance Comparator */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; font-size: 16px; line-height: 1.5; }
body { min-height: 100vh; display: flex; flex-direction: column; color: #1e293b; background: #f8fafc; }
a { color: #0ea5e9; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
header { background: #0f172a; color: white; padding: 1rem 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
header h1 { font-size: 1.5rem; font-weight: 600; }
nav { display: flex; gap: 1.5rem; margin-top: 0.5rem; }
nav a { color: #cbd5e1; font-size: 0.9rem; }
nav a:hover { color: white; }
.hero { background: linear-gradient(135deg, #1e293b 0%, #334155 100%); color: white; padding: 2rem 0 3rem; }
.hero h2 { font-size: 2rem; margin-bottom: 0.5rem; font-weight: 600; }
.hero p { opacity: 0.9; margin-bottom: 1.5rem; }
.aircraft-selector { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; max-width: 600px; margin-bottom: 1rem; }
.selector-group { display: flex; flex-direction: column; gap: 0.5rem; }
.selector-group label { font-size: 0.85rem; opacity: 0.9; }
.selector-group select { padding: 0.75rem; border-radius: 6px; border: 1px solid #475569; background: #1e293b; color: white; font-size: 1rem; }
.secondary-btn { background: #64748b; color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 6px; cursor: pointer; font-size: 0.9rem; transition: background 0.2s; }
.secondary-btn:hover { background: #475569; }
.primary-btn { background: #0ea5e9; color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 6px; cursor: pointer; font-size: 0.9rem; transition: background 0.2s; }
.primary-btn:hover { background: #0284c7; }
.comparison-section { padding: 2rem 0; }
.comparison-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.comparison-header h3 { font-size: 1.5rem; color: #0f172a; }
.export-controls { display: flex; gap: 0.5rem; }
#specs-table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
#specs-table th { background: #0f172a; color: white; padding: 1rem; text-align: left; font-weight: 500; }
#specs-table td { padding: 1rem; border-bottom: 1px solid #f1f5f9; }
#specs-table tr:last-child td { border-bottom: none; }
.metric { display: flex; gap: 0.5rem; align-items: center; }
.value { font-weight: 600; color: #0f172a; }
.unit { color: #64748b; font-size: 0.9rem; }
.radar-cell { width: 200px; }
.radar-visual { height: 24px; border-radius: 4px; margin-bottom: 0.5rem; }
.rcs-value { display: block; font-size: 0.85rem; color: #64748b; }
.armament-cell { width: 180px; }
.weapon-badge { display: inline-block; background: #e0f2fe; color: #0c4a6e; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.8rem; margin: 0.25rem 0.25rem 0.25rem 0; }
.status-cell { width: 180px; }
.status-badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.85rem; font-weight: 500; }
.status-badge.active { background: #dcfce7; color: #166534; }
.status-badge.retired { background: #fee2e2; color: #991b1b; }
.visualization-section { background: #f1f5f9; padding: 2rem 0; }
.visualization-section h3 { text-align: center; margin-bottom: 1.5rem; color: #0f172a; }
.viz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 800px; margin: 0 auto; }
.viz-item { background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.viz-item h4 { font-size: 1.1rem; margin-bottom: 1rem; color: #0f172a; }
.bar-chart { display: flex; flex-direction: column; gap: 0.75rem; }
.bar-row { display: flex; align-items: center; gap: 0.75rem; }
.bar-label { width: 80px; font-size: 0.9rem; color: #475569; }
.bar-container { flex: 1; height: 24px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.bar { height: 100%; background: linear-gradient(90deg, #22c55e, #0ea5e9); }
.bar-value { width: 100px; text-align: right; font-size: 0.9rem; color: #475569; }
.radar-comparison { display: flex; flex-direction: column; gap: 1rem; }
.radar-item { display: flex; align-items: center; gap: 1rem; }
.radar-label { width: 80px; font-size: 0.9rem; color: #475569; }
.radar-bar { flex: 1; height: 24px; border-radius: 4px; }
.radar-value { width: 100px; text-align: right; font-size: 0.85rem; color: #64748b; }
.viz-note { font-size: 0.85rem; color: #64748b; text-align: center; margin-top: 1rem; }
.context-section { padding: 2rem 0; }
.context-section h3 { font-size: 1.5rem; margin-bottom: 1rem; color: #0f172a; text-align: center; }
.context-section p { max-width: 800px; margin: 0 auto 1rem; text-align: center; color: #475569; }
.assumptions-note { background: #fef3c7; border: 1px solid #fbbf24; border-radius: 6px; padding: 1rem; margin: 1.5rem auto; max-width: 800px; }
.last-updated { text-align: center; color: #64748b; font-size: 0.9rem; margin-top: 1rem; }
.faq-section { padding: 2rem 0; }
.faq-section h3 { text-align: center; margin-bottom: 1.5rem; color: #0f172a; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.faq-item { background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.faq-item h4 { font-size: 1rem; margin-bottom: 0.5rem; color: #0f172a; }
.faq-item p { font-size: 0.9rem; color: #475569; line-height: 1.5; }
footer { background: #0f172a; color: #94a3b8; padding: 1.5rem 0; margin-top: auto; }
footer p { font-size: 0.85rem; text-align: center; }
@media (max-width: 768px) { 
  header h1 { font-size: 1.25rem; }
  nav { gap: 0.75rem; }
  .hero h2 { font-size: 1.5rem; }
  .aircraft-selector { grid-template-columns: 1fr; }
  .viz-grid { grid-template-columns: 1fr; }
  #specs-table { font-size: 0.9rem; }
  #specs-table th, #specs-table td { padding: 0.75rem; }
}
@media (max-width: 480px) { 
  .comparison-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .export-controls { width: 100%; justify-content: flex-end; }
  .assumptions-note { padding: 0.75rem; font-size: 0.85rem; }
}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
