@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Oxanium:wght@500;600&display=swap");

:root {
  color-scheme: dark;
  --vodoo-void: #040607;
  --vodoo-dark: #0d0f10;
  --vodoo-ash: #25292b;
  --vodoo-mist: #8d9295;
  --vodoo-ghost: #f5f7f6;
  --vodoo-purple: #6c3dff;
  --vodoo-violet: #8a5bff;
  --vodoo-lime: #c5ff2e;
  --color-canvas: var(--vodoo-void);
  --color-surface-elevated: var(--vodoo-dark);
  --color-border: var(--vodoo-ash);
  --color-text: var(--vodoo-ghost);
  --color-text-muted: var(--vodoo-mist);
  --color-brand: var(--vodoo-purple);
  --color-brand-secondary: var(--vodoo-violet);
  --color-action: var(--vodoo-lime);
  --color-focus: var(--vodoo-lime);
  --radius-lg: 20px;
  --radius-pill: 999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--color-text);
  background: var(--color-canvas);
  font-family: "Archivo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::after {
  position: fixed;
  z-index: 20;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.025;
  pointer-events: none;
}

a {
  color: inherit;
}

.shell {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  overflow: hidden;
}

.shell::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse 38rem 32rem at 88% 8%, rgb(108 61 255 / 32%), transparent 72%),
    radial-gradient(ellipse 34rem 26rem at 6% 94%, rgb(138 91 255 / 12%), transparent 74%),
    var(--color-canvas);
  content: "";
}

.portal {
  position: relative;
  display: flex;
  width: min(100%, 60rem);
  min-height: min(39rem, calc(100svh - 6rem));
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgb(13 15 16 / 94%);
  box-shadow: 0 24px 64px rgb(4 6 7 / 70%);
  flex-direction: column;
}

.portal::before {
  position: absolute;
  top: -6rem;
  right: -8rem;
  width: 22rem;
  height: 15rem;
  border-radius: 50%;
  background: rgb(108 61 255 / 9%);
  content: "";
  filter: blur(70px);
  pointer-events: none;
}

.portal-header,
.portal-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1.5rem, 4vw, 2rem);
}

.portal-header {
  min-height: 6.5rem;
  border-bottom: 1px solid var(--color-border);
}

.wordmark {
  display: inline-block;
  border-radius: 6px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(8.25rem, 20vw, 10rem);
  height: auto;
}

.system-label,
.eyebrow,
.links-label,
.portal-footer {
  font-family: "Oxanium", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.1;
  text-transform: uppercase;
}

.system-label {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.6875rem;
}

.system-label::before {
  width: 0.4375rem;
  height: 0.4375rem;
  background: var(--color-brand-secondary);
  content: "";
  transform: rotate(45deg);
}

.portal-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(15rem, 0.7fr);
  flex: 1;
}

.portal-main {
  display: flex;
  justify-content: center;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 6vw, 4.5rem);
  flex-direction: column;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--color-brand-secondary);
  font-size: 0.75rem;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-wrap: balance;
}

.description {
  max-width: 34rem;
  margin: 1.75rem 0 0;
  color: var(--color-text-muted);
  font-size: clamp(1rem, 2vw, 1.0625rem);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.55;
}

.action-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 2.875rem;
  padding: 0.875rem 1.375rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  color: var(--color-canvas);
  background: var(--color-action);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: filter 160ms var(--ease-out), transform 160ms var(--ease-out);
  white-space: nowrap;
}

.button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.button:active {
  transform: scale(0.98);
}

.redirect-note {
  max-width: 16rem;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.button:focus-visible,
.link-list a:focus-visible,
.wordmark:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.links {
  display: flex;
  justify-content: flex-end;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2rem);
  border-left: 1px solid var(--color-border);
  background: rgb(4 6 7 / 26%);
  flex-direction: column;
}

.links-label {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: channels;
}

.link-list li {
  display: grid;
  align-items: center;
  border-top: 1px solid var(--color-border);
  counter-increment: channels;
  grid-template-columns: 2rem 1fr;
}

.link-list li::before {
  color: var(--color-brand-secondary);
  content: "0" counter(channels);
  font-family: "Oxanium", system-ui, sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.link-list a {
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.link-list a::after {
  margin-left: auto;
  color: var(--color-border);
  content: "\2192";
  font-family: "Archivo", system-ui, sans-serif;
  transition: color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.link-list a:hover {
  color: var(--color-text);
}

.link-list a:hover::after {
  color: var(--color-brand-secondary);
  transform: translateX(0.25rem);
}

.portal-footer {
  min-height: 2.75rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.5625rem;
}

@media (max-width: 47.9375rem) {
  .shell {
    align-items: start;
    padding: 1rem;
  }

  .portal {
    min-height: calc(100svh - 2rem);
  }

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

  .portal-main {
    min-height: 26rem;
    padding-block: 3.5rem;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.75rem, 13vw, 4.25rem);
  }

  .links {
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }
}

@media (max-width: 27rem) {
  .portal-header {
    min-height: 5.5rem;
  }

  .brand-logo {
    width: 7.25rem;
  }

  .system-label {
    max-width: 7.5rem;
    justify-content: flex-end;
    font-size: 0.5625rem;
    text-align: right;
  }

  .action-group {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-footer span:last-child {
    display: none;
  }
}

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

@media (prefers-reduced-transparency: reduce) {
  body::after,
  .portal::before {
    display: none;
  }

  .portal {
    background: var(--color-surface-elevated);
  }
}
