/* --------------------------------------------------
   KONFLIKT - Modern Tactical RTS Landing Page CSS
   Theme: Tactical Wargame / Dark Military Tech
   Colors Synced with src/ui/theme.ts & chrome.css
-------------------------------------------------- */

:root {
  /* Color Palette (Synced with core game repo) */
  --bg-darker: #0a0d11;                  /* Ground color */
  --bg-dark: #101316;                    /* Panel background context */
  --bg-card: rgba(16, 19, 22, 0.92);     /* Panel background */
  --bg-card-hover: rgba(23, 28, 35, 0.9);/* Panel-2 background */
  
  --primary: #6aa9e0;                    /* Fixed UI Accent - Slate/Command Blue */
  --primary-hover: #8fc2ef;              /* Lighter blue hover */
  --primary-glow: rgba(106, 169, 224, 0.08);
  --primary-glow-bright: rgba(106, 169, 224, 0.16);
  
  --accent: #6aa9e0;                     /* Neutral blue accent */
  --accent-hover: #8fc2ef;
  --accent-glow: rgba(106, 169, 224, 0.08);

  --text-primary: #e9edf1;               /* Text primary */
  --text-secondary: #8b94a0;             /* Text secondary */
  --text-muted: #5a6470;                 /* Text dim */
  
  --border-subtle: rgba(255, 255, 255, 0.08);       /* Hairline */
  --border-focus: rgba(255, 255, 255, 0.13);         /* Border */
  --border-focus-bright: rgba(255, 255, 255, 0.22);  /* Border Bright */
  
  --victory: #86d19a;                    /* Victory Green */
  --defeat: #e0776f;                     /* Defeat Red */
  
  --glass-bg: rgba(10, 13, 17, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Fonts */
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --transition-fast: 130ms ease;
  --transition-normal: 340ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* offset for sticky navbar */
}

body {
  background-color: var(--bg-darker);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.65rem 1.25rem;
  border-radius: 5px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
  text-transform: uppercase;
}

.btn-primary {
  background-color: var(--primary-glow-bright);
  color: #eaf3fb;
  border: 1px solid rgba(106, 169, 224, 0.5);
  box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary:hover {
  background-color: rgba(106, 169, 224, 0.26);
  border-color: var(--primary-hover);
  box-shadow: 0 0 25px rgba(106, 169, 224, 0.2);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-focus);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--border-focus-bright);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-hover);
  border: 1px solid rgba(106, 169, 224, 0.4);
}

.btn-outline:hover {
  background-color: var(--primary-glow);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-disabled, .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed !important;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
}

.btn-large {
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
}

.text-highlight {
  color: var(--primary-hover);
  background: linear-gradient(135deg, var(--primary-hover) 0%, #a2cbf2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphic Navigation Bar */
.navbar-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: background-color var(--transition-fast), padding var(--transition-fast);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-brand .brand-link {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

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

/* Hero Section with Prominent Background Image */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 2rem 60px;
  background-image: url('assets/hero.jpg');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Lightened to let the hero wargame screenshot emerge prominently */
  background: 
    linear-gradient(rgba(10, 13, 17, 0.15) 0%, var(--bg-darker) 98%),
    linear-gradient(90deg, rgba(10, 13, 17, 0.55) 0%, rgba(10, 13, 17, 0) 50%, rgba(10, 13, 17, 0.55) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 2rem;
  /* Dark text shadow to guarantee readability over the clear image */
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}

.badge-modern {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--primary);
  border: 1px solid rgba(106, 169, 224, 0.4);
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  background-color: var(--primary-glow);
  margin-bottom: 1.5rem;
  animation: pulse-border 3s infinite alternate;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #e2e8f0;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

.hero-footer-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 3rem;
  margin-top: auto;
  background-color: rgba(16, 19, 22, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem 2.5rem;
  border-radius: 6px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.stat-divider {
  width: 1px;
  background-color: var(--border-subtle);
}

/* Sections Common Layout */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 2rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Features/Mechanics Section */
.features-section {
  background-color: var(--bg-dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem 2rem;
  border-radius: 6px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-hover);
  box-shadow: 0 10px 30px var(--primary-glow);
  background-color: var(--bg-card-hover);
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
  border-radius: 4px;
  background-color: var(--primary-glow);
  border: 1px solid rgba(106, 169, 224, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVGs inside CSS matching game accent color #6aa9e0 */
.icon-suppression {
  background: var(--primary-glow) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%236aa9e0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"/></svg>') no-repeat center;
  background-size: 20px;
}

.icon-los {
  background: var(--primary-glow) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%236aa9e0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>') no-repeat center;
  background-size: 20px;
}

.icon-logistics {
  background: var(--primary-glow) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%236aa9e0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>') no-repeat center;
  background-size: 20px;
}

.icon-armor {
  background: var(--primary-glow) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%236aa9e0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="10" rx="2"/><path d="M12 2v9M8 5h8"/></svg>') no-repeat center;
  background-size: 20px;
}

.feature-name {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.feature-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Tactics / Timeline Section */
.tactics-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.tactics-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background-color: var(--border-subtle);
}

.timeline-step {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
  position: relative;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.step-num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 2px solid rgba(106, 169, 224, 0.6);
  color: var(--primary-hover);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
}

.step-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2rem;
  flex-grow: 1;
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.step-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
  background: 
    linear-gradient(rgba(10, 13, 17, 0.92), rgba(10, 13, 17, 0.92)),
    url('assets/hero.jpg') no-repeat center;
  background-size: cover;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.cta-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 100px 2rem;
}

.cta-title {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.cta-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

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

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  display: block;
  margin-bottom: 1rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 550px;
}

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

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-border {
  from {
    border-color: rgba(106, 169, 224, 0.4);
    box-shadow: 0 0 10px rgba(106, 169, 224, 0.1);
  }
  to {
    border-color: var(--primary-hover);
    box-shadow: 0 0 20px rgba(106, 169, 224, 0.25);
  }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
    height: 70px;
  }
  
  .nav-menu {
    display: none; /* simple burger menu fallback */
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-footer-stats {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    width: 100%;
  }
  
  .stat-divider {
    width: 100%;
    height: 1px;
  }
  
  .timeline-step {
    gap: 1.5rem;
  }
  
  .tactics-timeline::before {
    left: 19px;
  }
  
  .step-num {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links ul {
    justify-content: center;
  }
}
