:root {
  --bg-void: #08090c;
  --bg-panel: rgba(12, 15, 22, 0.75);
  --grid-line: #12161f;
  --steel-dark: #1e2533;
  --steel-mid: #2d3748;
  --steel-muted: #4a5568;
  --titanium: #e2e8f0;
  --hazard-orange: #ff3f00;
  --hazard-glow: rgba(255, 63, 0, 0.35);
  --font-display: 'Arial Black', 'Impact', 'Helvetica Neue', sans-serif;
  --font-mono: 'Courier Prime', 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

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

html,
body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-void);
  color: var(--titanium);
  font-family: var(--font-mono);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  selection-background-color: var(--hazard-orange);
  selection-color: var(--bg-void);
}

::selection {
  background: var(--hazard-orange);
  color: var(--bg-void);
}

/* Technical background grid & subtle CRT scanlines */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.95) 20%, rgba(0, 0, 0, 0.25) 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.95) 20%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(255, 255, 255, 0.015) 3px,
    rgba(0, 0, 0, 0.2) 4px
  );
  pointer-events: none;
  z-index: 10;
}

/* Ambient core glow */
.ambient-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 680px;
  height: 680px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(255, 63, 0, 0.07) 0%,
    rgba(45, 55, 72, 0.05) 45%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Main viewport frame */
.hud-frame {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

/* Outer structural border with corner reticles */
.hud-frame::before {
  content: "";
  position: fixed;
  inset: clamp(0.75rem, 2vw, 1.5rem);
  border: 1px solid var(--steel-dark);
  pointer-events: none;
  z-index: 2;
}

/* Corner brackets */
.corner {
  position: fixed;
  width: 18px;
  height: 18px;
  border-color: var(--hazard-orange);
  border-style: solid;
  pointer-events: none;
  z-index: 3;
}

.corner-tl {
  top: clamp(0.75rem, 2vw, 1.5rem);
  left: clamp(0.75rem, 2vw, 1.5rem);
  border-width: 2px 0 0 2px;
}

.corner-tr {
  top: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  border-width: 2px 2px 0 0;
}

.corner-bl {
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  left: clamp(0.75rem, 2vw, 1.5rem);
  border-width: 0 0 2px 2px;
}

.corner-br {
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  border-width: 0 2px 2px 0;
}

/* Top & Bottom HUD Telemetry Bars */
.hud-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel-muted);
  padding: 0.25rem 0.5rem;
  user-select: none;
}

.hud-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--hazard-orange);
  box-shadow: 0 0 8px var(--hazard-orange);
  display: inline-block;
  animation: pulse-beacon 2.8s infinite ease-in-out;
}

.hud-accent {
  color: var(--titanium);
  font-weight: 700;
}

.hud-hazard {
  color: var(--hazard-orange);
}

/* Center Stage */
.core-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  gap: clamp(1.75rem, 4vh, 3rem);
}

/* Logo presentation */
.logo-container {
  position: relative;
  width: clamp(230px, 34vmin, 360px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-container::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px dashed var(--steel-mid);
  opacity: 0.65;
  animation: slow-rotate 60s linear infinite;
}

.corp-logo {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  filter: drop-shadow(0 0 28px rgba(0, 0, 0, 0.85));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.logo-container:hover .corp-logo {
  transform: scale(1.02);
  filter: drop-shadow(0 0 24px rgba(255, 63, 0, 0.18));
}

/* Statement Block */
.statement-wrapper {
  position: relative;
  max-width: 880px;
  padding: 1.5rem 2.25rem;
  border-left: 3px solid var(--hazard-orange);
  border-right: 3px solid var(--hazard-orange);
  background: linear-gradient(
    90deg,
    rgba(255, 63, 0, 0.04) 0%,
    rgba(12, 15, 22, 0.85) 15%,
    rgba(12, 15, 22, 0.85) 85%,
    rgba(255, 63, 0, 0.04) 100%
  );
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.statement-wrapper::before,
.statement-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--hazard-orange) 0%,
    var(--steel-mid) 15%,
    var(--steel-mid) 85%,
    var(--hazard-orange) 100%
  );
}

.statement-wrapper::before {
  top: 0;
}

.statement-wrapper::after {
  bottom: 0;
}

.directive-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  color: var(--hazard-orange);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.main-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.35rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--titanium);
  text-wrap: balance;
}

/* Subtle hazard underline bar */
.hazard-divider {
  margin: 1.15rem auto 0;
  width: 64px;
  height: 3px;
  background-color: var(--hazard-orange);
  box-shadow: 0 0 12px var(--hazard-glow);
}

@keyframes pulse-beacon {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.92);
  }
}

@keyframes slow-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .hud-bar {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }

  .hud-hide-mobile {
    display: none;
  }

  .statement-wrapper {
    padding: 1.25rem 1.1rem;
  }

  .main-text {
    letter-spacing: 0.06em;
  }
}
