:root {
  --bg: #0f1115;
  --panel: #161a23;
  --card: #1d2230;
  --text: #e8eef7;
  --muted: #b2bdd1;
  --accent: #6bd18a;
  --accent-strong: #8bf0a5;
  --border: #262d3f;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  --radius: 14px;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 15% 20%, rgba(107, 209, 138, 0.08), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(107, 209, 138, 0.12), transparent 35%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

main.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.hero {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 8px 0;
}

h1 {
  margin: 0 0 12px 0;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.2;
}

.lede {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.6;
}

.search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.search input {
  width: 100%;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 16px;
}

.search input::placeholder {
  color: #7f8aa5;
}

.search button {
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0c120f;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
  box-shadow: 0 10px 24px rgba(107, 209, 138, 0.25);
}

.search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(107, 209, 138, 0.3);
}

.search button:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(107, 209, 138, 0.22);
}

.results {
  margin-top: 32px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.results h2 {
  margin: 0 0 18px 0;
  font-size: 22px;
}

.results-sub {
  margin: 0 0 14px 0;
  color: var(--muted);
  line-height: 1.6;
}

.results-status {
  margin: 0 0 14px 0;
  color: var(--muted);
  font-size: 14px;
}

.cards {
  display: grid;
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: grid;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.card-primary {
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 1px rgba(107, 209, 138, 0.15);
}

.card-title {
  margin: 0;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.card-helper {
  margin: 0;
  color: #d9e7f0;
  line-height: 1.5;
  font-size: 14px;
}

.card a {
  justify-self: start;
  margin-top: 4px;
  padding: 10px 12px;
  background: transparent;
  color: var(--accent-strong);
  border: 1px solid var(--accent);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.card a:hover {
  background: rgba(107, 209, 138, 0.1);
  color: #e9ffee;
  border-color: var(--accent-strong);
}

.badge {
  justify-self: start;
  padding: 4px 8px;
  background: rgba(107, 209, 138, 0.18);
  color: var(--accent-strong);
  border: 1px solid rgba(107, 209, 138, 0.4);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.tip {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(107, 209, 138, 0.07);
  color: var(--text);
  border: 1px solid rgba(107, 209, 138, 0.3);
  line-height: 1.5;
}

.tip-title {
  margin: 0 0 6px 0;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 640px) {
  .search {
    grid-template-columns: 1fr;
  }

  .search button {
    width: 100%;
  }
}
