    :root {
      --bg-main: #FFFFFF;
      --bg-soft: #F7F8FA;
      --bg-dark: #0A0F19;
      --bg-dark-panel: #111827;
      --bg-dark-panel-light: #1e293b;
      
      --text-primary: #121826;
      --text-secondary: #4B5563;
      --text-light: #F9FAFB;
      --text-light-secondary: #A6B0C3;
      
      --accent-blue: #3B82F6;
      --accent-green: #22C55E;
      --accent-purple: #A78BFA;
      --accent-red: #EF4444;
      --accent-yellow: #FBBF24;

      --border-color: #E5E7EB;
      --border-dark: #374151;
      --shadow-light: 0 12px 24px -4px rgba(18, 24, 38, 0.08), 0 8px 16px -4px rgba(18, 24, 38, 0.05);
      --shadow-dark: 0 10px 30px rgba(0,0,0,0.5);

      --font-sans: 'Alliance No.1', sans-serif;
      --font-mono: 'Source Code Pro', monospace;

      --header-height: 80px;
      --container-width: 1800px;
      --radius-sm: 8px;
      --radius-lg: 12px;

      --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; font-size: 16px; }
    body {
      font-family: var(--font-sans);
      background-color: var(--bg-dark);
      color: var(--text-primary);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow-x: hidden;
      position: relative;
    }
    body.menu-open { overflow: hidden; }
    .container { max-width: var(--container-width); margin: 0 auto; padding: 0 2rem; }
    .container-full { width: 100%; padding: 0 2rem; }
    .section { padding: 120px 0; position: relative; }
    
    .grid-overlay {
      position: fixed; top: 0; left: 0; width: 100%; height: 100%;
      pointer-events: none; z-index: -1;
      background-image: 
        linear-gradient(to right, rgba(128, 128, 128, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(128, 128, 128, 0.05) 1px, transparent 1px);
      background-size: 40px 40px;
      animation: grid-pan 60s linear infinite;
    }
    @keyframes grid-pan { from { background-position: 0 0; } to { background-position: 40px 40px; } }

    .eyebrow { 
      font-family: var(--font-mono); font-size: 0.9rem; color: var(--accent-blue); 
      font-weight: 700; margin-bottom: 1rem; display: block; 
      text-transform: uppercase; letter-spacing: 0.1em;
    }
    .title { 
      font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 800; 
      letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 1.5rem; 
    }
    .subtitle { 
      font-size: 1.25rem; color: var(--text-secondary); 
      max-width: 80ch; line-height: 1.7; 
    }
    .btn { 
      display: inline-flex; align-items: center; gap: 0.75rem; 
      padding: 1rem 2.5rem; background-color: var(--accent-blue); 
      color: var(--text-light); border: 2px solid var(--accent-blue); 
      border-radius: var(--radius-lg); font-weight: 700; 
      text-decoration: none; transition: var(--transition); cursor: pointer; 
      white-space: nowrap;
    }
    .btn:hover { 
      background-color: #1D4ED8; border-color: #1D4ED8; 
      transform: translateY(-3px); box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
    }
    .btn-secondary { 
      background-color: transparent; color: var(--accent-blue); 
      border-color: var(--accent-blue);
    }
    .btn-secondary:hover { 
      background-color: rgba(37, 99, 235, 0.1); color: var(--accent-blue);
      transform: translateY(-3px); box-shadow: none;
    }
    .text-center { text-align: center; }
    .text-center .subtitle { margin-left: auto; margin-right: auto; }


    .header {
      position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
      height: var(--header-height); background-color: transparent;
      border-bottom: 1px solid transparent;
      transition: background-color var(--transition), border-color var(--transition);
    }
    .header.scrolled {
      background-color: rgba(10, 15, 25, 0.8);
      backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
      border-bottom-color: var(--border-dark);
    }
    .navbar { display: flex; justify-content: space-between; align-items: center; height: 100%; }
    .nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
    .nav-logo-text {
      font-weight: 800; font-size: 1.5rem; color: var(--text-light);
      transition: color var(--transition);
    }
    .header.scrolled .nav-logo-text { color: var(--text-light); }
    .nav-controls { display: flex; align-items: center; gap: 1rem; }
    .nav-btn {
      padding: 0.6rem 1.5rem; font-weight: 600; text-decoration: none;
      border-radius: var(--radius-sm); transition: var(--transition);
      border: 1px solid var(--text-light); color: var(--text-light);
      background-color: transparent;
    }
    .nav-btn:hover { background-color: var(--text-light); color: var(--text-primary); }
    .header.scrolled .nav-btn { border-color: var(--text-light); color: var(--text-light); }
    .header.scrolled .nav-btn:hover { background-color: var(--text-light); color: var(--text-primary); }
    .nav-icon-btn {
      background: none; border: none; cursor: pointer; font-size: 1.2rem;
      width: 40px; height: 40px; display: flex; align-items: center;
      justify-content: center; color: var(--text-light);
      transition: color var(--transition), background-color var(--transition);
      border-radius: 50%;
    }
    .nav-icon-btn:hover { background-color: rgba(255, 255, 255, 0.1); }
    .header.scrolled .nav-icon-btn { color: var(--text-light); }
    .header.scrolled .nav-icon-btn:hover { background-color: rgba(255, 255, 255, 0.1); }
    .nav-toggle .fa-xmark { display: none; }
    .menu-open .header .nav-toggle .fa-bars { display: none; }
    .menu-open .header .nav-toggle .fa-xmark { display: block; }
    .menu-open .header { background-color: transparent; border-bottom-color: transparent; }
    .menu-open .header .nav-logo-text, .menu-open .header .nav-icon-btn, .menu-open .header .nav-btn {
      color: var(--text-light); border-color: var(--text-light);
    }
    .fullscreen-menu {
      position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
      background-color: var(--bg-dark); z-index: 999;
      opacity: 0; visibility: hidden; pointer-events: none;
      transition: opacity var(--transition), visibility var(--transition);
      overflow-y: auto; padding: calc(var(--header-height) + 4rem) 2rem 4rem 2rem;
    }
    .fullscreen-menu.is-active { opacity: 1; visibility: visible; pointer-events: all; }
    .fullscreen-menu-grid {
      max-width: var(--container-width); margin: 0 auto;
      display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem;
    }
    .fullscreen-menu-col { grid-column: span 3; }
    .fullscreen-menu-col.main-nav { grid-column: span 4; }
    .fullscreen-menu-col.sub-nav { grid-column: span 2; }
    .fullscreen-menu-col h5 {
      font-family: var(--font-mono); text-transform: uppercase;
      letter-spacing: 0.05em; color: var(--text-light-secondary);
      margin-bottom: 1.5rem; font-size: 0.8rem;
    }
    .fullscreen-menu-col ul { list-style: none; }
    .fullscreen-menu-col ul li a {
      display: block; text-decoration: none; color: var(--text-light);
      transition: color var(--transition), padding-left var(--transition);
    }
    .fullscreen-menu-col ul li a:hover { color: var(--accent-blue); padding-left: 0.5rem; }
    .fullscreen-menu-col.main-nav ul li { margin-bottom: 1rem; }
    .fullscreen-menu-col.main-nav ul li a { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.03em; }
    .fullscreen-menu-col.sub-nav ul li { margin-bottom: 0.8rem; }
    .fullscreen-menu-col.sub-nav ul li a { font-size: 1rem; font-weight: 500; color: var(--text-light-secondary); }
    .fullscreen-menu-col.sub-nav ul li a:hover { color: var(--text-light); }
    .nav-menu, .nav-overlay, .nav-actions-mobile, .mega-menu { display: none !important; }


    .hero-section { 
      position: relative;
      height: 100vh;
      min-height: 800px;
      display: flex;
      align-items: center;
      background-color: var(--bg-dark);
      color: var(--text-light);
      overflow: hidden;
      padding-top: 0;
    }
    .hero-background {
      position: absolute;
      top: -10%; left: -10%;
      width: 120%; height: 120%;
      z-index: 1;
      background-image: radial-gradient(circle at center, rgba(17, 24, 39, 0) 0%, var(--bg-dark-panel) 70%),
                        url('https://edge.heylean.com/img/low-contrast-linen.png');
      opacity: 0.5;
      animation: slow-pan 120s linear infinite alternate;
    }
    @keyframes slow-pan {
      from { transform: scale(1) translate(0, 0); }
      to { transform: scale(1.1) translate(20px, -20px); }
    }
    .hero-vignette {
      position: absolute;
      top: 0; left: 0; width: 100%; height: 100%;
      z-index: 2;
      box-shadow: inset 0 0 150px 50px var(--bg-dark);
      pointer-events: none;
    }
    .hero-hud-scanner {
      position: absolute;
      top: 0; left: 0; width: 100%; height: 100%;
      z-index: 3;
      pointer-events: none;
    }
    .hero-hud-scanner::before {
      content: '';
      position: absolute;
      left: 0;
      width: 100%;
      height: 2px;
      background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
      box-shadow: 0 0 10px var(--accent-blue);
      animation: scan-line 10s linear infinite;
    }
    @keyframes scan-line {
      0% { top: 0%; }
      100% { top: 100%; }
    }
    .hero-section .container { position: relative; z-index: 4; }
    .hero-grid { 
      display: grid; 
      grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
      align-items: center; 
      gap: 4rem; 
    }
    .hero-content { position: relative; }
    .hero-content::before, .hero-content::after {
      content: '';
      position: absolute;
      width: 40px;
      height: 40px;
      border-color: var(--accent-blue);
      border-style: solid;
      opacity: 0.5;
    }
    .hero-content::before { top: -2rem; left: -2rem; border-width: 2px 0 0 2px; }
    .hero-content::after { bottom: -2rem; right: -2rem; border-width: 0 2px 2px 0; }
    .hero-section .eyebrow { color: var(--accent-blue); letter-spacing: 0.15em; }
    .hero-section .title {
      color: var(--text-light);
      font-size: clamp(3rem, 6vw, 5.5rem);
      text-shadow: 0 2px 20px rgba(0,0,0,0.5);
      font-family: var(--font-mono);
      font-weight: 700;
      position: relative;
    }
    .hero-title-glitch { position: relative; }
    .hero-title-glitch::before, .hero-title-glitch::after {
      content: attr(data-text);
      position: absolute;
      top: 0; left: 0; width: 100%; height: 100%;
      background: var(--bg-dark);
      overflow: hidden;
    }
    .hero-title-glitch::before {
      left: 2px;
      text-shadow: -1px 0 var(--accent-red);
      animation: glitch-1 2s infinite reverse;
    }
    .hero-title-glitch::after {
      left: -2px;
      text-shadow: -1px 0 var(--accent-green);
      animation: glitch-2 2s infinite reverse;
    }
    @keyframes glitch-1 {
      0%, 20%, 22%, 65%, 100% { clip-path: inset(45% 0 50% 0); }
      21% { clip-path: inset(10% 0 80% 0); }
    }
    @keyframes glitch-2 {
      0%, 20%, 22%, 65%, 100% { clip-path: inset(5% 0 90% 0); }
      21% { clip-path: inset(80% 0 5% 0); }
    }
    .hero-section .subtitle {
      color: var(--text-light-secondary);
      font-size: 1.3rem;
      max-width: 60ch;
      line-height: 1.8;
    }
    .hero-actions { 
      display: flex; flex-wrap: wrap; 
      gap: 1.5rem; margin-top: 3rem; 
    }
    .hero-actions .btn-secondary {
      color: var(--text-light);
      border-color: rgba(249, 250, 251, 0.5);
    }
    .hero-actions .btn-secondary:hover {
      background-color: rgba(249, 250, 251, 0.1);
      border-color: var(--text-light);
    }
    .hero-globe-container { 
      position: relative; width: 100%; height: 700px; 
      display: flex; justify-content: center; align-items: center;
    }
    #globe-canvas { 
      position: absolute; top: 50%; left: 50%; 
      transform: translate(-50%, -50%); 
      width: 140% !important; height: 140% !important; 
      cursor: grab; 
    }
    #globe-canvas:grabbing { cursor: grabbing; }
    

    .c5isr-section { background-color: var(--bg-dark); color: var(--text-light); padding-top: 60px; padding-bottom: 60px; }
    .c5isr-section .title { color: var(--text-light); }
    .c5isr-section .subtitle { color: var(--text-light-secondary); }
    #command-ticker {
      background-color: #000; color: var(--accent-yellow); font-family: var(--font-mono);
      padding: 0.5rem; text-align: center; font-size: 0.9rem;
      border-bottom: 1px solid var(--border-dark); overflow: hidden;
      white-space: nowrap; margin-bottom: 3rem;
    }
    #command-ticker-text { display: inline-block; padding-left: 100%; animation: ticker-scroll 45s linear infinite; }
    @keyframes ticker-scroll { from { transform: translateX(0%); } to { transform: translateX(-200%); } }
    .c5isr-controls { 
      display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; 
      margin-bottom: 2rem; background-color: var(--bg-dark-panel); 
      padding: 0.5rem; border-radius: var(--radius-lg); 
      border: 1px solid var(--border-dark); max-width: 1200px; 
      margin-left: auto; margin-right: auto; 
    }
    .c5isr-tab-btn { 
      flex-grow: 1; background: transparent; border: none; 
      color: var(--text-light-secondary); padding: 0.75rem 1rem; 
      font-size: 0.9rem; font-weight: 600; border-radius: var(--radius-sm); 
      cursor: pointer; transition: var(--transition); display: flex; 
      align-items: center; justify-content: center; gap: 0.75rem; 
    }
    .c5isr-tab-btn:hover:not(.active) { background-color: var(--bg-dark-panel-light); color: var(--text-light); }
    .c5isr-tab-btn.active { background-color: var(--accent-blue); color: var(--text-light); box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25); }
    .c5isr-tab-btn:disabled { opacity: 0.5; cursor: not-allowed; }
    .c5isr-tab-btn.view-switch { border-left: 2px solid var(--border-dark); margin-left: 0.5rem; }
    .c5isr-dashboard-container { background-color: var(--bg-dark-panel); border: 1px solid var(--border-dark); border-radius: var(--radius-lg); padding: 1.5rem; }
    .c5isr-dashboard { display: grid; grid-template-columns: 320px 1fr 380px; gap: 1.5rem; height: 75vh; min-height: 700px; }
    .dashboard-panel { background-color: var(--bg-dark); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; overflow: hidden; }
    .panel-title { font-size: 1.1rem; font-weight: 700; color: var(--text-light); margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-dark); display: flex; align-items: center; gap: 0.75rem; }
    .c5isr-intel-feed, .c5isr-analysis-panel { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--accent-blue) var(--bg-dark); }
    .c5isr-intel-feed::-webkit-scrollbar, .c5isr-analysis-panel::-webkit-scrollbar, .modal-body::-webkit-scrollbar, .asset-list::-webkit-scrollbar { width: 8px; }
    .c5isr-intel-feed::-webkit-scrollbar-track, .c5isr-analysis-panel::-webkit-scrollbar-track, .modal-body::-webkit-scrollbar-track, .asset-list::-webkit-scrollbar-track { background: var(--bg-dark); }
    .c5isr-intel-feed::-webkit-scrollbar-thumb, .c5isr-analysis-panel::-webkit-scrollbar-thumb, .modal-body::-webkit-scrollbar-thumb, .asset-list::-webkit-scrollbar-thumb { background-color: var(--accent-blue); border-radius: 4px; border: 2px solid var(--bg-dark); }
    .intel-list { list-style: none; padding: 0; margin: 0; }
    .intel-item { background-color: var(--bg-dark-panel); padding: 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; border-left: 4px solid var(--accent-blue); cursor: pointer; transition: var(--transition); animation: slideInUp 0.5s ease-out forwards; opacity: 0; }
    .intel-item:hover { background-color: var(--bg-dark-panel-light); transform: translateX(5px); }
    .intel-item[data-type="hostile"] { border-color: var(--accent-red); }
    .intel-item[data-type="asset"] { border-color: var(--accent-green); }
    .intel-item[data-type="poi"] { border-color: var(--accent-purple); }
    .intel-item[data-type="system"] { border-color: var(--accent-yellow); }
    .intel-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
    .intel-item-header .type { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--text-light); }
    .intel-item-header .time { font-size: 0.8rem; color: var(--text-light-secondary); }
    .intel-item p { font-size: 0.9rem; color: var(--text-light-secondary); line-height: 1.5; }
    @keyframes slideInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
    .c5isr-map-container { padding: 0; background-color: var(--bg-dark); border-radius: var(--radius-lg); overflow: hidden; position: relative; }
    #mapbox-map { width: 100%; height: 100%; }
    .marker { background-size: cover; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid white; box-shadow: 0 0 10px rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; color: white; font-size: 14px; }
    .asset-marker { background-color: var(--accent-green); border-color: var(--text-light); }
    .asset-marker::before { font-family: "Font Awesome 6 Free"; font-weight: 900; content: '\f058'; }
    .hostile-marker { background-color: var(--accent-red); border-color: var(--text-light); animation: pulse-red 1.5s infinite; }
    .hostile-marker::before { font-family: "Font Awesome 6 Free"; font-weight: 900; content: '\f06a'; }
    @keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
    .mapboxgl-popup-content { background-color: var(--bg-dark-panel) !important; color: var(--text-light) !important; border: 1px solid var(--border-dark); border-radius: var(--radius-sm); box-shadow: 0 5px 15px rgba(0,0,0,0.3); padding: 1rem; font-family: var(--font-sans); max-width: 280px !important; }
    .mapboxgl-popup-close-button { color: var(--text-light-secondary); font-size: 1.5rem; transition: var(--transition); }
    .mapboxgl-popup-close-button:hover { color: var(--text-light); }
    .popup-title { font-weight: 700; margin-bottom: 0.75rem; border-bottom: 1px solid var(--border-dark); padding-bottom: 0.5rem; color: var(--accent-blue); }
    .popup-body dl { display: grid; grid-template-columns: 100px 1fr; gap: 0.5rem; }
    .popup-body dt { font-weight: 600; font-size: 0.85rem; color: var(--text-light-secondary); }
    .popup-body dd { font-size: 0.85rem; margin: 0; color: var(--text-light); }
    .map-loader { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 15, 25, 0.8); z-index: 10; display: flex; justify-content: center; align-items: center; color: var(--text-light); font-size: 1.2rem; backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: var(--transition); }
    .map-loader.visible { opacity: 1; visibility: visible; }
    .analysis-card { background-color: var(--bg-dark-panel); padding: 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; }
    .analysis-card h4 { font-size: 1.1rem; font-weight: 600; color: var(--text-light); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
    #threat-chart-container { position: relative; height: 180px; width: 100%; }
    .coa-list { display: flex; flex-direction: column; gap: 1rem; }
    .coa-btn { background-color: var(--bg-dark-panel-light); border: 1px solid var(--border-dark); color: var(--text-light); padding: 1rem; text-align: left; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); width: 100%; }
    .coa-btn:hover:not(:disabled) { background-color: #374151; border-color: var(--accent-blue); }
    .coa-btn:disabled { opacity: 0.5; cursor: not-allowed; }
    .coa-btn.executing { border-color: var(--accent-yellow); box-shadow: 0 0 10px rgba(251, 191, 36, 0.3); animation: pulse-yellow 1.5s infinite alternate; }
    @keyframes pulse-yellow { from { box-shadow: 0 0 10px rgba(251, 191, 36, 0.3); } to { box-shadow: 0 0 20px rgba(251, 191, 36, 0.6); } }
    .coa-btn-header { display: flex; align-items: center; justify-content: space-between; font-weight: 700; margin-bottom: 0.5rem; }
    .coa-risk { padding: 0.2rem 0.6rem; font-size: 0.75rem; border-radius: 1rem; font-weight: 700; }
    .coa-risk.low { background-color: var(--accent-green); color: var(--bg-dark); }
    .coa-risk.medium { background-color: var(--accent-yellow); color: var(--bg-dark); }
    .coa-risk.high { background-color: var(--accent-red); color: var(--text-light); }
    .coa-btn p { font-size: 0.85rem; color: var(--text-light-secondary); }
    #mission-status-text { font-size: 0.9rem; color: var(--accent-yellow); font-family: var(--font-mono); transition: color 0.3s; }
    .progress-bar-container { background-color: var(--bg-dark-panel-light); border-radius: 4px; height: 10px; overflow: hidden; margin-top: 0.5rem; }
    #mission-progress-bar { width: 0%; height: 100%; background-color: var(--accent-green); transition: width 0.5s ease-out; }
    #simulated-time { font-family: var(--font-mono); font-size: 1.1rem; color: var(--accent-blue); text-align: center; margin-top: 1rem; padding: 0.5rem; background-color: var(--bg-dark-panel); border-radius: var(--radius-sm); border: 1px solid var(--border-dark); }
    #asset-management-panel, #reporting-panel { display: none; flex-direction: column; gap: 1.5rem; height: 75vh; min-height: 700px; }
    .asset-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; overflow-y: auto; flex-grow: 1; }
    .asset-item { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 1rem; background-color: var(--bg-dark-panel); padding: 1rem; border-radius: var(--radius-sm); border-left: 4px solid var(--accent-green); }
    .asset-item-icon { font-size: 1.5rem; text-align: center; color: var(--accent-green); }
    .asset-item-details h5 { margin: 0; font-size: 1rem; color: var(--text-light); }
    .asset-item-details p { margin: 0; font-size: 0.85rem; color: var(--text-light-secondary); font-family: var(--font-mono); }
    .asset-item-status { text-align: right; font-weight: 600; font-size: 0.9rem; }
    .asset-item-status .status-ok { color: var(--accent-green); }
    .asset-item-status .status-warn { color: var(--accent-yellow); }
    .asset-item-status .status-crit { color: var(--accent-red); }
    #reporting-panel .btn { align-self: flex-start; }
    #report-placeholder { color: var(--text-light-secondary); text-align: center; padding: 4rem 2rem; border: 2px dashed var(--border-dark); border-radius: var(--radius-lg); margin-top: 2rem; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; }
    .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 15, 25, 0.8); backdrop-filter: blur(8px); z-index: 2000; display: none; justify-content: center; align-items: center; animation: fadeIn 0.3s ease-out; }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
    .modal-content { background: var(--bg-dark-panel); color: var(--text-light); border: 1px solid var(--border-dark); border-radius: var(--radius-lg); width: 90%; max-width: 1000px; height: 85vh; display: flex; flex-direction: column; box-shadow: var(--shadow-dark); animation: fadeInScale 0.3s ease-out forwards; }
    @keyframes fadeInScale { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
    .modal-header { padding: 1.5rem; border-bottom: 1px solid var(--border-dark); display: flex; justify-content: space-between; align-items: center; }
    .modal-header h3 { margin: 0; font-size: 1.5rem; }
    .modal-close-btn { background: none; border: none; color: var(--text-light-secondary); font-size: 1.8rem; cursor: pointer; transition: var(--transition); }
    .modal-close-btn:hover { color: var(--text-light); transform: rotate(90deg); }
    .modal-body { padding: 2rem; overflow-y: auto; font-family: var(--font-mono); line-height: 1.8; font-size: 0.9rem; flex-grow: 1; }
    .report-section { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px dashed var(--border-dark); }
    .report-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
    .report-section h4 { color: var(--accent-blue); margin-bottom: 1rem; font-family: var(--font-sans); font-size: 1.2rem; }
    .report-section pre { white-space: pre-wrap; word-wrap: break-word; color: var(--text-light-secondary); background-color: var(--bg-dark); padding: 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border-dark); }


    .architecture-section {
        background-color: var(--bg-dark);
        color: var(--text-light);
        overflow: hidden;
    }
    .architecture-section .subtitle { color: var(--text-light-secondary); }
    .architecture-section .title { color: var(--text-light); }
    .arch-nexus-container {
        margin-top: 6rem;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .arch-nexus-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem 8rem;
        position: relative;
        z-index: 2;
        max-width: 1200px;
    }
    .nexus-core {
        position: absolute;
        width: 150px;
        height: 150px;
        z-index: 1;
    }
    .nexus-core-pulse {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background-color: var(--accent-blue);
        box-shadow: 0 0 30px var(--accent-blue), 0 0 60px var(--accent-blue);
        animation: pulse-core 3s infinite ease-in-out;
    }
    .nexus-core-pulse::before, .nexus-core-pulse::after {
        content: '';
        position: absolute;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        border: 2px solid var(--accent-blue);
        animation: pulse-ring 3s infinite ease-in-out;
    }
    .nexus-core-pulse::after { animation-delay: 1.5s; }
    @keyframes pulse-core {
        0%, 100% { transform: scale(0.95); box-shadow: 0 0 30px var(--accent-blue), 0 0 60px var(--accent-blue); }
        50% { transform: scale(1.05); box-shadow: 0 0 45px var(--accent-blue), 0 0 90px var(--accent-blue); }
    }
    @keyframes pulse-ring {
        from { width: 100%; height: 100%; opacity: 1; }
        to { width: 300%; height: 300%; opacity: 0; }
    }
    .nexus-card {
        background: rgba(17, 24, 39, 0.7);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid var(--border-dark);
        border-radius: var(--radius-lg);
        padding: 2rem;
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        position: relative;
        z-index: 3;
        box-shadow: 0 0 20px rgba(0,0,0,0.3), inset 0 0 15px rgba(17, 24, 39, 0.5);
    }
    .nexus-card:hover {
        transform: translateY(-10px) scale(1.02);
        border-color: var(--accent-blue);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(59, 130, 246, 0.4);
    }
    .nexus-card-icon {
        font-size: 2.5rem;
        color: var(--accent-blue);
        margin-bottom: 1.5rem;
        display: inline-block;
        transition: transform 0.4s ease;
    }
    .nexus-card:hover .nexus-card-icon {
        transform: scale(1.1) rotate(-10deg);
    }
    .nexus-card h3 {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-light);
        margin-bottom: 1rem;
    }
    .nexus-card p {
        color: var(--text-light-secondary);
        font-size: 0.95rem;
        line-height: 1.7;
    }
    .nexus-card p strong { color: var(--accent-yellow); font-weight: 600; }

    
    .data-fusion-section {
        background-color: var(--bg-dark);
        color: var(--text-light);
        border-top: 1px solid var(--border-dark);
    }
    .data-fusion-section .subtitle { color: var(--text-light-secondary); }
    .data-fusion-section .title { color: var(--text-light); }
    .pipeline-container {
        position: relative;
        margin-top: 5rem;
        padding: 2rem 0;
    }
    .pipeline-line {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 100%;
        background-color: var(--border-dark);
        z-index: 1;
    }
    .pipeline-progress {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 0;
        background: linear-gradient(to bottom, var(--accent-yellow), var(--accent-blue));
        box-shadow: 0 0 10px var(--accent-yellow);
    }
    .pipeline-card {
        position: relative;
        width: calc(50% - 4rem);
        padding: 2rem;
        margin-bottom: 4rem;
        border-radius: var(--radius-lg);
        background: rgba(30, 41, 59, 0.6);
        border: 1px solid var(--border-dark);
        opacity: 0;
        transform: translateY(50px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out, border-color 0.3s;
        z-index: 2;
    }
    .pipeline-card.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
    .pipeline-card:nth-child(odd) {
        left: 0;
        margin-left: 0;
        margin-right: auto;
    }
    .pipeline-card:nth-child(even) {
        left: 50%;
        margin-left: 4rem;
        margin-right: 0;
    }
    .pipeline-card:hover { border-color: var(--accent-yellow); }
    .pipeline-card::before { 
        content: '';
        position: absolute;
        top: 3rem;
        width: 20px;
        height: 20px;
        background: var(--bg-dark-panel);
        border: 4px solid var(--border-dark);
        border-radius: 50%;
        z-index: 3;
        transition: border-color 0.3s ease;
    }
    .pipeline-card::after { 
        content: '';
        position: absolute;
        top: calc(3rem + 9px);
        height: 2px;
        width: 4rem;
        background: var(--border-dark);
        z-index: 2;
        transition: background 0.3s ease;
    }
    .pipeline-card:nth-child(odd)::before { right: -4rem; transform: translateX(50%); }
    .pipeline-card:nth-child(odd)::after { right: -4rem; }
    .pipeline-card:nth-child(even)::before { left: -4rem; transform: translateX(-50%); }
    .pipeline-card:nth-child(even)::after { left: -4rem; transform-origin: right; width: 4rem; }
    .pipeline-card.is-visible::before { border-color: var(--accent-yellow); }
    .pipeline-card.is-visible::after { background: var(--accent-yellow); }
    .pipeline-card-header {
        display: flex;
        align-items: flex-start;
        gap: 1.5rem;
        margin-bottom: 1rem;
    }
    .pipeline-step {
        font-family: var(--font-mono);
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--accent-yellow);
        line-height: 1;
    }
    .pipeline-card h3 {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-light);
        margin: 0;
        padding-top: 0.5rem;
    }
    .pipeline-card p {
        color: var(--text-light-secondary);
        font-size: 0.95rem;
    }
    .pipeline-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
    .pipeline-tag {
        font-family: var(--font-mono);
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
        border-radius: 1rem;
        background-color: var(--bg-dark-panel-light);
        color: var(--text-light-secondary);
        border: 1px solid var(--border-dark);
    }


    .teaming-section {
        background-color: var(--bg-dark);
        color: var(--text-light);
        border-top: 1px solid var(--border-dark);
        overflow: hidden;
    }
    .teaming-section .subtitle { color: var(--text-light-secondary); }
    .teaming-section .title { color: var(--text-light); }
    .neuromorphic-container {
        margin-top: 6rem;
        position: relative;
        display: grid;
        grid-template-columns: 1fr 1.5fr 1fr;
        grid-template-areas: "human core output";
        align-items: center;
        gap: 2rem;
    }
    .neuro-panel {
        padding: 2rem;
        text-align: center;
        position: relative;
    }
    .neuro-panel h3 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: var(--text-light);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
    }
    .neuro-panel p {
        color: var(--text-light-secondary);
        font-size: 0.95rem;
        line-height: 1.7;
    }
    .neuro-human { grid-area: human; text-align: right; }
    .neuro-human h3 { color: var(--accent-green); flex-direction: row-reverse; }
    .neuro-output { grid-area: output; text-align: left; }
    .neuro-output h3 { color: var(--accent-blue); }
    .neuro-ai-core {
        grid-area: core;
        background: rgba(17, 24, 39, 0.7);
        backdrop-filter: blur(12px);
        border: 1px solid var(--border-dark);
        border-radius: var(--radius-lg);
        padding: 2.5rem;
        position: relative;
        box-shadow: 0 0 40px rgba(0,0,0,0.4);
    }
    .neuro-ai-core .core-icon {
        font-size: 3rem;
        color: var(--accent-purple);
        margin-bottom: 1.5rem;
        animation: pulse-purple 2s infinite alternate;
    }
    @keyframes pulse-purple {
        from { transform: scale(1); text-shadow: 0 0 15px var(--accent-purple); }
        to { transform: scale(1.1); text-shadow: 0 0 30px var(--accent-purple); }
    }
    .neuro-ai-core h3 { justify-content: center; }
    .neuro-ai-core .ai-parts {
        display: flex;
        justify-content: space-around;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    .ai-part { flex: 1; }
    .ai-part h4 {
        font-family: var(--font-mono);
        font-size: 0.9rem;
        color: var(--accent-yellow);
        margin-bottom: 0.5rem;
        text-transform: uppercase;
    }
    .ai-part p { font-size: 0.9rem; }
    .neuro-pathway {
        position: absolute;
        top: 50%;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, var(--accent-green), var(--accent-purple));
        opacity: 0.5;
        z-index: -1;
        animation: flow 4s linear infinite;
    }
    .neuro-human .neuro-pathway { right: 0; transform: translateY(-50%); }
    .neuro-output .neuro-pathway { left: 0; transform: translateY(-50%); background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue)); }
    @keyframes flow {
        0% { background-position: 100% 0; }
        100% { background-position: -100% 0; }
    }

    
    .foresight-section {
        background: var(--bg-dark);
        border-top: 1px solid var(--border-dark);
        position: relative;
        overflow: hidden;
    }
    .foresight-section .subtitle { color: var(--text-light-secondary); }
    .foresight-section .title { color: var(--text-light); }
    .foresight-container {
        margin-top: 5rem;
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 5rem;
        align-items: center;
    }
    .foresight-content ul {
        list-style: none;
        padding: 0;
        margin-top: 2.5rem;
    }
    .foresight-content ul li {
        background: rgba(30, 41, 59, 0.4);
        padding: 1.5rem;
        border-radius: var(--radius-lg);
        margin-bottom: 1.5rem;
        border-left: 4px solid transparent;
        transition: var(--transition);
    }
    .foresight-content ul li:hover {
        transform: translateX(10px);
        background: var(--bg-dark-panel-light);
        border-left-color: var(--accent-yellow);
    }
    .foresight-content ul li h4 {
        font-size: 1.2rem;
        color: var(--text-light);
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    .foresight-content ul li h4 i { color: var(--accent-yellow); }
    .foresight-content ul li p {
        color: var(--text-light-secondary);
        font-size: 0.95rem;
    }
    .foresight-visual {
        height: 550px;
        position: relative;
        perspective: 1200px;
    }
    .chaos-hologram {
        position: absolute;
        width: 100%;
        height: 100%;
        transform-style: preserve-3d;
        animation: rotate-hologram 40s linear infinite;
    }
    @keyframes rotate-hologram {
        from { transform: rotateY(0deg) rotateX(10deg); }
        to { transform: rotateY(360deg) rotateX(10deg); }
    }
    .chaos-particle {
        position: absolute;
        top: 50%; left: 50%;
        width: 4px; height: 4px;
        background: var(--accent-purple);
        border-radius: 50%;
        box-shadow: 0 0 8px var(--accent-purple);
    }
    .chaos-attractor {
        position: absolute;
        top: 50%; left: 50%;
        width: 30px; height: 30px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(251, 191, 36, 0.5) 0%, rgba(251, 191, 36, 0) 70%);
        animation: pulse-yellow 3s infinite alternate;
    }


    .footer { background-color: var(--bg-dark); border-top: 1px solid var(--border-dark); padding: 80px 0; font-size: 0.95rem; }
    .footer .container { color: var(--text-light-secondary); }
    .footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 2rem; padding-bottom: 3rem; }
    .footer-about h4 { font-size: 1.5rem; color: var(--text-light); margin-bottom: 1rem; }
    .footer-about p { color: var(--text-light-secondary); }
    .footer-col h5 { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light); margin-bottom: 1.5rem; }
    .footer-col ul { list-style: none; padding: 0; }
    .footer-col ul li { margin-bottom: 1rem; }
    .footer-col ul a { color: var(--text-light-secondary); text-decoration: none; transition: var(--transition); }
    .footer-col ul a:hover { color: var(--text-light); }
    .footer-bottom { padding-top: 2rem; border-top: 1px solid var(--border-dark); display: flex; justify-content: space-between; align-items: center; }
    .footer-bottom span { color: var(--text-light-secondary); }
    .social-links { display: flex; gap: 1.5rem; }
    .social-links a { color: var(--text-light-secondary); font-size: 1.2rem; transition: var(--transition); }
    .social-links a:hover { color: var(--text-light); transform: translateY(-2px); }


    @media (max-width: 1400px) {
      .c5isr-dashboard { grid-template-columns: 300px 1fr; height: auto; }
      .c5isr-analysis-panel { grid-row: 2; grid-column: 1 / 3; }
    }
    @media (max-width: 1200px) {
      .hero-grid { grid-template-columns: 1fr; text-align: center; }
      .hero-content { order: 2; padding-top: 4rem; }
      .hero-content::before, .hero-content::after { display: none; }
      .hero-globe-container { order: 1; height: 450px; margin: 0 auto; width: 100%; }
      .hero-actions { justify-content: center; }
    }
    @media (max-width: 992px) {
      .section { padding: 80px 0; }
      .title { font-size: clamp(2rem, 8vw, 2.8rem); }
      .fullscreen-menu-grid { grid-template-columns: 1fr; gap: 3rem; }
      .fullscreen-menu-col, .fullscreen-menu-col.main-nav, .fullscreen-menu-col.sub-nav { grid-column: span 1; }
      .fullscreen-menu-col.main-nav ul li a { font-size: 2rem; }
      .c5isr-dashboard, #asset-management-panel, #reporting-panel { grid-template-columns: 1fr; height: auto; min-height: auto; }
      .c5isr-map-container { min-height: 400px; }
      .c5isr-intel-feed, .c5isr-analysis-panel { grid-column: 1; grid-row: auto; }
      .footer-grid { grid-template-columns: 1fr 1fr; }
      .footer-about { grid-column: 1 / -1; margin-bottom: 2rem; }
      .arch-nexus-grid { grid-template-columns: 1fr; gap: 2rem; }
      .nexus-core { display: none; }
      .neuromorphic-container { grid-template-columns: 1fr; grid-template-areas: "human" "core" "output"; gap: 1rem; }
      .neuro-human, .neuro-output { text-align: center; }
      .neuro-human h3 { flex-direction: row; }
      .neuro-pathway { display: none; }
      .foresight-container { grid-template-columns: 1fr; }
      .foresight-visual { margin-top: 4rem; height: 400px; }
    }
    @media (max-width: 768px) {
      .hero-section { min-height: 0; height: auto; padding: 120px 0 80px 0; }
      .hero-content { padding-top: 2rem; }
      .hero-globe-container { height: 350px; }
      .footer-grid { grid-template-columns: 1fr; }
      .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
      .c5isr-controls { flex-direction: column; max-width: 100%; }
      .c5isr-tab-btn.view-switch { border-left: none; border-top: 1px solid var(--border-dark); margin-left: 0; }
      .nav-btn { display: none; }
      .pipeline-line { left: 20px; }
      .pipeline-card { width: calc(100% - 40px); left: 40px !important; margin-left: 0; }
      .pipeline-card:nth-child(even) { left: 40px !important; margin-left: 0; }
      .pipeline-card::before, .pipeline-card::after { display: none; }
    }
    @media (max-width: 480px) {
      .container, .container-full { padding: 0 1rem; }
      .btn { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
      .hero-actions { flex-direction: column; align-items: center; }
      .hero-globe-container { height: 300px; }
      .modal-content { width: 95%; }
      .modal-header h3 { font-size: 1.2rem; }
      .modal-body { padding: 1rem; font-size: 0.8rem; }
      .nexus-card { padding: 1.5rem; }
      .nexus-card h3 { font-size: 1.3rem; }
      .neuro-panel { padding: 1.5rem; }
      .foresight-visual { height: 350px; }
    }