* {
  box-sizing: border-box;
}

:root {
  --bg: #07090f;
  --panel: rgba(16, 20, 31, 0.82);
  --panel-2: #101521;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text: #f4f7fb;
  --muted: #8993a7;
  --muted-2: #606b80;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --green: #34d399;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(91, 60, 170, 0.15), transparent 35%),
    var(--bg);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .3;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.bg-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: .09;
}
.glow-one { background: #8b5cf6; top: 120px; left: -180px; }
.glow-two { background: #06b6d4; top: 520px; right: -220px; }

.topbar {
  height: 76px;
  max-width: 1180px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand {
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.5px;
}
.brand > span:last-child span { color: #a78bfa; }

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(139,92,246,.3);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(139,92,246,.25), rgba(34,211,238,.08));
  box-shadow: 0 0 25px rgba(139,92,246,.12);
}

.topbar-note {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2px;
}

.container {
  max-width: 1080px;
  margin: auto;
  padding: 74px 24px 60px;
}

.hero {
  max-width: 820px;
  margin: 0 auto 52px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: #9ca7ba;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px #34d399;
}

.hero h1 {
  margin: 22px 0 14px;
  font-size: clamp(42px, 7vw, 70px);
  line-height: .98;
  letter-spacing: -3.5px;
}
.hero h1 strong {
  background: linear-gradient(100deg, #c4b5fd, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  max-width: 650px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.search-wrap {
  position: relative;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 14px 0 20px;
  background: rgba(14, 18, 28, .95);
  border: 1px solid rgba(139,92,246,.32);
  border-radius: 17px;
  box-shadow: 0 0 0 5px rgba(139,92,246,.035), 0 18px 60px rgba(0,0,0,.25);
  transition: .2s ease;
}
.search-wrap:focus-within {
  border-color: rgba(139,92,246,.65);
  box-shadow: 0 0 0 5px rgba(139,92,246,.08), 0 18px 60px rgba(0,0,0,.3);
}
.search-icon {
  color: #9b7bea;
  font-size: 28px;
  transform: rotate(-15deg);
  margin-right: 12px;
}
.search-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.search-wrap input::placeholder { color: #596377; }
.search-wrap kbd {
  color: #687388;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 7px;
  font-size: 10px;
  background: #0b0f17;
}
.clear-btn {
  display: none;
  border: 0;
  background: transparent;
  color: #778197;
  font-size: 22px;
  cursor: pointer;
  margin-right: 5px;
}
.clear-btn.show { display: block; }

.suggestions {
  position: relative;
  z-index: 5;
  text-align: left;
  margin-top: 8px;
}
.suggestion {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  background: #0e131e;
  color: var(--text);
  cursor: pointer;
}
.suggestion:first-child { border-radius: 12px 12px 0 0; }
.suggestion:last-child { border-radius: 0 0 12px 12px; }
.suggestion:hover { background: #151b29; }
.suggestion small { color: var(--muted-2); }

.quick-searches {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
  color: #586276;
  font-size: 11px;
}
.quick-searches button {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 9px;
  color: #929caf;
  background: rgba(255,255,255,.02);
  cursor: pointer;
}
.quick-searches button:hover { color: white; border-color: var(--border-hover); }

.categories {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 42px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.category {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 13px;
  background: rgba(255,255,255,.02);
  color: #818b9f;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
}
.category:hover { color: white; border-color: var(--border-hover); }
.category.active {
  color: white;
  border-color: rgba(139,92,246,.4);
  background: rgba(139,92,246,.12);
}

.results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-label {
  color: #6f7b91;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
}
.results-head h2 {
  margin: 6px 0 0;
  font-size: 22px;
  letter-spacing: -.7px;
}
.result-count {
  color: var(--muted-2);
  font-size: 11px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  min-height: 260px;
  background: linear-gradient(145deg, rgba(18,23,35,.94), rgba(12,16,25,.94));
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 18px 55px rgba(0,0,0,.22);
}
.card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -90px;
  bottom: -100px;
  border-radius: 50%;
  background: var(--card-glow, #8b5cf6);
  filter: blur(75px);
  opacity: .12;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--border);
  font-size: 18px;
}
.category-tag {
  padding: 5px 8px;
  border-radius: 6px;
  color: #7e899e;
  background: rgba(255,255,255,.035);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.card h3 {
  margin: 17px 0 4px;
  font-size: 18px;
  letter-spacing: -.4px;
}
.card-subtitle {
  margin: 0 0 17px;
  color: var(--muted-2);
  font-size: 11px;
}
.provider-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.provider {
  min-width: 0;
  padding: 10px 8px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.055);
  background: rgba(255,255,255,.018);
}
.provider-name {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #677287;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.aws { background: #ff9900; }
.azure { background: #1597ff; }
.gcp { background: #42a5f5; }
.oracle { background: #f04444; }
.provider-service {
  color: #e8ebf1;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.mapping {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255,255,255,.07);
  display: flex;
  gap: 7px;
  align-items: center;
  color: #596477;
  font-size: 10px;
}
.mapping strong { color: #a8b1c1; }

.empty {
  text-align: center;
  padding: 70px 20px;
  border: 1px dashed var(--border);
  border-radius: 18px;
}
.empty-icon {
  margin: auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(139,92,246,.1);
  color: #a78bfa;
  font-size: 23px;
}
.empty h3 { margin: 14px 0 5px; }
.empty p { margin: 0; color: var(--muted); font-size: 12px; }
.hidden { display: none !important; }

.legend {
  margin-top: 40px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.015);
}
.legend-title {
  color: #5f6a7e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.3px;
}
.legend-items {
  display: flex;
  gap: 18px;
  color: #747e92;
  font-size: 10px;
}
.legend-items .dot { margin-right: 5px; }

footer {
  max-width: 1080px;
  margin: auto;
  padding: 22px 24px 34px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  color: #4e596d;
  font-size: 10px;
}
footer span:first-child { color: #7d879a; font-weight: 700; }

@media (max-width: 760px) {
  .topbar-note { display: none; }
  .container { padding-top: 48px; }
  .hero h1 { letter-spacing: -2.4px; }
  .cards { grid-template-columns: 1fr; }
  .provider-grid { grid-template-columns: repeat(2, 1fr); }
  .legend { align-items: flex-start; gap: 15px; flex-direction: column; }
  .results-head { align-items: flex-start; }
}

@media (max-width: 480px) {
  .search-wrap { height: 58px; padding-left: 14px; }
  .search-wrap kbd { display: none; }
  .categories { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 10px; }
  .category { white-space: nowrap; }
  .quick-searches { justify-content: flex-start; }
  .hero p { font-size: 13px; }
}
