/* ========================================
   FIREHAWK FPV — Global Styles
   ======================================== */

/* --- Font Faces --- */
@font-face {
  font-family: 'Orbitron';
  src: url('assets/fonts/Orbitron-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('assets/fonts/BarlowCondensed-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('assets/fonts/Barlow-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

/* --- CSS Variables --- */
:root {
  --orange: #FF5500;
  --orange-hover: #ff6a1a;
  --bg: #0C0C0E;
  --bg-accent: #101014;
  --bg-card: #13131a;
  --border: #1e1e28;
  --border-orange: rgba(255, 85, 0, 0.25);
  --text: #ffffff;
  --text-muted: #8a8a9a;
  --text-dim: #555566;
  --steam-bg: #1B2838;
  --steam-gradient: #C7D5E0;
  --discord-bg: #5865F2;
  --discord-gradient: #C7D5E0;
  --max-width: 1200px;
  --nav-height: 70px;
  --side-pad: 100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.page-exit .nav {
  opacity: 1;
}

body.page-exit .lightbox {
  opacity: 1;
}

body.page-exit > *:not(.nav):not(.lightbox):not(script) {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Subtle fade in for content (not nav) */
body > *:not(.nav):not(.lightbox):not(script) {
  animation: pageIn 0.35s ease;
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.25s; }
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Divider line animation */
.faq-section-divider,
.footer-divider {
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Typography helpers --- */
.font-orbitron { font-family: 'Orbitron', sans-serif; }
.font-space { font-family: 'Space Grotesk', sans-serif; }
.font-barlow-c { font-family: 'Barlow Condensed', sans-serif; }
.font-barlow { font-family: 'Barlow', sans-serif; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section { padding: 100px 0; }

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(12, 12, 14, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 85, 0, 0.1);
}

.nav-inner {
  padding: 0 var(--side-pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* Nav Steam button — btn--sm sizing */
.nav-steam-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--steam-bg), #2a475e);
  border: 1px solid rgba(199, 213, 224, 0.2);
  border-radius: 5px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--steam-gradient);
  transition: all 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-steam-btn img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(0.85) sepia(0.1) saturate(0.5);
}

.nav-steam-btn:hover {
  background: linear-gradient(135deg, #223344, #2a475e);
  border-color: rgba(199, 213, 224, 0.4);
}

/* Nav dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-dropdown-chevron {
  opacity: 0.5;
  transition: transform 0.2s ease;
  vertical-align: middle;
}

.nav-dropdown:hover .nav-dropdown-chevron {
  transform: rotate(180deg);
  opacity: 0.8;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 16px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown-menu-inner {
  background: rgba(16, 16, 20, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 10px 0;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-dropdown-menu a:hover {
  color: var(--text) !important;
  background: rgba(255, 85, 0, 0.08);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-muted);
  transition: all 0.3s ease;
}

/* ========================================
   BUTTONS — Standardised
   Font: Space Grotesk 13px / 500
   Padding: 14px 28px
   Radius: 2px 12px 2px 2px
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 5px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-steam {
  background: linear-gradient(135deg, var(--steam-bg), #2a475e);
  color: var(--steam-gradient);
  border: 1px solid rgba(199, 213, 224, 0.2);
}
.btn-steam:hover {
  background: linear-gradient(135deg, #223344, #2a475e);
  border-color: rgba(199, 213, 224, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-discord {
  background: linear-gradient(135deg, var(--discord-bg), #6d78f7);
  color: #fff;
  border: 1px solid rgba(199, 213, 224, 0.15);
}
.btn-discord:hover {
  background: linear-gradient(135deg, #4752c4, var(--discord-bg));
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.3);
}

.btn-orange {
  background: var(--orange);
  color: #fff;
  border: 1px solid rgba(255, 85, 0, 0.5);
}
.btn-orange:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 85, 0, 0.3);
}

.btn img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

/* Smaller variant for inline/secondary use */
.btn--sm {
  padding: 10px 20px;
  font-size: 12px;
}

/* ========================================
   SECTION LABELS (eyebrow text)
   Font: Space Grotesk 12px / 500
   ======================================== */
.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
}
.section-title--lg { font-size: 42px; }
.section-title--md { font-size: 32px; }
.section-title--sm { font-size: 24px; }

/* ========================================
   STATS ROW
   ======================================== */
.stats-row {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat {
  text-align: center;
  padding: 0 28px;
}
.stat:not(:last-child) {
  border-right: 2px solid var(--orange);
}

.stat-value {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: var(--orange);
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(255, 85, 0, 0.2);
}

.stat-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.stats-row--sm .stat-value { font-size: 24px; }
.stats-row--sm .stat { padding: 0 20px; }

/* ========================================
   CARDS
   ======================================== */
.card {
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  border-color: var(--border-orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.card-text {
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer .container {
  max-width: none;
  padding: 0 var(--side-pad);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 36px;
  width: auto;
}

.footer-socials {
  display: flex;
  gap: 8px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.footer-socials a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-socials img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.footer-columns {
  display: flex;
  gap: 240px;
  margin-bottom: 40px;
}

.footer-col-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-links a {
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}
.footer-col-links a:hover { color: var(--text); }

.footer-divider {
  height: 1px;
  background: var(--border);
  margin: 0 calc(-1 * var(--side-pad)) 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-back-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 5px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(245, 245, 245, 0.1);
  border: none;
}
.footer-back-top:hover {
  color: #ffffff;
  background: rgba(245, 245, 245, 0.35);
  transform: translateY(-2px);
}

.footer-back-top .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-back-top .arrow img {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  :root { --side-pad: 24px; }
  .container { padding: 0 24px; }
  .section { padding: 60px 0; }
  .section-title--lg { font-size: 28px; }
  .section-title--md { font-size: 24px; }

  /* Nav: hamburger dropdown, full width, centered */
  .nav-inner { padding: 0 24px; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    transform: none;
    background: rgba(12, 12, 14, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 24px 24px;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 13px; }

  /* Dropdown shows inline on mobile */
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding-top: 4px;
    min-width: 0;
  }
  .nav-dropdown-menu-inner {
    background: none;
    backdrop-filter: none;
    border: none;
    padding: 0;
    border-radius: 0;
  }
  .nav-dropdown-menu a {
    padding: 6px 0;
    font-size: 12px !important;
    color: var(--text-dim) !important;
  }
  .nav-dropdown-menu a:hover {
    background: none;
  }
  .nav-dropdown-chevron { display: none; }

  /* Steam button inside dropdown */
  .nav-steam-btn-desktop { display: none !important; }
  .nav-mobile-steam { display: block !important; }
  .nav-steam-btn-mobile {
    display: inline-flex !important;
    margin-top: 8px;
    padding: 10px 20px !important;
    font-size: 12px !important;
    width: 100%;
    justify-content: center;
  }

  .nav-toggle { display: flex; }

  .footer-top { flex-direction: column; gap: 20px; }
  .footer-columns { gap: 60px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .stats-row { flex-wrap: wrap; justify-content: center; gap: 0; }
  .stat { padding: 0 14px; }
  .stat-value { font-size: 24px; }
}

@media (max-width: 600px) {
  .footer-columns { flex-direction: column; gap: 30px; }
  .stat { padding: 0 10px; }
  .stat-value { font-size: 20px; }
  .stats-row--sm .stat-value { font-size: 18px; }
}
