:root {
  --bg: #05070b;
  --bg-2: #080d14;
  --panel: rgba(12, 18, 28, 0.82);
  --panel-2: rgba(15, 24, 37, 0.92);
  --line: rgba(133, 157, 187, 0.18);
  --line-strong: rgba(133, 157, 187, 0.32);
  --text: #eef5ff;
  --muted: #9ba9ba;
  --muted-2: #6f8093;
  --accent: #34f5c5;
  --accent-2: #78a6ff;
  --warning: #ffc76b;
  --danger: #ff6b7a;
  --ok: #48f0a4;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
  --radius: 24px;
  --radius-sm: 16px;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 15% 5%, rgba(52, 245, 197, 0.14), transparent 32rem),
    radial-gradient(circle at 85% 10%, rgba(120, 166, 255, 0.12), transparent 34rem),
    linear-gradient(180deg, #05070b 0%, #07101a 50%, #05070b 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

code {
  display: block;
  color: #c6fff0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell {
  width: min(var(--shell), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 40px 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #001512;
  font-weight: 800;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 11, 0.78);
  backdrop-filter: blur(18px);
}

.header-shell,
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(52, 245, 197, 0.36);
  border-radius: 14px;
  background:
    radial-gradient(circle, rgba(52, 245, 197, 0.24), transparent 62%),
    #071018;
  box-shadow: 0 0 30px rgba(52, 245, 197, 0.12);
}

.brand-mark span {
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(52, 245, 197, 0.9);
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  letter-spacing: -0.03em;
}

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

.nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover,
.footer-nav a:hover {
  color: var(--accent);
}

.hero {
  padding-top: 96px;
}

.hero-grid,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(52, 245, 197, 0.1), 0 0 20px rgba(52, 245, 197, 0.9);
}

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

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(2.75rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

h4 {
  margin-bottom: 0;
  font-size: 1.02rem;
}

.hero-lede,
.section-head p,
.two-column > div > p,
.policy-card p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 800;
}

.btn-primary {
  border-color: rgba(52, 245, 197, 0.45);
  background: linear-gradient(135deg, var(--accent), #7df7ff);
  color: #001512;
  box-shadow: 0 16px 50px rgba(52, 245, 197, 0.2);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin: 0;
}

.stats div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
}

.stats dt {
  font-size: 1.5rem;
  font-weight: 900;
}

.stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.terminal-card,
.notice,
.updated-card,
.resource-card,
.method-item,
.safety-card,
.policy-card,
details {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.terminal-card {
  overflow: hidden;
  border-radius: var(--radius);
}

.terminal-top {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
}

.terminal-top span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--muted-2);
}

.terminal-top span:first-child {
  background: var(--danger);
}

.terminal-top span:nth-child(2) {
  background: var(--warning);
}

.terminal-top span:nth-child(3) {
  background: var(--ok);
}

.terminal-body {
  padding: 22px;
}

.terminal-body p {
  margin-bottom: 10px;
  color: var(--muted);
}

.terminal-body b {
  color: var(--text);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.signal-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(5, 7, 11, 0.58);
}

.signal-grid strong,
.signal-grid span {
  display: block;
}

.signal-grid span {
  color: var(--muted);
  font-size: 0.88rem;
}

.notice {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  border-radius: var(--radius);
}

.notice-icon {
  display: grid;
  flex: 0 0 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 199, 107, 0.12);
  color: var(--warning);
  font-weight: 900;
}

.notice h2 {
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.notice p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.updated-card {
  min-width: 210px;
  padding: 18px;
  border-radius: var(--radius-sm);
}

.updated-card span,
.updated-card strong {
  display: block;
}

.updated-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.controls {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.search-wrap input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  outline: none;
  background: rgba(5, 7, 11, 0.72);
  color: var(--text);
}

.search-wrap input:focus {
  border-color: rgba(52, 245, 197, 0.7);
  box-shadow: 0 0 0 4px rgba(52, 245, 197, 0.1);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

.filter-btn.active,
.filter-btn:hover {
  border-color: rgba(52, 245, 197, 0.45);
  color: var(--accent);
  background: rgba(52, 245, 197, 0.08);
}

.results-line {
  color: var(--muted);
}

.directory-grid {
  display: grid;
  gap: 24px;
}

.category {
  padding-top: 10px;
}

.category header {
  margin-bottom: 14px;
}

.category-kicker {
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cards,
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.resource-card,
.safety-card {
  padding: 18px;
  border-radius: var(--radius-sm);
}

.resource-card p,
.safety-card p,
.method-item p,
details p {
  color: var(--muted);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.status {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status.verified {
  background: rgba(72, 240, 164, 0.12);
  color: var(--ok);
}

.status.caution {
  background: rgba(255, 199, 107, 0.12);
  color: var(--warning);
}

.status.research {
  background: rgba(120, 166, 255, 0.12);
  color: var(--accent-2);
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.card-actions a,
.card-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 800;
}

.card-actions a:hover,
.card-actions button:hover {
  border-color: rgba(52, 245, 197, 0.5);
  color: var(--accent);
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-align: center;
}

.method-list {
  display: grid;
  gap: 14px;
}

.method-item {
  display: flex;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-sm);
}

.method-item span {
  color: var(--accent);
  font-weight: 900;
}

.policy-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius);
}

.policy-card p {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 12px 0 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.footer-grid {
  align-items: flex-start;
  padding: 34px 0;
}

.footer-grid > div:first-child {
  max-width: 420px;
}

.footer-grid p {
  color: var(--muted);
}

.footer-nav {
  align-items: flex-start;
  flex-direction: column;
}

.footer-meta {
  text-align: right;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  padding: 12px 16px;
  border: 1px solid rgba(52, 245, 197, 0.35);
  border-radius: 999px;
  background: rgba(5, 7, 11, 0.92);
  color: var(--accent);
  box-shadow: var(--shadow);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

@media (max-width: 920px) {
  .nav {
    display: none;
  }

  .hero-grid,
  .two-column,
  .policy-card {
    grid-template-columns: 1fr;
  }

  .cards,
  .safety-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-grid {
    flex-direction: column;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 28px, var(--shell));
  }

  .section {
    padding: 66px 0;
  }

  .hero {
    padding-top: 70px;
  }

  .stats,
  .signal-grid,
  .cards,
  .safety-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .notice {
    flex-direction: column;
  }

  .header-shell {
    padding: 14px 0;
  }

  .brand-copy small {
    display: none;
  }
}