/*!
 * Uncharted Industries (unchartedindustries.com) — Global Logistics, Secure Transport & IT Consulting
 */

/* ==========================================================================
   1. LOCAL SELF-HOSTED WEB FONTS (.WOFF2)
   ========================================================================== */
@font-face {
  font-family: 'UI Display';
  src: url('/fonts/ui-display-extrabold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'UI Sans';
  src: url('/fonts/ui-sans-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'UI Sans';
  src: url('/fonts/ui-sans-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'UI Mono';
  src: url('/fonts/ui-mono-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   2. DESIGN TOKENS & MODERN CSS RESET
   ========================================================================== */
:root {
  --bg-abyss: #05070B;
  --bg-sector: #090E17;
  --bg-card: rgba(12, 18, 29, 0.86);
  --bg-card-hover: rgba(17, 25, 40, 0.95);
  --horizon-amber: #F59E0B;
  --horizon-gold: #FBBF24;
  --telemetry-cyan: #38BDF8;
  --telemetry-ice: #7DD3FC;
  --stealth-emerald: #10B981;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-amber: rgba(245, 158, 11, 0.38);
  --font-display: 'UI Display', system-ui, -apple-system, sans-serif;
  --font-sans: 'UI Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'UI Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-abyss);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-abyss);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

::selection {
  background: var(--horizon-amber);
  color: #05070B;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   3. CARTOGRAPHIC TELEMETRY GRID & ACCENT UTILITIES
   ========================================================================== */
.bg-cartographic-grid {
  background-color: var(--bg-abyss);
  background-image:
    radial-gradient(circle at 18% 15%, rgba(245, 158, 11, 0.08), transparent 40%),
    radial-gradient(circle at 84% 22%, rgba(56, 189, 248, 0.07), transparent 42%),
    radial-gradient(circle at 50% 88%, rgba(16, 185, 129, 0.05), transparent 45%),
    linear-gradient(to right, rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 52px 52px, 52px 52px;
}

.font-mono-tech {
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.text-horizon-gradient {
  background: linear-gradient(125deg, #FFFFFF 0%, #FDE68A 35%, #F59E0B 68%, #38BDF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  padding-bottom: 0.16em;
  padding-right: 0.08em;
  overflow: visible;
}

/* Top Horizon Reconnaissance Bar */
.horizon-accent-bar {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #F59E0B 0%, #38BDF8 52%, #10B981 100%);
}

/* ==========================================================================
   4. LAYOUT SHELL & CONTAINERS
   ========================================================================== */
.container-shell {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.command-card-shell {
  position: relative;
  background: linear-gradient(165deg, rgba(11, 16, 26, 0.94) 0%, rgba(5, 8, 14, 0.98) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  box-shadow:
    0 28px 75px -20px rgba(0, 0, 0, 0.9),
    0 0 45px -15px rgba(245, 158, 11, 0.08),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */
.command-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 2.25rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(5, 7, 11, 0.82);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: 0.65rem;
  border: 1px solid var(--border-amber);
  background: #070B12;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.14);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.brand-lockup:hover .brand-emblem {
  transform: scale(1.04);
  border-color: var(--horizon-gold);
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.24rem;
  letter-spacing: 0.03em;
  color: #FFFFFF;
  line-height: 1.15;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--horizon-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-right: 0.5rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-secondary);
  transition: color 0.18s ease;
}

.nav-link:hover {
  color: var(--horizon-gold);
}

/* ==========================================================================
   6. HERO SECTION & INTERACTIVE GEOSPATIAL TELEMETRY
   ========================================================================== */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 2.75rem 2.25rem 2.5rem;
  align-items: center;
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 3.5rem 3rem 3rem;
  }
}

.clearance-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--horizon-gold);
  margin-bottom: 1.25rem;
}

.beacon-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--horizon-amber);
  box-shadow: 0 0 10px var(--horizon-amber);
  animation: pulseBeacon 2.2s infinite ease-in-out;
}

@keyframes pulseBeacon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.15rem, 4.1vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 1.2rem;
}

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.74;
  color: var(--text-secondary);
  max-width: 62ch;
  margin-bottom: 1.6rem;
}

.hero-lead strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Spec Badges */
.sector-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.sector-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.78rem;
  border-radius: 0.45rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: #E2E8F0;
}

.sector-pill span.dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--horizon-amber);
}

/* Buttons */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.btn-horizon {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.82rem 1.45rem;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #05070B;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 10px 28px -8px rgba(245, 158, 11, 0.52);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn-horizon:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 14px 32px -6px rgba(245, 158, 11, 0.68);
}

.btn-command-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.82rem 1.2rem;
  border-radius: 0.6rem;
  background: rgba(14, 21, 35, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.btn-command-secondary:hover {
  border-color: var(--horizon-gold);
  color: var(--horizon-gold);
  background: rgba(20, 29, 48, 0.95);
}

/* Right Column: Interactive Geospatial & Convoy Telemetry Card */
.radar-card {
  background: rgba(7, 11, 19, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 1rem;
  padding: 1.25rem;
  position: relative;
  box-shadow: inset 0 0 36px rgba(0, 0, 0, 0.85);
}

.radar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.mode-switch-group {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.45rem;
  padding: 0.18rem;
  gap: 0.2rem;
}

.mode-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  padding: 0.24rem 0.55rem;
  border-radius: 0.3rem;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.mode-btn.active {
  background: var(--horizon-amber);
  color: #05070B;
  font-weight: 600;
}

.radar-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.radar-metric {
  background: rgba(12, 18, 30, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.5rem;
  padding: 0.55rem 0.65rem;
}

.radar-metric-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

.radar-metric-value {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--horizon-gold);
  font-weight: 500;
}

/* ==========================================================================
   7. THREE CORE DIVISIONS (LOGISTICS, SECURE TRANSPORT, IT CONSULTING)
   ========================================================================== */
.section-block {
  border-top: 1px solid var(--border-subtle);
  padding: 2.75rem 2.25rem;
}

@media (min-width: 980px) {
  .section-block {
    padding: 3.25rem 3rem;
  }
}

.section-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--horizon-gold);
  margin-bottom: 0.35rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  color: #FFFFFF;
  line-height: 1.22;
}

.divisions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

@media (min-width: 860px) {
  .divisions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.division-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.95rem;
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.division-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-amber);
  background: var(--bg-card-hover);
}

.division-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.division-icon {
  width: 46px;
  height: 46px;
  border-radius: 0.65rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--horizon-gold);
}

.division-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.division-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.22rem;
  color: #FFFFFF;
  margin-bottom: 0.6rem;
}

.division-desc {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.66;
  margin-bottom: 1.25rem;
}

.division-specs {
  list-style: none;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.division-specs li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #CBD5E1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.division-specs li::before {
  content: "▸";
  color: var(--horizon-gold);
}

/* ==========================================================================
   8. OPERATIONAL DOCTRINE SECTION
   ========================================================================== */
.doctrine-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 780px) {
  .doctrine-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.doctrine-item {
  background: rgba(8, 13, 23, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-left: 3px solid var(--horizon-amber);
  border-radius: 0.65rem;
  padding: 1.25rem 1.35rem;
}

.doctrine-item.tier-cyan {
  border-left-color: var(--telemetry-cyan);
}

.doctrine-item.tier-emerald {
  border-left-color: var(--stealth-emerald);
}

.doctrine-tag {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--horizon-gold);
  margin-bottom: 0.25rem;
}

.doctrine-item.tier-cyan .doctrine-tag {
  color: var(--telemetry-ice);
}

.doctrine-item.tier-emerald .doctrine-tag {
  color: #34D399;
}

.doctrine-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  color: #FFFFFF;
  margin-bottom: 0.45rem;
}

.doctrine-text {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.58;
}

/* ==========================================================================
   9. FOOTER & TOAST
   ========================================================================== */
.command-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(4, 6, 10, 0.94);
  padding: 1.65rem 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.toast-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.15rem;
  border-radius: 0.65rem;
  background: #09101C;
  border: 1px solid var(--horizon-amber);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
  transform: translateY(130%);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  pointer-events: none;
}

.toast-banner.active {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 640px) {
  .command-header {
    padding: 1.1rem 1.25rem;
  }
  .hero-grid, .section-block {
    padding: 1.85rem 1.25rem;
  }
  .nav-links {
    display: none;
  }
}
