* { box-sizing: border-box; }
:root {
  --blue: #4263eb;
  --dark: #202124;
  --muted: #6b7280;
  --border: #e5e7eb;
  --background: #ffffff;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dark);
  background: var(--background);
}
.topbar {
  height: 72px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  color: var(--dark);
  font-size: 27px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -1px;
}
.brand span, h1 span { color: var(--blue); }
nav { display: flex; gap: 24px; }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.hero {
  min-height: 490px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 40px 20px 90px;
}
.logo-mark {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: white;
  background: var(--blue);
  font-size: 39px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(66, 99, 235, .2);
}
h1 {
  margin: 15px 0 0;
  font-size: clamp(58px, 12vw, 92px);
  letter-spacing: -6px;
}
.tagline { margin: 0 0 30px; color: var(--muted); }
.search-form { width: min(680px, 100%); }
.search-box {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #dfe1e5;
  border-radius: 28px;
  padding: 0 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.search-box:focus-within { box-shadow: 0 2px 12px rgba(0,0,0,.13); }
.search-icon { font-size: 28px; color: #777; transform: rotate(-20deg); }
input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 16px;
  min-width: 0;
}
.clear-button {
  border: 0;
  background: transparent;
  font-size: 25px;
  color: #888;
  cursor: pointer;
}
.buttons { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
button { font: inherit; cursor: pointer; }
.primary-button, .secondary-button {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 18px;
}
.primary-button { background: var(--blue); color: white; border-color: var(--blue); }
.secondary-button { background: #f8f9fa; color: #333; }
.results-section { width: min(850px, 92%); margin: 0 auto 60px; }
.results-header { color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--border); }
.result { padding: 22px 0; }
.result-url { color: #16803c; font-size: 13px; overflow-wrap: anywhere; }
.result h3 { margin: 7px 0; font-size: 21px; font-weight: 500; }
.result h3 a { color: #1a0dab; text-decoration: none; }
.result h3 a:hover { text-decoration: underline; }
.result p { margin: 0; line-height: 1.6; color: #4b5563; }
.info { text-align: center; padding: 30px 20px 70px; color: var(--muted); }
.info h2 { color: var(--dark); font-size: 24px; }
.info p { max-width: 580px; margin: auto; line-height: 1.7; }
footer {
  margin-top: auto;
  padding: 22px 7%;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  background: #f8f9fa;
  color: var(--muted);
  font-size: 13px;
}
.hidden { display: none; }
.loading { text-align: center; padding: 40px; color: var(--muted); }
.error { color: #b42318; padding: 20px 0; }
@media (max-width: 600px) {
  .topbar { padding: 0 5%; }
  nav { gap: 12px; }
  .hero { min-height: 430px; }
  .buttons { flex-direction: column; width: 100%; max-width: 250px; }
  footer { flex-direction: column; text-align: center; }
}
