:root {
  color-scheme: dark;
  --text: #f5f7fb;
  --muted: #b7c0ce;
  --line: rgba(255, 255, 255, 0.16);
  --button: #f4f7fb;
  --button-text: #101928;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #050913;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 88%, rgba(93, 151, 204, 0.24), transparent 24rem),
    linear-gradient(155deg, #02040a 0%, #08101f 46%, #0b1627 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.4px);
  background-position: 8% 18%, 72% 11%;
  background-size: 138px 138px, 214px 214px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: screen;
}

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

.login-link {
  position: fixed;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5rem;
  min-height: 2.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(16px);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 5rem 1.25rem 6.5rem;
  isolation: isolate;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 58rem);
  text-align: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: clamp(0.78rem, 1.4vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: 0;
  text-wrap: balance;
}

.welcome {
  margin: clamp(1rem, 3vw, 1.5rem) auto 0;
  color: var(--muted);
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  line-height: 1.4;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.75rem;
  min-height: 3rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  font-weight: 800;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3), 0 0 38px rgba(195, 219, 255, 0.24);
}

.primary-button:hover,
.login-link:hover,
.site-footer a:hover {
  filter: brightness(1.08);
}

.horizon {
  position: fixed;
  right: -10vw;
  bottom: 0;
  left: -10vw;
  z-index: 1;
  height: min(30vh, 17rem);
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(139, 196, 255, 0.28), transparent 52%),
    linear-gradient(173deg, transparent 0 40%, rgba(3, 8, 16, 0.25) 40.3% 48%, transparent 48.3%),
    linear-gradient(188deg, transparent 0 46%, rgba(2, 5, 12, 0.86) 46.3% 100%);
}

.site-footer {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
  justify-content: center;
  color: rgba(245, 247, 251, 0.72);
  font-size: 0.85rem;
  line-height: 1.5;
}

.site-footer a {
  color: rgba(245, 247, 251, 0.86);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.legal-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem 1.25rem;
}

.legal-content {
  width: min(100%, 42rem);
}

.legal-content h1 {
  font-size: clamp(2.25rem, 8vw, 4.5rem);
}

.legal-content p {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.back-link {
  display: inline-flex;
  margin-top: 1.5rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

@media (max-width: 640px) {
  .hero {
    padding-top: 6rem;
  }

  .login-link {
    min-width: auto;
    min-height: 2.35rem;
  }

  .separator {
    display: none;
  }

  .site-footer {
    gap: 0.25rem 0.8rem;
    font-size: 0.8rem;
  }
}

.legal-content section {
  margin-top: 2rem;
}

.legal-content h2 {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  line-height: 1.25;
}

.legal-content address,
.legal-content li {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.legal-content address {
  font-style: normal;
}

.legal-content ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.legal-content a:not(.back-link) {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  overflow-wrap: anywhere;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 2.5rem;
  padding-bottom: 4rem;
}

.legal-page .site-footer {
  position: static;
  margin: 0 auto 1rem;
  padding-inline: 1rem;
}

@media (max-width: 640px) {
  .legal-content {
    padding-bottom: 1rem;
  }
}
