:root {
  --bg: #f2f7ff;
  --ink: #263852;
  --muted: #73859e;
  --primary: #6ba3d6;
  --primary-deep: #598cb8;
  --primary-soft: #8cb8e6;
  --panel: rgba(255, 255, 255, 0.78);
  --line: rgba(38, 56, 82, 0.12);
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Manrope", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--primary-deep);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 45% at 80% 10%, rgba(140, 184, 230, 0.42), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 70%, rgba(89, 140, 184, 0.16), transparent 55%),
    linear-gradient(180deg, #f7faff 0%, #e8f0fa 48%, #dce8f6 100%);
}

.sky__lanes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    105deg,
    transparent 0 36px,
    rgba(107, 163, 214, 0.06) 36px 37px
  );
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  animation: lanes-slide 22s linear infinite;
}

.sky__glow {
  position: absolute;
  width: 42vw;
  height: 42vw;
  top: -8%;
  right: -6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 163, 214, 0.28), transparent 68%);
  animation: glow-breathe 7s ease-in-out infinite;
}

.sky__mesh {
  position: absolute;
  width: min(48vw, 420px);
  height: auto;
  right: 4%;
  bottom: 12%;
  opacity: 0.9;
  animation: mesh-drift 12s ease-in-out infinite;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 250, 255, 0.78);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.35rem;
}

.nav,
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a[aria-current="page"],
.nav a:hover {
  color: var(--ink);
}

.langs .lang {
  color: var(--muted);
  text-decoration: none;
  padding: 0.15rem 0.35rem;
  border: 1px solid transparent;
}

.langs .lang[aria-current="true"] {
  color: var(--ink);
  border-color: rgba(89, 140, 184, 0.45);
  background: rgba(255, 255, 255, 0.7);
}

.doc {
  padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 4rem;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: min(42vh, 320px);
  justify-content: flex-end;
  padding: 1.5rem 0 0.5rem;
  animation: brand-slide 0.85s ease both;
}

.hero__logo {
  width: clamp(88px, 18vw, 128px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(89, 140, 184, 0.28));
}

.hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 5.8rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--ink);
}

.prose {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.75rem clamp(1.1rem, 3vw, 2rem);
  background: var(--panel);
  border: 1px solid var(--line);
}

.hub--home .prose--home {
  margin: 0;
  max-width: 46rem;
  background: transparent;
  border: none;
  padding: 0.5rem 0 0;
  animation: rise 0.75s 0.12s ease both;
}

.prose h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: none;
}

.hub--home .prose--home h1 {
  max-width: 16ch;
  text-transform: none;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.prose h3 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.prose p,
.prose li {
  color: var(--ink);
}

.prose p {
  margin: 0 0 0.9rem;
}

.hub--home .prose--home > p:first-of-type {
  max-width: 40ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.prose li {
  margin: 0.3rem 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  font-size: 0.92rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: rgba(107, 163, 214, 0.14);
  font-weight: 700;
}

.prose code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  background: rgba(107, 163, 214, 0.16);
}

.foot {
  padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.foot p {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.foot img {
  display: block;
}

.foot strong {
  color: var(--ink);
  font-weight: 700;
}

@keyframes brand-slide {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lanes-slide {
  to {
    background-position: 120px 40px;
  }
}

@keyframes glow-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes mesh-drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 720px) {
  .top {
    align-items: flex-start;
  }

  .nav {
    order: 3;
    width: 100%;
  }

  .sky__mesh {
    width: 55vw;
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sky__lanes,
  .sky__glow,
  .sky__mesh,
  .hero,
  .hub--home .prose--home {
    animation: none !important;
  }
}
