:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f4f7fb;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; }

.hero {
  padding: 72px 24px 54px;
  color: #f8fbff;
  background:
    radial-gradient(circle at 15% 20%, rgba(81, 128, 255, .42), transparent 34%),
    linear-gradient(135deg, #0b1020, #17264a 70%, #233b70);
}

.hero__inner { width: min(920px, 100%); margin: 0 auto; }
.eyebrow { margin: 0 0 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; font-size: .78rem; color: #b8cbff; }
h1 { margin: 0; font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1.04; letter-spacing: -.045em; }
.subtitle { max-width: 760px; margin: 20px 0 30px; color: #c9d5ee; font-size: 1.08rem; line-height: 1.75; }

.search-box { display: grid; grid-template-columns: 1fr auto; max-width: 820px; background: white; border-radius: 16px; padding: 6px; box-shadow: 0 24px 70px rgba(0, 0, 0, .28); }
.search-box input { min-width: 0; border: 0; outline: 0; padding: 15px 18px; border-radius: 12px; color: #172033; }
.search-box button { border: 0; border-radius: 11px; padding: 0 28px; background: #315ee8; color: white; font-weight: 700; }
.search-box button:hover { background: #234cc7; }
.search-box input:disabled, .search-box button:disabled { cursor: wait; opacity: .65; }

.quick-queries { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.quick-queries button { padding: 7px 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.08); color: #dce6ff; }
.quick-queries button:hover { background: rgba(255,255,255,.16); }
.status { min-height: 24px; margin: 18px 0 0; color: #b8c7e4; }

.layout { width: min(1120px, calc(100% - 32px)); margin: -22px auto 70px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 42px; }
.metrics article { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid #e5eaf2; border-radius: 16px; background: white; box-shadow: 0 12px 34px rgba(34, 55, 93, .08); }
.metrics strong { font-size: 1.25rem; }
.metrics span { color: #748097; font-size: .88rem; }

.results-heading { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; margin-bottom: 16px; }
.results-heading h2, .architecture h2 { margin: 0; font-size: 1.35rem; }
.results-heading span { color: #68748b; }
.results { display: grid; gap: 14px; }
.result-card { padding: 22px; border: 1px solid #e1e7f0; border-radius: 16px; background: white; box-shadow: 0 8px 26px rgba(31, 47, 76, .05); }
.result-card__title { color: #214fc5; font-size: 1.22rem; font-weight: 750; text-decoration: none; }
.result-card__title:hover { text-decoration: underline; }
.result-card p { color: #48556c; line-height: 1.72; }
.result-card__footer { display: flex; justify-content: space-between; gap: 16px; color: #748097; font-size: .8rem; }
.result-card__footer span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
mark { padding: 0 2px; border-radius: 3px; background: #fff0a8; color: inherit; }
.empty-state { padding: 40px; border: 1px dashed #c9d2e1; border-radius: 16px; text-align: center; color: #68748b; }

.architecture { margin-top: 42px; padding: 26px; border-radius: 18px; color: #dfe7fb; background: #18233a; }
.architecture ol { margin: 18px 0 22px; padding-left: 22px; line-height: 1.8; }
.architecture a { color: #9bb8ff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .hero { padding-top: 52px; }
  .search-box { grid-template-columns: 1fr; }
  .search-box button { padding: 14px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .results-heading { display: block; }
  .results-heading span { display: block; margin-top: 8px; }
  .result-card__footer { display: block; }
  .result-card__footer span { display: block; margin-top: 5px; }
}
