@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Inter"), local("Inter Regular"), url("fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local("Inter Medium"), local("Inter"), url("fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local("Inter SemiBold"), local("Inter"), url("fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Inter Bold"), local("Inter"), url("fonts/inter-700.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: local("Inter ExtraBold"), local("Inter"), url("fonts/inter-800.woff2") format("woff2");
}

:root {
  --radius: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --aurora: oklch(0.858 0.132 164.6);
  --neon: oklch(0.789 0.135 212.1);
  --violet: oklch(0.75 0.14 295.2);
  --background: oklch(0.129 0.042 264.7);
  --background-2: oklch(0.105 0.031 264.7);
  --foreground: oklch(0.984 0.003 247.9);
  --card: oklch(0.208 0.042 265.8);
  --card-2: oklch(0.172 0.039 265.6);
  --muted: oklch(0.704 0.04 256.8);
  --muted-2: oklch(0.57 0.035 257);
  --border: oklch(1 0 0 / 10%);
  --border-strong: oklch(0.789 0.135 212.1 / 30%);
  --shadow: 0 30px 80px rgb(0 0 0 / 35%);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  margin: 0;
  min-height: 100svh;
  color: var(--foreground);
  background:
    radial-gradient(circle at 50% -20%, oklch(0.205 0.08 266 / 45%), transparent 42%),
    linear-gradient(180deg, var(--background) 0%, var(--background-2) 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.home-page {
  height: 100svh;
  overflow: hidden;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.page-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgb(0 0 0 / 35%), transparent 65%);
}

.aur {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  filter: blur(96px);
  opacity: 0.18;
  border-radius: 999px;
  animation: floataur 14s ease-in-out infinite;
  will-change: transform;
}

.aur-a {
  width: 42vw;
  height: 28vw;
  left: -9vw;
  top: 9vh;
  background: var(--aurora);
}

.aur-b {
  width: 40vw;
  height: 28vw;
  right: 2vw;
  top: -8vh;
  background: var(--neon);
  animation-delay: -5s;
}

.aur-c {
  width: 36vw;
  height: 26vw;
  right: 8vw;
  bottom: -13vh;
  background: var(--violet);
  animation-delay: -9s;
}

@keyframes floataur {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(8%, -6%, 0) scale(1.12);
  }
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 24px 0 30px;
  display: flex;
  flex-direction: column;
}

.home.shell {
  height: 100svh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  flex: 0 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(145deg, oklch(0.208 0.042 265.8 / 84%), oklch(0.13 0.035 265.5 / 70%));
  box-shadow: 0 0 26px oklch(0.789 0.135 212.1 / 18%);
}

.brand-mark img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: oklch(0.208 0.042 265.8 / 55%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-size: 12px;
  font-weight: 600;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aurora);
  box-shadow: 0 0 16px var(--aurora);
}

.search-hero {
  text-align: center;
}

.home .search-hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 0;
  padding: 2vh 0 1vh;
}

.hero-mark-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 27px;
  border: 1px solid oklch(0.789 0.135 212.1 / 35%);
  background:
    radial-gradient(circle at 25% 20%, oklch(0.858 0.132 164.6 / 22%), transparent 52%),
    linear-gradient(145deg, oklch(0.208 0.042 265.8 / 80%), oklch(0.135 0.04 266 / 72%));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 7%),
    0 0 35px oklch(0.789 0.135 212.1 / 18%),
    0 0 70px oklch(0.75 0.14 295.2 / 10%);
}

.hero-mark-wrap::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--aurora), var(--neon), var(--violet));
  filter: blur(16px);
  opacity: 0.22;
}

.mark {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 11px;
  color: var(--neon);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.search-hero h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 70px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.search-hero h1 span {
  font-weight: 500;
  color: oklch(0.89 0.028 252);
}

.lead {
  max-width: 620px;
  margin: 16px 0 28px;
  color: var(--muted);
  font-size: clamp(14px, 1.45vw, 17px);
  line-height: 1.65;
}

.searchbox {
  position: relative;
  width: min(820px, 100%);
  min-height: 62px;
  display: flex;
  align-items: center;
  margin: 0 auto;
  border: 1px solid oklch(0.789 0.135 212.1 / 48%);
  border-radius: 19px;
  background:
    linear-gradient(180deg, oklch(0.208 0.042 265.8 / 83%), oklch(0.172 0.039 265.6 / 83%));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 5%),
    0 0 0 1px oklch(0.75 0.14 295.2 / 10%),
    0 22px 70px rgb(0 0 0 / 30%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.searchbox:focus-within {
  border-color: var(--neon);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 7%),
    0 0 0 3px oklch(0.789 0.135 212.1 / 10%),
    0 0 36px oklch(0.789 0.135 212.1 / 12%),
    0 26px 80px rgb(0 0 0 / 34%);
  transform: translateY(-1px);
}

.searchbox > svg {
  width: 22px;
  min-width: 22px;
  margin-left: 21px;
  color: var(--neon);
}

.searchbox input {
  flex: 1;
  min-width: 0;
  height: 60px;
  padding: 0 18px;
  border: 0;
  outline: 0;
  color: var(--foreground);
  background: transparent;
  font-size: 16px;
  font-weight: 500;
}

.searchbox input::placeholder {
  color: var(--muted-2);
}

.searchbox > button {
  height: 46px;
  min-width: 126px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-right: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  color: var(--background);
  background: linear-gradient(135deg, var(--aurora), var(--neon));
  box-shadow: 0 10px 28px oklch(0.789 0.135 212.1 / 18%);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

.searchbox > button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.searchbox > button:active {
  transform: translateY(0);
}

.suggestions {
  position: absolute;
  z-index: 20;
  top: 70px;
  left: 0;
  right: 0;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: oklch(0.175 0.04 265.7 / 97%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  text-align: left;
}

.suggestions button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  color: var(--foreground);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.suggestions button:hover,
.suggestions button[aria-selected="true"] {
  background: oklch(0.255 0.045 263 / 72%);
}

.search-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 600;
}

.search-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.shield-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--background);
  background: var(--aurora);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.feature-row {
  width: min(940px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 2vh auto 0;
  flex: 0 0 auto;
}

.feature-row article {
  min-height: 96px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, oklch(0.208 0.042 265.8 / 56%), oklch(0.15 0.035 266 / 42%));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.feature-icon {
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--neon);
  background: oklch(0.789 0.135 212.1 / 8%);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.feature-row b {
  display: block;
  margin-top: 1px;
  font-size: 13px;
  font-weight: 700;
}

.feature-row p {
  margin: 5px 0 0;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.5;
}

.footer {
  min-height: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}

.has-results {
  display: block;
  padding-bottom: 56px;
}

.has-results .search-hero {
  padding: 32px 0 28px;
  text-align: left;
}

.has-results .searchbox {
  width: min(800px, 100%);
  margin-left: 0;
}

.results {
  width: min(830px, 100%);
}

.results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin: 4px 0 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.results-head h1 {
  max-width: 620px;
  margin: 0;
  overflow: hidden;
  color: var(--foreground);
  font-size: clamp(25px, 4vw, 34px);
  font-weight: 750;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary {
  flex: none;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.summary strong {
  color: var(--foreground);
  font-size: 12px;
}

.summary span {
  margin-left: 8px;
  color: var(--neon);
}

.result-list {
  display: grid;
  gap: 10px;
}

.result-card {
  padding: 19px 20px 20px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.result-card:hover {
  border-color: var(--border);
  background: oklch(0.208 0.042 265.8 / 34%);
  transform: translateY(-1px);
}

.result-origin {
  display: flex;
  align-items: center;
  gap: 8px;
}

.origin-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aurora);
  box-shadow: 0 0 12px oklch(0.858 0.132 164.6 / 35%);
}

.result-url {
  color: var(--aurora);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.result-card h2 {
  margin: 7px 0 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.026em;
  line-height: 1.35;
}

.result-card h2 a {
  text-decoration: none;
}

.result-card h2 a:hover {
  color: var(--neon);
}

.result-card p {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.empty {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: oklch(0.208 0.042 265.8 / 44%);
  text-align: center;
}

.empty-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border: 1px solid var(--border-strong);
  border-radius: 15px;
  color: var(--neon);
  background: oklch(0.789 0.135 212.1 / 7%);
  font-size: 26px;
}

.empty h2 {
  margin: 0;
  font-size: 20px;
}

.empty p {
  max-width: 540px;
  margin: 9px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: oklch(0.208 0.042 265.8 / 42%);
  color: var(--muted-2);
  font-size: 12px;
}

.pager div:last-child {
  text-align: right;
}

.pager a {
  color: var(--neon);
  font-weight: 700;
  text-decoration: none;
}

.error-shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.error-shell h1 {
  margin: 10px 0;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -0.045em;
}

.error-shell > p:not(.eyebrow) {
  margin: 0 0 24px;
  color: var(--muted);
}

.primary-link {
  padding: 12px 17px;
  border-radius: 12px;
  color: var(--background);
  background: linear-gradient(135deg, var(--aurora), var(--neon));
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-height: 760px) and (min-width: 760px) {
  .hero-mark-wrap {
    width: 74px;
    height: 74px;
    margin-bottom: 12px;
  }
  .mark {
    width: 56px;
    height: 56px;
  }
  .search-hero h1 {
    font-size: 48px;
  }
  .lead {
    margin: 10px 0 19px;
  }
  .feature-row {
    margin-top: 14px;
  }
  .feature-row article {
    min-height: 84px;
    padding: 14px;
  }
  .footer {
    margin-top: 8px;
  }
}

@media (max-width: 760px) {
  body.home-page {
    height: auto;
    overflow-y: auto;
  }
  .shell,
  .home.shell {
    width: min(100% - 28px, 1180px);
    height: auto;
    min-height: 100svh;
    padding-top: 16px;
  }
  .privacy-pill {
    display: none;
  }
  .home .search-hero {
    min-height: auto;
    padding: 11vh 0 5vh;
  }
  .hero-mark-wrap {
    width: 82px;
    height: 82px;
  }
  .search-hero h1 {
    font-size: clamp(38px, 13vw, 56px);
  }
  .searchbox {
    min-height: 58px;
    border-radius: 17px;
  }
  .searchbox > svg {
    margin-left: 16px;
  }
  .searchbox input {
    height: 56px;
    padding: 0 12px;
    font-size: 14px;
  }
  .searchbox > button {
    min-width: 48px;
    width: 48px;
    height: 42px;
    padding: 0;
  }
  .searchbox > button span:first-child {
    display: none;
  }
  .feature-row {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 24px;
  }
  .results-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .results-head h1 {
    white-space: normal;
  }
  .result-card {
    padding-left: 8px;
    padding-right: 8px;
  }
  .pager {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pager div:last-child {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .aur {
    animation: none;
  }
}

@media (max-height: 650px) and (min-width: 761px) {
  .home .search-hero { padding-top: 0; padding-bottom: 0; }
  .hero-mark-wrap { width: 64px; height: 64px; margin-bottom: 9px; border-radius: 20px; }
  .hero-mark-wrap .mark { width: 48px; height: 48px; }
  .eyebrow { margin-bottom: 7px; }
  .search-hero h1 { font-size: 42px; }
  .lead { margin: 8px 0 14px; font-size: 13px; }
  .searchbox { min-height: 56px; }
  .searchbox input { height: 54px; }
  .searchbox > button { height: 40px; }
  .search-meta { margin-top: 10px; }
  .feature-row { display: none; }
  .footer { margin-top: 6px; }
}
