:root {
  --bg-top: #02070b;
  --bg-mid: #07131c;
  --bg-bottom: #0b2432;
  --panel: rgba(5, 15, 24, 0.92);
  --panel-soft: rgba(6, 20, 33, 0.92);
  --panel-alt: rgba(6, 18, 30, 0.92);
  --panel-deep: rgba(4, 11, 20, 0.92);
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #eefcf8;
  --muted: #b4ded6;
  --muted-2: #7ca4ac;
  --muted-3: #6f929a;
  --accent: #a9eeff;
  --accent-strong: #7ff3dd;
  --accent-bg: rgba(80, 216, 255, 0.12);
  --green: #b5fff0;
  --green-bg: rgba(66, 239, 205, 0.12);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  scroll-padding-top: 108px;
}

body {
  background:
    radial-gradient(circle at top left, rgba(46, 209, 255, 0.15), transparent 26%),
    radial-gradient(circle at 78% 18%, rgba(28, 255, 178, 0.11), transparent 24%),
    linear-gradient(135deg, var(--bg-top) 0%, var(--bg-mid) 38%, var(--bg-bottom) 100%);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}

.site-shell {
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 20px 0;
}

.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  border: 1px solid rgba(106, 255, 221, 0.14);
  border-radius: 999px;
  background: rgba(4, 16, 24, 0.76);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.site-header__brand,
.site-header__nav a {
  color: #e7fffb;
  text-decoration: none;
}

.site-header__brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.site-header__nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #c4ede6;
  font-size: 0.94rem;
  font-weight: 500;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.site-header__nav a:hover,
.site-header__nav a:focus-visible {
  outline: none;
  color: #f2fffc;
  background: rgba(80, 216, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(80, 216, 255, 0.16), 0 0 24px rgba(80, 216, 255, 0.14);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px 32px 32px;
  margin-top: -82px;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(65, 165, 193, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 165, 193, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black 34%, transparent 90%);
}

.scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.code-panel {
  position: absolute;
  width: min(34vw, 380px);
  min-height: 280px;
  padding: 18px 20px;
  border: 1px solid rgba(55, 243, 200, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(11, 41, 52, 0.84), rgba(4, 18, 27, 0.78));
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.code-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(31, 255, 193, 0.1), transparent 22%),
    linear-gradient(90deg, transparent, rgba(31, 255, 193, 0.05), transparent);
}

.code-panel--left {
  top: 12%;
  left: 4%;
  transform: rotate(-8deg);
  animation: float-panel-left 10s ease-in-out infinite;
}

.code-panel--right {
  right: 5%;
  bottom: 10%;
  transform: rotate(8deg);
  animation: float-panel-right 12s ease-in-out infinite;
}

.code-panel__bar {
  width: 72px;
  height: 8px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(42, 243, 197, 0.9), rgba(42, 159, 243, 0.4));
  box-shadow: 0 0 20px rgba(42, 243, 197, 0.35);
}

.code-panel pre {
  position: relative;
  margin: 0;
  color: rgba(174, 252, 231, 0.86);
  font-size: 0.93rem;
  line-height: 1.7;
  white-space: pre-wrap;
  font-family: Consolas, "Courier New", monospace;
}

.agent-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(34vw, 420px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.agent-core__halo,
.agent-core__screen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.agent-core__halo {
  background:
    radial-gradient(circle, rgba(44, 255, 192, 0.28) 0%, rgba(24, 149, 192, 0.12) 36%, transparent 68%);
  filter: blur(18px);
  animation: pulse-halo 5s ease-in-out infinite;
}

.agent-core__screen {
  inset: 12%;
  border: 1px solid rgba(98, 245, 224, 0.26);
  background:
    radial-gradient(circle at 50% 40%, rgba(30, 167, 214, 0.34), rgba(5, 20, 28, 0.92) 58%),
    linear-gradient(180deg, rgba(24, 184, 154, 0.14), rgba(11, 27, 36, 0.2));
  box-shadow:
    inset 0 0 90px rgba(22, 210, 183, 0.18),
    0 0 50px rgba(21, 153, 182, 0.2);
  overflow: hidden;
}

.agent-core__screen::before {
  content: "</>";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(187, 255, 239, 0.72);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.08em;
}

.agent-core__scan {
  position: absolute;
  inset: -30% 12%;
  background: linear-gradient(180deg, transparent, rgba(78, 255, 216, 0.2), transparent);
  transform: translateY(-10%);
  animation: scan 3.4s linear infinite;
}

.agent-core__cursor {
  position: absolute;
  right: 24%;
  bottom: 28%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #9dfff0;
  box-shadow: 0 0 24px rgba(157, 255, 240, 0.8);
  animation: blink 1.1s steps(2) infinite;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 56px;
  border: 1px solid rgba(106, 255, 221, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(8, 34, 45, 0.88), rgba(4, 16, 24, 0.92));
  backdrop-filter: blur(22px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  animation: rise 900ms ease-out both;
}

.eyebrow {
  margin: 0 0 20px;
  color: #8fe6da;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.06em;
  text-wrap: balance;
  color: #e8fff9;
  text-shadow: 0 0 30px rgba(60, 223, 198, 0.08);
}

.supporting-copy {
  max-width: 38rem;
  margin: 24px 0 0;
  color: #b7e8de;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.cta,
.pager,
.result-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22f0c1, #1782ca);
  color: #02131a;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
  box-shadow: 0 14px 30px rgba(20, 199, 160, 0.24);
  border: 0;
  cursor: pointer;
}

.cta:hover,
.cta:focus-visible,
.pager:hover,
.result-card__link:hover {
  background: linear-gradient(135deg, #59ffd8, #2ea4ff);
  transform: translateY(-2px);
}

.cta--ghost {
  background: transparent;
  color: #d7fff6;
  border: 1px solid rgba(66, 239, 205, 0.22);
  box-shadow: none;
}

.cta--ghost:hover,
.cta--ghost:focus-visible {
  background: rgba(42, 243, 197, 0.1);
}

.hero__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.7;
}

.hero__glow--one {
  top: 6%;
  left: 8%;
  width: 280px;
  height: 280px;
  background: rgba(31, 165, 255, 0.18);
  animation: drift 7s ease-in-out infinite;
}

.hero__glow--two {
  right: 8%;
  bottom: 8%;
  width: 360px;
  height: 360px;
  background: rgba(45, 255, 176, 0.14);
  animation: drift 9s ease-in-out infinite reverse;
}

.hero__glow--three {
  top: 50%;
  left: 50%;
  width: 520px;
  height: 520px;
  background: rgba(32, 143, 214, 0.14);
  transform: translate(-50%, -50%);
  animation: pulse-glow 6s ease-in-out infinite;
}

.search-shell {
  padding: 0 20px 72px;
}

.contact-shell {
  padding: 0 20px 72px;
}

.about-shell,
.contact-shell,
.search-shell {
  scroll-margin-top: 108px;
}

.about-shell {
  padding: 0 20px 72px;
}

.about-shell__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.about-copy,
.about-point {
  border: 1px solid var(--line);
  background: rgba(2, 8, 15, 0.72);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border-radius: 2rem;
}

.about-copy {
  padding: 28px;
  background: linear-gradient(180deg, rgba(6, 20, 33, 0.92), rgba(5, 15, 24, 0.84));
}

.about-copy h2 {
  max-width: 18ch;
  margin: 16px 0 0;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.about-copy p {
  max-width: 42rem;
  margin: 14px 0 0;
  color: #c3d7de;
  font-size: 1rem;
  line-height: 1.8;
}

.about-points {
  display: grid;
  gap: 16px;
}

.about-point {
  padding: 20px;
  background: linear-gradient(180deg, rgba(5, 15, 24, 0.9), rgba(3, 10, 18, 0.92));
}

.about-point p {
  margin: 0;
  color: #8fe6da;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-point span {
  display: block;
  margin-top: 10px;
  color: #e2f5f0;
  line-height: 1.75;
}

.contact-shell__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 440px;
}

.contact-copy,
.contact-card {
  border: 1px solid var(--line);
  background: rgba(2, 8, 15, 0.72);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border-radius: 2rem;
}

.contact-copy {
  padding: 28px;
  background: linear-gradient(180deg, rgba(6, 20, 33, 0.92), rgba(5, 15, 24, 0.84));
}

.contact-copy h2 {
  max-width: 18ch;
  margin: 16px 0 0;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.contact-copy p {
  max-width: 44rem;
  margin: 14px 0 0;
  color: #c3d7de;
  font-size: 1rem;
  line-height: 1.8;
}

.contact-points {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-point {
  border-radius: 1.2rem;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
}

.contact-point p,
.contact-form__status {
  margin: 0;
}

.contact-point p {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-point span {
  display: block;
  margin-top: 8px;
  color: #e2f5f0;
  line-height: 1.7;
}

.contact-card {
  padding: 24px;
  background: linear-gradient(180deg, var(--panel-alt), var(--panel-deep));
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form[hidden],
.contact-success[hidden] {
  display: none;
}

.contact-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.9);
  color: white;
  padding: 14px 16px;
  font: inherit;
}

.contact-form textarea::placeholder {
  color: #64748b;
}

.contact-form textarea:focus {
  outline: none;
  border-color: rgba(80, 216, 255, 0.4);
  box-shadow:
    0 0 0 3px rgba(80, 216, 255, 0.14),
    0 0 28px rgba(80, 216, 255, 0.22);
}

.contact-captcha {
  border-radius: 1rem;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
}

.contact-captcha[hidden] {
  display: none;
}

.contact-captcha__label {
  margin: 0 0 12px;
  color: #d4edf3;
  font-size: 0.92rem;
  font-weight: 500;
}

.contact-captcha__status {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: #b7d3d8;
  line-height: 1.5;
}

.contact-captcha__status.is-error {
  color: #ffd3d3;
}

.contact-form__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form__status {
  min-height: 1.5em;
  color: #b7d3d8;
  line-height: 1.6;
}

.contact-form__status.is-error {
  color: #ffd3d3;
}

.contact-form__status.is-success {
  color: #b8ffe8;
}

.contact-success {
  position: relative;
  overflow: hidden;
  border-radius: 1.4rem;
  border: 1px solid rgba(66, 239, 205, 0.22);
  background:
    radial-gradient(circle at top center, rgba(53, 231, 195, 0.16), transparent 52%),
    linear-gradient(180deg, rgba(8, 34, 45, 0.88), rgba(4, 16, 24, 0.96));
  padding: 24px;
  animation: rise 320ms ease-out both;
}

.contact-success__pulse {
  width: 70px;
  height: 70px;
  margin-bottom: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(181, 255, 240, 0.95) 0%, rgba(79, 243, 221, 0.38) 44%, transparent 74%);
  box-shadow:
    0 0 0 10px rgba(42, 243, 197, 0.08),
    0 0 34px rgba(42, 243, 197, 0.18);
  animation: pulse-halo 2.8s ease-in-out infinite;
}

.contact-success__eyebrow {
  margin: 0;
  color: #8fe6da;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact-success h3 {
  margin: 12px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.contact-success p {
  margin: 14px 0 0;
  color: #c3d7de;
  line-height: 1.75;
}

.contact-success .cta {
  margin-top: 18px;
}

.contact-submit--busy {
  opacity: 0.8;
  pointer-events: none;
}

.search-shell__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.search-hero {
  margin: 0 auto 32px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(6, 20, 33, 0.92), rgba(5, 15, 24, 0.84));
  box-shadow: var(--shadow);
}

.search-hero__chip {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(80, 216, 255, 0.2);
  background: rgba(80, 216, 255, 0.1);
  color: #c7f3ff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.search-hero h2 {
  max-width: 56rem;
  margin: 16px 0 0;
  font-size: clamp(2.3rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.search-hero p {
  max-width: 48rem;
  margin: 14px 0 0;
  color: #c3d7de;
  font-size: 1.05rem;
  line-height: 1.8;
}

.search-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: 320px minmax(0, 1fr);
}

.filters-panel,
.results-bar,
.result-card,
.results-empty,
.results-pagination {
  border: 1px solid var(--line);
  background: rgba(2, 8, 15, 0.72);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.filters-panel {
  height: fit-content;
  position: sticky;
  top: 24px;
  border-radius: 1.75rem;
  padding: 20px;
  background: rgba(2, 8, 15, 0.7);
}

.filters-panel__header,
.results-bar,
.results-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.filters-panel__header h3 {
  margin: 0;
  font-size: 1.125rem;
}

.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #8fdcff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.filters-panel__body {
  margin-top: 20px;
}

.field,
.filter-group {
  display: block;
}

.field + .field,
.field + .filter-group,
.filter-group + .filter-group {
  margin-top: 20px;
}

.field span,
.filter-group p {
  display: block;
  margin: 0 0 12px;
  color: #d4edf3;
  font-size: 0.92rem;
  font-weight: 500;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.9);
  color: white;
  padding: 14px 16px;
  font: inherit;
}

.field input::placeholder {
  color: #64748b;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: rgba(80, 216, 255, 0.4);
  box-shadow:
    0 0 0 3px rgba(80, 216, 255, 0.14),
    0 0 28px rgba(80, 216, 255, 0.22);
}

#search-query {
  position: relative;
  border-color: rgba(80, 216, 255, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(80, 216, 255, 0.08),
    0 0 22px rgba(80, 216, 255, 0.12);
  transition:
    border-color 180ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

#search-query.search-query--active,
#search-query:focus {
  border-color: rgba(108, 245, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(108, 245, 255, 0.2),
    0 0 0 5px rgba(80, 216, 255, 0.1),
    0 0 36px rgba(80, 216, 255, 0.28);
  transform: translateY(-1px);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: 180ms ease;
}

.chip:hover,
.chip:focus-visible {
  border-color: rgba(80, 216, 255, 0.3);
  color: white;
}

.chip--selected.complexity {
  border-color: rgba(80, 216, 255, 0.4);
  background: rgba(80, 216, 255, 0.15);
  color: #d9f7ff;
}

.chip--selected.category {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.15);
  color: #d7fff0;
}

.results-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.results-bar,
.results-pagination {
  border-radius: 1.5rem;
  padding: 16px 20px;
}

.results-bar__eyebrow {
  margin: 0;
  color: #64748b;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.results-bar__title {
  margin: 4px 0 0;
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
}

.results-bar__status,
.results-pagination p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.95rem;
}

.results-grid {
  display: grid;
  gap: 16px;
}

.result-card {
  border-radius: 1.75rem;
  padding: 20px;
  background: linear-gradient(180deg, var(--panel-alt), var(--panel-deep));
}

.result-card__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.result-card__badges,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.badge--teal {
  border-color: rgba(80, 216, 255, 0.2);
  background: rgba(80, 216, 255, 0.1);
  color: var(--accent);
}

.badge--green {
  border-color: rgba(52, 211, 153, 0.2);
  background: rgba(52, 211, 153, 0.1);
  color: var(--green);
}

.result-card__link {
  padding: 10px 16px;
  font-size: 0.95rem;
  background: rgba(80, 216, 255, 0.1);
  color: #d9f7ff;
  border: 1px solid rgba(80, 216, 255, 0.3);
  box-shadow: none;
}

.result-card__link:hover {
  background: rgba(80, 216, 255, 0.2);
}

.result-card h3 {
  margin: 14px 0 0;
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
}

.result-card__subtitle {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 0.95rem;
}

.result-card__description {
  margin: 16px 0 0;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.8;
}

.result-card__meta {
  margin: 20px 0 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.result-card__meta div,
.result-card__group,
.result-card__reason {
  border-radius: 1rem;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
}

.result-card__meta dt,
.result-card__group p,
.result-card__reason-title {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.result-card__meta dd {
  margin: 0;
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 500;
}

.result-card__groups {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tag-row span {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.8);
  padding: 6px 12px;
  color: #cbd5e1;
  font-size: 0.75rem;
}

.result-card__reason {
  margin-top: 16px;
}

.result-card__reason-copy {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.8;
}

.results-empty {
  border-style: dashed;
  border-radius: 1.75rem;
  padding: 64px 24px;
  text-align: center;
  color: #94a3b8;
}

.results-pagination {
  align-items: center;
}

.pager {
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: none;
  color: white;
}

.pager:hover {
  background: rgba(255, 255, 255, 0.06);
}

.pager:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.detail-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px 72px;
}

.detail-hero,
.detail-main,
.detail-sidebar,
.detail-related-card,
.detail-stat-card {
  border: 1px solid var(--line);
  background: rgba(2, 8, 15, 0.72);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.detail-hero {
  border-radius: 2rem;
  padding: 28px;
  background: linear-gradient(180deg, rgba(6, 20, 33, 0.92), rgba(5, 15, 24, 0.84));
}

.detail-hero__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(80, 216, 255, 0.24);
  background: rgba(80, 216, 255, 0.1);
  color: #d9f7ff;
  font-weight: 600;
  text-decoration: none;
}

.detail-back--ghost {
  background: transparent;
  border-color: rgba(52, 211, 153, 0.24);
  color: #d7fff0;
}

.detail-hero__chip {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(80, 216, 255, 0.2);
  background: rgba(80, 216, 255, 0.1);
  color: #c7f3ff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.detail-hero h1,
.detail-related__header h2,
.detail-section h2 {
  margin: 16px 0 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  letter-spacing: -0.05em;
  color: #f2fffb;
}

.detail-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.96;
}

.detail-hero__subtitle {
  margin: 10px 0 0;
  color: #94a3b8;
  font-size: 1rem;
}

.detail-hero__copy {
  max-width: 54rem;
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.8;
}

.detail-badges,
.detail-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-badges {
  margin-top: 20px;
}

.detail-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 320px;
  margin-top: 24px;
}

.detail-main {
  border-radius: 2rem;
  padding: 24px;
}

.detail-sidebar {
  align-self: start;
  border-radius: 2rem;
  padding: 20px;
  display: grid;
  gap: 14px;
}

.detail-section + .detail-section {
  margin-top: 28px;
}

.detail-section__eyebrow,
.detail-stat-card__label,
.detail-related-card__rank {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.detail-section p {
  margin: 14px 0 0;
  color: #cbd5e1;
  line-height: 1.85;
}

.detail-tag-groups {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.detail-tag-card,
.detail-stat-card {
  border-radius: 1.25rem;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.05);
  padding: 18px;
}

.detail-tag-card h3 {
  margin: 0 0 12px;
  color: #eefcf8;
  font-size: 1rem;
}

.detail-inline-actions {
  margin-top: 18px;
}

.detail-stat-card__value {
  margin: 0;
  color: #eefcf8;
  font-size: 1.05rem;
  font-weight: 600;
}

.detail-related {
  margin-top: 32px;
}

.detail-related__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.detail-related-card {
  border-radius: 1.5rem;
  padding: 20px;
  background: linear-gradient(180deg, var(--panel-alt), var(--panel-deep));
}

.detail-related-card h3 {
  margin: 8px 0 0;
  color: white;
  font-size: 1.2rem;
}

.detail-related-card p {
  margin: 12px 0 0;
  color: #cbd5e1;
  line-height: 1.75;
}

.detail-related-card a {
  display: inline-flex;
  margin-top: 16px;
  color: #a9eeff;
  font-weight: 600;
  text-decoration: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(18px, -16px, 0);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(0.96);
  }

  50% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes pulse-halo {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.95;
    transform: scale(1.04);
  }
}

@keyframes scan {
  0% {
    transform: translateY(-55%);
  }

  100% {
    transform: translateY(75%);
  }
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0.15;
  }
}

@keyframes float-panel-left {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }

  50% {
    transform: translateY(-18px) rotate(-6deg);
  }
}

@keyframes float-panel-right {
  0%,
  100% {
    transform: translateY(0) rotate(8deg);
  }

  50% {
    transform: translateY(-18px) rotate(6deg);
  }
}

@media (max-width: 980px) {
  .about-shell__inner,
  .contact-shell__inner,
  .search-layout {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    position: static;
  }

  .result-card__meta,
  .result-card__groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid,
  .detail-related__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 12px 12px 0;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
    border-radius: 1.5rem;
    padding: 14px 16px;
  }

  .site-header__brand {
    text-align: center;
  }

  .site-header__nav {
    justify-content: center;
  }

  .hero {
    padding: 18px;
    margin-top: -120px;
  }

  .hero__content {
    padding: 32px 24px;
    border-radius: 22px;
  }

  .supporting-copy {
    line-height: 1.6;
  }

  .scene {
    opacity: 0.58;
  }

  .code-panel {
    width: 62vw;
    min-height: 220px;
    padding: 16px;
  }

  .code-panel pre {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .code-panel--left {
    top: 6%;
    left: -10%;
  }

  .code-panel--right {
    right: -12%;
    bottom: 6%;
  }

  .agent-core {
    width: 74vw;
  }

  .hero__actions,
  .results-bar,
  .results-pagination,
  .result-card__header {
    flex-direction: column;
    align-items: stretch;
  }

  .about-shell,
  .search-shell {
    padding: 0 12px 48px;
  }

  .contact-shell {
    padding: 0 12px 48px;
  }

  .search-hero,
  .contact-copy,
  .contact-card,
  .filters-panel,
  .results-bar,
  .result-card,
  .results-pagination,
  .results-empty,
  .detail-hero,
  .detail-main,
  .detail-sidebar,
  .detail-related-card {
    border-radius: 1.5rem;
  }

  .result-card__meta,
  .result-card__groups {
    grid-template-columns: 1fr;
  }

  .detail-shell {
    padding: 18px 12px 48px;
  }

  .detail-hero__nav,
  .detail-inline-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
