body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #00f0ff;
}

/* VIDEO */
#hero-video {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.25);
}

/* GRID */
.cyber-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(0,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* NAV */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  background: rgba(0,0,0,0.6);
  z-index: 100;
}

.logo img {
  height: 40px;
}

nav a {
  margin-left: 30px;
  color: #aaa;
  text-decoration: none;
}

nav a:hover {
  color: #00f0ff;
}

/* CONTENT */
.container {
  position: relative;
  z-index: 10;
  padding-top: 120px;
}

/* HERO */
/* THREAT DETECTION HERO HEADING */
.hero-pt h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  color: #00f0ff;
  margin-bottom: 30px; /* space between heading and paragraph */
  text-shadow: 0 0 15px #00f0ff55;
  text-align: center;
}

.hero-pt p {
  font-size: 1.2rem;
  color: #aaa;
  max-width: 700px;
  margin: 0 auto 40px; /* space between paragraph and content below */
  line-height: 1.6;
  text-align: center;
}

/* TERMINAL + STATS ROW */
.terminal-stats-row {
  display: flex;
  gap: 20px;
  align-items: stretch; /* make terminal and stats same height */
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  flex-wrap: wrap; /* for smaller screens */
}

.terminal-box {
  flex: 2;
  background: rgba(0,0,0,0.8);
  border: 1px solid #00ff88;
  padding: 20px;
  font-family: monospace;
  color: #00ff88;
  overflow-y: auto;
  min-height: 200px; /* ensures some height if empty */
}

#stats-panel {
  flex: 1;
  background: rgba(0,0,0,0.85);
  border: 1px solid #00f0ff;
  padding: 20px;
  color: #00ff88;
  font-family: monospace;
  min-height: 200px; /* match terminal box */
}

/* AI DASHBOARD */
.ai-dashboard {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

.ai-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.ai-card {
  flex: 1;
  min-width: 200px;
  background: rgba(0,0,0,0.7);
  border: 1px solid #00f0ff;
  padding: 20px;
  text-align: center;
}

.ai-status {
  color: #00ff88;
}

#threat-level {
  font-size: 2rem;
  color: #00ff88;
}

/* AI ANALYSIS */
.ai-analysis {
  display: flex;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.ai-box {
  flex: 1;
  min-width: 200px;
  background: rgba(0,0,0,0.7);
  border: 1px solid #00f0ff;
  padding: 20px;
  text-align: center;
}

.ai-box p {
  font-size: 1.5rem;
  color: #00ff88;
}

/* GRAPH */
.graph-container {
  margin-top: 30px;
  background: rgba(0,0,0,0.8);
  padding: 20px;
  border: 1px solid #00f0ff;
}

/* RADAR */
.radar-container {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.radar {
  width: 250px;
  height: 250px;
  border: 2px solid #00ff88;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px #00ff88;
}

.sweep {
  position: absolute;
  width: 100%;
  height: 100%;
  background: conic-gradient(
    rgba(0,255,136,0.4) 0deg,
    transparent 60deg
  );
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* AI REASONING */
.ai-reasoning {
  margin-top: 40px;
  background: rgba(0,0,0,0.85);
  border: 1px solid #00f0ff;
  padding: 20px;
}

#ai-reasoning-text {
  font-family: monospace;
  color: #00ff88;
  min-height: 120px;
}

/* FLASH EFFECT */
body.alert {
  animation: flashRed 0.5s infinite alternate;
}

@keyframes flashRed {
  from { background-color: rgba(255,0,0,0.1); }
  to { background-color: rgba(255,0,0,0.3); }
}

/* FEED */
.ai-feed {
  background: rgba(0,0,0,0.8);
  border: 1px solid #ff004c;
  padding: 20px;
}

#ai-log {
  max-height: 250px;
  overflow-y: auto;
  font-family: monospace;
  color: #ff4d6d;
}

/* CTA */
.cta-pt {
  text-align: center;
  padding: 60px 20px;
}

.cta-pt a {
  background: #00f0ff;
  color: #000;
  padding: 15px 30px;
  text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .terminal-stats-row {
    flex-direction: column;
  }

  .terminal-box,
  #stats-panel {
    min-height: 150px;
  }
}