/* Inner pages in the homepage (nova) design: About, Contact, the legal pages, and the site footer.
   Tokens mirror the homepage: black canvas, #333 guide lines, editorial headlines, Satoshi body, Space Mono labels. */

:root {
  --hp-bg: #000;
  --hp-surface: #0f0f0f;
  --hp-surface-2: #121212;
  --hp-line: #333;
  --hp-line-soft: #222;
  --hp-text: #eee;
  --hp-body: #b8b8b8;
  --hp-muted: #8f8f8f;
  --hp-accent: #7c5cff;
  --hp-accent-soft: rgba(124, 92, 255, 0.14);
  --hp-pad: clamp(20px, 4.2vw, 56px);
}
/* font tokens must sit where the homepage defines its font variables (the .nova wrapper) */
.nova {
  --hp-display: var(--font-editorial-tight), Georgia, serif;
  --hp-sans: var(--font-satoshi), system-ui, sans-serif;
  --hp-mono: var(--font-space-mono), ui-monospace, monospace;
}

.hp-main { display: block; color: var(--hp-text); font-family: var(--hp-sans); }
.hp-main ::selection, .hp-footer ::selection { background: var(--hp-accent); color: #fff; }

/* ---------- shared building blocks ---------- */
.hp-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--hp-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hp-muted);
}
.hp-eyebrow span { width: 8px; height: 8px; background: var(--hp-accent); }
.hp-label {
  font-family: var(--hp-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hp-muted);
}
.hp-title {
  margin-top: 22px; font-size: clamp(38px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.015em; color: #fff;
  text-wrap: balance;
}
.hp-lede { margin-top: 24px; max-width: 640px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.7; color: var(--hp-body); text-wrap: pretty; }
.hp-meta {
  display: inline-block; margin-top: 22px; padding: 6px 12px; border: 1px solid var(--hp-line);
  font-family: var(--hp-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hp-muted);
}
.hp-h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.01em; color: #fff; text-wrap: balance; max-width: 760px; }
.hp-sub { margin-top: 14px; max-width: 560px; font-size: 16px; line-height: 1.7; color: var(--hp-body); }
.hp-center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- page sections ---------- */
.hp-hero {
  padding: clamp(72px, 10vw, 140px) var(--hp-pad) clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--hp-line);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(124, 92, 255, 0.16), transparent 70%),
    radial-gradient(circle, #1d1d1d 1px, transparent 1.4px) 0 0 / 22px 22px;
}
.hp-hero--center { text-align: center; }
.hp-hero--center .hp-title, .hp-hero--center .hp-lede { margin-left: auto; margin-right: auto; max-width: 940px; }
.hp-hero--center .hp-lede { max-width: 680px; }
.hp-hero--doc { padding-bottom: clamp(44px, 5vw, 72px); }

.hp-section { padding: clamp(64px, 8vw, 112px) var(--hp-pad); border-bottom: 1px solid var(--hp-line); }
.hp-section--flush { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }

/* framed image with the homepage's purple corner marks */
.hp-frame { position: relative; margin: 0 auto; max-width: 1040px; border: 1px solid var(--hp-line); padding: 10px; background: var(--hp-surface); }
.hp-frame img { display: block; width: 100%; height: auto; }
.hp-frame__corner { position: absolute; width: 10px; height: 10px; background: var(--hp-accent); z-index: 1; }
.hp-frame__corner--tl { left: -5px; top: -5px; } .hp-frame__corner--tr { right: -5px; top: -5px; }
.hp-frame__corner--bl { left: -5px; bottom: -5px; } .hp-frame__corner--br { right: -5px; bottom: -5px; }

/* stats strip */
.hp-stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 56px; border: 1px solid var(--hp-line); }
.hp-stat { display: flex; flex-direction: column; align-items: center; padding: 36px 16px; text-align: center; border-right: 1px solid var(--hp-line); border-bottom: 1px solid var(--hp-line); }
.hp-stat:nth-child(2n) { border-right: 0; }
.hp-stat:nth-last-child(-n + 2) { border-bottom: 0; }
.hp-stat__value { font-size: clamp(40px, 5vw, 60px); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.hp-stat__label { margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--hp-text); }
.hp-stat__note { margin-top: 4px; font-family: var(--hp-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hp-muted); }
@media (min-width: 768px) {
  .hp-stats { grid-template-columns: repeat(4, 1fr); }
  .hp-stat { border-bottom: 0; }
  .hp-stat:nth-child(2n) { border-right: 1px solid var(--hp-line); }
  .hp-stat:last-child { border-right: 0; }
}

/* numbered cards */
.hp-cards { display: grid; gap: 0; margin-top: 48px; border: 1px solid var(--hp-line); }
.hp-card { position: relative; padding: 32px 28px 36px; background: var(--hp-surface); border-bottom: 1px solid var(--hp-line); transition: background-color .3s; }
.hp-card:last-child { border-bottom: 0; }
.hp-card:hover { background: var(--hp-surface-2); }
.hp-card__top { display: flex; align-items: center; justify-content: space-between; }
.hp-card__icon { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--hp-line); color: #fff; background: #000; }
.hp-card__num { font-family: var(--hp-mono); font-size: 12px; color: var(--hp-muted); }
.hp-card__title { margin-top: 28px; font-size: 26px; line-height: 1.15; color: #fff; }
.hp-card__text { margin-top: 12px; font-size: 15px; line-height: 1.7; color: var(--hp-body); }
@media (min-width: 1024px) {
  .hp-cards { grid-template-columns: repeat(3, 1fr); }
  .hp-card { border-bottom: 0; border-right: 1px solid var(--hp-line); }
  .hp-card:last-child { border-right: 0; }
}

/* team */
.hp-team { display: grid; gap: 24px; margin-top: 48px; max-width: 820px; }
@media (min-width: 640px) { .hp-team { grid-template-columns: repeat(2, 1fr); } }
.hp-member { border: 1px solid var(--hp-line); background: var(--hp-surface); padding: 10px; }
.hp-member__photo { aspect-ratio: 4 / 3; overflow: hidden; background: #1a1a1a; }
.hp-member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(1) contrast(1.05); transition: filter .5s, transform .6s; }
.hp-member:hover .hp-member__photo img { filter: none; transform: scale(1.03); }
.hp-member__info { padding: 18px 10px 12px; }
.hp-member__name { font-size: 24px; color: #fff; }
.hp-member__role { margin-top: 6px; font-size: 14px; font-weight: 600; color: #a892ff; }
.hp-member__note { margin-top: 4px; font-family: var(--hp-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hp-muted); }

/* call to action band */
.hp-cta {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0;
  padding: clamp(72px, 9vw, 120px) var(--hp-pad); border-bottom: 1px solid var(--hp-line);
  background: radial-gradient(50% 90% at 50% 100%, rgba(124, 92, 255, 0.18), transparent 70%);
}
.hp-cta .hp-sub { margin-left: auto; margin-right: auto; }
.hp-cta > a { margin-top: 32px; }

/* contact channels */
.hp-channels { display: grid; border-bottom: 1px solid var(--hp-line); }
.hp-channel {
  display: flex; flex-direction: column; padding: clamp(32px, 4vw, 56px) var(--hp-pad); background: var(--hp-surface);
  border-bottom: 1px solid var(--hp-line); color: inherit; text-decoration: none; transition: background-color .3s;
}
.hp-channel:last-child { border-bottom: 0; }
.hp-channel:hover { background: var(--hp-surface-2); }
.hp-channel__label { margin-top: 40px; font-family: var(--hp-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hp-muted); }
.hp-channel__value { margin-top: 10px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; color: #fff; word-break: break-word; }
.hp-channel__action { margin-top: 28px; align-self: flex-start; padding-bottom: 4px; border-bottom: 1px solid var(--hp-accent); font-size: 15px; font-weight: 500; color: #fff; }
.hp-channel:hover .hp-channel__action { color: #c9bbff; }
@media (min-width: 768px) {
  .hp-channels { grid-template-columns: repeat(2, 1fr); }
  .hp-channel { border-bottom: 0; }
  .hp-channel:first-child { border-right: 1px solid var(--hp-line); }
}

/* ---------- legal documents ---------- */
.hp-doc { display: grid; border-bottom: 1px solid var(--hp-line); }
.hp-doc__toc { display: none; }
.hp-doc__body { min-width: 0; padding: clamp(40px, 5vw, 72px) var(--hp-pad) clamp(64px, 7vw, 96px); max-width: 860px; }
@media (min-width: 1024px) {
  .hp-doc { grid-template-columns: 300px minmax(0, 1fr); }
  .hp-doc__toc { display: block; border-right: 1px solid var(--hp-line); }
  .hp-doc__toc-inner { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; padding: 56px 24px 40px 32px; }
  .hp-doc__body { padding-left: 64px; padding-right: 64px; }
}
.hp-doc__toc nav { display: flex; flex-direction: column; margin-top: 18px; }
.hp-doc__toc nav a {
  display: flex; gap: 12px; padding: 9px 0 9px 14px; border-left: 1px solid var(--hp-line-soft);
  font-size: 13.5px; line-height: 1.4; color: var(--hp-muted); text-decoration: none; transition: color .2s, border-color .2s;
}
.hp-doc__toc nav a:hover { color: #fff; }
.hp-doc__toc nav a.is-active { color: #fff; border-left-color: var(--hp-accent); }
.hp-toc__num { font-family: var(--hp-mono); font-size: 11px; color: #7f7f7f; padding-top: 2px; }
.hp-doc__toc nav a.is-active .hp-toc__num { color: var(--hp-accent); }

.hp-doc__intro { display: flex; flex-direction: column; gap: 16px; padding-bottom: 36px; border-bottom: 1px solid var(--hp-line-soft); }
.hp-doc__intro p { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.75; color: var(--hp-text); }

.hp-doc__body .policy-section { padding-top: 48px; }
.hp-doc__body .policy-section > h2 {
  scroll-margin-top: 32px; font-family: var(--hp-display); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; color: #fff; margin-bottom: 16px;
}
.hp-doc__body p { font-size: 16px; line-height: 1.8; color: var(--hp-body); margin: 0 0 14px; }
.hp-doc__body strong { color: #fff; font-weight: 600; }
.hp-doc__body a { color: #fff; text-decoration: underline; text-decoration-color: var(--hp-accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.hp-doc__body a:hover { color: #c9bbff; }
.hp-doc__body ul { list-style: none; margin: 4px 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hp-doc__body li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.7; color: var(--hp-body); }
.hp-doc__body li::before { content: ''; position: absolute; left: 2px; top: 0.72em; width: 6px; height: 6px; background: var(--hp-accent); }
.hp-doc__body .subsections-group { display: flex; flex-direction: column; gap: 24px; margin-top: 12px; }
.hp-doc__body .subsection h3, .hp-doc__body h3 {
  margin: 4px 0 10px; font-family: var(--hp-mono); font-size: 12px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hp-muted);
}
.hp-doc__body .legal-callout {
  position: relative; margin: 8px 0 18px; padding: 24px 24px 12px 28px; border: 1px solid var(--hp-line); background: var(--hp-surface);
}
.hp-doc__body .legal-callout::before { content: ''; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: var(--hp-accent); }
.hp-doc__body .legal-callout > p:first-child { font-family: var(--hp-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #a892ff; margin-bottom: 14px; }
.hp-doc__body .legal-callout li { color: var(--hp-text); }

.hp-related { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--hp-line-soft); }
.hp-related__grid { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 768px) { .hp-related__grid { grid-template-columns: repeat(3, 1fr); } }
.hp-doc__body a.hp-related__card {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 44px; border: 1px solid var(--hp-line); background: var(--hp-surface);
  text-decoration: none; color: inherit; transition: border-color .25s, background-color .25s;
}
.hp-doc__body a.hp-related__card:hover { border-color: var(--hp-accent); background: var(--hp-surface-2); }
.hp-related__name { font-size: 20px; color: #fff; }
.hp-related__blurb { font-size: 13.5px; line-height: 1.55; color: var(--hp-muted); }
.hp-related__arrow { position: absolute; right: 18px; bottom: 14px; color: var(--hp-accent); transition: transform .25s; }
.hp-related__card:hover .hp-related__arrow { transform: translateX(4px); }

/* ---------- footer ---------- */
.hp-footer { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter, 16px); color: var(--hp-text); font-family: var(--hp-sans); }
.hp-footer__inner {
  display: grid; gap: 40px; padding: 64px var(--hp-pad) 48px;
  border-left: 1px solid transparent; border-right: 1px solid transparent;
}
@media (min-width: 1024px) {
  .hp-footer__inner { grid-template-columns: 1.6fr 1.2fr 0.8fr 1fr; border-color: var(--hp-line); }
}
@media (min-width: 640px) and (max-width: 1023px) { .hp-footer__inner { grid-template-columns: repeat(2, 1fr); } }
.hp-footer__logo { font-size: 28px; color: #fff; text-decoration: none; }
.hp-footer__brand p { margin-top: 14px; max-width: 320px; font-size: 14px; line-height: 1.7; color: var(--hp-muted); }
.hp-footer__mail { display: inline-block; margin-top: 16px; font-size: 14px; color: #fff; text-decoration: none; border-bottom: 1px solid var(--hp-accent); padding-bottom: 2px; }
.hp-footer__title { font-family: var(--hp-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hp-muted); }
.hp-footer__col ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hp-footer__col a { font-size: 14px; color: #cfcfcf; text-decoration: none; transition: color .2s; }
.hp-footer__col a:hover { color: #fff; }
.hp-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px var(--hp-pad) 32px;
  border-top: 1px solid var(--hp-line); font-family: var(--hp-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #8f8f8f;
}
@media (min-width: 1024px) { .hp-footer__bottom { border-left: 1px solid var(--hp-line); border-right: 1px solid var(--hp-line); } }

@media (prefers-reduced-motion: reduce) {
  .hp-member__photo img, .hp-card, .hp-channel, .hp-related__card, .hp-related__arrow { transition: none !important; }
}
