/* ============================================================
   THE LAST GENERAL — style.css
   Cinematic · Military · Minimalist · Yellow accents
   ============================================================ */

/* --- TOKENS --- */
:root {
  --yellow:   #f5c400;
  --yellow-dim: rgba(245, 196, 0, 0.15);
  --white:    #f0ede6;
  --off-white: #c8c4bc;
  --grey:     #7a7870;
  --dark:     #0a0a08;
  --dark-2:   #111109;
  --dark-3:   #1a1a16;
  --border:   rgba(245, 196, 0, 0.2);
  --font-display: 'Anton', sans-serif;
  --font-ui:      'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --max-w: 1100px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--dark);
  color: var(--off-white);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--white); text-decoration: none; }
a:hover { color: var(--yellow); }
ul { list-style: none; }


/* --- NAV --- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10, 10, 8, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
}
.site-nav.scrolled { background: rgba(10, 10, 8, 0.97); }
.nav-inner {
  max-width: var(--max-w);
  margin: auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo img { height: 28px; }
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--off-white);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--yellow); }
.nav-cta { margin-left: 16px; }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s var(--ease);
}

/* --- MOBILE MENU --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--dark-2);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 20px; text-align: center; }
.mobile-menu a {
  font-family: var(--font-ui);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}
.mobile-menu a:hover { color: var(--yellow); }


/* --- BUTTONS --- */
.btn-steam {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  color: #0a0a08;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 3px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-steam img { height: 22px; width: auto; }
.btn-steam:hover { background: #ffd230; color: #0a0a08; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  color: var(--off-white);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 3px;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); transform: translateY(-1px); }

/* --- SECTION STRUCTURE --- */
.section { padding: 100px 24px; }
.section-inner { max-width: var(--max-w); margin: auto; }
.section-label {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--white);
  line-height: 1;
  margin-bottom: 48px;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--dark) url('images/background_image_dark.jpg') center/cover no-repeat;
  padding: 0 24px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(10,10,8,0.3) 0%,
    rgba(10,10,8,0.55) 60%,
    rgba(10,10,8,0.95) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: fadeUp 1s var(--ease) both;
}
.hero-logo { width: min(600px, 85vw); }
.hero-tagline {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--off-white);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 8px; }
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  opacity: 0.5;
}
.hero-scroll-hint span {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--yellow);
  animation: scrollPulse 2s ease-in-out infinite;
}


/* --- TRAILER --- */
.trailer-section { background: var(--dark-2); padding: 80px 24px; }
.youtube-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border: 1px solid var(--border);
}
.youtube-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* --- ABOUT --- */
.about-section { background: var(--dark); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text p { margin-bottom: 16px; color: var(--off-white); }
.about-text blockquote {
  margin-top: 28px;
  padding-left: 20px;
  border-left: 3px solid var(--yellow);
  font-family: var(--font-ui);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  font-style: normal;
}
.about-features { display: flex; flex-direction: column; gap: 24px; }
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 2px;
  transition: border-color 0.2s;
}
.feature-item:hover { border-color: var(--border); }
.feature-icon {
  font-size: 0;
  width: 8px;
  height: 8px;
  background: var(--yellow);
  flex-shrink: 0;
  margin-top: 8px;
}
.feature-item strong {
  display: block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.feature-item p { margin: 0; color: var(--grey); font-size: 0.9rem; }

/* --- SCREENSHOTS --- */
.screenshots-section { background: var(--dark-2); }
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.screenshot-item { overflow: hidden; aspect-ratio: 16/9; }
.screenshot-item.large { grid-column: span 2; }
.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.3s;
  filter: brightness(0.85);
}
.screenshot-item:hover img { transform: scale(1.04); filter: brightness(1); }

/* --- TIMELINE --- */
.timeline-section { background: var(--dark); }
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dark-3);
  border: 1px solid var(--border);
}
.timeline-item.active::before { background: var(--yellow); border-color: var(--yellow); }
.timeline-date {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 6px;
}
.timeline-content strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.timeline-content p { color: var(--grey); font-size: 0.9rem; }


/* --- PRESS KIT --- */
.presskit-section { background: var(--dark-2); }
.presskit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.presskit-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px;
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
  gap: 16px;
}
.presskit-card:hover { border-color: var(--yellow); background: var(--yellow-dim); }
.presskit-card-label {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
}
.presskit-card-action {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--yellow);
}

/* --- CONTACT --- */
.contact-section { background: var(--dark); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-col p { color: var(--off-white); margin-bottom: 20px; }
.contact-email {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--yellow);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}
.contact-email:hover { color: var(--white); }
.socials { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.socials a { opacity: 0.75; transition: opacity 0.2s, transform 0.2s; }
.socials a:hover { opacity: 1; transform: translateY(-2px); }
.socials img { width: 44px; height: 44px; }

.newsletter-form { display: flex; gap: 0; margin-top: 8px; }
.newsletter-form input[type="email"] {
  flex: 1;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 3px 0 0 3px;
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input[type="email"]:focus { border-color: var(--yellow); }
.newsletter-form input[type="email"]::placeholder { color: var(--grey); }
.newsletter-form button {
  background: var(--yellow);
  color: #0a0a08;
  border: none;
  border-radius: 0 3px 3px 0;
  padding: 12px 20px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: #ffd230; }

/* --- FOOTER --- */
.site-footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
}
.footer-inner { max-width: var(--max-w); margin: auto; }
.footer-logo { height: 24px; margin: 0 auto 20px; opacity: 0.6; }
.footer-copy { font-size: 0.85rem; color: var(--grey); margin-bottom: 8px; }
.footer-disclaimer { font-size: 0.75rem; color: #4a4a44; }


/* --- ANIMATIONS --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(0.5); opacity: 1; }
}

/* Reveal on scroll (JS adds .revealed) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-inner { grid-template-columns: 1fr; gap: 60px; }
  .presskit-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshot-item.large { grid-column: span 1; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .mobile-menu { display: flex; }
}

@media (max-width: 600px) {
  .section { padding: 72px 20px; }
  .presskit-grid { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"] {
    border-right: 1px solid var(--border);
    border-radius: 3px;
    border-bottom: none;
    border-radius: 3px 3px 0 0;
  }
  .newsletter-form button { border-radius: 0 0 3px 3px; }
  .socials img { width: 38px; height: 38px; }
}


/* ============================================================
   MILITARY INTRO OVERLAY
   ============================================================ */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* CRT scanlines */
.intro-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.18) 3px,
    rgba(0, 0, 0, 0.18) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.intro-inner {
  position: relative;
  z-index: 2;
  width: min(680px, 92vw);
  font-family: 'Courier New', Courier, monospace;
  color: #b8a000;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.5vh, 20px);
  padding: 0 4px;
}

.intro-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #3a3000;
  padding-bottom: 10px;
  font-size: clamp(0.6rem, 2vw, 0.75rem);
  letter-spacing: 0.2em;
  color: #5a4a00;
}
.intro-sys {
  color: #f5c400;
  font-weight: bold;
  font-size: clamp(0.6rem, 1.8vw, 0.7rem);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.intro-blink { animation: blink 1s step-end infinite; color: #f5c400; }

.intro-lines {
  min-height: clamp(180px, 40vh, 260px);
  font-size: clamp(0.72rem, 2.4vw, 0.9rem);
  line-height: clamp(1.5, 3.5vh, 1.9);
  color: #c8a800;
  white-space: pre-wrap;
  overflow: hidden;
}
.intro-lines .line {
  display: block;
  opacity: 0;
  animation: lineFadeIn 0.15s forwards;
}
.intro-lines .line.dim    { color: #4a3a00; }
.intro-lines .line.bright { color: #f5c400; font-weight: bold; }
.intro-lines .line.warn   { color: #ff4400; }
.intro-lines .cursor::after {
  content: '█';
  animation: blink 0.7s step-end infinite;
  color: #f5c400;
}

@keyframes lineFadeIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

.intro-bar {
  height: 3px;
  background: #1a1400;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.intro-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--yellow);
  transition: width 0.12s linear;
}

/* Large tap target on mobile, smaller on desktop */
.intro-skip {
  align-self: flex-end;
  background: none;
  border: 1px solid #3a3000;
  color: #5a4a00;
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(0.65rem, 2vw, 0.68rem);
  letter-spacing: 0.15em;
  padding: clamp(10px, 2vw, 6px) clamp(18px, 4vw, 14px);
  min-height: 44px;
  min-width: 120px;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.intro-skip:hover,
.intro-skip:active { border-color: var(--yellow); color: var(--yellow); }

/* Prevent body scroll while intro is visible */
body.intro-active { overflow: hidden; }

/* Mobile-specific overrides */
@media (max-width: 480px) {
  .intro-inner { gap: 10px; }
  .intro-lines { min-height: 0; flex: 1; }
  .intro-overlay { align-items: flex-start; padding-top: max(48px, 10vh); }
}
