@font-face {
  font-family: Geist;
  src: url("/media/geist-latin.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}

:root {
  color-scheme: dark;
  --page: #0c0d11;
  --panel: #17181e;
  --line: #343640;
  --ink: #fbfbfc;
  --muted: #bcbec9;
  --cyan: #69f5e2;
  --rose: #ff6796;
  font-family: Geist, system-ui, sans-serif;
  background: var(--page);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { color: var(--cyan); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1170px, calc(100% - 64px)); margin-inline: auto; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: #0e0f14;
}
.nav, footer {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav nav, footer nav, .links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.nav a { text-decoration: none; font-size: .92rem; font-weight: 650; }
.nav a.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.23rem;
  font-weight: 780;
  letter-spacing: -.045em;
}
.brand-mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 8px;
  background: var(--cyan);
  box-shadow: 2px 2px 0 var(--rose);
}
.brand-mark i {
  width: 13px;
  height: 10px;
  border-block: 2px solid #0c0d11;
  transform: skewY(-12deg);
}
.nav .nav-demo {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.nav-demo span, .guide-link { color: var(--cyan); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(42px, 7vw, 92px) 40px;
}
.eyebrow, .panel-label {
  display: flex;
  gap: .7em;
  align-items: center;
  margin: 0 0 17px;
  color: var(--cyan);
  font-size: .73rem;
  font-weight: 760;
  letter-spacing: .15em;
}
.eyebrow span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 17px #ff679664;
}
h1 {
  margin: 0;
  font-size: clamp(3.35rem, 6.4vw, 6rem);
  font-weight: 800;
  line-height: .97;
  letter-spacing: -.088em;
}
h1 em {
  color: var(--cyan);
  font-style: normal;
}
.lead {
  max-width: 49ch;
  margin: 22px 0 25px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.55;
}
.equipment {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 2.65;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(120deg, #0e151a, #281823);
}
.equipment img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 57%; }
.equipment figcaption {
  position: absolute;
  left: 11px;
  bottom: 11px;
  display: grid;
  gap: 2px;
  padding: 7px 10px;
  color: #d2d3dc;
  background: #0d0d13ed;
  border-radius: 7px;
  font-size: .66rem;
}
.equipment figcaption span { color: white; font-size: .77rem; font-weight: 670; }

.lookup-panel, .card {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 23px;
  padding: clamp(21px, 3.5vw, 33px);
}
.lookup-panel {
  border-top-color: #69f5e28a;
  box-shadow: 0 14px 64px #0005, 0 -8px 42px #69f5e20c;
  scroll-margin-top: 18px;
}
.panel-label { margin-bottom: 8px; }
h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(1.38rem, 3.3vw, 1.9rem);
  line-height: 1.08;
  letter-spacing: -.055em;
}
label { display: block; margin: 0 0 .45em; color: var(--muted); font-size: .86rem; font-weight: 620; }
.search-row { display: flex; gap: 9px; }
.search-row input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #484b59;
  border-radius: 9px;
  color: var(--ink);
  background: #101116;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 1rem;
  letter-spacing: .035em;
}
.search-row input[aria-invalid="true"] { border-color: var(--rose); }
.action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: var(--cyan);
  color: #0c1314;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s, transform .16s;
}
.action:hover { background: #a5fff2; color: #0c1314; transform: translateY(-1px); }
.examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: .78rem;
}
.examples span { margin-right: 3px; }
.examples button {
  padding: 4px 8px;
  border: 1px solid #454754;
  border-radius: 6px;
  background: transparent;
  color: #e7e9f1;
  cursor: pointer;
  font: .73rem ui-monospace, monospace;
}
.examples button:hover, .examples button[aria-pressed="true"] { border-color: var(--cyan); color: var(--cyan); }
.result {
  min-height: 1.3em;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: .88rem;
}
.result[data-state="match"] { color: var(--cyan); font-weight: 680; }
.result[data-state="invalid"] { color: #ffacc6; }
.matches { min-height: 2px; margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.part {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  min-height: 46px;
  border: 1px solid #353742;
  border-radius: 9px;
  color: var(--ink);
  background: #20212a;
  text-decoration: none;
  animation: reveal .24s ease both;
}
.part:hover { border-color: var(--cyan); color: var(--ink); }
.part-name { font-size: .88rem; font-weight: 640; overflow-wrap: anywhere; }
.part code {
  padding: 3px 6px;
  border-radius: 5px;
  color: #dddfe8;
  background: #101116;
  font-size: .69rem;
  overflow-wrap: anywhere;
}
.part-arrow { color: var(--rose); }
@keyframes reveal { from { opacity: .3; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.details { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 16px; }
.card h2 { margin-bottom: 9px; font-size: 1.37rem; }
.card p { margin: 0 0 12px; color: var(--muted); line-height: 1.5; }
.card input[type="file"] { width: 100%; margin-bottom: 9px; color: var(--muted); font-size: .85rem; }
.card input::file-selector-button {
  padding: 8px 11px;
  margin-right: 9px;
  border: 1px solid #484b59;
  border-radius: 7px;
  background: #232530;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}
#source { font-size: .84rem; min-height: 1.4em; }
.links { gap: 16px; font-size: .84rem; }
.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .24em;
}
.text-button:hover { color: var(--cyan); }
.pilot { border-top-color: #ff67968a; }
.pilot .action { margin: 5px 12px 8px 0; }
.guide-link { display: inline-block; font-size: .87rem; }
footer { margin-top: 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-block: 46px 20px; }
  .equipment { display: none; }
  .lead { margin-bottom: 0; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .nav { min-height: 62px; gap: 10px; }
  .nav nav { gap: 10px; }
  .nav a { font-size: .82rem; }
  .nav .nav-demo { padding-inline: 8px; }
  .details { grid-template-columns: 1fr; }
  footer { flex-wrap: wrap; gap: 8px 20px; padding-block: 13px; }
}
@media (max-width: 365px) {
  .nav nav > a:first-child { display: none; }
  .search-row { flex-wrap: wrap; }
  .search-row .action { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}
