/* ==========================================================================
   Goodmernin — site styles
   Black page, hairline rules, ultra-light type, one blue accent.
   ========================================================================== */

:root {
  --bg: #000;
  --fg: #fff;
  --dim: rgba(255, 255, 255, 0.7);
  --faint: rgba(255, 255, 255, 0.45);
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --accent: #0167ff;
  --radius: 18px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 200;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: rgba(1, 103, 255, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: 792px;
  margin: 0 auto;
  padding: 0 36px;
}

.section {
  padding: 72px 0;
}

.center {
  text-align: center;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(40px) saturate(1.3);
  backdrop-filter: blur(40px) saturate(1.3);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.01em;
  opacity: 0.9;
}

.brand:hover {
  opacity: 1;
}

.brand svg {
  flex: none;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  text-decoration: none;
  color: var(--dim);
  font-size: 15px;
  font-weight: 300;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: #fff;
}

.nav a[aria-current="page"] {
  color: var(--faint);
}

/* ---------- typography ---------- */

h1 {
  margin: 0 0 16px;
  font-size: clamp(44px, 8.5vw, 72px);
  font-weight: 100;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4.2vw, 36px);
  font-weight: 100;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 200;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 18px;
}

em {
  font-style: italic;
}

.dim {
  color: var(--dim);
}

.faint {
  color: var(--faint);
}

.small {
  font-size: 15px;
}

.lede {
  max-width: 30em;
  margin: 0 auto 16px;
  font-size: clamp(19px, 2.4vw, 22px);
  font-weight: 200;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- status pill ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 72px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(1, 103, 255, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(1, 103, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(1, 103, 255, 0);
  }
}

/* ---------- buttons ---------- */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 72px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 0 36px rgba(1, 103, 255, 0.5);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 48px rgba(1, 103, 255, 0.65);
}

.cta--ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--dim);
  box-shadow: none;
}

.cta--ghost:hover {
  color: #fff;
  box-shadow: none;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 64px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 0;
  right: 0;
  height: 560px;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0) 70%
  );
  pointer-events: none;
}

.hero > .wrap {
  position: relative;
}

.hero-mark {
  margin: 0 auto 34px;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.7));
}

.hero .cta-row {
  margin: 30px 0 0;
}

.hero .note {
  margin: 26px auto 0;
  max-width: 26em;
  font-size: 14px;
  color: var(--faint);
}

/* ---------- card ---------- */

.card {
  display: block;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease,
    background 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.card p {
  margin: 0 0 18px;
  font-size: 17px;
  color: var(--dim);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--faint);
  transition: color 0.2s ease;
}

.card:hover .card-meta {
  color: #fff;
}

.chip {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 72px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.stack {
  display: grid;
  gap: 18px;
}

/* ---------- footer ---------- */

.site-footer {
  flex: none;
  margin-top: 72px;
  padding: 64px 0 40px;
  border-top: 1px solid var(--line-soft);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 44px;
}

.footer-cols h4 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.footer-cols ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-cols a {
  color: var(--dim);
  font-size: 15px;
  font-weight: 300;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-cols a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--faint);
}

/* ---------- legal / document pages ---------- */

.doc {
  padding: 80px 0 24px;
}

.doc h1 {
  font-size: clamp(34px, 6vw, 52px);
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.doc .updated {
  margin-bottom: 34px;
  font-size: 14px;
  color: var(--faint);
}

.doc h2 {
  margin-top: 40px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.doc p,
.doc li {
  color: var(--dim);
}

.doc ul {
  padding-left: 20px;
}

.callout {
  margin: 0 0 32px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 16px;
  color: var(--dim);
}

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--dim);
  font-size: 15px;
  text-decoration: none;
}

.backlink:hover {
  color: #fff;
}

/* ---------- legal document content ---------- */

.doc h3 {
  margin: 32px 0 8px;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
}

.doc strong {
  color: #fff;
  font-weight: 500;
}

.doc a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

.doc a:hover {
  text-decoration-color: var(--accent);
}

.doc ul,
.doc ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.doc li {
  margin: 0 0 10px;
}

.doc li::marker {
  color: rgba(255, 255, 255, 0.4);
}

.doc hr {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid var(--line-soft);
}

.doc code {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

.table-scroll {
  max-width: 100%;
  margin: 0 0 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.doc table {
  width: 100%;
  margin: 0 0 22px;
  border-collapse: collapse;
  font-size: 15px;
}

.doc th,
.doc td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--dim);
}

.doc th {
  border-bottom-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doc td code {
  font-size: 12.5px;
  white-space: nowrap;
}

.doc-back {
  margin: 48px 0 0;
}

/* ---------- narrow screens ---------- */

@media (max-width: 640px) {
  .wrap {
    padding: 0 22px;
  }

  .hero {
    padding: 64px 0 40px;
  }

  .hero-mark {
    width: 92px;
    height: 92px;
    margin-bottom: 28px;
  }

  .section {
    padding: 52px 0;
  }

  .card {
    padding: 22px 22px;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer {
    margin-top: 52px;
    padding: 48px 0 32px;
  }

  .doc {
    padding: 56px 0 16px;
  }

  .doc table {
    font-size: 13.5px;
  }

  .doc th,
  .doc td {
    padding: 8px 7px;
  }

  .doc th {
    font-size: 11px;
  }

  .doc td code {
    white-space: normal;
    word-break: break-word;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow .dot {
    animation: none;
  }

  .cta,
  .card,
  .card-meta {
    transition: none;
  }

  .cta:hover,
  .card:hover {
    transform: none;
  }
}
