:root {
  color-scheme: dark;
  --ink: #050708;
  --ink-soft: #0b0f11;
  --surface: #111719;
  --surface-raised: #172025;
  --paper: #f2f5f5;
  --muted: #9aa9ae;
  --line: rgba(226, 238, 241, 0.15);
  --cyan: #28c7ea;
  --cyan-soft: #82e4f6;
  --lime: #b6db44;
  --red: #ff4a54;
  --radius: 8px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px),
    var(--ink);
  background-size: 52px 52px;
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: var(--cyan-soft); text-underline-offset: 0.2em; }
a:hover { color: #fff; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.shell { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(5, 7, 8, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.header-row {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  text-decoration: none;
}
.brand img { width: 132px; height: auto; }
.brand-copy {
  padding-left: 16px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.main-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.main-nav a {
  padding: 8px 10px;
  color: #c9d2d5;
  font-size: 0.79rem;
  font-weight: 750;
  text-decoration: none;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,0.07); }

.button-form { margin: 0; }
.button {
  appearance: none;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 21px;
  border: 1px solid var(--cyan);
  border-radius: 3px;
  background: var(--cyan);
  box-shadow: 0 14px 36px rgba(40, 199, 234, 0.2);
  color: #031014;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.015em;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button::after { content: "↗"; font-size: 1.05em; }
.button:hover {
  background: #76e6fa;
  color: #031014;
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(40, 199, 234, 0.3);
}
.button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.button-small { min-height: 42px; padding: 9px 15px; font-size: 0.82rem; }
.button-ghost { border-color: var(--line); background: transparent; box-shadow: none; color: #fff; }
.button-ghost::after { content: "→"; }
.button-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; box-shadow: none; }
.button-pulse { animation: access-pulse 2.8s ease-in-out infinite; }
@keyframes access-pulse {
  0%, 100% { box-shadow: 0 14px 36px rgba(40, 199, 234, 0.2), 0 0 0 0 rgba(40,199,234,0.18); }
  50% { box-shadow: 0 18px 48px rgba(40, 199, 234, 0.3), 0 0 0 10px rgba(40,199,234,0); }
}

.hero { position: relative; overflow: hidden; padding: 72px 0 42px; border-bottom: 1px solid var(--line); }
.hero::after {
  content: "ACCESS";
  position: absolute;
  right: -0.04em;
  bottom: -0.28em;
  color: rgba(255,255,255,0.022);
  font-size: clamp(8rem, 21vw, 19rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.09em;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 88px minmax(0, 1.2fr) minmax(310px, 0.66fr);
  gap: 38px;
  align-items: stretch;
}
.hero-index {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero-index strong { color: var(--lime); font-size: 1.1rem; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan-soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0 0 0.55em; line-height: 1.05; letter-spacing: -0.045em; }
h1 { max-width: 790px; font-size: clamp(3.1rem, 7.2vw, 7rem); }
h2 { font-size: clamp(2.05rem, 4vw, 3.8rem); }
h3 { font-size: 1.35rem; }
.outline { color: transparent; -webkit-text-stroke: 1px rgba(242,245,245,0.62); }
.lede { max-width: 700px; color: #c2ccd0; font-size: clamp(1.02rem, 1.8vw, 1.22rem); }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.microcopy { margin: 13px 0 0; color: var(--muted); font-size: 0.78rem; }

.access-panel {
  display: flex;
  flex-direction: column;
  min-height: 410px;
  padding: 28px;
  border: 1px solid rgba(40, 199, 234, 0.34);
  background: linear-gradient(145deg, rgba(40,199,234,0.1), rgba(17,23,25,0.94) 42%);
  box-shadow: var(--shadow);
}
.panel-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.signal { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.signal::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 16px var(--lime); }
.panel-code { color: var(--muted); font: 700 0.68rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.access-panel img { width: 190px; margin: auto; filter: drop-shadow(0 14px 25px rgba(0,0,0,0.45)); }
.access-panel h2 { margin-bottom: 8px; font-size: 1.9rem; }
.access-panel p { margin: 0 0 18px; color: var(--muted); }
.access-panel .button { width: 100%; }

.ticker { border-bottom: 1px solid var(--line); background: #080b0c; }
.ticker-row { min-height: 55px; display: flex; align-items: center; justify-content: space-between; gap: 22px; overflow: hidden; }
.ticker span { white-space: nowrap; color: #aeb9bd; font: 750 0.7rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.11em; text-transform: uppercase; }
.ticker b { color: var(--lime); }

.section { padding: 88px 0; }
.section-dark { background: var(--ink-soft); border-block: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(300px, 0.55fr); justify-content: space-between; gap: 60px; align-items: end; margin-bottom: 42px; }
.section-head p { color: var(--muted); }
.section-label { color: var(--red); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.17em; text-transform: uppercase; }

.directory-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.directory-card {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(17,23,25,0.7);
  color: inherit;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}
.directory-card:hover { z-index: 2; background: var(--surface-raised); color: #fff; transform: translateY(-4px); }
.card-number { color: var(--cyan); font: 800 0.75rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.15em; }
.directory-card h3 { margin-top: auto; font-size: 1.8rem; }
.directory-card p { margin: 0 0 22px; color: var(--muted); }
.card-arrow { color: var(--lime); font-size: 1.4rem; }

.process { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 72px; align-items: start; }
.process-intro { position: sticky; top: 120px; }
.process-intro p { color: var(--muted); }
.process-list { border-top: 1px solid var(--line); }
.process-step { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.process-step span { color: var(--cyan); font: 800 0.76rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.process-step h3 { margin-bottom: 8px; }
.process-step p { margin: 0; color: var(--muted); }

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 46px;
  border: 1px solid rgba(40,199,234,0.34);
  background: linear-gradient(100deg, rgba(40,199,234,0.13), rgba(182,219,68,0.05));
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin: 0; color: var(--muted); }

.article-hero { padding: 72px 0 54px; border-bottom: 1px solid var(--line); }
.article-hero .shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 70px; align-items: end; }
.article-hero h1 { font-size: clamp(2.8rem, 6vw, 5.6rem); }
.article-stamp { padding: 24px; border-left: 3px solid var(--cyan); background: var(--surface); }
.article-stamp strong { display: block; margin-bottom: 8px; font-size: 1.08rem; }
.article-stamp span { color: var(--muted); font-size: 0.85rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 72px; align-items: start; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.9rem, 3.3vw, 3rem); }
.prose h3 { margin-top: 1.8em; }
.prose p, .prose li { color: #bdc8cc; }
.prose strong { color: #fff; }
.prose ol, .prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.7em; }
.side-stack { display: grid; gap: 16px; position: sticky; top: 118px; }
.side-card { padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.side-card h3 { font-size: 1.08rem; letter-spacing: -0.02em; }
.side-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.side-card a { display: inline-block; margin-top: 12px; font-weight: 800; }
.side-card .button { width: 100%; margin-top: 0; }

.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.faq-item h2 { font-size: 1.35rem; letter-spacing: -0.025em; }
.faq-item p { margin-bottom: 0; color: var(--muted); }

.site-footer { padding: 55px 0 28px; border-top: 1px solid var(--line); background: #030405; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 44px; align-items: start; }
.footer-brand img { width: 150px; }
.footer-brand p { max-width: 530px; color: var(--muted); font-size: 0.86rem; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 28px; }
.footer-links a { color: #c7d0d3; font-size: 0.82rem; text-decoration: none; }
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: #647277; font: 700 0.66rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.11em; text-transform: uppercase; }

.error-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.error-box { max-width: 700px; padding: 46px; border: 1px solid var(--line); background: var(--surface); }
.error-code { color: var(--cyan); font: 900 0.75rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.18em; }
.error-box h1 { font-size: clamp(2.8rem, 8vw, 6rem); }

@media (max-width: 1040px) {
  .header-row { grid-template-columns: auto 1fr; }
  .main-nav { order: 3; grid-column: 1 / -1; justify-content: flex-start; padding-bottom: 14px; }
  .header-row > .button-form { grid-column: 2; grid-row: 1; justify-self: end; }
  .hero-grid { grid-template-columns: 56px 1fr; }
  .access-panel { grid-column: 2; min-height: 350px; }
  .directory-grid { grid-template-columns: 1fr 1fr; }
  .directory-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .shell { width: min(100% - 28px, 1200px); }
  .header-row { min-height: 74px; gap: 14px; }
  .brand img { width: 112px; }
  .brand-copy { display: none; }
  .header-row > .button-form .button { min-height: 38px; padding: 8px 11px; font-size: 0.72rem; }
  .main-nav { gap: 1px; }
  .main-nav a { padding: 7px; font-size: 0.72rem; }
  .hero { padding-top: 46px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-index { display: none; }
  .access-panel { grid-column: auto; min-height: 330px; }
  .section { padding: 64px 0; }
  .section-head, .process, .article-hero .shell, .article-layout, .cta-band, .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .directory-grid { grid-template-columns: 1fr; }
  .directory-card:last-child { grid-column: auto; }
  .directory-card { min-height: 245px; }
  .process-intro, .side-stack { position: static; }
  .cta-band { padding: 30px; }
  .cta-band .button { width: 100%; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

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