:root {
  color-scheme: dark;
  --bg: #05050a;
  --bg-2: #090a12;
  --panel: rgba(16, 15, 26, .76);
  --panel-solid: #0f0e18;
  --purple: #8c5cff;
  --purple-2: #6840df;
  --pink: #f19bd8;
  --blue: #51bff3;
  --text: #f4f1f8;
  --muted: #817c8d;
  --muted-strong: #aaa4b4;
  --border: rgba(255, 255, 255, .075);
  --border-strong: rgba(255, 255, 255, .13);
  --shell: min(1240px, calc(100vw - 64px));
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

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

main {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: 16px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: #12111b;
  color: var(--text);
  font-size: 12px;
  transform: translateY(-180%);
  transition: transform .16s ease;
}

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

:focus-visible {
  outline: 2px solid rgba(177, 144, 255, .9);
  outline-offset: 3px;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: .19;
  background-image: url("../img/dbdrnl-icon.png");
  background-repeat: no-repeat;
  background-position: calc(100% + 170px) 40%;
  background-size: min(850px, 68vw);
  filter: saturate(1.12);
  transform: scale(1.02);
  pointer-events: none;
}

.page-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 5, 10, .98) 0%, rgba(5, 5, 10, .88) 38%, rgba(5, 5, 10, .42) 70%, rgba(5, 5, 10, .88) 100%),
    linear-gradient(180deg, rgba(5, 5, 10, .2), rgba(5, 5, 10, .92) 78%, var(--bg));
  pointer-events: none;
}

.glow {
  position: fixed;
  z-index: 1;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .18;
  pointer-events: none;
}

.glow-left {
  width: 520px;
  height: 520px;
  top: -190px;
  left: -160px;
  background: radial-gradient(circle, var(--purple), transparent 70%);
  animation: floatLeft 15s ease-in-out infinite;
}

.glow-right {
  width: 500px;
  height: 500px;
  right: -180px;
  bottom: -170px;
  background: radial-gradient(circle, var(--pink), transparent 70%);
  animation: floatRight 18s ease-in-out infinite;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 2;
  opacity: .26;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, .19) 2px 4px);
  mix-blend-mode: overlay;
  pointer-events: none;
}

@keyframes floatLeft {
  50% {
    transform: translate(70px, 55px) scale(1.08);
  }
}

@keyframes floatRight {
  50% {
    transform: translate(-70px, -55px) scale(1.12);
  }
}

.button {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: "Chakra Petch", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .025em;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  box-shadow: 0 0 30px rgba(140, 92, 255, .25);
}

.button-primary:hover {
  box-shadow: 0 0 42px rgba(140, 92, 255, .4);
}

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

.button-secondary:hover {
  border-color: rgba(140, 92, 255, .5);
  background: rgba(140, 92, 255, .06);
}
