@font-face {
  font-family: "Inter";
  src: url("fonts/inter-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrainsmono-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrainsmono-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@property --c0 {
  syntax: "<color>";
  inherits: false;
  initial-value: #5B3FCC;
}

@property --c1 {
  syntax: "<color>";
  inherits: false;
  initial-value: #7C5CFF;
}

:root {
  --deepest: #0B0816;
  --panel: #120E1E;
  --field: #221A38;
  --field-hover: #30264E;
  --field-pressed: #1A1430;
  --edge: #3A2E5E;
  --text: #E8E0FF;
  --secondary: #9B90C4;
  --lavender: #C9B6FF;
  --primary: #7C5CFF;
  --primary-mid: #9B7BFF;
  --accent: #B48CFF;
  --off: #6E6491;
  --shine: #E9E1FF;
  --ok: #5FD98C;
  --error: #F0666F;
  --waiting: #FFCC5C;
  --ui: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  --display: "Montserrat", var(--ui);
  color-scheme: dark;
}

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

html {
  background: var(--deepest);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

[hidden],
html[lang="it"] [data-l="en"],
html:not([lang="it"]) [data-l="it"] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 760px at 50% -120px, rgba(47, 20, 94, 0.62), rgba(26, 12, 58, 0.25) 55%, transparent 80%),
    var(--deepest);
  color: var(--text);
  font: 400 15px/1.55 var(--ui);
}

a {
  color: var(--lavender);
  text-decoration: none;
  border-radius: 6px;
  transition: color 120ms;
}

a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.page {
  width: min(728px, 100% - 32px);
  margin: 0 auto;
}

.kicker {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 16px;
  margin: 0;
  font: 600 11px/13.31px var(--ui);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tone, var(--secondary));
}

.kicker::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: currentColor;
}

.tone-ok { --tone: var(--ok); }
.tone-working { --tone: var(--accent); }
.tone-waiting { --tone: var(--waiting); }
.tone-error { --tone: var(--error); }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  min-width: 120px;
  border-radius: 10px;
  font: 600 13px/1 var(--ui);
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 120ms ease-out, background-color 120ms, --c0 120ms, --c1 120ms;
}

.btn:hover {
  text-decoration: none;
  transition-duration: 80ms;
}

.btn:active {
  transform: scale(0.97);
  transition-duration: 60ms;
}

.btn-primary {
  --c0: #5B3FCC;
  --c1: #7C5CFF;
  min-width: 168px;
  padding: 0 24px;
  color: #FFFFFF;
  background: linear-gradient(90deg, var(--c0), var(--c1));
  overflow: hidden;
}

.btn-primary:hover {
  --c0: #6246E8;
  --c1: #8C6CFF;
  color: #FFFFFF;
}

.btn-primary:active {
  --c0: #4F36B8;
  --c1: #6A48F0;
}

.btn-secondary {
  color: var(--lavender);
  background: var(--field);
  border: 1px solid var(--edge);
}

.btn-secondary:hover {
  color: var(--lavender);
  background: var(--field-hover);
}

.btn-secondary:active {
  background: var(--field-pressed);
}

.btn-small {
  height: 28px;
  min-width: 0;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 11px;
}

.btn .label {
  transition: opacity 160ms;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--text);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
  transition: opacity 40ms;
}

.icon-btn:hover {
  color: var(--text);
  text-decoration: none;
}

.icon-btn:hover svg {
  opacity: 1;
}

.segmented {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border-radius: 8px;
  background: var(--field);
  border: 1px solid var(--edge);
}

.segmented button {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--secondary);
  font: 600 12px/1 var(--ui);
  cursor: pointer;
  transition: color 120ms;
  -webkit-tap-highlight-color: transparent;
}

.segmented button[aria-pressed="true"],
.segmented button[aria-selected="true"] {
  color: var(--text);
}

.segmented .thumb {
  position: absolute;
  z-index: 0;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  border-radius: 6px;
  background: var(--field-hover);
  border: 1px solid rgba(155, 123, 255, 0.7);
  pointer-events: none;
}

.lang {
  height: 28px;
  padding: 2px;
}

.lang button {
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.lang .thumb {
  top: 2px;
  bottom: 2px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 18px;
  padding: 28px 32px 30px;
}

.card > .kicker {
  margin-bottom: 18px;
}

.lead {
  margin: 0;
  font-size: 13px;
  line-height: 19px;
  color: var(--secondary);
}

.dots {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dots li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 7px;
  font-size: 13px;
  line-height: 19px;
  color: var(--secondary);
}

.dots li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.dots li:last-child {
  margin-bottom: 0;
}

.dots b {
  font-weight: 600;
  color: var(--text);
}

.facts {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  column-gap: 0;
  row-gap: 8px;
  margin: 0;
}

.facts dt {
  margin: 2px 0 0;
  font: 500 10px/12px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
}

.facts dd {
  margin: 0;
  min-width: 0;
  font: 500 11px/16px var(--mono);
  color: var(--text);
  overflow-wrap: anywhere;
}

.mono {
  font-family: var(--mono);
  font-weight: 500;
}

.site-footer {
  width: min(728px, 100% - 32px);
  margin: 64px auto 0;
  padding: 28px 0 48px;
  border-top: 1px solid rgba(58, 46, 94, 0.7);
  color: var(--off);
  font-size: 12px;
  line-height: 18px;
}

.site-footer .top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 18px;
}

.site-footer .home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.site-footer .home:hover {
  text-decoration: none;
}

.site-footer .home .mark {
  width: 18px;
  height: 22px;
}

.wordmark-small {
  font: 700 13px/1 var(--display);
  letter-spacing: 0.24em;
  margin-right: -0.24em;
  background: linear-gradient(90deg, var(--primary), var(--lavender));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer .address {
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.32em;
  color: var(--lavender);
  opacity: 0.8;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  font-size: 12px;
}

.site-footer nav a + a::before {
  content: "·";
  display: inline-block;
  margin: 0 7px;
  color: var(--off);
}

.site-footer nav a:hover::before {
  text-decoration: none;
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer .legal-en {
  font: 500 10px/15px var(--mono);
  letter-spacing: 0.06em;
  color: var(--secondary);
}

.site-footer a {
  color: var(--secondary);
}

.site-footer a:hover {
  color: var(--text);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 0;
}

.topbar .home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar .home:hover {
  text-decoration: none;
}

.topbar .home .mark {
  width: 22px;
  height: 27px;
}

.doc {
  margin-top: 40px;
}

.doc .card {
  padding: 36px 40px 40px;
}

.doc h1 {
  margin: 14px 0 0;
  font: 600 24px/30px var(--ui);
  color: var(--text);
}

.doc .updated {
  margin: 10px 0 0;
  font: 500 10px/14px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
}

.doc h2 {
  margin: 32px 0 10px;
  font: 600 16px/22px var(--ui);
  color: var(--text);
}

.doc p,
.doc li {
  font-size: 14px;
  line-height: 22px;
  color: var(--secondary);
}

.doc p {
  margin: 0 0 12px;
}

.doc .kicker {
  margin: 0;
  font-size: 11px;
  line-height: 13.31px;
  color: var(--tone, var(--secondary));
}

.doc ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.doc li {
  margin-bottom: 6px;
}

.doc li::marker {
  color: var(--accent);
}

.doc strong {
  font-weight: 600;
  color: var(--text);
}

.doc .todo {
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(255, 204, 92, 0.12);
  color: #FFE3A5;
  font-family: var(--mono);
  font-size: 12.5px;
}

@media (max-width: 600px) {
  .card {
    padding: 24px 20px 26px;
  }

  .doc .card {
    padding: 28px 20px 30px;
  }

  .site-footer {
    margin-top: 48px;
  }
}
