:root {
  color-scheme: dark;
  --ink: #f6f2e8;
  --muted: #c9c0ae;
  --line: rgba(246, 242, 232, 0.18);
  --panel: #181713;
  --panel-2: #222018;
  --gold: #e2b65a;
  --teal: #6cc8bd;
  --red: #c96f62;
  --black: #090a09;
  --max: 1120px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(9, 10, 9, 0.82);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  left: 0;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 48px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

.site-header.compact {
  position: sticky;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  border: 1px solid var(--line);
  border-radius: 50%;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

nav a,
.site-footer a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

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

.hero {
  align-items: end;
  background-image: linear-gradient(90deg, rgba(9, 10, 9, 0.92), rgba(9, 10, 9, 0.68) 47%, rgba(9, 10, 9, 0.22)), url("/assets/brand/bluesky-banner-asterfall-3000x1000.png");
  background-position: center;
  background-size: cover;
  display: flex;
  min-height: 88vh;
  padding: 140px clamp(20px, 6vw, 72px) 76px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(3.2rem, 9vw, 7rem);
  max-width: 900px;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.25rem);
}

.lede {
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  max-width: 720px;
}

p {
  color: var(--muted);
  font-size: 1.05rem;
}

.actions,
.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  color: #15110b;
}

.button.secondary {
  background: rgba(246, 242, 232, 0.08);
  color: var(--ink);
}

.section {
  padding: clamp(64px, 10vw, 112px) clamp(20px, 6vw, 72px);
}

.band {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.section-inner {
  margin: 0 auto;
  max-width: var(--max);
}

.two-column,
.visual-layout {
  align-items: center;
  display: grid;
  gap: clamp(28px, 6vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
}

.visual-layout {
  grid-template-columns: minmax(320px, 1.05fr) minmax(0, 0.95fr);
}

.visual-layout img {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.facts {
  display: grid;
  gap: 14px;
  margin: 0;
}

.facts div {
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 16px;
}

.facts dt {
  color: var(--ink);
  font-weight: 800;
}

.facts dd {
  color: var(--muted);
  margin: 0;
}

.legal-page {
  background: var(--panel);
  padding: clamp(52px, 8vw, 92px) clamp(20px, 6vw, 72px);
}

.legal-page article {
  margin: 0 auto;
  max-width: 840px;
}

.legal-page h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
}

.legal-page h2 {
  font-size: 1.45rem;
  margin-top: 36px;
}

.legal-page li {
  color: var(--muted);
  margin: 8px 0;
}

.reserved-page {
  align-items: center;
  background: var(--panel);
  display: flex;
  min-height: 100vh;
  padding: clamp(32px, 7vw, 92px);
}

.reserved-page article {
  max-width: 760px;
}

.portal-page {
  background:
    linear-gradient(180deg, rgba(108, 200, 189, 0.08), rgba(108, 200, 189, 0) 260px),
    var(--panel);
  min-height: 100vh;
  padding: clamp(52px, 8vw, 92px) clamp(20px, 6vw, 72px);
}

.portal-shell,
.portal-grid {
  margin: 0 auto;
  max-width: var(--max);
}

.portal-shell.narrow {
  max-width: 680px;
}

.portal-page h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  max-width: 760px;
}

.portal-heading {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.portal-dashboard-head {
  background: rgba(9, 10, 9, 0.35);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(22px, 4vw, 34px);
}

.portal-subtitle {
  margin: 12px 0 0;
}

.portal-access-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.portal-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 26px;
}

.portal-metrics div,
.portal-panel,
.notice {
  background: rgba(246, 242, 232, 0.06);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.portal-metrics div {
  min-height: 106px;
  padding: 18px;
}

.portal-metrics strong {
  color: var(--gold);
  display: block;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.portal-metrics span,
.clean-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

.portal-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.portal-panel {
  min-width: 0;
  padding: clamp(20px, 3.4vw, 30px);
}

.portal-panel.wide {
  grid-column: 1 / -1;
}

.portal-panel h2 {
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  margin-bottom: 18px;
}

.portal-content-grid {
  align-items: stretch;
}

.portal-briefing {
  background: rgba(246, 242, 232, 0.075);
}

.portal-side-panel {
  align-content: start;
}

.portal-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.portal-form label {
  color: var(--ink);
  display: grid;
  font-weight: 800;
  gap: 8px;
}

.portal-form input,
.portal-form textarea {
  background: #0f100e;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.portal-form .button,
.portal-form button {
  justify-self: start;
}

.portal-form textarea {
  resize: vertical;
}

.markdown-block {
  color: var(--muted);
  max-height: none;
  overflow: auto;
  padding-right: 8px;
}

.markdown-block h3,
.markdown-block h4 {
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.18;
  margin: 22px 0 10px;
}

.markdown-block h3:first-child,
.markdown-block h4:first-child,
.markdown-block p:first-child,
.markdown-block ul:first-child,
.markdown-block ol:first-child {
  margin-top: 0;
}

.markdown-block h3 {
  font-size: 1.15rem;
}

.markdown-block h4 {
  font-size: 1rem;
}

.markdown-block p,
.markdown-block li {
  color: var(--muted);
  font-size: 0.98rem;
}

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

.clean-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.clean-list li {
  border-left: 3px solid var(--teal);
  color: var(--ink);
  display: grid;
  gap: 2px;
  padding-left: 12px;
}

.notice {
  color: var(--ink);
  margin-top: 18px;
  padding: 14px 16px;
}

.notice.warning {
  border-color: rgba(201, 111, 98, 0.55);
}

.locked-perk {
  border-left: 3px solid var(--red);
  margin: 0;
  padding-left: 12px;
}

.site-footer {
  align-items: center;
  background: var(--black);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding: 28px clamp(20px, 6vw, 72px);
}

.site-footer span {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    min-height: 108px;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 92vh;
    padding-top: 156px;
  }

  .two-column,
  .visual-layout {
    grid-template-columns: 1fr;
  }

  .support-links {
    margin-top: 0;
  }

  .portal-heading {
    align-items: start;
    flex-direction: column;
  }

  .portal-metrics,
  .portal-grid {
    grid-template-columns: 1fr;
  }
}