/* ==========================================================
   middle.css
   Depends on: base.css (tokens, .wrap, .eyebrow)
   Covers: hero, credentials strip, systems dossier
========================================================== */

/* ---- Hero ---- */
.hero {
  background-color: var(--bg-card);
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border-light);
}
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #0f172a;
  margin: 0.6rem 0 1.1rem;
}
.hero p { color: var(--text-muted); font-size: 1.02rem; max-width: 480px; margin: 0 0 2rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.btn-solid {
  background-color: var(--accent-blue);
  color: #fff;
  padding: 0.8rem 1.6rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}
.btn-solid:hover { background-color: #0369a1; }

.btn-outline-light {
  border: 1px solid var(--border-light);
  color: #0f172a;
  padding: 0.8rem 1.6rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 4px;
  transition: border-color 0.2s ease;
}
.btn-outline-light:hover { border-color: var(--accent-blue); }

.wall-diagram { width: 100%; height: auto; }

@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; }
}

/* ---- Credentials strip ---- */
.credentials { background-color: var(--bg-page); border-bottom: 1px solid var(--border-light); }
.credentials .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}
.credential-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 1.6rem;
  border-left: 1px solid var(--border-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-body);
  text-transform: uppercase;
}
.credential-item:first-child { border-left: none; }
.credential-item svg { width: 15px; height: 15px; color: var(--accent-blue); flex-shrink: 0; }

@media (max-width: 700px) {
  .credential-item { border-left: none; width: 50%; justify-content: center; }
}

/* ---- Systems dossier ---- */
.systems { padding: 4.5rem 0; }
.section-head { max-width: 560px; margin: 0 auto 2.5rem; text-align: center; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  color: #0f172a;
  margin: 0.5rem 0 0.6rem;
}
.section-head p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

.dossier { border-top: 1px solid var(--border-light); }
.system-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem 1rem;
  border-bottom: 1px solid var(--border-light);
  border-left: 2px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease, border-left-color 0.2s ease;
}
.system-row:hover { background-color: var(--bg-page); border-left-color: var(--accent-cyan); }
.sys-code {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-blue);
  border: 1px solid var(--border-light);
  padding: 0.3rem 0.55rem;
  text-align: center;
  white-space: nowrap;
  border-radius: 3px;
}
.sys-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: #0f172a;
}
.sys-content p { margin: 0; font-size: 0.88rem; color: var(--text-muted); max-width: 620px; }
.sys-arrow { font-size: 0.8rem; color: var(--accent-blue); font-weight: 700; white-space: nowrap; }

@media (max-width: 700px) {
  .system-row { grid-template-columns: 1fr; gap: 0.6rem; }
  .sys-arrow { display: none; }
}
