body {
  font-family: sans-serif;
  background: #212a71;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 700px;
  margin: auto;
  background: #43ddd8;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.hero-content {
  text-align: center;
  margin-bottom: 32px;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: #0a3d91;
  margin: 0 0 8px;
}

.platform-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: filter 0.2s ease;
}

.tagline {
  font-size: 1.125rem;
  color: #333;
  margin: 8px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.cta {
  font-size: 0.9rem;
  color: #555;
  margin: 1rem auto;
  text-align: center;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #3810e7, #0a81c5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-align: center;
  margin-bottom: 24px;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #3810e7, #0a81c5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-align: center;
  margin-bottom: 24px;
}

.search-form {
  display: flex;
  gap: 8px;
}

.prompt-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 6px;
  padding: 0 10px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.15s ease;
}

.prompt-wrap:focus-within {
  box-shadow: inset 0 0 0 2px #0070f3;
}

.prompt-glyph {
  color: #0070f3;
  font-weight: 700;
  font-size: 1rem;
  animation: blink 1.1s step-end infinite;
}

@media (prefers-reduced-motion: reduce) {
  .prompt-glyph {
    animation: none;
  }
}

@keyframes blink {
  0%, 45% {
    opacity: 1;
  }
  50%, 95% {
    opacity: 0.25;
  }
  100% {
    opacity: 1;
  }
}

.query-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 8px 0;
  font-size: 16px;
}

button {
  padding: 8px 12px;
  font-size: 16px;
  cursor: pointer;
}

button {
  background-color: #0070f3;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
  padding: 0.6em 1.2em;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  box-shadow: 0 2px 6px rgba(0, 112, 243, 0.4);
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button:focus-visible,
.query-input:focus-visible {
  outline: 2px solid #0a81c5;
  outline-offset: 2px;
}

.results {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 20px;
}

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  padding: 12px 16px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #e6f7ff, #ffffff);
  border: none;
  border-left: 6px solid #0070f3;
  padding: 24px;
  box-shadow: 0 4px 8px rgba(0, 112, 243, 0.3);
  position: relative;
  transform: scale(1.01);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card.featured:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 12px rgba(0, 112, 243, 0.4);
}

.card.featured::before {
  content: "Top Result";
  position: absolute;
  top: -8px;
  left: 16px;
  background: #0070f3;
  color: #fff;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.platform-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0070f3;
  text-decoration: none;
}

.card-title:hover {
  text-decoration: underline;
}

.hidden {
  display: none;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top-color: #0070f3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 1em auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.site-footer {
  max-width: 700px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: #c7ccf0;
}

.site-footer a {
  color: #43ddd8;
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (min-width: 700px) {
  .results {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  background: #f1f5f9;
  color: #334155;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid #e2e8f0;
}

@media (max-width: 500px) {
  .tagline {
    font-size: 1rem;
    flex-wrap: wrap;
  }
  .cta {
    font-size: 0.8rem;
  }
}

@media (max-width: 425px) {
  .search-form {
    flex-direction: column;
  }
}