:root {
  color-scheme: dark;
  --navy-950: #031126;
  --navy-900: #061b38;
  --navy-800: #0a2b53;
  --blue-500: #1b78d0;
  --blue-300: #65b8f1;
  --white: #f6fbff;
  --muted: rgba(230, 244, 255, 0.72);
  --glass: rgba(5, 24, 48, 0.52);
  --glass-border: rgba(193, 225, 248, 0.16);
  --shadow: 0 24px 80px rgba(0, 8, 24, 0.34);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--navy-950);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 10%, rgba(45, 137, 204, 0.24), transparent 36%),
    radial-gradient(circle at 85% 20%, rgba(48, 113, 183, 0.18), transparent 40%),
    linear-gradient(145deg, var(--navy-950) 0%, var(--navy-900) 46%, #09294e 100%);
}

a {
  color: inherit;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.ambient__glow {
  position: absolute;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  animation: drift 18s ease-in-out infinite alternate;
}

.ambient__glow--one {
  top: -18rem;
  left: -12rem;
  background: #238bd4;
}

.ambient__glow--two {
  right: -18rem;
  bottom: -24rem;
  background: #1559a7;
  animation-delay: -9s;
}

.ambient__mark {
  position: absolute;
  width: min(74vw, 64rem);
  right: -10vw;
  bottom: -25vw;
  opacity: 0.055;
  filter: blur(1px);
  transform: rotate(-8deg);
}

.site-header {
  width: min(1180px, calc(100% - 36px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 1.08rem;
  font-weight: 720;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 10px 28px rgba(0, 75, 144, 0.28);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(4, 18, 37, 0.38);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(0, 6, 18, 0.2);
}

.site-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
  outline: none;
}

.site-nav a.is-active {
  color: var(--white);
  background: linear-gradient(180deg, rgba(69, 148, 211, 0.48), rgba(28, 91, 150, 0.44));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.page--home {
  min-height: calc(100vh - 84px);
  display: grid;
  place-items: center;
  padding: 40px 0 100px;
}

.hero {
  width: min(760px, 92vw);
  min-height: min(66vh, 650px);
  display: grid;
  place-items: center;
  position: relative;
}

.hero__legal {
  position: absolute;
  bottom: 0;
  width: 100%;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero__legal p {
  margin: 0.2rem 0;
}

.hero::before {
  content: "";
  position: absolute;
  width: min(58vw, 540px);
  height: min(58vw, 540px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(71, 171, 235, 0.18), transparent 68%);
  filter: blur(10px);
}

.hero__mark {
  position: relative;
  width: min(44vw, 360px);
  min-width: 210px;
  border-radius: 28%;
  filter: drop-shadow(0 32px 64px rgba(0, 11, 36, 0.46));
  animation: float 7s ease-in-out infinite;
}

.page--document {
  min-height: calc(100vh - 84px);
  padding: 64px 0 120px;
}

.document-shell {
  width: min(860px, 100%);
  min-height: 62vh;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  background: linear-gradient(150deg, rgba(14, 45, 78, 0.56), var(--glass));
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.document-shell:empty::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  min-height: 48vh;
}

.document-content {
  line-height: 1.7;
}

.document-content h1 {
  margin-top: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
}

.document-content h2 {
  margin-top: 2.5rem;
  padding-top: 0.35rem;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.document-content p,
.document-content li {
  color: rgba(240, 248, 255, 0.88);
}

.document-content a {
  color: var(--blue-300);
}

.document-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.document-content th,
.document-content td {
  min-width: 12rem;
  padding: 0.8rem;
  border: 1px solid var(--glass-border);
  text-align: left;
  vertical-align: top;
}

.document-content blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 1rem;
  border-left: 3px solid var(--blue-300);
  background: rgba(255, 255, 255, 0.04);
}

@keyframes float {
  from,
  to { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4rem, 2rem, 0) scale(1.08); }
}

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

@media (max-width: 680px) {
  .site-header {
    min-height: 118px;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    border-radius: 22px;
  }

  .site-nav a {
    flex: 1 1 auto;
    padding-inline: 10px;
    text-align: center;
  }

  .page--home,
  .page--document {
    min-height: calc(100vh - 118px);
  }

  .page--home {
    padding-top: 12px;
  }

  .document-shell {
    min-height: 68vh;
    border-radius: 24px;
  }
}
