/* ================================================================
   UKRAINIAN DEFENCE HUB - Main Stylesheet
   freedomua.tech — css/main.css
   Fonts: Geist, Geist Mono, Outfit
   ================================================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #08090C;
  color: #9CA3AF;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
}

p, li, input, textarea, select {
  font-family: 'Geist', sans-serif;
}

/* ================================================================
   NAVBAR
   ================================================================ */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 88px;
  background: rgba(8,9,12,0.4);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgb(30,41,59);
  box-shadow: 0 10px 24px rgba(0,0,0,0.4);
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(8,9,12,0.75);
  box-shadow: 0 14px 32px rgba(0,0,0,0.5);
}

.navbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-img { width: 44px; height: 44px; object-fit: contain; }

.logo-text { display: flex; flex-direction: column; }

.logo-title {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: #F3F4F6;
  letter-spacing: 1.5px;
  line-height: 1;
}

.logo-subtitle {
  display: block;
  font-family: 'Geist Mono', monospace;
  font-weight: 500;
  font-size: 9px;
  color: #C5A059;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.4;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #9CA3AF;
  text-decoration: none !important;
  border: none !important;
  background: none !important;
  padding: 0 !important;
  position: relative;
  letter-spacing: 0.3px;
  transition: color 0.3s;
}

.nav-links a.active {
  font-weight: 600;
  color: #F3F4F6;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: #C5A059;
  transition: width 0.3s;
}

.nav-links a:hover { color: #C5A059; }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid rgba(197,160,89,0.25);
  border-radius: 3px;
  background: transparent;
  text-decoration: none;
  transition: border-color 0.3s;
}

.secure-badge:hover { border-color: #C5A059; }

.pulse-dot {
  width: 6px; height: 6px;
  background: #4ADE80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.secure-text {
  font-family: 'Geist Mono', monospace;
  font-weight: 600;
  font-size: 10px;
  color: #C5A059;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #C5A059;
  transition: all 0.3s;
}

/* ================================================================
   HERO
   ================================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(8,9,12,0.3) 0%,
    rgba(8,9,12,0.55) 50%,
    rgba(8,9,12,1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 40px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid rgba(197,160,89,0.3);
  border-radius: 4px;
  background: rgba(8,9,12,0.4);
  font-family: 'Geist Mono', monospace;
  font-weight: 500;
  font-size: 11px;
  color: #C5A059;
  letter-spacing: 3px;
  margin-bottom: 40px;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(64px, 10vw, 140px);
  line-height: 0.95;
  color: #F3F4F6;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: #9CA3AF;
  max-width: 600px;
  margin: 0 auto 48px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-app-line {
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  color: #6B7280;
}

.hero-app-line span {
  color: #C5A059;
  font-weight: 600;
}

/* ================================================================
   BUTTONS (Primary / Secondary)
   ================================================================ */

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: #C5A059;
  border: 1px solid #C5A059;
  border-radius: 6px;
  color: #08090C;
  font-family: 'Geist', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 28px rgba(197,160,89,0.3);
}

.btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: rgba(8,9,12,0.5);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 6px;
  color: #F3F4F6;
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-label {
  position: relative;
  z-index: 2;
}

/* Chromatic aberration */
.btn-primary::before,
.btn-primary::after,
.btn-secondary::before,
.btn-secondary::after {
  content: attr(data-text);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  font-family: 'Geist', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.btn-primary::before,
.btn-secondary::before {
  color: rgba(255,0,0,0.7);
  text-shadow: -2px 0 red;
}

.btn-primary::after,
.btn-secondary::after {
  color: rgba(0,255,255,0.7);
  text-shadow: 2px 0 cyan;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
  opacity: 0.5;
  animation: chromaRed 0.1s infinite alternate;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
  opacity: 0.5;
  animation: chromaCyan 0.1s infinite alternate;
}

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
    transparent, transparent 2px,
    rgba(0,0,0,0.08) 2px, rgba(0,0,0,0.08) 4px);
  pointer-events: none;
  opacity: 0;
  z-index: 3;
  transition: opacity 0.3s;
}

.btn-primary:hover .scanlines,
.btn-secondary:hover .scanlines { opacity: 1; }

.btn-primary:hover,
.btn-secondary:hover {
  animation: tvGlitch 0.15s ease-in-out 2;
  filter: sepia(0.3) brightness(1.1);
}

@keyframes tvGlitch {
  0%   { transform: translate(0); }
  20%  { transform: translate(-3px, 2px); }
  40%  { transform: translate(3px, -1px); }
  60%  { transform: translate(-1px, -2px); }
  80%  { transform: translate(2px, 1px); }
  100% { transform: translate(0); }
}

@keyframes chromaRed {
  from { transform: translate(calc(-50% - 2px), -50%); }
  to   { transform: translate(calc(-50% + 1px), -50%); }
}

@keyframes chromaCyan {
  from { transform: translate(calc(-50% + 2px), -50%); }
  to   { transform: translate(calc(-50% - 1px), -50%); }
}

/* ================================================================
   SECTIONS & TYPOGRAPHY
   ================================================================ */

section { padding: 100px 0; position: relative; }

.section-header { text-align: center; margin-bottom: 64px; }

.section-title,
.section-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(36px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  color: #F3F4F6;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: #9CA3AF;
  max-width: 720px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  padding: 4px 10px;
  background: rgba(8,9,12,0.5);
  border: 1px solid rgba(197,160,89,0.25);
  border-radius: 2px;
  color: #C5A059;
  font-family: 'Geist Mono', monospace;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.text-golden {
  background: linear-gradient(135deg, #C5A059 0%, #E8D8B8 40%, #C5A059 70%, #A88A3D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.heading-glow {
  color: #E8D8B8;
  text-shadow:
    0 0 20px rgba(197,160,89,0.4),
    0 0 40px rgba(197,160,89,0.2),
    0 0 80px rgba(197,160,89,0.1);
}

.text-shimmer {
  background: linear-gradient(90deg,
    #C5A059 0%, #E8D8B8 25%, #FFFFFF 50%, #E8D8B8 75%, #C5A059 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ================================================================
   LAYOUT GRIDS
   ================================================================ */

.tactical-board,
.mission-grid,
.directives-grid,
.updates-grid,
.process-grid,
.phase-grid,
.cards-grid {
  display: grid;
  gap: 24px;
}

.tactical-board { grid-template-columns: repeat(3, 1fr); }
.mission-grid { grid-template-columns: 1fr 1fr; }
.directives-grid { grid-template-columns: repeat(3, 1fr); }
.updates-grid { grid-template-columns: repeat(3, 1fr); }
.process-grid { grid-template-columns: repeat(4, 1fr); }
.phase-grid { grid-template-columns: repeat(4, 1fr); }

/* ================================================================
   GLASSMORPHISM CARDS
   ================================================================ */

.glass-card {
  padding: 32px;
  border-radius: 14px;
  border: 1px solid rgba(197,160,89,0.25);
  background: rgba(10,13,20,0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(10,13,20,0.85);
  border-color: rgba(197,160,89,0.4);
  transform: translateY(-4px);
}

.glass-card h3,
.glass-step h3,
.glass-agency h3 {
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  color: #F3F4F6;
  margin-bottom: 12px;
}

.glass-step {
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(197,160,89,0.25);
  background: rgba(10,13,20,0.8);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.glass-agency {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(197,160,89,0.4);
  background: rgba(10,13,20,0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-decoration: none;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================================
   METRICS
   ================================================================ */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.metric-box {
  text-align: center;
  padding: 40px 24px;
  border-right: 1px solid rgb(30,41,59);
}

.metric-box:last-child { border-right: none; }

.metric-value {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 56px;
  font-weight: 900;
  color: #E8D8B8;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  display: block;
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #9CA3AF;
}

/* ================================================================
   FORMS
   ================================================================ */

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-size: 13px;
  color: #E5E7EB;
  font-weight: 500;
}
.form-label .required { color: #C5A059; margin-left: 4px; }
.form-control {
  padding: 14px 18px;
  background: rgba(10,13,20,0.6);
  border: 1px solid rgba(197,160,89,0.25);
  border-radius: 6px;
  color: #F3F4F6;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-control:focus { outline: none; border-color: #C5A059; box-shadow: 0 0 0 3px rgba(197,160,89,0.15); }
.form-control::placeholder { color: #6B7280; }

.form-card { max-width: 900px; margin: 0 auto; padding: 48px; }

.uploader {
  border: 2px dashed rgba(197,160,89,0.25);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.uploader:hover { background: rgba(197,160,89,0.05); border-color: #C5A059; }

/* ================================================================
   ALLOCATION / CRYPTO
   ================================================================ */

.allocations-list { display: flex; flex-direction: column; gap: 16px; }
.allocation-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid rgba(197,160,89,0.25);
  border-radius: 6px;
}
.allocation-value { color: #E8D8B8; font-weight: 700; }

.crypto-list { display: flex; flex-direction: column; gap: 16px; }
.crypto-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid rgba(197,160,89,0.25);
  border-radius: 6px;
}
.crypto-address {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: #6B7280;
  word-break: break-all;
}

/* ================================================================
   AGENCIES
   ================================================================ */

.agencies-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.agency-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 32px;
  border: 1px solid rgba(197,160,89,0.25);
  border-radius: 8px;
  background: rgba(10,13,20,0.7);
  text-decoration: none;
  min-width: 160px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.agency-badge img { width: 48px; height: 48px; object-fit: contain; }
.agency-badge span { color: #9CA3AF; font-size: 13px; font-weight: 500; }

.agency-badge:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: #C5A059;
  box-shadow:
    0 10px 40px rgba(197,160,89,0.2),
    0 0 20px rgba(197,160,89,0.1);
}

.agency-badge:hover img {
  filter: brightness(1.2) drop-shadow(0 0 8px rgba(197,160,89,0.4));
}

/* ================================================================
   FOOTER
   ================================================================ */

.udh-footer {
  padding: 80px 0 32px;
  border-top: 1px solid rgb(30,41,59);
  background: #0F111A;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-links h4 {
  color: #E5E7EB;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-links a {
  display: block;
  color: #9CA3AF;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-links a:hover { color: #C5A059; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgb(30,41,59);
  font-size: 12px;
  color: #6B7280;
}

/* ================================================================
   MODAL
   ================================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s;
  padding: 24px;
}

.modal-overlay.active { display: flex; opacity: 1; }

.modal-content {
  max-width: 640px;
  width: 100%;
  padding: 40px;
  border-radius: 14px;
  background: rgba(10,13,20,0.8);
  border: 1px solid rgba(197,160,89,0.25);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
}

.modal-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  color: #E8D8B8;
}

.modal-body {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(8,9,12,0.6);
  border: 1px solid rgba(197,160,89,0.25);
  border-radius: 8px;
  text-decoration: none;
  color: #F3F4F6;
  transition: all 0.3s;
}

.store-btn:hover {
  background: rgba(197,160,89,0.1);
  border-color: #C5A059;
}

.app-features { list-style: none; margin-top: 16px; }
.app-features li { padding: 4px 0; font-size: 14px; color: #9CA3AF; }
.app-features li::before { content: '✓ '; color: #C5A059; margin-right: 8px; }

.modal-dismiss {
  display: block;
  margin: 24px auto 0;
  background: none;
  border: none;
  color: #6B7280;
  font-size: 12px;
  letter-spacing: 2px;
  cursor: pointer;
  text-transform: uppercase;
}

.modal-dismiss:hover { color: #C5A059; }

/* ================================================================
   MISC / ACCESSIBILITY
   ================================================================ */

.skip-link {
  position: fixed;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 8px 16px;
  background: #C5A059;
  color: #08090C;
  font-weight: 700;
  font-size: 13px;
  border-radius: 4px;
  transition: top 0.2s;
}

.skip-link:focus { top: 16px; outline: 2px solid #fff; }

#ember-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
}

blockquote {
  border-left: 2px solid #C5A059;
  padding-left: 16px;
  margin: 16px 0;
  color: #E5E7EB;
  font-style: italic;
}

ul li { color: #9CA3AF; margin-bottom: 6px; }
