/* ================================================================
   HERO — Animated Inference Simulation (homepage only)
   ================================================================ */

/* ── Override base .hero from styles.css ── */
.hero {
  position: relative;
  width: 100%;
  height: min(100vh, 640px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 72px 0 30px; /* nav height top, status bar bottom */
}

/* Neutralise the dark overlay from the main stylesheet */
.hero::before {
  display: none;
}

/* ── Canvas ── */
.hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  transition: opacity 0.05s linear;
}

/* ── Content wrapper ── */
.hero-content {
  position: relative;
  z-index: 5;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-5);
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
}

/* ── Frosted glass card ── */
.hero-card {
  background: rgba(17, 17, 24, 0.72);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(42, 44, 56, 0.5);
  border-radius: 16px;
  padding: 36px 44px 32px;
  margin-left: 0;
  max-width: 800px;
  box-shadow:
    0 4px 32px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.04);
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.5s ease forwards 0.2s;
}

/* ── Logo ── */
.hero-logo {
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards 0s;
}
.hero-logo img {
  height: 96px;
  width: auto;
  opacity: 0.92;
}

/* ── Eyebrow ── */
.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-inverse-accent);
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.3s ease forwards 0.1s;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-inverse-accent);
  box-shadow: 0 0 6px rgba(29,143,237,0.5);
  margin-right: 10px;
  vertical-align: 1px;
  animation: pulse-blue 2s ease infinite;
}

/* ── Title ── */
.hero-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--brand-light);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.4s ease forwards 0.25s;
}
.hero-title em {
  font-style: normal;
  color: var(--text-inverse-accent);
}

/* ── Subtitle ── */
.hero-subtitle {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--neutral-200);
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.4s ease forwards 0.4s;
}

/* ── Action buttons ── */
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.4s ease forwards 0.55s;
}

.btn-primary {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff !important;
  background: var(--brand-blue);
  border: none;
  padding: 13px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
}

.btn-secondary {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--neutral-200);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--neutral-700);
  padding: 13px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-secondary:hover {
  border-color: var(--neutral-500);
  color: #fff;
  background: rgba(255,255,255,0.07);
  transform: translateY(-1px);
}

/* ── Status bar ── */
.hero-status {
  position: absolute;
  bottom: 16px;
  left: 0; right: 0;
  z-index: 6;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px var(--space-5);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--neutral-500);
  opacity: 0;
  animation: fadeIn 0.6s ease forwards 1.0s;
  transition: opacity 0.05s linear;
}
@media (min-width: 1280px) {
  .hero-content { padding-left: var(--space-8); padding-right: var(--space-8); }
  .hero-card { margin-left: -44px; /* align card text with .container text below */ }
  .hero-status { padding-left: var(--space-8); padding-right: var(--space-8); }
}
.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #16864A;
  box-shadow: 0 0 6px rgba(22,134,74,0.5);
  animation: pulse-dot 2s ease infinite;
}
.status-dot.blue {
  background: var(--brand-blue);
  box-shadow: 0 0 6px rgba(15,105,179,0.5);
}
.status-value {
  color: var(--neutral-300);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { height: auto; min-height: min(75svh, 500px); padding-bottom: 48px; }
  .hero-content { padding: 0 var(--space-5); }
  .hero-card { padding: 32px 24px 28px; max-width: 100%; margin-left: 0; }
  .hero-logo { margin-bottom: 20px; }
  .hero-logo img { height: 64px; }
  .hero-eyebrow { margin-bottom: 10px; }
  .hero-title { font-size: clamp(20px, 5vw, 26px); margin-bottom: 10px; }
  .hero-subtitle { font-size: 14px; margin-bottom: 16px; }
  .hero-actions { flex-wrap: nowrap; gap: 10px; }
  .btn-primary,
  .btn-secondary { font-size: 13px; padding: 11px 16px; }
  .hero-status {
    justify-content: center;
    gap: 12px;
    font-size: 8px;
    bottom: 8px;
    padding: 6px var(--space-3);
  }
  .status-item {
    white-space: nowrap;
  }
  /* Hide OBJECTS on mobile */
  .status-item:nth-child(5) { display: none; }
}
@media (max-width: 420px) {
  /* Also hide FPS */
  .status-item:nth-child(4) { display: none; }
}
@media (max-width: 349px) {
  .hero { padding-bottom: 0; }
  .hero-actions { flex-wrap: wrap; }
  .btn-primary,
  .btn-secondary { width: 100%; text-align: center; }
  .hero-status { display: none; }
}

/* ── Keyframe animations ── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes pulse-blue {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(29,143,237,0.5); }
  50% { opacity: 0.4; box-shadow: 0 0 2px rgba(29,143,237,0.2); }
}
