/* CSS variables for engineering theme design tokens (Original Dark Theme with Lighter Card) */
:root {
  --bg-primary: #0A0B0D;      /* Original deep dark background */
  --bg-header: #0A0B0D;       /* Seamless dark header/footer background */
  --bg-card: #21242D;         /* Lighter (not light) central card banner */
  
  --border-color: #2E333F;    /* Subtle border for the card */
  --border-active: #3D85C6;   /* Steel Blue accent for crosshairs */
  --logo-accent: #3D85C6;     /* Active indicator / accent */
  
  --text-main: #FFFFFF;       /* Light text for dark theme */
  --text-muted: #94A3B8;      /* Muted text */
  --text-dark: #64748B;       /* Darker grey text for details */
  --text-light: #FFFFFF;
  
  --font-tech: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --grid-color: rgba(255, 255, 255, 0.02);
  --grid-sub: rgba(255, 255, 255, 0.007);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Google Fonts Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* Technical Grid Background (Original white grid lines on dark background) */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  background-image: 
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px),
    linear-gradient(var(--grid-sub) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-sub) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
  background-position: center center;
}

/* Subtle Glowing Orb in Background (Original blue/teal glow) */
.bg-glow {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(61, 133, 198, 0.12) 0%, rgba(61, 133, 198, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

/* Main Container Layout */
header {
  position: relative;
  z-index: 10;
  padding: 30px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-container {
  display: flex;
  flex-direction: column;
}

.logo {
  font-family: var(--font-tech);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-light);
  text-transform: uppercase;
}

.logo-sub {
  font-family: var(--font-tech);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--text-dark);
  text-transform: uppercase;
  margin-top: 4px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 4px;
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--logo-accent);
  border-radius: 50%;
  animation: pulse-glow 2s infinite ease-in-out;
}

main {
  position: relative;
  z-index: 10;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* Technical Card with Crosshairs */
.maintenance-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 680px;
  padding: 55px 60px;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
}

/* Technical Corner Marks (Crosshairs in Steel Blue) */
.maintenance-card::before,
.maintenance-card::after,
.card-corners::before,
.card-corners::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* Top-Left Corner */
.maintenance-card::before {
  top: -8px;
  left: -8px;
  border-top: 2px solid var(--border-active);
  border-left: 2px solid var(--border-active);
}

/* Top-Right Corner */
.maintenance-card::after {
  top: -8px;
  right: -8px;
  border-top: 2px solid var(--border-active);
  border-right: 2px solid var(--border-active);
}

/* Bottom-Left Corner */
.card-corners::before {
  bottom: -8px;
  left: -8px;
  border-bottom: 2px solid var(--border-active);
  border-left: 2px solid var(--border-active);
}

/* Bottom-Right Corner */
.card-corners::after {
  bottom: -8px;
  right: -8px;
  border-bottom: 2px solid var(--border-active);
  border-right: 2px solid var(--border-active);
}

/* Technical details line indicator */
.card-header-line {
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-active), transparent);
}

/* Card Content Styling */
.card-title {
  font-family: var(--font-tech);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  color: var(--text-main);
  text-transform: uppercase;
}

.card-subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 0;
}

/* Footer Section */
footer {
  position: relative;
  z-index: 10;
  padding: 25px 8%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-header);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 11px;
  color: var(--text-dark);
  font-family: var(--font-tech);
  letter-spacing: 0.05em;
}

/* Animations */
@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.4;
    box-shadow: 0 0 0 0 rgba(61, 133, 198, 0.4);
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
    box-shadow: 0 0 8px 3px rgba(61, 133, 198, 0.6);
  }
}

/* Responsive Styling */
@media (max-width: 768px) {
  header {
    padding: 25px 5%;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .status-indicator {
    align-self: flex-start;
  }
  
  main {
    padding: 20px;
  }
  
  .maintenance-card {
    padding: 40px 30px;
  }
  
  .card-title {
    font-size: 26px;
  }
  
  footer {
    padding: 25px 5%;
  }
}
