:root {
  color-scheme: dark;
  --bg: #020711;
  --bg-soft: #06101e;
  --text: #f6f9ff;
  --muted: #9aa8ba;
  --blue: #0aa8ff;
  --blue-soft: #70cfff;
  --line: rgba(94, 164, 237, .22);
  --card: rgba(4, 13, 25, .78);
  --border: rgba(161, 190, 222, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 42% 46%, rgba(0, 144, 255, .11), transparent 30%),
    linear-gradient(108deg, #020711 0%, #04101d 60%, #071325 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(2,7,17,.03), rgba(2,7,17,.10) 55%, rgba(2,7,17,.48));
}

.server-panel {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -4;
  width: min(43vw, 760px);
  background:
    linear-gradient(90deg, #020711 0%, rgba(2,7,17,.28) 24%, rgba(2,7,17,.04) 100%),
    url("assets/server-racks.jpg") center right / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 17%, #000 46%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 17%, #000 46%);
  opacity: .96;
}

#network {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
}

.keywords {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.keywords span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  color: rgba(173, 199, 228, .31);
  font-size: clamp(.72rem, 1.16vw, 1.06rem);
  letter-spacing: .24em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-content {
  width: min(560px, 78vw);
  margin-right: clamp(0px, 12vw, 210px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  transform: translateY(-2vh);
}

.logo {
  display: block;
  width: min(460px, 72vw);
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.45));
}

.login-button {
  min-width: 290px;
  min-height: 58px;
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid rgba(0, 174, 255, .92);
  border-radius: 8px;
  background: rgba(2, 10, 20, .57);
  color: #f7fbff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .94rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(0, 169, 255, .05), 0 18px 35px rgba(0,0,0,.23);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.login-button:hover {
  transform: translateY(-2px);
  background: rgba(0, 121, 193, .18);
  box-shadow: 0 0 28px rgba(0, 164, 255, .15), 0 18px 35px rgba(0,0,0,.27);
}
.login-button:focus-visible, .legal-nav a:focus-visible, .legal-copy a:focus-visible, .site-footer a:focus-visible {
  outline: 2px solid var(--blue-soft);
  outline-offset: 4px;
}
.login-button svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legal-nav {
  position: absolute;
  left: 50%;
  bottom: 27px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 2;
}
.legal-nav a {
  color: rgba(234, 242, 251, .76);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  transition: color .2s ease;
}
.legal-nav a:hover { color: white; }
.legal-nav span {
  width: 1px;
  height: 18px;
  background: rgba(176, 204, 233, .28);
}

.legal-section {
  position: relative;
  padding: clamp(70px, 9vw, 120px) 24px;
  background:
    radial-gradient(circle at 76% 12%, rgba(0, 143, 255, .08), transparent 30%),
    linear-gradient(180deg, #04101d, #020711);
}
.legal-section.privacy {
  padding-top: 0;
}
.legal-card {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(8,20,36,.82), rgba(2,9,18,.76));
  box-shadow: 0 30px 80px rgba(0,0,0,.24);
  backdrop-filter: blur(16px);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-soft);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .23em;
}
h2 {
  margin: 0 0 34px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 500;
  letter-spacing: -.03em;
}
h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 16px;
  background: var(--blue);
}
.legal-copy {
  max-width: 760px;
  color: #b9c4d2;
  font-size: 1rem;
  line-height: 1.75;
}
.legal-copy p { margin: 0 0 1.5em; }
.legal-copy h3 {
  margin: 2.2em 0 .65em;
  color: #eef5ff;
  font-size: 1.06rem;
  font-weight: 500;
}
.legal-copy a { color: #8dd7ff; }

.site-footer {
  min-height: 86px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: #748398;
  background: #020711;
  border-top: 1px solid rgba(164, 191, 220, .12);
  font-size: .82rem;
}
.site-footer a { color: #9fb0c3; text-decoration: none; }
.site-footer a:hover { color: #dce8f5; }
.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .server-panel { width: 62vw; opacity: .62; }
  .hero-content { margin-right: 0; width: min(640px, 88vw); }
  .keywords span { opacity: .7; }
}

@media (max-width: 640px) {
  .hero { min-height: 100svh; }
  .server-panel { width: 100%; opacity: .25; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 32%); mask-image: linear-gradient(180deg, transparent 0%, #000 32%); }
  .hero-content { gap: 24px; transform: translateY(-5vh); }
  .logo { width: min(420px, 86vw); }
  .login-button { min-width: min(300px, 84vw); }
  .keywords span { font-size: .61rem; letter-spacing: .16em; color: rgba(180,204,230,.23); }
  .legal-nav { bottom: 22px; gap: 13px; }
  .legal-nav a { font-size: .64rem; }
  .legal-card { padding: 28px 22px; border-radius: 10px; }
  .legal-section { padding-left: 16px; padding-right: 16px; }
  .site-footer { flex-direction: column; gap: 12px; }
  .footer-nav { gap: 14px; }
}

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