@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@500;600;700&family=Fira+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.84);
  --border: rgba(148, 163, 184, 0.24);
  --border-strong: rgba(148, 163, 184, 0.38);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --nav-height: 88px;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  padding-top: var(--nav-height);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 34rem),
    radial-gradient(circle at 85% 12%, rgba(56, 189, 248, 0.12), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 100%);
  color: var(--text);
  font-family: 'Fira Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

button,
a,
input { transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease; }

button,
a { cursor: pointer; }

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(34, 197, 94, 0.72);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 60;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--accent);
  color: #04130a;
  font-weight: 700;
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 14px 20px;
  pointer-events: none;
}

.topnav {
  max-width: 920px;
  min-height: 60px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: 10px 12px 10px 14px;
  pointer-events: auto;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #67e8f9);
  color: #03110a;
  font-family: 'Fira Code', monospace;
  font-weight: 700;
}

.brand strong,
.brand small { display: block; }
.brand small { color: var(--muted); font-size: 0.76rem; }

.nav-links { display: flex; gap: 6px; }
.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--muted-strong);
  padding: 0 14px;
  text-decoration: none;
  font-weight: 700;
}
.nav-links a:hover { background: rgba(148, 163, 184, 0.12); color: var(--text); }

.shell {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 64px;
}

.hero-card {
  border: 1px solid var(--border);
  border-radius: 32px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: clamp(24px, 5vw, 44px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero-copy {
  max-width: 680px;
  margin: 16px 0 26px;
  color: var(--muted-strong);
  font-size: 1.08rem;
}

.lookup-form { display: grid; gap: 10px; }

label {
  color: var(--muted-strong);
  font-weight: 700;
}

.lookup-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

input,
button {
  min-height: 48px;
  border-radius: 999px;
  font: inherit;
  padding: 0 18px;
}

input {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.72);
  color: var(--text);
}

input:hover,
input:focus { border-color: var(--border-strong); }

button {
  border: 1px solid rgba(187, 247, 208, 0.3);
  background: var(--accent);
  color: #03110a;
  font-weight: 800;
  box-shadow: 0 10px 32px rgba(34, 197, 94, 0.22);
}

button:hover { background: #4ade80; }
button:disabled { cursor: not-allowed; opacity: 0.58; }

pre {
  min-height: 96px;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.76);
  color: var(--muted-strong);
  padding: 16px;
}

@media (max-width: 640px) {
  :root { --nav-height: 142px; }
  .topbar { padding: 10px; }
  .topnav { align-items: stretch; border-radius: 22px; flex-direction: column; }
  .nav-links { width: 100%; }
  .nav-links a { flex: 1; justify-content: center; }
  .shell { width: min(100% - 24px, 920px); padding-top: 24px; }
  .lookup-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { transition: none !important; }
}
