/* ================================================================
   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;
  /* Card centres between the bottom of the nav text (45px) and the
     status bar (16px offset + 34px bar = 50px) */
  padding: 45px 0 50px;
}

/* 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: var(--radius-xl);
  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;
  /* Letterhead: logo | eyebrow on one row, content ruled off below */
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  column-gap: 24px;
}
.hero-title,
.hero-subtitle,
.hero-actions {
  grid-column: 1 / -1;
}

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

/* ── Eyebrow: right-aligned, centred on the logo (middle wordmark line, ADVANCED) ── */
.hero-eyebrow {
  justify-self: end;
  align-self: center;
  text-align: right;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13.8px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-300);
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.3s ease forwards 0.1s;
}
/* ── Title ── */
.hero-title {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--brand-light);
  text-wrap: balance;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(157, 161, 174, 0.25);
  margin-bottom: 24px;
}
.hero-title em {
  font-style: normal;
  color: var(--blue-300);
}

/* ── Subtitle ── */
.hero-subtitle {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--neutral-100);
  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: var(--radius-md);
  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: var(--radius-md);
  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: 'IBM Plex Mono', monospace;
  font-size: 11px;
  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) {
  /* Hamburger (bottom at 56px) + 24px gap above; status bar (8px offset + 27px bar) + 24px gap below */
  .hero { height: auto; min-height: min(75svh, 500px); padding-top: 80px; padding-bottom: 59px; }
  .hero-content { padding: 0 var(--space-5); }
  .hero-card { padding: 32px 24px 28px; max-width: 100%; margin-left: 0; }
  .hero-logo img { height: 56px; }
  /* Not enough room beside the logo: eyebrow drops below it */
  .hero-eyebrow { grid-column: 1 / -1; justify-self: start; text-align: left; margin: 14px 0 0; font-size: 10.5px; }
  .hero-title { font-size: clamp(22px, 6vw, 28px); margin-top: 18px; padding-top: 18px; margin-bottom: 14px; }
  .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: 9px;
    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) {
  /* Status bar hidden: centre between the nav and the bottom of the hero */
  .hero { padding-bottom: 24px; }
  .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; }
}
