:root {
  color-scheme: dark;
  --bg: #0d0b0c;
  --surface: #151314;
  --line: #302b2d;
  --text: #f5f3f4;
  --muted: #b2adb0;
  --accent: #ff6679;
  --red: #a60920;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 90% 0, #310c1455, transparent 42%),
    var(--bg);
  color: var(--text);
  font: 16px/1.5 Arial, Helvetica, sans-serif;
}

button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: #ffb2be; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #100c0ef5;
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1220px;
  min-height: 73px;
  margin: auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #292024;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand span {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .12em;
}

nav { display: flex; gap: 28px; }

nav a {
  color: #c9c3c6;
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
}

main {
  max-width: 1220px;
  margin: auto;
  padding: 0 24px;
}

.hero {
  min-height: 560px;
  padding: 80px 0 90px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  gap: 55px;
}

.hero-identity {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.hero-logo {
  width: 160px;
  height: 180px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
}

h1 {
  margin: 12px 0 22px;
  font-size: clamp(54px, 5.9vw, 86px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 750;
}

.intro {
  max-width: 465px;
  margin: 24px 0 0;
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #4a343b;
  border-left: 1px solid #4a343b;
  background: #191517;
}

.stats > div {
  min-height: 124px;
  padding: 24px;
  border-right: 1px solid #4a343b;
  border-bottom: 1px solid #4a343b;
}

.stats strong {
  display: block;
  font-size: 36px;
  line-height: 1.2;
}

.stats span {
  display: block;
  margin-top: 4px;
  color: #a39a9f;
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -.04em;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  padding-bottom: 16px;
}

.section-heading > p {
  max-width: 550px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.framework {
  border-top: 1px solid #322027;
  padding-top: 70px;
  margin-bottom: 145px;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.framework-grid article {
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.framework-grid .eyebrow { margin: 0 0 2px; }
.framework-grid h3 { margin: 0; font-size: 18px; }

.framework-grid p:not(.eyebrow) {
  color: var(--muted);
  margin: 8px 0 0;
}

#search-form {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

#search-form label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.search-row { display: flex; gap: 10px; }

input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #453b40;
  border-radius: 0;
  color: var(--text);
  background: var(--bg);
}

input::placeholder { color: #939093; }

.button {
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid var(--red);
  border-radius: 10px;
  background: var(--red);
  color: white;
  font-size: 13px;
  font-weight: 600;
}

.button:hover { background: #c10e2a; }

.secondary {
  color: #ff95a2;
  background: transparent;
  border-color: #52444a;
}

.secondary:hover { background: #271a20; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 14px;
}

.tabs button {
  padding: 9px 14px;
  border: 1px solid #52444a;
  border-radius: 9px;
  color: #ff95a2;
  background: transparent;
  font-size: 13px;
}

.tabs button[aria-selected="true"] {
  background: #541322;
  border-color: #b73b51;
  color: white;
}

.tabs span {
  margin-left: 6px;
  font-size: 11px;
  opacity: .8;
}

.record-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.record-heading h3 { margin: 0; font-size: 18px; }

.record-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.record-controls p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.text-button {
  min-height: 36px;
  background: transparent;
  border: 0;
  color: var(--accent);
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-top: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  padding: 12px 15px;
  background: #66101f;
  color: white;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  padding: 16px 15px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  min-width: 120px;
  max-width: 420px;
  overflow-wrap: anywhere;
  vertical-align: top;
}

td a { text-decoration: none; }
td a:hover { text-decoration: underline; }
tbody tr:hover td { background: #1d171a; }

td img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin-right: 8px;
  vertical-align: middle;
}

.status-active {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  color: #126d30;
  background: #e3f4e8;
  font-size: 12px;
  white-space: nowrap;
}

.state {
  padding: 52px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}

.state.error { color: #ffa6b5; }
.updated { color: var(--muted); font-size: 12px; }
.appeals { margin: 90px 0 60px; }
.appeals > p { color: var(--muted); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 25px max(24px, calc((100vw - 1172px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
}

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.skip-link:focus {
  position: fixed;
  z-index: 30;
  top: 8px;
  left: 8px;
  padding: 10px;
  background: var(--bg);
}

@media (max-width: 1000px) {
  .hero { gap: 30px; grid-template-columns: 1fr; }
  .hero-identity { max-width: 700px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats > div { padding: 20px; }
  .stats strong { font-size: 30px; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 130px; }
  .nav-inner { flex-wrap: wrap; padding: 12px 18px; gap: 12px; }
  .brand span { font-size: 15px; }
  nav { gap: 24px; }
  main { padding: 0 18px; }
  .hero { padding: 45px 0; min-height: auto; }
  .hero-identity {
    grid-template-columns: 75px minmax(0, 1fr);
    gap: 18px;
  }
  .hero-logo { width: 75px; height: 100px; }
  h1 { font-size: clamp(42px, 11vw, 66px); }
  .intro { font-size: 15px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div { min-height: 105px; }
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .framework { padding-top: 40px; margin-bottom: 70px; }
  .framework-grid { grid-template-columns: 1fr; }
  h2 { font-size: 26px; }
  #search-form { padding: 14px; }
  .search-row { flex-wrap: wrap; }
  input { flex-basis: 100%; }
  .search-row button { flex: 1; }
  .record-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .record-controls { width: 100%; justify-content: space-between; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes navbar-logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.hero-logo {
  animation: logo-float 4s ease-in-out infinite;
}

.brand img {
  animation: navbar-logo-float 4s ease-in-out infinite;
}

.appeal-card {
  padding: 22px;
  border: 1px solid #503137;
  background: #281c1e;
}

.appeal-card p {
  margin: 0;
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo,
  .brand img {
    animation: none;
  }
}