:root {
  color-scheme: dark;
  --background: #100321;
  --surface: rgba(24, 8, 50, 0.88);
  --surface-solid: #1b0938;
  --text: #ffffff;
  --muted: #c8bcd6;
  --accent: #ff00c7;
  --accent-light: #ff70df;
  --line: rgba(255, 255, 255, 0.14);
  --content-width: 960px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: var(--accent-light);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #ffffff;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #17052f;
  transform: translateY(-180%);
}

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

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
  padding: 0.85rem max(1.25rem, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(12, 2, 28, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.brand strong {
  color: var(--accent-light);
}

.brand img {
  display: block;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2.5vw, 1.75rem);
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: #ffffff;
}

.site-header--nav-only {
  justify-content: flex-end;
}

.home-page {
  display: flex;
  flex-direction: column;
  background-color: #190434;
  background-image: linear-gradient(180deg, rgba(9, 1, 22, 0.2), rgba(9, 1, 22, 0.7)), url("/main.png");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

.home-page .hero {
  flex: 1;
  min-height: 0;
  padding: 0;
}

.hero {
  display: grid;
  min-height: calc(100vh - 190px);
  place-items: center;
  padding: clamp(3rem, 10vw, 8rem) 1.25rem;
}

.hero-card,
.not-found-card {
  width: min(620px, 100%);
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  background: rgba(18, 4, 41, 0.78);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  text-align: center;
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1,
.not-found-card h1 {
  margin: 0;
  font-size: clamp(2.8rem, 9vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.hero-card > p:not(.eyebrow),
.not-found-card > p:not(.eyebrow) {
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.hero-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.1rem;
  border-radius: 0.65rem;
  background: var(--accent);
  box-shadow: 0 10px 30px rgba(255, 0, 199, 0.25);
  color: #ffffff;
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  background: #ff32d1;
}

.text-link {
  color: #ffffff;
  font-weight: 650;
}

.legal-page {
  background:
    radial-gradient(circle at 85% 0%, rgba(173, 24, 255, 0.18), transparent 30rem),
    var(--background);
}

.legal-main {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.legal-card {
  padding: clamp(1.35rem, 5vw, 4.5rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
}

.legal-card h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.legal-card h1 + p {
  margin-top: 0;
  color: var(--muted);
}

.legal-card h2,
.legal-card h3 {
  margin: 2.5rem 0 0.75rem;
  line-height: 1.25;
  scroll-margin-top: 1rem;
}

.legal-card h2 {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.legal-card h3 {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
}

.legal-card p,
.legal-card li {
  color: #e8e1ee;
}

.legal-card ul {
  padding-left: 1.35rem;
}

.legal-card li + li {
  margin-top: 0.45rem;
}

.not-found-main {
  display: grid;
  min-height: calc(100vh - 190px);
  place-items: center;
  padding: 3rem 1.25rem;
  background: radial-gradient(circle at center, rgba(255, 0, 199, 0.12), transparent 30rem);
}

.not-found-card .button {
  margin-top: 1.5rem;
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.5rem max(1.25rem, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  background: rgba(12, 2, 28, 0.88);
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-header nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .site-header nav a {
    white-space: nowrap;
  }

  .hero-links,
  .site-footer {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .home-page {
    background-attachment: scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
