@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Plus+Jakarta+Sans:wght@300;400;600;700&display=swap');

:root {
  --bg-dark: #070709;
  --bg-darker: #040405;
  --bg-card: #121318;
  --bg-card-hover: #191b22;
  --blood-red: #990000;
  --blood-red-bright: #cc0000;
  --blood-red-dim: rgba(153, 0, 0, 0.25);
  --forest-green: #14281e;
  --forest-green-accent: #224233;
  --grey-dark: #1b1c22;
  --grey-border: #2c2e38;
  --grey-light: #9a9da8;
  --ivory: #f2ede4;
  --ivory-muted: #bcbaa3;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-eerie: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(153, 0, 0, 0.15);
}

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

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

body {
  background-color: var(--bg-dark);
  color: var(--ivory);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(153, 0, 0, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(20, 40, 30, 0.15) 0%, transparent 50%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Slim Unstuck Header */
.site-header {
  position: relative;
  width: 100%;
  background: rgba(7, 7, 9, 0.95);
  border-bottom: 1px solid var(--grey-border);
  z-index: 1000;
  padding: 0.65rem 1.5rem;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ivory);
}

.brand-logo svg {
  width: 28px;
  height: 28px;
  fill: var(--blood-red-bright);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ivory);
  text-shadow: 0 0 10px rgba(153, 0, 0, 0.5);
}

.brand-name span {
  color: var(--blood-red-bright);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  color: var(--ivory-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  padding: 0.4rem 0;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ivory);
  text-shadow: 0 0 8px rgba(242, 237, 228, 0.4);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--blood-red-bright);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-cta {
  background: linear-gradient(135deg, var(--blood-red), #660000);
  color: var(--ivory);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(153, 0, 0, 0.3);
  transition: var(--transition);
}

.header-cta:hover {
  background: linear-gradient(135deg, var(--blood-red-bright), var(--blood-red));
  box-shadow: 0 0 18px rgba(204, 0, 0, 0.6);
  transform: translateY(-1px);
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Main Content Container */
main {
  flex: 1;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 6rem 1.5rem;
  background: linear-gradient(to bottom, rgba(7,7,9,0.7), rgba(7,7,9,0.95)), url('images/photo-1509198397868-475647b2a1e5.png') center/cover no-repeat;
  border-bottom: 1px solid var(--grey-border);
  text-align: center;
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(153, 0, 0, 0.25);
  border: 1px solid var(--blood-red);
  color: #ff8888;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 900;
  color: var(--ivory);
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.hero-title span {
  color: var(--blood-red-bright);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--ivory-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Button Styles */
.btn-primary {
  background: var(--blood-red);
  color: var(--ivory);
  padding: 0.85rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(153, 0, 0, 0.4);
}

.btn-primary:hover {
  background: var(--blood-red-bright);
  box-shadow: 0 0 25px rgba(204, 0, 0, 0.7);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--forest-green);
  color: var(--ivory);
  padding: 0.85rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  border: 1px solid var(--forest-green-accent);
}

.btn-secondary:hover {
  background: var(--forest-green-accent);
  box-shadow: 0 0 20px rgba(34, 66, 51, 0.6);
  transform: translateY(-2px);
}

/* Section Common */
.section {
  padding: 5rem 0;
}

.section-darker {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--grey-border);
  border-bottom: 1px solid var(--grey-border);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  color: var(--blood-red-bright);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  color: var(--ivory);
  letter-spacing: 1px;
}

.section-desc {
  color: var(--grey-light);
  max-width: 650px;
  margin: 0.75rem auto 0;
  font-size: 1rem;
}

/* Grid Layouts */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

/* Eerie Card Design */
.eerie-card {
  background: var(--bg-card);
  border: 1px solid var(--grey-border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.eerie-card:hover {
  transform: translateY(-5px);
  border-color: var(--blood-red);
  box-shadow: var(--shadow-eerie);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.85) contrast(1.1);
}

.eerie-card:hover .card-img {
  transform: scale(1.08);
  filter: brightness(1) contrast(1.15);
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(7, 7, 9, 0.85);
  border: 1px solid var(--blood-red);
  color: #ff9999;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--grey-light);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--ivory);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-excerpt {
  color: var(--ivory-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.6;
}

.card-action {
  margin-top: auto;
}

.btn-card {
  width: 100%;
  text-align: center;
  background: var(--grey-dark);
  color: var(--ivory);
  border: 1px solid var(--grey-border);
  padding: 0.7rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  transition: var(--transition);
  cursor: pointer;
}

.eerie-card:hover .btn-card {
  background: var(--blood-red);
  border-color: var(--blood-red-bright);
  color: var(--ivory);
  box-shadow: 0 0 12px rgba(153, 0, 0, 0.5);
}

/* Classified Vault Styling */
.vault-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.vault-filter-btn {
  background: var(--grey-dark);
  color: var(--grey-light);
  border: 1px solid var(--grey-border);
  padding: 0.55rem 1.25rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
}

.vault-filter-btn:hover,
.vault-filter-btn.active {
  background: var(--blood-red);
  color: var(--ivory);
  border-color: var(--blood-red-bright);
  box-shadow: 0 0 12px rgba(153, 0, 0, 0.4);
}

.classified-stamp {
  position: absolute;
  top: 1rem;
  left: 1rem;
  border: 2px solid var(--blood-red-bright);
  color: var(--blood-red-bright);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.15rem 0.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transform: rotate(-5deg);
  background: rgba(7, 7, 9, 0.85);
  box-shadow: 0 0 8px rgba(204, 0, 0, 0.3);
}

/* Telemetry Grid inside Vault Cards */
.telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: rgba(7, 7, 9, 0.6);
  border: 1px solid var(--grey-border);
  padding: 0.65rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

.telemetry-item {
  font-size: 0.78rem;
}

.telemetry-label {
  color: var(--grey-light);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  display: block;
}

.telemetry-value {
  color: #ff9999;
  font-weight: 700;
  font-family: monospace;
}

/* Redacted text styling */
.redacted-text {
  background-color: var(--blood-red);
  color: transparent;
  user-select: none;
  padding: 0 4px;
  border-radius: 2px;
  cursor: help;
}

.redacted-text:hover {
  background-color: var(--blood-red-bright);
}

/* Containment warning badge */
.containment-warning {
  background: rgba(153, 0, 0, 0.15);
  border-left: 3px solid var(--blood-red-bright);
  padding: 0.5rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: #ffaaaa;
}

/* Vault Modal Inspection Styles */
.vault-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 4, 5, 0.92);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vault-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.vault-modal-box {
  background: var(--bg-card);
  border: 2px solid var(--blood-red);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 6px;
  box-shadow: 0 0 40px rgba(153, 0, 0, 0.5);
  position: relative;
  padding: 2.5rem 2rem 2rem;
}

.vault-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: var(--grey-dark);
  border: 1px solid var(--grey-border);
  color: var(--ivory);
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.vault-modal-close:hover {
  background: var(--blood-red);
  border-color: var(--blood-red-bright);
}

.vault-modal-header {
  border-bottom: 1px solid var(--grey-border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.vault-modal-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--ivory);
  margin-top: 0.5rem;
}

.vault-modal-body {
  font-size: 0.95rem;
  color: var(--ivory-muted);
  line-height: 1.7;
}

.vault-modal-body h4 {
  font-family: var(--font-heading);
  color: var(--ivory);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

.modal-telemetry-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.85rem;
}

.modal-telemetry-table th,
.modal-telemetry-table td {
  border: 1px solid var(--grey-border);
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.modal-telemetry-table th {
  background: var(--grey-dark);
  color: var(--ivory);
  font-family: var(--font-heading);
}

.modal-telemetry-table td {
  background: rgba(7, 7, 9, 0.5);
  font-family: monospace;
}

/* Detail Pages Layout */
.article-header {
  padding: 4rem 1.5rem 2rem;
  background: linear-gradient(to bottom, var(--bg-darker), var(--bg-dark));
  border-bottom: 1px solid var(--grey-border);
}

.article-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--grey-border);
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.article-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  font-size: 1.05rem;
  color: var(--ivory-muted);
  line-height: 1.8;
}

.article-body h2 {
  font-family: var(--font-heading);
  color: var(--ivory);
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  border-left: 3px solid var(--blood-red-bright);
  padding-left: 1rem;
}

.article-body h3 {
  font-family: var(--font-heading);
  color: var(--ivory);
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.info-box {
  background: var(--grey-dark);
  border: 1px solid var(--grey-border);
  border-left: 4px solid var(--blood-red);
  padding: 1.5rem;
  border-radius: 4px;
  margin: 2rem 0;
}

.info-box h4 {
  color: var(--ivory);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Feature Grid / Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--grey-border);
  padding: 1.5rem;
  text-align: center;
  border-radius: 6px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--blood-red-bright);
  font-weight: 700;
}

.stat-label {
  color: var(--grey-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contact Form */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--grey-border);
  padding: 2.5rem;
  border-radius: 6px;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--grey-border);
  padding: 2.5rem;
  border-radius: 6px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ivory);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--grey-border);
  border-radius: 4px;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--blood-red-bright);
  box-shadow: 0 0 10px rgba(153, 0, 0, 0.3);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

/* Legal Pages Styling */
.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--grey-border);
  padding: 3rem;
  border-radius: 6px;
  margin: 3rem 0 5rem;
}

.legal-content h2 {
  font-family: var(--font-heading);
  color: var(--ivory);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  border-bottom: 1px solid var(--grey-border);
  padding-bottom: 0.5rem;
}

.legal-content p, .legal-content li {
  color: var(--ivory-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-content ul {
  margin: 1rem 0 1.5rem 1.5rem;
}

/* Universal Footer */
.site-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--grey-border);
  padding: 4rem 1.5rem 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--grey-light);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--ivory);
  margin-bottom: 1.25rem;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--grey-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--blood-red-bright);
  padding-left: 4px;
}

.footer-address {
  color: var(--grey-light);
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.6;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-border);
  text-align: center;
  color: var(--grey-light);
  font-size: 0.85rem;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(18, 19, 24, 0.98);
  border-top: 2px solid var(--blood-red);
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.8);
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 0.9rem;
  color: var(--ivory-muted);
  flex: 1;
  min-width: 280px;
}

.cookie-text a {
  color: var(--blood-red-bright);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
}

.btn-cookie-accept {
  background: var(--blood-red);
  color: var(--ivory);
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.btn-cookie-accept:hover {
  background: var(--blood-red-bright);
}

.btn-cookie-decline {
  background: transparent;
  color: var(--grey-light);
  border: 1px solid var(--grey-border);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.btn-cookie-decline:hover {
  color: var(--ivory);
  border-color: var(--ivory);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-darker);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--grey-border);
    gap: 1rem;
  }
  .nav-menu.active {
    display: flex;
  }
  .header-cta {
    display: none;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-section {
    padding: 4rem 1rem;
  }
}