@font-face {
  font-family: "Manrope";
  src: url("/media/fonts/manrope-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/media/fonts/manrope-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/media/fonts/manrope-700.ttf") format("truetype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #05070a;
  --black-soft: #0a0d11;
  --panel: #0d1015;
  --white: #f7f5ef;
  --muted: #9da5ad;
  --gold: #d8ad3e;
  --gold-light: #f0cf77;
  --line: rgba(255, 255, 255, .13);
  --shell: 1240px;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--black);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 84% 14%, rgba(216, 173, 62, .11), transparent 30rem),
    linear-gradient(145deg, var(--black-soft), var(--black) 52%);
  color: var(--white);
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  background: var(--gold-light);
  color: #161005;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.portal-header,
.portal-main,
.portal-footer {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 64px), var(--shell));
  margin-inline: auto;
}

.portal-header {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  width: 184px;
  display: inline-flex;
}

.brand img {
  width: 100%;
  height: auto;
  display: block;
}

.portal-label,
.eyebrow,
.portal-footer {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.portal-label { color: var(--muted); }

.portal-main {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .72fr);
  align-items: center;
  gap: clamp(56px, 8vw, 126px);
  padding-block: clamp(72px, 11vw, 150px);
}

.portal-intro { min-width: 0; }

.eyebrow {
  margin: 0 0 24px;
  color: var(--gold-light);
}

h1,
h2,
p { margin-top: 0; }

h1,
h2 {
  text-wrap: balance;
}

h1 {
  max-width: 14ch;
  margin-bottom: 30px;
  font-size: clamp(3.1rem, 6.2vw, 6.6rem);
  font-weight: 600;
  line-height: .94;
  letter-spacing: -.065em;
}

h1 em {
  color: var(--gold);
  font-style: normal;
}

.intro-copy {
  max-width: 660px;
  margin-bottom: 0;
  color: #c0c6cb;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.72;
}

.access-line {
  position: relative;
  width: min(100%, 560px);
  height: 1px;
  margin-top: clamp(44px, 6vw, 76px);
  background: linear-gradient(90deg, var(--gold), rgba(216, 173, 62, .12));
}

.access-line span {
  position: absolute;
  top: 50%;
  right: 0;
  width: 17px;
  height: 17px;
  border: 1px solid var(--gold);
  background: var(--black);
  transform: translateY(-50%) rotate(45deg);
}

.portal-help {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 4vw, 54px);
  border: 1px solid var(--line);
  border-top-color: rgba(240, 207, 119, .55);
  background: linear-gradient(145deg, rgba(216, 173, 62, .07), transparent 42%), rgba(13, 16, 21, .88);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}

.help-index {
  position: absolute;
  top: 15px;
  right: 20px;
  color: rgba(240, 207, 119, .1);
  font-size: clamp(5rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.08em;
}

.portal-help > *:not(.help-index) {
  position: relative;
  z-index: 1;
}

.portal-help h2 {
  margin-bottom: 20px;
  font-size: clamp(1.85rem, 3vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.portal-help > p:not(.eyebrow) {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.portal-actions {
  display: grid;
  gap: 12px;
}

.button {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 18px;
  border: 1px solid transparent;
  color: var(--white);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.button span {
  color: currentColor;
  font-size: 18px;
  font-weight: 400;
}

.button-primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #181205;
}

.button-secondary {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .025);
}

.button:hover { transform: translateY(-2px); }
.button-primary:hover { background: var(--gold-light); }
.button-secondary:hover { border-color: var(--gold); color: var(--gold-light); }

.portal-footer {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
  color: #737d85;
}

.portal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
}

.portal-footer a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: color .2s ease;
}

.portal-footer a:hover { color: var(--gold-light); }

@media (max-width: 850px) {
  .portal-main {
    grid-template-columns: 1fr;
    align-items: start;
  }

  h1 { max-width: 13ch; }
}

@media (max-width: 620px) {
  .portal-header,
  .portal-main,
  .portal-footer {
    width: min(calc(100% - 40px), var(--shell));
  }

  .portal-header {
    min-height: 92px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  .brand { width: 150px; }
  .portal-label { font-size: 8px; }

  .portal-main {
    gap: 56px;
    padding-block: 64px;
  }

  h1 { font-size: clamp(2.75rem, 14vw, 4.4rem); }

  .portal-help { padding: 30px 24px; }

  .portal-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding-block: 22px;
  }
}

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