:root {
  --teal: #1a6b5c;
  --teal-deep: #0f3d34;
  --mist: #f4f5f0;
  --mist-2: #e8ebe4;
  --ink: #1c1f1c;
  --muted: #5a635c;
  --line: rgba(26, 107, 92, 0.14);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  background: var(--mist);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 55% at 12% -10%, rgba(26, 107, 92, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 8%, rgba(63, 90, 154, 0.08), transparent 50%),
    linear-gradient(165deg, #f7f8f4 0%, var(--mist) 42%, var(--mist-2) 100%);
}

.hero {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1.25rem, 5vw, 2rem) 2rem;
  animation: rise 0.7s ease-out both;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.75rem;
}

.brand {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--teal);
  text-decoration: none;
}

.lang {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--teal);
  color: #fff;
}

.brand-hero {
  margin: 0 0 0.35rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--teal);
  animation: rise 0.75s ease-out both;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.45rem, 3.8vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--teal-deep);
  max-width: 22ch;
  animation: rise 0.8s 0.08s ease-out both;
}

.lede {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 36ch;
  animation: rise 0.8s 0.16s ease-out both;
}

.meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.doc {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2rem) 4rem;
  animation: rise 0.85s 0.22s ease-out both;
}

section {
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--teal-deep);
}

section p,
section li {
  margin: 0 0 0.85rem;
  color: var(--ink);
}

section ul {
  margin: 0;
  padding-left: 1.15rem;
}

section li {
  margin-bottom: 0.65rem;
}

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 0.35em;
  background: rgba(26, 107, 92, 0.08);
  color: var(--teal-deep);
}

.foot {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2rem) 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.brand-inline {
  font-weight: 700;
  color: var(--teal);
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
