:root {
  color-scheme: light dark;
  --background: #ffffff;
  --surface: #f4f8fa;
  --surface-strong: #e9f2f5;
  --text: #11181c;
  --muted: #56636a;
  --line: #d8e2e7;
  --brand: #0a7ea4;
  --brand-dark: #086581;
  --brand-soft: #dff3f8;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --shadow: 0 18px 55px rgba(17, 24, 28, 0.1);
  --radius: 18px;
  --content: 72rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 8vw, 4.8rem);
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.5rem, 5vw, 2.15rem);
}

h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
}

p,
ul,
ol {
  margin-top: 0;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--background) 94%, transparent);
  backdrop-filter: blur(12px);
}

.nav-shell,
.page-shell,
.footer-shell {
  width: min(100% - 2rem, var(--content));
  margin-inline: auto;
}

.nav-shell {
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.72rem;
  box-shadow: 0 6px 18px rgba(10, 126, 164, 0.2);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem 0.9rem;
  flex-wrap: wrap;
}

.site-nav a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

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

.language-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 0.8rem;
}

main {
  min-height: calc(100vh - 16rem);
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 90% 15%, rgba(10, 126, 164, 0.19), transparent 28rem),
    linear-gradient(150deg, var(--background), var(--surface));
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(4rem, 11vw, 8rem);
}

.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  max-width: 46rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  border-radius: 0.75rem;
  padding: 0.65rem 1.15rem;
  background: var(--brand);
  color: #ffffff;
  font-weight: 750;
  text-decoration: none;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.button:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

.button-secondary {
  border-color: var(--line);
  background: var(--background);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.hero-mark {
  width: min(15rem, 58vw);
  margin-inline: auto;
  border-radius: 3.25rem;
  box-shadow: var(--shadow);
}

.notice {
  margin-top: 1.7rem;
  border-left: 4px solid var(--brand);
  border-radius: 0.7rem;
  padding: 1rem 1.1rem;
  background: var(--brand-soft);
  color: var(--text);
}

.section {
  padding-block: clamp(3.4rem, 8vw, 6rem);
}

.section-tinted {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.section-heading p {
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  background: var(--background);
  box-shadow: 0 8px 30px rgba(17, 24, 28, 0.04);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card-icon {
  display: inline-flex;
  width: 2.7rem;
  height: 2.7rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 0.8rem;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 1.2rem;
  font-weight: 850;
}

.link-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.link-list a {
  display: flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.65rem 0.9rem;
  background: var(--background);
  font-weight: 700;
  text-decoration: none;
}

.page-hero {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.page-hero .page-shell {
  padding-block: clamp(3.3rem, 8vw, 5.8rem);
}

.page-hero h1 {
  max-width: 54rem;
  font-size: clamp(2.15rem, 7vw, 4rem);
}

.page-hero p:last-child {
  max-width: 46rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.content-narrow {
  width: min(100% - 2rem, 52rem);
  margin-inline: auto;
  padding-block: clamp(2.8rem, 7vw, 5rem);
}

.prose > * + * {
  margin-top: 1.2rem;
}

.prose h2 {
  margin-top: 2.5rem;
}

.prose ol,
.prose ul {
  padding-left: 1.35rem;
}

.legal-meta {
  color: var(--muted);
  font-weight: 650;
}

.legal-section {
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.legal-section:first-of-type {
  padding-top: 0;
}

.legal-section:last-of-type {
  border-bottom: 0;
}

.legal-section h2 {
  margin-bottom: 0.8rem;
  font-size: 1.55rem;
}

.legal-section h3 {
  margin-top: 1.25rem;
}

.legal-copy {
  margin-bottom: 0;
  white-space: pre-line;
}

.legal-footer {
  margin-top: 2.2rem;
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  background: var(--surface);
  font-weight: 700;
}

.warning-card {
  border: 1px solid color-mix(in srgb, var(--danger) 45%, var(--line));
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--danger-soft);
}

.warning-card h2,
.warning-card h3 {
  color: var(--danger);
}

.steps {
  counter-reset: steps;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 3.2rem;
  padding-left: 3.7rem;
}

.steps li + li {
  margin-top: 1.25rem;
}

.steps li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: -0.2rem;
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-weight: 800;
}

.download-grid {
  display: grid;
  gap: 1rem;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.download-card .button {
  margin-top: auto;
}

.instructions {
  padding-left: 1.25rem;
}

.release-details {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--surface);
}

.release-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.release-value {
  display: block;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.invitation-panel {
  text-align: center;
}

.invitation-panel .hero-mark {
  width: 6.5rem;
  margin-bottom: 1.5rem;
  border-radius: 1.55rem;
}

.invitation-error {
  border: 1px solid color-mix(in srgb, var(--danger) 45%, var(--line));
  border-radius: 0.8rem;
  padding: 0.9rem;
  background: var(--danger-soft);
  color: var(--danger);
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-shell {
  display: grid;
  gap: 1.4rem;
  padding-block: 2.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
}

.footer-nav a {
  font-weight: 650;
}

.footer-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 42rem) {
  .card-grid,
  .download-grid,
  .release-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-shell {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer-meta {
    grid-column: 1 / -1;
  }
}

@media (min-width: 52rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(15rem, 0.65fr);
  }

  .card-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 50rem) {
  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 0.75rem;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #151718;
    --surface: #1d2123;
    --surface-strong: #253035;
    --text: #ecedee;
    --muted: #a9b2b7;
    --line: #354047;
    --brand: #62c7e7;
    --brand-dark: #8bd8ed;
    --brand-soft: #173943;
    --danger: #ff8b81;
    --danger-soft: #3b211f;
    --shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
