@import url('https://fonts.googleapis.com/css2?family=PT+Serif:wght@400;700&display=swap');

:root {
  --bg: #05070c;
  --bg-2: #0a0f22;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(150, 178, 255, 0.22);
  --line-strong: rgba(160, 190, 255, 0.4);
  --accent: #3d6bff;
  --accent-2: #8fb0ff;
  --text: #eef1fb;
  --text-dim: #99a4c6;
  --text-faint: #5b6486;
  --mono: ui-monospace, "SFMono-Regular", "Roboto Mono", Menlo, Consolas, monospace;
  --serif: 'PT Serif', Georgia, serif;
  --r: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  min-width: 0;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  min-height: 100vh;
  position: relative;
  font-size: 15px;
}

.bg-drift {
  position: fixed;
  inset: -15%;
  z-index: 0;
  background: linear-gradient(150deg, var(--bg-2) 0%, var(--bg) 45%, #081338 75%, var(--bg) 100%);
  background-size: 180% 180%;
  animation: drift 34s ease-in-out infinite alternate;
  will-change: transform;
  pointer-events: none;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-2%, 1.5%, 0); }
}

.paper {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: repeating-linear-gradient(45deg, #cdd8ff 0, #cdd8ff 1px, transparent 1px, transparent 7px);
}

.corner {
  position: fixed;
  z-index: 40;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line-strong);
  pointer-events: none;
}

.corner.tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.corner.tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.corner.bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.corner.br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

@media (max-width: 560px) {
  .corner { display: none; }
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

.utility-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  padding: 9px 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.utility-bar .sep {
  opacity: 0.4;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  background: rgba(5, 7, 12, 0.82);
  border-bottom: 1px solid var(--line);
}

.navbar-inner {
  width: 100%;
  max-width: 860px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}

.navbar-logo {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
}

.navbar-name {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  white-space: nowrap;
}

.navbar-links {
  margin-left: auto;
  display: flex;
  gap: 2px;
}

.nav-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  background: transparent;
  padding: 7px 12px;
  text-decoration: none;
  display: inline-block;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-btn:hover {
  color: var(--text-dim);
}

.nav-btn.active {
  color: var(--accent-2);
  border-bottom-color: var(--accent);
}

.hero {
  padding: 44px 0 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.brand {
  margin-top: 10px;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(42px, 15vw, 92px);
  color: #fff;
  line-height: 1;
}

.brand .star {
  width: 0.64em;
  height: 0.64em;
  margin: 0 0.02em;
  position: relative;
  top: 0.045em;
  flex-shrink: 0;
}

.brand .star path {
  stroke: #f4f8ff;
  fill: rgba(180, 205, 255, 0.1);
}

.reg-table {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
}

.reg-table b {
  color: var(--text-dim);
  font-weight: 700;
}

.notice {
  margin-top: 22px;
  max-width: 460px;
  width: 100%;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 14px 18px;
}

.notice .notice-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.notice p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dim);
}

.joke {
  color: var(--text-faint);
  font-style: italic;
}

.cta-row {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--r);
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.tg-btn:hover {
  background: #2f57e0;
  transform: translateY(-1px);
}

.tg-btn svg {
  width: 16px;
  height: 16px;
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  transform: rotate(-2.5deg);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.stamp svg {
  width: 12px;
  height: 12px;
  opacity: 0.8;
  flex-shrink: 0;
}

.stamp svg path {
  stroke: var(--accent-2);
}

.section-head {
  text-align: center;
  margin: 50px 0 26px;
}

.section-head .kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.section-head h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(21px, 5vw, 28px);
}

.section-head p {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 13.5px;
}

.protocol {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.protocol-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.protocol-num {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-faint);
  padding-top: 2px;
}

.protocol-body {
  flex: 1;
  min-width: 0;
}

.protocol-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.protocol-photo {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
}

.protocol-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
}

.protocol-role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}

.protocol-quote {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dim);
  font-style: italic;
}

.protocol-status {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.protocol-status b {
  color: var(--accent-2);
}

footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
}

.footer-row a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.footer-fine {
  margin-top: 16px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-faint);
  line-height: 1.6;
}

.page-header {
  padding: 44px 0 8px;
  text-align: center;
}

.page-header .kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.page-header h1 {
  margin-top: 12px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 7vw, 42px);
  color: #fff;
}

.page-header p {
  margin-top: 10px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.5;
}

.registry {
  margin-top: 30px;
}

.registry-head {
  display: flex;
  padding: 0 14px 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--line);
}

.registry-head .c-num { width: 36px; flex-shrink: 0; }
.registry-head .c-title { flex: 1; }
.registry-head .c-status { flex-shrink: 0; }

@media (max-width: 560px) {
  .registry-head { display: none; }
}

.registry-list {
  display: flex;
  flex-direction: column;
}

.registry-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}

.registry-row:hover {
  background: var(--panel);
}

.registry-num {
  width: 36px;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}

.registry-body {
  flex: 1;
  min-width: 0;
}

.registry-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14.5px;
}

.registry-handle {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-faint);
}

.registry-status {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--accent-2);
}

.registry-status svg {
  width: 12px;
  height: 12px;
}

@media (max-width: 560px) {
  .registry-status span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .bg-drift {
    animation: none;
  }
}
