/* ==========================================================
   THREATPOINT CORE DESIGN SYSTEM & SHARED COMPONENTS
   File: /assets/css/threatpoint-core.css
   ========================================================== */

/* 1. System Variables & Color Tokens */
:root {
  --bg-base: #06090e;
  --bg-surface: #0b111a;
  --bg-surface-elevated: #111a26;
  --bg-card: rgba(14, 22, 34, 0.75);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(245, 130, 32, 0.35);

  --brand-tangerine: #f58220;
  --brand-tangerine-glow: rgba(245, 130, 32, 0.22);
  --brand-cyan: #00d2ff;
  --brand-green: #00e676;
  --brand-red: #ff334b;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Global Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(245, 130, 32, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 85% 25%, rgba(0, 210, 255, 0.04) 0%, transparent 40%);
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* 3. Top Announcement Banner */
.top-announcement-bar {
  background: #090f17;
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 16px;
  font-size: 0.84rem;
  position: relative;
  z-index: 1001;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.top-bar-tag {
  background: var(--brand-tangerine);
  color: #06090e;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.top-bar-text {
  color: var(--text-muted);
}

.top-bar-cta {
  color: var(--brand-tangerine);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.top-bar-cta:hover {
  text-decoration: underline;
}

/* 4. Site Header & Brand Logo */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 9, 14, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  position: relative;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
}

.brand-logo-svg {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: none;
}

/* Brand Typographic Reticle */
.brand-title {
  display: inline-flex;
  align-items: center;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.threat-text {
  color: #ffffff;
}

.tangerine-text {
  color: var(--brand-tangerine);
  display: inline-flex;
  align-items: center;
}

.target-slot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}

.ghost-o {
  visibility: hidden;
  opacity: 0;
  user-select: none;
  pointer-events: none;
}

.target-o {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.95em;
  height: 0.95em;
  overflow: visible;
}

.outer-ring, .inner-ring {
  stroke: var(--brand-tangerine);
  stroke-width: 8;
  fill: none;
}

.crosshair-axis {
  stroke: var(--brand-tangerine);
  stroke-width: 8;
  stroke-linecap: square;
}

.center-target-dot {
  fill: var(--brand-tangerine);
}

.brand-dim {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--border-subtle);
}

/* 5. Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link.active {
  color: var(--brand-tangerine);
}

/* 6. Button Classes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  gap: 8px;
}

.btn-primary {
  background: var(--brand-tangerine);
  color: #06090e;
  font-weight: 700;
  border-color: var(--brand-tangerine);
}

.btn-primary:hover {
  background: #ff9138;
  box-shadow: 0 4px 20px rgba(245, 130, 32, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-nav {
  background: rgba(245, 130, 32, 0.12);
  color: var(--brand-tangerine);
  border-color: rgba(245, 130, 32, 0.35);
}

.btn-nav:hover {
  background: var(--brand-tangerine);
  color: #06090e;
  box-shadow: 0 0 16px var(--brand-tangerine-glow);
}

.btn-dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 8px var(--brand-green);
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* 7. Mobile Navigation & Drawer */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 9px 11px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  background: rgba(245, 130, 32, 0.12);
  border-color: rgba(245, 130, 32, 0.4);
  color: var(--brand-tangerine);
}

.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #080d15;
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 24px 28px;
  box-shadow: 0 24px 36px rgba(0, 0, 0, 0.9);
  flex-direction: column;
  gap: 16px;
  z-index: 1000;
}

.mobile-nav-drawer.open {
  display: flex;
}

.drawer-section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-top: 6px;
  margin-bottom: 2px;
}

.drawer-link-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-drawer .nav-link {
  font-size: 0.96rem;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav-drawer .nav-link:hover {
  background: rgba(245, 130, 32, 0.1);
  border-color: rgba(245, 130, 32, 0.35);
  color: var(--brand-tangerine);
}

.drawer-arrow {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* 8. Global Site Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #04070b;
  padding: 56px 0 36px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
}

.footer-brand-block {
  max-width: 480px;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.footer-brand-title {
  font-size: 1.25rem;
}

.footer-location {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--brand-tangerine);
  letter-spacing: 0.04em;
}

.footer-tagline {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--brand-tangerine);
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 14px;
}

/* 9. Shared Responsive Rules */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand-dim {
    display: none;
  }

  .top-announcement-bar {
    font-size: 0.78rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
  }

  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 414px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-title {
    font-size: 1.28rem;
  }

  .logo-wrapper {
    width: 38px;
    height: 38px;
  }

  .brand-logo-img, .brand-logo-svg {
    width: 38px;
    height: 38px;
  }
}