:root {
  --blue-100: #E7F4FD;
  --blue-200: #98BAD2;
  --blue-300: #5D89A7;
  --blue-400: #315D7D;
  --blue-500: #123852;
  --blue-600: #031F33;
  --blue-700: #020F1B;
  --ink: #06131F;
  --cyan: #7DE3FF;
  --mint: #A7F6D1;
  --rose: #FF9CC7;
  --amber: #FFD27A;
  --surface-glass: rgba(231, 244, 253, 0.08);
  --surface-panel: rgba(2, 15, 27, 0.72);
  --text-soft: rgba(231, 244, 253, 0.82);
  --line-soft: rgba(231, 244, 253, 0.14);
  --line-strong: rgba(231, 244, 253, 0.26);
  --shadow-soft: 0 28px 70px rgba(1, 11, 21, 0.42);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-display: "mono45-headline", "Courier New", Courier, monospace;
  --font-body: "Futura", "Futura PT", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--blue-100);
  font-family: var(--font-body);
  line-height: 1.6;
  background:
    linear-gradient(120deg, rgba(125, 227, 255, 0.14), transparent 24%),
    linear-gradient(250deg, rgba(255, 156, 199, 0.12), transparent 26%),
    linear-gradient(150deg, #031F33 0%, #123852 45%, #020F1B 100%);
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(125, 227, 255, 0.05), transparent 14%, transparent 84%, rgba(167, 246, 209, 0.05)),
    radial-gradient(circle at 50% -15%, rgba(231, 244, 253, 0.14), transparent 34%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

h1,
h2,
strong {
  text-wrap: balance;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: 0;
}

p {
  margin: 0;
  color: var(--text-soft);
  text-wrap: pretty;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(3, 31, 51, 0.96);
  backdrop-filter: blur(16px);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-mark {
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}

.loader-mark img {
  width: clamp(84px, 10vw, 126px);
  filter: drop-shadow(0 18px 30px rgba(1, 11, 21, 0.34));
  animation: loader-pulse 1.8s ease-in-out infinite;
}

.loader-mark p,
.section-kicker {
  color: var(--blue-200);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-shell {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.hero {
  min-height: min(760px, calc(100vh - 2rem));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  grid-template-areas:
    "copy media"
    "search media";
  gap: 2rem;
  align-items: end;
  padding: clamp(1.1rem, 3.5vw, 2.5rem);
  border: 1px solid rgba(231, 244, 253, 0.12);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(140deg, rgba(231, 244, 253, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(2, 15, 27, 0.2), rgba(2, 15, 27, 0.72));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
}

.hero-copy {
  grid-area: copy;
  align-self: center;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  margin-top: 0.8rem;
  max-width: 10ch;
  font-size: clamp(4rem, 11vw, 9.2rem);
}

.hero-intro {
  max-width: 42rem;
  margin-top: 1.2rem;
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-intro strong {
  color: var(--blue-100);
  font-weight: 500;
}

.hero-media {
  grid-area: media;
  align-self: stretch;
  min-height: 410px;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
}

.hero-media img {
  width: min(330px, 72vw);
  filter: drop-shadow(0 34px 60px rgba(0, 0, 0, 0.34));
  animation: float-mark 5s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.scan-line {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  z-index: 2;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(125, 227, 255, 0.86), transparent);
  box-shadow: 0 0 32px rgba(125, 227, 255, 0.68);
  animation: scan 3.4s ease-in-out infinite;
}

.vault-search {
  grid-area: search;
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  align-self: end;
}

.vault-search label {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--blue-200);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.search-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem;
  border: 1px solid rgba(231, 244, 253, 0.2);
  border-radius: 999px;
  background: rgba(2, 15, 27, 0.78);
  box-shadow: 0 20px 54px rgba(1, 11, 21, 0.32);
  backdrop-filter: blur(18px);
}

.search-icon {
  width: 2.7rem;
  height: 2.7rem;
  display: inline-grid;
  place-items: center;
  color: var(--cyan);
}

.search-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.search-row input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--blue-100);
  background: transparent;
}

.search-row input::placeholder {
  color: rgba(231, 244, 253, 0.48);
}

.search-row button {
  min-height: 3rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  color: var(--blue-700);
  background: linear-gradient(135deg, #ffffff, #c9efff);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.search-row button:hover,
.search-row button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(125, 227, 255, 0.18);
  outline: none;
}

.results-zone {
  margin-top: 1.25rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  margin-top: 0.55rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.section-head > p {
  max-width: 35rem;
}

.results-panel {
  min-height: 280px;
  padding: clamp(1rem, 2.4vw, 1.35rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-panel);
  box-shadow: 0 18px 42px rgba(1, 11, 21, 0.22);
  backdrop-filter: blur(18px);
}

.results-meta {
  color: var(--blue-200);
  font-size: 0.9rem;
}

.results-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(231, 244, 253, 0.12);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at top right, rgba(125, 227, 255, 0.12), transparent 28%),
    rgba(231, 244, 253, 0.045);
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.result-card:hover,
.result-card:focus-within {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background-color: rgba(231, 244, 253, 0.04);
}

.result-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.result-title strong {
  color: var(--blue-100);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 500;
}

.result-path {
  color: var(--mint);
  font-size: 0.88rem;
}

.result-card p {
  margin-top: 0.35rem;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.8rem;
}

.result-tags span {
  padding: 0.28rem 0.48rem;
  border: 1px solid rgba(231, 244, 253, 0.12);
  border-radius: 999px;
  color: var(--blue-200);
  font-size: 0.76rem;
}

.result-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0 1rem;
  border-radius: 999px;
  color: var(--blue-700);
  background: linear-gradient(135deg, #ffffff, #dbeefa);
  white-space: nowrap;
}

.empty-state {
  min-height: 190px;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  border: 1px dashed rgba(231, 244, 253, 0.18);
  border-radius: var(--radius-md);
  color: var(--blue-200);
  text-align: center;
}

.site-footer {
  padding: 0 1.25rem 2rem;
  text-align: center;
}

.site-footer p {
  color: var(--blue-200);
  font-size: 0.9rem;
}

@keyframes loader-pulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(-6px);
    opacity: 0.88;
  }
}

@keyframes float-mark {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

@keyframes scan {
  0%,
  100% {
    transform: translateY(-78px);
    opacity: 0;
  }

  18%,
  82% {
    opacity: 1;
  }

  50% {
    transform: translateY(78px);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "copy"
      "search";
    gap: 1.2rem;
  }

  .hero-media {
    min-height: 280px;
  }

  .hero-copy h1 {
    max-width: 9ch;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100%, calc(100% - 1.1rem));
    padding-top: 0.55rem;
  }

  .hero {
    border-radius: 22px;
  }

  .hero-copy h1 {
    font-size: clamp(3.2rem, 18vw, 5.6rem);
  }

  .search-row {
    grid-template-columns: auto minmax(0, 1fr);
    border-radius: 24px;
  }

  .search-row button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .section-head,
  .result-card {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .result-open {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
