@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=VT323&display=swap');

:root {
  --bg: #05140C;
  --phosphor: #3BF07E;
  --dim: #0F2A1B;
  --amber: #FFB454;
  --font-display: 'VT323', monospace;
  --font-mono: 'Share Tech Mono', monospace;
}

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

body {
  background-color: var(--bg);
  color: var(--phosphor);
  font-family: var(--font-mono);
  line-height: 1.5;
  position: relative;
  min-height: 100vh;
  /* Faint Grid Overlays */
  background-image:
    linear-gradient(var(--dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--dim) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Scanline Texture */
body::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 9999;
  pointer-events: none;
}

/* Typeography */
::selection { background: var(--phosphor); color: var(--bg); }
a { color: var(--phosphor); text-decoration: none; border-bottom: 1px dotted var(--dim); transition: 0.2s ease-out; }
a:hover { border-bottom-style: solid; border-color: var(--phosphor); text-shadow: 0 0 8px var(--phosphor); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: normal; text-transform: uppercase; letter-spacing: 1px; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 10; }

/* Blinking Cursor */
.cursor {
  display: inline-block;
  width: 10px; height: 1.1em;
  background-color: var(--phosphor);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Header & Nav */
header.top-bar {
  border-bottom: 1px solid var(--dim);
  padding: 15px 0;
  margin-bottom: 40px;
  background: rgba(5, 20, 12, 0.9);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }

.logo-area { display: flex; align-items: center; gap: 15px; font-family: var(--font-display); font-size: 2rem; }
.logo-svg { width: 45px; height: 45px; }

/* Radar Animations */
@keyframes sweep { 100% { transform: rotate(360deg); } }
.radar-sweep { transform-origin: 50px 50px; animation: sweep 3s linear infinite; }
.blip { animation: blip-flash 3s infinite; }
@keyframes blip-flash { 0%, 50% { opacity: 0; } 51%, 100% { opacity: 1; } }

nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav a { text-transform: uppercase; border: none; font-size: 1.1rem; }
nav a::before { content: "["; color: var(--dim); transition: color 0.2s; }
nav a::after { content: "]"; color: var(--dim); transition: color 0.2s; }
nav a:hover::before, nav a:hover::after { color: var(--phosphor); }

/* Buttons */
.btn {
  display: inline-block;
  border: 1px solid var(--phosphor);
  background: transparent;
  color: var(--phosphor);
  padding: 10px 20px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 0 5px rgba(59, 240, 126, 0.1);
  letter-spacing: 1px;
}
.btn:hover {
  background: var(--phosphor);
  color: var(--bg);
  box-shadow: 0 0 15px rgba(59, 240, 126, 0.4);
}
.btn-alert { border-color: var(--amber); color: var(--amber); }
.btn-alert:hover { background: var(--amber); color: var(--bg); box-shadow: 0 0 15px rgba(255, 180, 84, 0.4); }

/* Instrument Panels (Boxes) */
.panel {
  border: 1px solid var(--dim);
  padding: 25px;
  margin-bottom: 30px;
  background: rgba(5, 20, 12, 0.85);
  position: relative;
}
/* Bracket Corners */
.panel::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 12px; height: 12px; border-top: 2px solid var(--phosphor); border-left: 2px solid var(--phosphor);
}
.panel::after {
  content: ""; position: absolute; bottom: -1px; right: -1px;
  width: 12px; height: 12px; border-bottom: 2px solid var(--phosphor); border-right: 2px solid var(--phosphor);
}
.panel-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 15px;
  display: inline-block;
  border-bottom: 1px solid var(--dim);
  width: 100%;
}
.panel-title::before { content: ">> "; color: var(--dim); }

/* Layout Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }

/* Hero Section */
.hero { text-align: center; margin-bottom: 50px; padding: 40px 0; }
.hero h1 { font-size: 5rem; margin-bottom: 15px; text-shadow: 0 0 15px rgba(59, 240, 126, 0.5); }
.hero p { font-size: 1.25rem; max-width: 800px; margin: 0 auto 30px auto; color: #8ef7b5; opacity: 0.8; }
.sys-label { font-size: 0.9rem; color: var(--dim); margin-bottom: 10px; display: block; text-transform: uppercase; }

/* Pricing Data Table */
.pricing-panel { text-align: center; }
.price-value { font-family: var(--font-display); font-size: 3.5rem; margin: 20px 0; border-bottom: 1px solid var(--dim); padding-bottom: 10px; }
.pricing-list { list-style: none; margin-bottom: 25px; text-align: left; }
.pricing-list li { margin-bottom: 8px; border-bottom: 1px solid rgba(15, 42, 27, 0.5); padding-bottom: 4px; }
.pricing-list li::before { content: "DATA_P_"; font-size: 0.7em; color: var(--dim); margin-right: 10px; }
.pricing-list li.warn::before { content: "WARN_P_"; color: var(--amber); }

/* Table styling for generic data */
.data-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.data-table th, .data-table td { border: 1px solid var(--dim); padding: 10px; text-align: left; }
.data-table th { background: rgba(15, 42, 27, 0.5); font-weight: normal; color: #8ef7b5; }

/* Reviews / Logs */
.log-entry { margin-bottom: 15px; border-left: 2px solid var(--dim); padding-left: 15px; }
.log-meta { font-size: 0.8rem; color: var(--dim); margin-bottom: 5px; }

/* Footer */
footer { border-top: 1px solid var(--dim); padding: 30px 0; text-align: center; margin-top: 60px; font-size: 0.9rem; background: var(--bg); position: relative; z-index: 10; }
footer a { margin: 0 15px; text-transform: uppercase; }

/* Mobile Adaptations */
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; gap: 20px; }
  nav { justify-content: center; }
  .hero h1 { font-size: 3.5rem; }
  .btn { display: block; width: 100%; text-align: center; padding: 15px; }
}

/* Article & Blog Styles */
.article-content { font-family: var(--font-mono); font-size: 1.1rem; line-height: 1.8; color: #8ef7b5; }
.article-content h2::before { content: "SYS.DIR> "; color: var(--dim); font-size: 0.8em; }
.article-content h2 { font-family: var(--font-display); font-size: 2rem; color: var(--phosphor); margin: 40px 0 20px 0; border-bottom: 1px dashed var(--dim); padding-bottom: 5px; }
.article-content h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--amber); margin: 25px 0 10px 0; }
.article-content p { margin-bottom: 20px; text-align: justify; }
.article-content ul, .article-content ol { margin-bottom: 20px; padding-left: 20px; }
.article-content li { margin-bottom: 10px; }
.article-content strong { color: var(--white); text-shadow: 0 0 5px var(--phosphor); font-weight: normal; }
.article-content a { color: var(--amber); border-bottom-color: var(--amber); }
.article-content a:hover { color: var(--bg); background-color: var(--amber); border-bottom: none; }
.article-card p { font-size: 0.95rem; color: #6e9f82; margin-bottom: 15px; line-height: 1.5; }
.article-card h3 { font-size: 1.4rem; margin: 10px 0; }

/* Floating Action Button & Hero Image */
.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--bg);
  border: 2px solid var(--phosphor);
  color: var(--phosphor);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-family: var(--font-display);
  z-index: 1000;
  box-shadow: 0 0 10px rgba(59, 240, 126, 0.2);
  transition: all 0.2s ease-in-out;
}
.floating-btn:hover {
  background: var(--phosphor);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(59, 240, 126, 0.6);
  transform: translateY(-3px);
}
.hero-image-container {
  max-width: 800px;
  margin: 0 auto 30px auto;
  border: 2px solid var(--dim);
  padding: 5px;
  background: #000;
  position: relative;
}
.hero-image-container::before {
  content: "SYS_CAM_01 // LIVE_FEED";
  position: absolute;
  top: 10px;
  left: 15px;
  color: var(--phosphor);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  background: rgba(0,0,0,0.7);
  padding: 2px 5px;
  z-index: 2;
}
.hero-image-container img {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(1) hue-rotate(90deg) saturate(3) brightness(0.8) contrast(1.2); /* Enhance the green CRT feel */
}
