:root {
  color-scheme: light;
  --bg: #eef2f6;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --ink: #15202b;
  --muted: #607080;
  --soft: #8a98a8;
  --line: #d8e0e8;
  --line-strong: #c5d0dc;
  --blue: #155eef;
  --blue-dark: #0b3ea9;
  --green: #117a4a;
  --amber: #b45309;
  --red: #b42318;
  --shadow: 0 20px 55px rgba(25, 39, 52, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(21, 94, 239, 0.07), transparent 270px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.brand,
.brand span,
nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand__mark {
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-size: 0.9rem;
  font-weight: 900;
}

.brand span:last-child {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.brand strong {
  font-size: 1rem;
  font-weight: 900;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

nav {
  gap: clamp(12px, 3vw, 28px);
  color: #314253;
  font-size: 0.93rem;
  font-weight: 800;
}

main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(40px, 7vw, 90px) 0 clamp(28px, 5vw, 58px);
}

.hero__content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  color: #101828;
  font-size: clamp(2.6rem, 6.2vw, 5.8rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 0;
  color: #101828;
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
}

.hero__content > p:not(.eyebrow),
.hero__content > p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  line-height: 1.72;
}

.lookup-panel,
.record-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.lookup-panel {
  padding: clamp(18px, 3vw, 28px);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.panel-heading > span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(17, 122, 74, 0.28);
  border-radius: 999px;
  background: #ecfdf3;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.lookup {
  display: grid;
  gap: 9px;
}

.lookup label {
  color: #263645;
  font-size: 0.9rem;
  font-weight: 900;
}

.lookup__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.lookup input {
  min-width: 0;
  height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: none;
  background: white;
  color: #111827;
  font-weight: 900;
  text-transform: uppercase;
  padding: 0 14px;
}

.lookup input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.12);
}

.lookup button {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  cursor: pointer;
  font-weight: 900;
  padding: 0 18px;
}

.lookup button:hover {
  background: var(--blue-dark);
}

.lookup p {
  margin: 0;
  color: var(--soft);
  font-size: 0.84rem;
  line-height: 1.5;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.quick-stats div,
.verification-strip div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 14px;
}

.quick-stats strong,
.quick-stats span {
  display: block;
}

.quick-stats strong {
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 1rem;
}

.quick-stats span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.registry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  margin-bottom: 18px;
}

.record-card {
  padding: clamp(18px, 3vw, 28px);
}

.record-card--large {
  min-width: 0;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.output {
  border: 1px solid #1f2937;
  border-radius: 8px;
  background: #0b1220;
  color: #e6edf7;
  line-height: 1.58;
}

.output {
  max-height: 570px;
  overflow: auto;
  padding: 18px;
}

.record-stack {
  display: grid;
  gap: 12px;
}

.module-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #eaf1ff;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
}

.record-card p,
.verification-strip p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.verification-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.verification-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 900;
}

.verification-strip strong {
  display: block;
  margin-bottom: 6px;
}

@media (max-width: 920px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .hero,
  .registry-layout,
  .verification-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 20px, 1200px);
  }

  nav,
  .lookup__row,
  .quick-stats {
    width: 100%;
  }

  nav {
    justify-content: space-between;
  }

  .lookup__row,
  .quick-stats {
    grid-template-columns: 1fr;
  }

  .panel-heading {
    flex-direction: column;
  }
}
