:root {
  --hal-black: #000000;
  --hal-aluminum: #A5A9B4;
  --hal-red-core: #FF0000;
  --hal-red-outer: #8B0000;
  --hal-red-bloom: rgba(255, 0, 0, 0.4);
  --grid-line: rgba(165, 169, 180, 0.05);
}

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

body {
  background-color: var(--hal-black);
  color: var(--hal-aluminum);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1rem;
}

.hal-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
}

.hal-container {
  text-align: center;
  z-index: 1;
  width: 100%;
  max-width: 900px;
}

/* Header */
.hal-header {
  margin-bottom: 4rem;
}

.hal-eye-container {
  width: 220px;
  height: 220px;
  margin: 0 auto 2rem auto;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 0, 0, 0.3);
  box-shadow: 0 0 40px var(--hal-red-bloom), 0 0 80px rgba(255, 0, 0, 0.15);
}

.hal-eye-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hal-title {
  font-family: 'Michroma', sans-serif;
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--hal-aluminum);
  margin-bottom: 0.5rem;
}

.hal-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(165, 169, 180, 0.6);
  margin-bottom: 1.5rem;
}

.hal-patent-badge {
  font-family: 'Michroma', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--hal-red-core);
  border: 1px solid rgba(255, 0, 0, 0.3);
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(255, 0, 0, 0.05);
}

/* Hero */
.hal-hero {
  margin-bottom: 6rem;
}

.hal-card {
  border: 1px solid var(--hal-aluminum);
  padding: 2.5rem;
  background: rgba(0, 0, 0, 0.5);
  display: inline-block;
}

.hal-manifesto {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  line-height: 2.2;
  text-transform: uppercase;
}

/* Architecture Image */
.hal-blueprint-section {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 6rem auto;
}

.hal-image-container {
  position: relative;
  width: 100%;
  border: 1px solid var(--hal-aluminum);
  background: #000;
  overflow: hidden;
  line-height: 0;
}

.hal-schematic-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.9;
  filter: contrast(1.1) brightness(0.9);
}

.hal-scan-line {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(165, 169, 180, 0.4);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
  z-index: 2;
  animation: scan 6s linear infinite;
}

@keyframes scan {
  0%   { top: -2px; }
  100% { top: 100%; }
}

.hal-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.05) 0px,
    rgba(0, 0, 0, 0.05) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 3;
}

/* Diagnostics & Directives */
.hal-diagnostics, .hal-directives, .hal-uplink {
  margin-bottom: 6rem;
  width: 100%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hal-section-title {
  font-family: 'Michroma', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  color: rgba(165, 169, 180, 0.4);
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--grid-line);
  padding-bottom: 0.5rem;
  text-align: left;
}

.hal-section-title-centered {
  text-align: center;
}

.hal-diag-row {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--grid-line);
  text-align: left;
}

.hal-diag-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hal-diag-bar {
  height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height 0.3s step-end;
}

.hal-diag-row:hover .hal-diag-bar {
  height: 30px;
  margin-top: 1rem;
}

.hal-progress-container { width: 75%; height: 2px; background: var(--grid-line); }
.hal-progress-bar       { width: 0%; height: 100%; background: var(--hal-aluminum); }
.hal-gear-spinner       { animation: spin 2s linear infinite; display: inline-block; }

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Roadmap */
.hal-roadmap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.hal-directive-card {
  border: 1px solid var(--grid-line);
  padding: 2rem;
  text-align: left;
  position: relative;
  background: rgba(165, 169, 180, 0.02);
}

.hal-phase {
  font-family: 'Michroma', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--hal-red-core);
  position: absolute;
  top: -0.5rem;
  background: var(--hal-black);
  padding: 0 1rem;
}

.hal-dir-title {
  font-family: 'Michroma', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  color: var(--hal-aluminum);
}

.hal-dir-desc {
  font-size: 0.9rem;
  color: rgba(165, 169, 180, 0.6);
  line-height: 1.6;
}

.hal-dir-status {
  font-family: 'Michroma', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  margin-top: 1rem;
  display: block;
}

/* Redacted hover reveal */
.hal-redacted-text {
  background-color: var(--hal-aluminum);
  color: var(--hal-aluminum);
  cursor: crosshair;
  transition: all 0.1s step-end;
}

.hal-directive-card.redacted:hover .hal-redacted-text {
  background-color: transparent;
  color: var(--hal-red-core);
  text-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
  animation: flicker 0.15s infinite;
}

@keyframes flicker {
  0%   { opacity: 1; }
  50%  { opacity: 0.7; }
  100% { opacity: 1; }
}

/* Uplink */
.hal-uplink-card {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.hal-link {
  font-family: 'Michroma', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--hal-aluminum);
  text-decoration: none;
  cursor: pointer;
  display: block;
  padding: 0.5rem;
  transition: color 0.2s, text-shadow 0.2s;
}

.hal-link:hover {
  color: var(--hal-red-core);
  text-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
}

/* Footer */
.hal-footer {
  margin-top: 4rem;
  padding-bottom: 4rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hal-visitor-tracker {
  font-family: 'Michroma', sans-serif;
  font-size: 0.8rem;
  display: flex;
  gap: 1.5rem;
  border: 1px solid var(--grid-line);
  padding: 0.75rem 1.5rem;
}

.hal-status-code {
  font-family: 'Michroma', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  opacity: 0.4;
}

/* Responsive */
@media (min-width: 768px) {
  .hal-roadmap { grid-template-columns: repeat(2, 1fr); }
}
