

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-green: #00ff41;
  --secondary-green: #00cc33;
  --dark-green: #004411;
  --bg-black: #0a0a0a;
  --bg-dark: #111111;
  --bg-darker: #1a1a1a;
  --text-dim: #88cc88;
  --border-color: #00ff41;
  --glow-color: #00ff41;
  --warning-orange: #ff8800;
  --error-red: #ff4444;
}

body {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  background: var(--bg-black);
  color: var(--primary-green);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* CRT Effects */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 65, 0.03),
    rgba(0, 255, 65, 0.03) 1px,
    transparent 1px,
    transparent 2px
  );
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 20, 0, 0.1) 100%);
}

@keyframes blink-disabled {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--bg-black) 0%, var(--bg-darker) 100%);
  border-bottom: 2px solid var(--border-color);
  padding: 2rem 0 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}








@keyframes logoGlow {
  from { text-shadow: 0 0 20px var(--glow-color); }
  to { text-shadow: 0 0 30px var(--glow-color), 0 0 40px var(--glow-color); }
}

.tagline {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.status-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.status-item {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  background: var(--bg-dark);
}

.status-item .pending {
  color: var(--warning-orange);
}

.status-item .active {
  color: var(--primary-green);
}

/* Navigation */
.main-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--primary-green);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 1px;
}

.nav-link:hover {
  border-color: var(--border-color);
  background: var(--bg-dark);
  text-shadow: 0 0 10px var(--glow-color);
}

/* Hero Section */


.hero-content {
  display: flex;
  justify-content: center;
}

.terminal-window {
  max-width: 600px;
  width: 100%;
  background: var(--bg-black);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
}

.terminal-header {
  background: var(--bg-darker);
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.terminal-title {
  font-weight: 500;
}

.terminal-body {
  padding: 2rem;
}

.terminal-text {
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.8;
}

.prompt {
  color: var(--secondary-green);
  font-weight: 500;
}

.output {
  color: var(--text-dim);
  margin-left: 2rem;
}

.ready {
  color: var(--primary-green);
  font-weight: 700;
  text-shadow: 0 0 10px var(--glow-color);
}

/* Content Sections */
.content-section {
  padding: 4rem 0;
}

.content-section.alt-bg {
  background: var(--bg-dark);
}

.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-green);
  text-shadow: 0 0 15px var(--glow-color);
  letter-spacing: 1px;
}

/* Mission Grid */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.mission-item {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mission-item:hover {
  border-color: var(--secondary-green);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.mission-item h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--secondary-green);
}

/* Programs */
.programs-list {
  display: grid;
  gap: 2rem;
}

.program-card {
  background: var(--bg-black);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.program-card:hover {
  border-color: var(--secondary-green);
  box-shadow: 0 0 25px rgba(0, 255, 65, 0.2);
}

.program-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.program-header h3 {
  font-size: 1.4rem;
  color: var(--primary-green);
}

.program-status {
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.program-status.active {
  background: rgba(0, 255, 65, 0.2);
  color: var(--primary-green);
  border: 1px solid var(--primary-green);
}

.program-status.dev {
  background: rgba(255, 136, 0, 0.2);
  color: var(--warning-orange);
  border: 1px solid var(--warning-orange);
}

.tech-stack {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: var(--bg-darker);
  color: var(--text-dim);
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--dark-green);
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Legal and Support */
.legal-info, .support-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.legal-card, .support-card {
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 8px;
}

.legal-card h3, .support-card h3 {
  color: var(--secondary-green);
  margin-bottom: 1rem;
}

.support-intro {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  color: var(--text-dim);
}

.cta-button {
  background: var(--bg-black);
  color: var(--primary-green);
  border: 2px solid var(--border-color);
  padding: 0.8rem 2rem;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  cursor: pointer;
  border-radius: 4px;
}

.cta-button:hover:not(:disabled) {
  background: var(--primary-green);
  color: var(--bg-black);
  text-shadow: none;
  box-shadow: 0 0 15px var(--glow-color);
}

.cta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Contact */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 8px;
}

.contact-card h3 {
  color: var(--secondary-green);
  margin-bottom: 1rem;
}

.contact-link {
  color: var(--primary-green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.contact-link:hover {
  border-bottom-color: var(--primary-green);
}

/* Footer */
.footer {
  background: var(--bg-darker);
  border-top: 2px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

/* AI Assistant Styles */
.ai-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--bg-black);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  color: var(--primary-green);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 200;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-toggle:hover {
  background: var(--primary-green);
  color: var(--bg-black);
  box-shadow: 0 0 20px var(--glow-color);
}

.ai-window {
  position: fixed;
  bottom: 8rem;
  right: 2rem;
  width: 400px;
  height: 500px;
  background: var(--bg-black);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  z-index: 201;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
}

.ai-window.hidden {
  display: none;
}

.ai-header {
  background: var(--bg-darker);
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-title {
  font-weight: 500;
  color: var(--primary-green);
}

.ai-close {
  background: none;
  border: none;
  color: var(--primary-green);
  font-size: 1.2rem;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-close:hover {
  color: var(--error-red);
}

.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.ai-message {
  margin-bottom: 1rem;
  padding: 0.8rem;
  border-radius: 4px;
}

.ai-message.user {
  background: var(--bg-darker);
  border-left: 3px solid var(--secondary-green);
}

.ai-message.assistant {
  background: rgba(0, 255, 65, 0.05);
  border-left: 3px solid var(--primary-green);
}

.ai-message.system {
  background: rgba(255, 136, 0, 0.1);
  border-left: 3px solid var(--warning-orange);
  color: var(--warning-orange);
}

.ai-input-container {
  display: flex;
  border-top: 1px solid var(--border-color);
}

.ai-input {
  flex: 1;
  background: var(--bg-dark);
  border: none;
  color: var(--primary-green);
  padding: 1rem;
  font-family: inherit;
  outline: none;
}

.ai-input::placeholder {
  color: var(--text-dim);
}

.ai-send {
  background: var(--bg-darker);
  border: none;
  color: var(--primary-green);
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

.ai-send:hover {
  background: var(--primary-green);
  color: var(--bg-black);
}

.ai-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ai-status {
  padding: 0.5rem 1rem;
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}

/* Responsive Design */
/* Mobile Responsiveness - Better Implementation */

/* Fixed logo size */






@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  header {
    padding: 1rem 0 0.5rem;
  }
  
  
  
  
  
  
  
  
  .tagline {
    font-size: 0.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
  }
  
  .status-bar {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .status-item {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    text-align: center;
  }
  
  .main-nav {
    gap: 0.5rem;
    justify-content: center;
  }
  
  .nav-link {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
  }
  
  .section-title {
    font-size: 1.4rem;
    margin-bottom: 2rem;
  }
  
  
  
  .terminal-window {
    margin: 0 0.5rem;
    max-width: none;
  }
  
  .terminal-body {
    padding: 1rem;
    font-size: 0.8rem;
  }
  
  .content-section {
    padding: 2rem 0;
  }
  
  .mission-item,
  .program-card,
  .legal-card,
  .support-card,
  .contact-card {
    padding: 1.5rem;
  }
  
  .program-header h3 {
    font-size: 1.1rem;
  }
  
  .ai-window {
    width: calc(100vw - 1rem);
    right: 0.5rem;
    left: 0.5rem;
    height: 300px;
    bottom: 5rem;
  }
  
  .ai-toggle {
    width: 45px;
    height: 45px;
    bottom: 1rem;
    right: 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.8rem 0 0.5rem;
  }
  
  
  
  
  .tagline {
    font-size: 0.75rem;
  }
  
  .status-item {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
  }
  
  .nav-link {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
  }
  
  .section-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  .terminal-body {
    font-size: 0.7rem;
    line-height: 1.5;
  }
  
  .ai-window {
    height: 250px;
  }
  
  .ai-toggle {
    width: 40px;
    height: 40px;
  }
}

/* Desktop: logo + name on one line */






/* Mobile: allow stacking */
@media (max-width: 768px) {
  
}


/* CRT menu polish */
.nav-toggle:hover {
  text-shadow: 0 0 12px var(--glow-color);
}

.nav-toggle .caret {
  transition: transform 0.3s ease;
}

body.nav-open .nav-toggle .caret {
  transform: rotate(90deg);
}


/* Base header state */
header {
  transition:
    padding 0.35s ease,
    background 0.35s ease;
}







.main-nav {
  transition: gap 0.35s ease;
}

/* Compact state */
body.header-compact header {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

body.header-compact 

body.header-compact 

body.header-compact 

body.header-compact .main-nav {
  gap: 0.75rem;
}

/* ===== INNER WRAPPER (SCALES, NOT REFLOWS) ===== */


/* ===== LOGO ROW ===== */






/* ===== NAV ===== */
.main-nav {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

/* ===== COMPACT STATE ===== */
body.header-compact header {
  height: 72px;
}

body.header-compact 

body.header-compact .tagline,
body.header-compact .status-bar {
  opacity: 0;
  pointer-events: none;
}

/* ===== MOBILE NAV (OVERLAY, NOT REFLOW) ===== */
.nav-toggle {
  display: none;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-block;
    margin-top: 0.5rem;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--primary-green);
    padding: 0.4rem 0.7rem;
    font-family: inherit;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-black);
    flex-direction: column;
    align-items: center;
    display: none;
  }

  body.nav-open .main-nav {
    display: flex;
  }
}





/* === WOPR HEADER SYSTEM v2 (NO-JITTER, PROFESSIONAL) ===
   Strategy:
   - Header is FIXED with constant outer height (no layout reflow)
   - State change uses IntersectionObserver on #header-sentinel (stable on mobile)
   - Animations are transform/opacity only (GPU-friendly)
*/

:root {
  --header-h: 132px;        /* outer fixed header height */
  --header-h-compact: 76px; /* used only for inner scaling math (outer stays fixed) */
}



/* Push page content below fixed header */
body {
  padding-top: var(--header-h);
}

/* Header inner layout */




/* Default (hero) */






.tagline, .status-bar {
  transition: opacity 180ms ease;
}

/* COMPACT state — only transforms/opacity (NO height changes anywhere) */








/* Sentinel should not add visible spacing */
#header-sentinel {
  height: 1px;
}


/* === HERO LOGO SIZE CONTROL (AUTHORITATIVE) === */
.hero-logo,
.hero-logo img,
.hero-logo svg,





.status-bar.hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

/* === HERO LOGO HARD CAP (MOBILE SAFE) === */
@media (max-width: 768px) {
  .hero-logo,
  .hero-logo img,
  .hero-logo svg,
  
}

/* === HERO LAYOUT STABILITY === */
#hero {
  min-height: calc(100vh - 160px);
  padding-top: 1.5rem;
  overflow: hidden;
}

/* === HEADER + STATUS SPACING === */
body:not(.header-compact) #hero {
  margin-top: 0.75rem;
}

/* === HERO SAFE ZONE (PREVENT CLIPPING) === */
#hero {
  padding-top: calc(var(--header-height, 64px) + 1.5rem);
}

.hero-logo,


.hero-title {
  text-align: center;
  line-height: 1.15;
  padding: 0 1rem;
  max-width: 92vw;
  margin: 0 auto;
  word-wrap: break-word;
}

/* === HEADER FIX: STOP OVERLAY MODE === */
header {
  position: relative !important;
  top: auto !important;
  transform: none !important;
}

body {
  padding-top: 0 !important;
}

#hero {
  margin-top: 0 !important;
}

/* === HERO TITLE + LOGO CENTERING === */
.hero-logo,


.hero-title {
  display: block;
  text-align: center;
  margin: 0.5rem auto 1.25rem auto;
}

.nav-links {
  display: flex !important;
  gap: 1rem;
}

.nav-links a {
  color: #00ff00;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
}

.nav-links a:hover {
  color: #00cc00;
}




/* Header fixes */














/* Push content down so header doesn't cover it */
.hero {
    padding-top: 6rem;
}

/* Clean header rules */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: 1rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.header--compact {
    padding: 0.5rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 40px;
    width: auto;
    transition: height 0.3s ease;
}

.site-header.header--compact .logo-image {
    height: 28px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ff00;
    margin: 0;
    transition: font-size 0.3s ease;
}

.site-header.header--compact .logo {
    font-size: 1.1rem;
}

/* Push hero down */
.hero {
    padding-top: 5rem;
}


/* Initial hero header state */
.site-header.header--hero {
    position: fixed;
    background: transparent;
    padding: 1.5rem 0;
}

.site-header.header--hero .logo-container {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.site-header.header--hero .logo-image {
    height: 50px;
}

.site-header.header--hero .logo {
    font-size: 1.8rem;
}

/* Compact state - smaller but VISIBLE */
.site-header.header--compact {
    background: rgba(0, 0, 0, 0.98) !important;
    padding: 0.75rem 0 !important;
}

.site-header.header--compact .logo-image {
    height: 35px !important;
}

.site-header.header--compact .logo {
    font-size: 1.2rem !important;
}

.site-header.header--compact .tagline {
    display: none;
}

/* Fix logo container to NOT stack vertically */
.logo-container {
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem !important;
}


/* COMPACT PROFESSIONAL HEADER */
.site-header {
    position: fixed !important;
    top: 0 !important;
    background: rgba(0, 0, 0, 0.98) !important;
    padding: 0.75rem 0 !important;
    width: 100% !important;
}

.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}

.header-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 2rem !important;
}

.logo-container {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    flex-direction: row !important;
}

.logo-image {
    height: 35px !important;
    width: auto !important;
}

.logo {
    font-size: 1.2rem !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.tagline {
    font-size: 0.75rem !important;
    margin: 0 !important;
    opacity: 0.8 !important;
}

/* MENU ON RIGHT SIDE */
.main-nav {
    display: flex !important;
    gap: 1.5rem !important;
    align-items: center !important;
}

.nav-toggle {
    display: none !important;
}

.nav-link {
    font-size: 0.9rem !important;
    white-space: nowrap !important;
}

/* PUSH HERO DOWN LESS */
.hero {
    padding-top: 4rem !important;
}


/* INITIAL STATE - BIG LOGO */
.site-header.header--hero {
    position: fixed !important;
    background: transparent !important;
    padding: 2rem 0 !important;
}

.site-header.header--hero .header-content {
    flex-direction: column !important;
    text-align: center !important;
}

.site-header.header--hero .logo-container {
    justify-content: center !important;
}

.site-header.header--hero .logo-image {
    height: 60px !important;
}

.site-header.header--hero .logo {
    font-size: 2rem !important;
}

.site-header.header--hero .main-nav {
    margin-top: 1rem !important;
}

/* COMPACT STATE - SHRUNK */
.site-header.header--compact {
    background: rgba(0, 0, 0, 0.98) !important;
    padding: 0.5rem 0 !important;
}

.site-header.header--compact .header-content {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.site-header.header--compact .logo-image {
    height: 35px !important;
}

.site-header.header--compact .logo {
    font-size: 1.2rem !important;
}

.site-header.header--compact .tagline {
    display: none !important;
}

.site-header.header--compact .main-nav {
    margin-top: 0 !important;
}

/* MENU HORIZONTAL */
.main-nav {
    display: flex !important;
    flex-direction: row !important;
    gap: 2rem !important;
    align-items: center !important;
}

/* CENTER EVERYTHING */
.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    width: 100% !important;
}

.header-content {
    width: 100% !important;
}


/* INITIAL STATE - BIG LOGO */
.site-header.header--hero {
    position: fixed !important;
    background: transparent !important;
    padding: 2rem 0 !important;
}

.site-header.header--hero .header-content {
    flex-direction: column !important;
    text-align: center !important;
}

.site-header.header--hero .logo-container {
    justify-content: center !important;
}

.site-header.header--hero .logo-image {
    height: 60px !important;
}

.site-header.header--hero .logo {
    font-size: 2rem !important;
}

.site-header.header--hero .main-nav {
    margin-top: 1rem !important;
}

/* COMPACT STATE - SHRUNK */
.site-header.header--compact {
    background: rgba(0, 0, 0, 0.98) !important;
    padding: 0.5rem 0 !important;
}

.site-header.header--compact .header-content {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.site-header.header--compact .logo-image {
    height: 35px !important;
}

.site-header.header--compact .logo {
    font-size: 1.2rem !important;
}

.site-header.header--compact .tagline {
    display: none !important;
}

.site-header.header--compact .main-nav {
    margin-top: 0 !important;
}

/* MENU HORIZONTAL */
.main-nav {
    display: flex !important;
    flex-direction: row !important;
    gap: 2rem !important;
    align-items: center !important;
}

/* CENTER EVERYTHING */
.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    width: 100% !important;
}

.header-content {
    width: 100% !important;
}


/* RESET AND START CLEAN */
.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: rgba(0, 0, 0, 0.95) !important;
    padding: 1.5rem 0 !important;
    z-index: 1000 !important;
    transition: all 0.3s ease !important;
}

.container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}

.header-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
}

.logo-container {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
}

.logo-image {
    height: 50px !important;
}

.logo {
    font-size: 1.8rem !important;
    white-space: nowrap !important;
}

.tagline {
    font-size: 0.9rem !important;
    text-align: center !important;
}

.main-nav {
    display: flex !important;
    flex-direction: row !important;
    gap: 2rem !important;
    flex-wrap: nowrap !important;
}

.nav-link {
    font-size: 1rem !important;
    white-space: nowrap !important;
}

.nav-toggle {
    display: none !important;
}

/* COMPACT ON SCROLL */
.site-header.header--compact {
    padding: 0.75rem 0 !important;
}

.site-header.header--compact .logo-image {
    height: 35px !important;
}

.site-header.header--compact .logo {
    font-size: 1.3rem !important;
}

.site-header.header--compact .tagline {
    display: none !important;
}

/* PUSH HERO DOWN */
.hero {
    padding-top: 10rem !important;
}


/* FIX HEADER - NO GAP */
.site-header {
    position: fixed !important;
    top: 0 !important;
    background: rgba(0, 0, 0, 0.98) !important;
    padding: 1rem 0 !important;
    z-index: 1000 !important;
}

.header-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
}

/* MOBILE MENU */
.nav-toggle {
    display: block !important;
    background: transparent !important;
    border: 2px solid #00ff00 !important;
    color: #00ff00 !important;
    padding: 0.5rem 1rem !important;
    font-family: 'JetBrains Mono', monospace !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
}

.nav-toggle .caret {
    transition: transform 0.3s ease !important;
    display: inline-block !important;
}

.nav-toggle[aria-expanded="true"] .caret {
    transform: rotate(90deg) !important;
}

/* MENU HIDDEN BY DEFAULT ON MOBILE */
.main-nav {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(0, 0, 0, 0.98) !important;
    border: 2px solid #00ff00 !important;
    border-top: none !important;
    padding: 1rem !important;
    flex-direction: column !important;
    gap: 0 !important;
}

.main-nav.active {
    display: flex !important;
}

.nav-link {
    padding: 1rem !important;
    border-bottom: 1px solid #00ff00 !important;
    text-align: center !important;
    font-family: 'JetBrains Mono', monospace !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.nav-link:last-child {
    border-bottom: none !important;
}

/* DESKTOP MENU */
@media (min-width: 769px) {
    .nav-toggle {
        display: none !important;
    }
    
    .main-nav {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        gap: 2rem !important;
        border: none !important;
        padding: 0 !important;
        background: transparent !important;
    }
    
    .nav-link {
        padding: 0 !important;
        border: none !important;
    }
}

/* REDUCE HERO WHITE SPACE */
.hero {
    padding-top: 6rem !important;
    padding-bottom: 1rem !important;
}

.terminal-window {
    margin-bottom: 2rem !important;
}

/* FIX SHRUNKEN HEADER ALIGNMENT */
.site-header.header--compact .container {
    padding: 0 1rem !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

.site-header.header--compact .header-content {
    justify-content: center !important;
    gap: 2rem !important;
}

/* MAKE LOGO VISIBLE ON FULL HERO */
.site-header.header--hero .logo-image {
    display: block !important;
    opacity: 1 !important;
    height: 50px !important;
}

/* FIX TEXT OVERFLOW */
.logo {
    font-size: 1.3rem !important;
}

/* REDUCE WHITE SPACE */
.terminal-window {
    margin-bottom: 1rem !important;
}

.hero {
    padding-bottom: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

/* Z-INDEX FIX */
.hero {
    position: relative !important;
    z-index: auto !important;
}



/* FORCE LOGO VISIBLE IN HERO */
.site-header .logo-image,
.site-header.header--hero .logo-image {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 45px !important;
}

/* FIX TEXT OVERFLOW - MAKE IT FIT */
.site-header .logo,
.site-header.header--hero .logo {
    font-size: 1.1rem !important;
    white-space: nowrap !important;
}

@media (min-width: 769px) {
    .site-header.header--hero .logo {
        font-size: 1.5rem !important;
    }
}

/* KILL WHITE SPACE AFTER TERMINAL */
.hero {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.terminal-window {
    margin-bottom: 0.5rem !important;
}

section {
    margin-top: 0 !important;
    padding-top: 2rem !important;
}


/* KILL MASSIVE WHITE SPACE */
.hero {
    padding-top: 6rem !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.terminal-window {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

section:not(.hero) {
    padding-top: 1rem !important;
    margin-top: 0 !important;
}

#mission {
    padding-top: 1rem !important;
}


/* KILL WHITE SPACE BELOW TERMINAL */
.hero-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.terminal-window {
    margin-bottom: 0 !important;
}

section#mission {
    margin-top: 0 !important;
    padding-top: 1rem !important;
}

/* WOPR_FORCE_STACK_1768171268 */
body > main > section:first-of-type {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: auto !important;
  height: auto !important;
  padding-bottom: 1rem !important;
}

body > main > section:first-of-type > * {
  margin-bottom: 1rem !important;
}

/* WOPR_WHITE_SPACE_FIX_1768171613 */
main > section:first-of-type {
  min-height: auto !important;
  height: auto !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

section#mission {
  margin-top: 0 !important;
  padding-top: 1rem !important;
}

/* WOPR_FORCE_STACK_LOGO_1768172295 */
@media (max-width: 900px) {
  .hero-content,
  .hero-inner,
  .hero-grid,
  .hero-container,
  .hero-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .hero-logo,
  .hero-logo-large {
    margin-bottom: 1rem !important;
  }
}

/* WOPR_FINAL_HERO_STACK_1768172581 */
#hero .hero-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
}

#hero .hero-logo-large {
  margin: 1.5rem auto 1rem auto !important;
  text-align: center !important;
}


/* WOPR_HERO_SPACING_FIX_1768172619 */
.hero-logo-large {
  margin: 0 !important;
  padding: 0 !important;
}
.hero-content > br {
  display: none !important;
}

.hero-content {
  gap: 0 !important;
  padding-top: 0 !important;
}


/* WOPR_HERO_FIX_1768173022 */


.hero-logo-large {
  text-align: center !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.hero-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}


/* WOPR_KILL_HERO_SPACE_1768174037 */


.hero-content {
  padding: 0 !important;
  margin: 0 !important;
}

.hero-logo-large {
  margin: 0 auto !important;
  padding: 0 !important;
}


/* WOPR_KILL_HERO_SPACE_1768174173 */


.hero-content {
  padding: 0 !important;
  margin: 0 !important;
}

.hero-logo-large {
  margin: 0 auto !important;
  padding: 0 !important;
}


/* WOPR_HERO_SPACING_1768174316 */


.hero-content {
  padding: 0 !important;
  margin: 0 !important;
}

.hero-logo-large {
  margin: 0 auto !important;
  padding: 0 !important;
}


/* WOPR_HERO_SPACING_1768174420 */


.hero-content {
  padding: 0 !important;
  margin: 0 !important;
}

.hero-logo-large {
  margin: 0 auto !important;
  padding: 0 !important;
}


/* WOPR_HERO_BELOW_HEADER_1768174607 */
.hero-section {
  min-height: 0 !important;
  height: auto !important;
  padding: 18em 1rem 0.5rem 1rem !important;
  margin: 0 !important;
}

.hero-content {
  padding: 0 !important;
  margin: 0 !important;
}

.hero-logo-large {
  margin: 0 auto !important;
  padding: 0 !important;
}

/* WOPR_HERO_HEADER_OFFSET_1768174839 */

/* account for fixed header */
#hero {
  padding-top: 7.5rem !important;
}

/* ensure logo is fully visible */
#hero .hero-logo-large {
  margin-top: 0 !important;
  padding-top: 0 !important;
  display: block !important;
  text-align: center !important;
}

/* safety: header stays on top */
.site-header {
  z-index: 9999 !important;
}

/* WOPR_HERO_HEADER_OFFSET_1768174930 */

/* account for fixed header */
#hero {
  padding-top: 7.5rem !important;
}

/* ensure logo is fully visible */
#hero .hero-logo-large {
  margin-top: 0 !important;
  padding-top: 0 !important;
  display: block !important;
  text-align: center !important;
}

/* safety: header stays on top */
.site-header {
  z-index: 9999 !important;
}

/* WOPR_FINAL_HERO_LOGO_TUNE_1768174988 */

@media (max-width: 768px) {
  #hero {
    padding-top: 6rem !important;
  }

  #hero .hero-logo-large img {
    max-width: 220px !important;
    height: auto !important;
  }

  #hero .hero-logo-large {
    margin: 0 auto 0.75rem auto !important;
  }

  #hero .terminal-window {
    margin-top: 0 !important;
  }
}

/* WOPR_CACHE_PROOF_1768175087 */
@media (max-width: 768px) {
  #hero .hero-logo-large img {
    max-width: 220px !important;
    height: auto !important;
  }
}


/* WOPR_HERO_HEADER_FIX_1768175164 */

/* Header sits on top */
.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999 !important;
}

/* Push hero BELOW header */
#hero {
  padding-top: 9rem !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Logo must not be clipped */
#hero .hero-logo-large {
  margin-top: 0 !important;
  position: relative !important;
  z-index: 2 !important;
}

@media (max-width: 768px) {
  #hero {
    padding-top: 10rem !important;
  }
  #hero .hero-logo-large img {
    max-width: 220px !important;
    height: auto !important;
  }
}


/* WOPR_CRT_LINK_COLOR_FIX */
a,
a:visited,
a:hover,
a:active {
  color: #00ff66 !important;
  text-decoration: underline;
}

a:hover {
  text-shadow: 0 0 6px rgba(0,255,102,0.6);
}
\n
/* WOPR_CRT_LINK_NUKE */
body a,
body a:visited,
body a:hover,
body a:active,
body a:focus {
  color: #00ff66 !important;
  text-decoration: underline !important;
  text-shadow: 0 0 6px rgba(0,255,102,0.6) !important;
}
\n
/* WOPR_CRT_LABEL_STYLE */
a[href]::before {
  font-weight: 700;
}

a[href] span,
a[href] strong {
  font-weight: 700;
}

/* Style bracket labels like headers */
a[href] {
  font-size: 1.05rem;
}

a[href]:has(text) {
  font-weight: 600;
}
\n
/* WOPR_LEGAL_LINKS_CRT */
.legal a {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
}
\n
/* WOPR_TERMINAL_INTERACTION_SUBTLE */

/* reserve space so layout never shifts */
a {
  position: relative;
  padding-left: 1.2em;
}

/* caret hidden by default */
a::before {
  content: ">";
  position: absolute;
  left: 0;
  opacity: 0;
  color: #00ff66;
  transition: opacity 120ms ease;
}

/* show caret only on interaction */
a:hover::before,
a:focus-visible::before {
  opacity: 0.9;
}

/* subtle professional glow */
a:hover,
a:focus-visible {
  text-shadow: 0 0 4px rgba(0,255,102,0.35);
  outline: none;
}


/* ================================
   WOPR GLOBAL TERMINAL OVERRIDES
   ================================ */

/* FORCE ALL LINKS GREEN */
a,
a:visited,
a:hover,
a:active,
a:focus {
  color: #00ff66 !important;
  text-decoration: underline !important;
  font-weight: 500;
}

a:hover,
a:focus-visible {
  text-shadow: 0 0 4px rgba(0,255,102,0.35);
  outline: none;
}

/* ASCII LABELS AS HEADERS */
.ascii-label,
.ascii-label + a,
p > .ascii-label {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 1.2rem 0 0.4rem;
  color: #00ff66;
}


/* ================================
   WOPR DOCS SECTION READABILITY
   (HOME PAGE ONLY)
   ================================ */

/* Docs / Legal container spacing */
#mission,
#docs,
.docs,
.legal,
.legal-docs {
  margin-top: 3rem;
}

/* ASCII doc labels like [DOC], [TOS], etc */
.ascii-label,
.legal strong,
.docs strong {
  display: block;
  margin-top: 2.2rem;
  margin-bottom: 0.6rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
}

/* Primary document links */
.ascii-label + a,
.legal strong + a,
.docs strong + a {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Descriptions under links */
.ascii-label + a + p,
.legal a + p,
.docs a + p {
  margin-bottom: 1.6rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* Prevent visual crowding */
.docs a,
.legal a {
  margin-bottom: 0.3rem;
}


/* ================================
   WOPR HOME DOCS READABILITY FIX
   (TARGET REAL MARKUP)
   ================================ */

/* Entire docs area */
section#mission {
  margin-top: 4rem;
}

/* Each document block */
section#mission p {
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

/* ASCII labels like [DOC], [TOS] */
section#mission p strong {
  display: block;
  margin-top: 2.4rem;
  margin-bottom: 0.6rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* Links immediately following labels */
section#mission p strong + a {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Description text */
section#mission p a + br + span,
section#mission p a + br {
  display: block;
  margin-bottom: 1.6rem;
}

/* ================================
   WOPR LEGAL DOCS READABILITY FIX 1768212775
   ================================ */

/* Section container spacing */
section h2:has(+ p),
section h2:has(+ a),
section h2:has(~ a) {
  margin-bottom: 1.25rem;
}

/* Legal document blocks */
section a {
  display: inline-block;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Descriptions under links */
section a + br + span,
section a + br + small,
section a + br {
  display: block;
  margin-bottom: 1.25rem;
  line-height: 1.6;
  opacity: 0.85;
}

/* Improve vertical rhythm globally for text blocks */
section p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* ================================
   WOPR SECTION SPACING FIX 1768212887
   ================================ */

/* Add breathing room after status card */
.content-section {
  margin-top: 3rem !important;
}

/* Specifically space Legal Docs heading */
h2.section-title,
section h2 {
  margin-top: 3.5rem !important;
}
