/* choutes.com, help.choutes.com, packages.choutes.com: the design of Choutes Project.
   A deep violet night at the top of every page, clean light sections below, glass where things
   float. Fonts: Poppins (headings), Inter (text). */

@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --night: #120C2E;
  --night-2: #1B1246;
  --violet: #5B18E5;
  --violet-hover: #6B2BF2;
  --violet-soft: #8F5BFF;
  --iris: #C2AEFF;
  --blue: #2F45E0;
  --on-night: #F4F1FF;
  --on-night-muted: #B9B1D8;

  --bg: #F5F4FA;
  --surface: #FFFFFF;
  --text: #15112B;
  --muted: #5B5676;
  --line: #E3DFEE;
  --accent-text: #5320D4;
  --tint: #EEE8FF;
  --code-bg: #F0EDF8;
  --eyebrow: #6A35EC;

  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Poppins", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 26px;
  --shadow: 0 1px 2px rgba(21, 17, 43, .06), 0 12px 32px rgba(21, 17, 43, .10);
  --shadow-l: 0 2px 6px rgba(21, 17, 43, .08), 0 30px 80px rgba(21, 17, 43, .18);
  --head-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-text); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html:not([lang="ms"]) body [lang="ms"],
html[lang="ms"] body [lang="en"] { display: none !important; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; color: inherit; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code { font-family: var(--font-mono); font-size: .9em; background: var(--code-bg); padding: .12em .4em; border-radius: 6px; overflow-wrap: anywhere; }
pre { background: #120E26; color: #ECE8FF; padding: 16px 18px; border-radius: var(--radius-s); overflow-x: auto; font-size: .92rem; line-height: 1.55; }
pre code { background: none; padding: 0; color: inherit; }
::selection { background: #D9CCFF; color: #15112B; }
:focus-visible { outline: 3px solid var(--violet-soft); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: #fff; color: var(--text); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.eyebrow, .hero-eyebrow { display: inline-block; font: 600 .78rem/1 var(--font-text); letter-spacing: .16em; text-transform: uppercase; color: var(--eyebrow); margin-bottom: 14px; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.6; color: var(--muted); }
.muted { color: var(--muted); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 0; font: 600 1rem/1 var(--font-text); text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-violet { background: linear-gradient(135deg, #7A3CF5, #5317E0); color: #fff; box-shadow: 0 10px 28px rgba(91, 24, 229, .35); }
.btn-violet:hover { color: #fff; box-shadow: 0 14px 34px rgba(91, 24, 229, .45); }
.btn-light { background: #fff; color: #2A1A78; box-shadow: 0 10px 30px rgba(10, 6, 30, .25); }
.btn-light:hover { color: #1F1060; }
.btn-glass { background: rgba(255, 255, 255, .10); color: #fff; border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--violet-soft); color: var(--accent-text); }
.btn-ghost { background: #ECEAF4; color: var(--text); }
.btn-ghost:hover { background: #E2DEF0; color: var(--text); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.btn-small svg { width: 17px; height: 17px; }
.btn-big { min-height: 60px; padding: 0 34px; font-size: 1.1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .btn-row { justify-content: center; }

/* ---- header ---- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--head-h); color: #fff;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled, .site-header.open {
  background: rgba(18, 12, 46, .9); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px rgba(8, 4, 24, .25);
}
.bar { height: 100%; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav-link {
  color: rgba(255, 255, 255, .82); text-decoration: none; font: 500 .9rem/1 var(--font-text); letter-spacing: .07em; text-transform: uppercase;
  padding: 10px 14px; border-radius: 999px; transition: color .15s, background .15s;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.nav-link[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .14); }
.nav-only-mobile { display: none; }
.bar-end { display: flex; align-items: center; gap: 12px; flex: none; }
.lang { display: flex; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 3px; }
.lang button { appearance: none; border: 0; background: transparent; color: rgba(255, 255, 255, .72); font: 600 .74rem/1 var(--font-text); padding: 7px 10px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: #fff; color: #2A1A78; }
.menu-toggle { display: none; appearance: none; border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 42px; height: 42px; border-radius: 12px; cursor: pointer; place-items: center; }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle svg + svg { display: none; }
.open .menu-toggle svg { display: none; }
.open .menu-toggle svg + svg { display: block; }

@media (max-width: 1000px) {
  .menu-toggle { display: grid; }
  .bar-download { display: none; }
  .nav {
    position: fixed; top: var(--head-h); left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 22px; background: rgba(18, 12, 46, .96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, .1); transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; max-height: calc(100dvh - var(--head-h)); overflow-y: auto;
  }
  .open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .nav-link { padding: 15px 14px; font-size: .95rem; border-radius: 12px; }
  .nav-only-mobile { display: block; }
}
@media (max-width: 420px) { .brand img { height: 34px; } .bar { gap: 10px; } .lang button { padding: 7px 8px; } }

/* ---- the night with moving light (hero and page heads) ---- */
.night { position: relative; color: var(--on-night); background: var(--night); overflow: hidden; isolation: isolate; }
.mesh { position: absolute; inset: -20%; z-index: -2; filter: blur(70px) saturate(130%); }
.mesh i { position: absolute; border-radius: 50%; opacity: .85; animation: drift 22s ease-in-out infinite alternate; }
.mesh i:nth-child(1) { width: 60%; height: 70%; left: -5%; top: 5%; background: radial-gradient(circle, #6A22F0 0%, transparent 65%); }
.mesh i:nth-child(2) { width: 55%; height: 65%; right: -5%; top: -5%; background: radial-gradient(circle, #2D3FE6 0%, transparent 65%); animation-duration: 26s; animation-delay: -6s; }
.mesh i:nth-child(3) { width: 50%; height: 60%; left: 25%; bottom: -15%; background: radial-gradient(circle, #A23BEA 0%, transparent 62%); animation-duration: 30s; animation-delay: -12s; }
.mesh i:nth-child(4) { width: 35%; height: 40%; right: 10%; bottom: 5%; background: radial-gradient(circle, #4C1DB8 0%, transparent 65%); animation-duration: 24s; animation-delay: -3s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6%, -4%) scale(1.08); }
  100% { transform: translate(-5%, 5%) scale(.96); }
}
.night::before { /* contour lines */
  content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/contour.webp") center / cover no-repeat;
  opacity: .10; mix-blend-mode: screen;
}
.night::after { /* fine grain */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.night a:not(.btn) { color: var(--iris); }
.night .lead, .night .muted { color: var(--on-night-muted); }
.night .eyebrow, .night .hero-eyebrow { color: var(--iris); }

/* ---- home hero ---- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--head-h) + 40px) 0 80px; text-align: center; }
.hero .wrap { width: 100%; }
.lockup { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.4vw, 30px); margin: 0 auto 34px; }
.logo3d { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%; position: relative; width: clamp(108px, 15vw, 196px); aspect-ratio: 1; perspective: 900px; flex: none; }
.logo3d .l3 { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .12s linear; }
.logo3d .l3 img, .logo3d .l3 .shine { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo3d .l3 .depth { opacity: .95; }
.logo3d .l3 .face { transform: translateZ(1px); filter: drop-shadow(0 22px 34px rgba(8, 2, 40, .55)); }
.logo3d .l3 .shine {
  transform: translateZ(2px); pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 46%);
  -webkit-mask: url("../img/logo-icon.webp") center / contain no-repeat; mask: url("../img/logo-icon.webp") center / contain no-repeat;
}
.logo3d .glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(176, 90, 234, .65), transparent 70%); filter: blur(30px); z-index: -1; animation: pulse 6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.15); opacity: .7; } }
.lockup .word { width: clamp(190px, 27vw, 352px); height: auto; filter: drop-shadow(0 12px 24px rgba(8, 2, 40, .4)); }
.hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); max-width: 22em; margin: 0 auto 16px; }
.hero .lead { max-width: 40em; margin: 0 auto 32px; }
.hero .btn-row { justify-content: center; }
.hero-note { margin-top: 22px; font-size: .9rem; color: var(--on-night-muted); }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: rgba(255, 255, 255, .7); animation: bob 2.2s ease-in-out infinite; }
.scroll-cue svg { width: 28px; height: 28px; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---- page head (other pages) ---- */
.page-head { padding: calc(var(--head-h) + clamp(48px, 7vw, 96px)) 0 clamp(56px, 7vw, 96px); }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin-bottom: 14px; }
.page-head .lead { max-width: 44em; margin-bottom: 0; }
.page-head.center .lead { margin-left: auto; margin-right: auto; }
.page-head .btn-row { margin-top: 28px; }

/* ---- sections ---- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.white { background: var(--surface); }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.section-head.left { margin-left: 0; text-align: left; }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse { grid-template-columns: 1.25fr 1fr; }
.split.reverse .split-text { order: 2; }
.split-text p { color: var(--muted); font-size: 1.08rem; }
.night .split-text p { color: var(--on-night-muted); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { width: 22px; height: 22px; flex: none; color: var(--violet); margin-top: 2px; }
.night .ticks svg { color: var(--iris); }
@media (max-width: 880px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-text { order: 0; }
}

.shot { margin: 0; position: relative; border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-l); background: #0D0A1E; border: 1px solid rgba(21, 17, 43, .08); }
.shot img { width: 100%; height: auto; }
.night .shot { border-color: rgba(255, 255, 255, .12); box-shadow: 0 30px 90px rgba(4, 0, 20, .6); }
.shot-big { max-width: 1060px; margin: 0 auto; }
.frame { position: relative; }
.frame .shot + .shot { position: absolute; width: 55%; right: -4%; bottom: -12%; }
@media (max-width: 880px) { .frame .shot + .shot { position: relative; width: 100%; right: 0; bottom: 0; margin-top: 16px; } }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px; box-shadow: 0 1px 2px rgba(21, 17, 43, .04); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D4CBEF; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.card .tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; background: linear-gradient(135deg, #7A3CF5, #4A1DD0); box-shadow: 0 8px 20px rgba(91, 24, 229, .3); }
.card .tile svg { width: 24px; height: 24px; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card .more { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; color: var(--accent-text); font-weight: 600; font-size: .95rem; }
a.card .more svg { width: 18px; height: 18px; }
.night .card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.night .card p { color: var(--on-night-muted); }
.night .card:hover { border-color: rgba(194, 174, 255, .45); box-shadow: 0 20px 50px rgba(4, 0, 20, .4); }
@media (max-width: 980px) { .cards, .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards, .cards.two, .cards.four { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 22px 0 0; }
.chips li { padding: 9px 16px; border-radius: 999px; background: var(--tint); color: #3A1D9C; font-weight: 600; font-size: .92rem; }
.night .chips li { background: rgba(255, 255, 255, .1); color: #EDE6FF; border: 1px solid rgba(255, 255, 255, .14); }

/* numbers row */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(40px, 6vw, 64px); }
.fact { text-align: center; padding: 22px 12px; border-radius: var(--radius-m); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.fact strong { display: block; font: 700 1.5rem/1.2 var(--font-display); color: #fff; }
.fact span { color: var(--on-night-muted); font-size: .92rem; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 10px; font-weight: 600; font-size: .95rem; color: var(--muted); }
@media (max-width: 880px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

/* call to action band */
.cta { border-radius: var(--radius-l); padding: clamp(40px, 6vw, 72px); text-align: center; }
.cta h2 { margin-bottom: 12px; }
.cta .lead { max-width: 36em; margin: 0 auto 28px; }
.cta .mascot-pair { display: flex; justify-content: center; gap: 4px; margin-bottom: 8px; }
.cta .mascot-pair img { height: 92px; width: auto; }

/* tables */
.table-scroll { overflow-x: auto; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--surface); }
table.req { width: 100%; border-collapse: collapse; font-size: .98rem; }
.req th, .req td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.req tr:last-child th, .req tr:last-child td { border-bottom: 0; }
.req thead th { background: #F7F5FC; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.req tbody th { font-weight: 600; white-space: nowrap; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
html.no-js .reveal { opacity: 1; transform: none; }

/* ---- download page ---- */
.dl { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.dl-main h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); margin-bottom: 10px; }
.dl-main h1 small { display: block; font: 500 clamp(1.1rem, 2vw, 1.4rem)/1.3 var(--font-display); color: var(--on-night-muted); letter-spacing: 0; margin-bottom: 8px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 28px; color: var(--on-night-muted); font-size: .95rem; }
.dl-meta span { display: inline-flex; gap: 8px; align-items: center; }
.dl-meta svg { width: 18px; height: 18px; color: var(--iris); }
.glass { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-l); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 30px 80px rgba(4, 0, 20, .35); }
.dl-side { padding: clamp(26px, 3.5vw, 40px); display: flex; flex-direction: column; justify-content: center; text-align: center; }
.dl-side h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: #fff; }
.dl-side .usb { width: 120px; margin: 6px auto 18px; filter: drop-shadow(0 18px 30px rgba(4, 0, 20, .5)); }
.dl-side a.next { font-weight: 600; font-size: 1.08rem; display: inline-flex; gap: 8px; align-items: center; justify-content: center; }
.dl-side a.next svg { width: 18px; height: 18px; }
.dl-sum { margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, .22); text-align: left; }
.dl-sum > span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--on-night-muted); margin-bottom: 6px; }
.dl-sum code { display: block; background: none; color: #EDE6FF; padding: 0; font-size: .82rem; word-break: break-all; }
.copy { margin-top: 10px; appearance: none; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; border-radius: 999px; padding: 7px 14px; font: 600 .85rem/1 var(--font-text); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.copy svg { width: 16px; height: 16px; }
.dl-thanks { display: none; }
.dl-done .dl-start { display: none; }
.dl-done .dl-thanks { display: block; }
.dl-thanks h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.dl-thanks h1 span.light { display: block; color: var(--on-night-muted); font-weight: 500; }
.dl-fallback { margin: 6px 0 24px; }
.servers { display: none; margin-top: 22px; padding: 22px; }
.servers.show { display: block; animation: rise .35s ease; }
.servers h2 { font-size: 1.25rem; color: #fff; margin-bottom: 14px; }
.servers ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.servers a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff !important; text-decoration: none; transition: background .15s, border-color .15s; }
.servers a:hover { background: rgba(255, 255, 255, .12); border-color: rgba(194, 174, 255, .5); }
.servers a strong { font-weight: 600; }
.servers a small { display: block; color: var(--on-night-muted); font-size: .85rem; }
.servers a svg { width: 20px; height: 20px; margin-left: auto; color: var(--iris); flex: none; }
.servers .srv-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(194, 174, 255, .16); flex: none; }
.servers .srv-icon svg { margin: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .dl { grid-template-columns: 1fr; } }

/* the check before the download */
.check { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(10, 6, 28, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
.check.show { opacity: 1; visibility: visible; transition: opacity .2s ease; }
.check-box { width: min(440px, 100%); background: #fff; color: var(--text); border-radius: var(--radius-l); padding: 30px; box-shadow: 0 40px 100px rgba(4, 0, 20, .5); transform: translateY(12px) scale(.98); transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.check.show .check-box { transform: none; }
.check-box h2 { font-size: 1.45rem; margin-bottom: 6px; }
.check-box p { color: var(--muted); font-size: .98rem; }
.check-q { display: flex; align-items: center; gap: 12px; margin: 18px 0 10px; }
.check-q .sum { font: 700 1.9rem/1 var(--font-display); letter-spacing: .02em; color: #2A1A78; background: var(--tint); padding: 14px 18px; border-radius: 14px; flex: none; min-width: 9ch; text-align: center; user-select: none; }
.check-q input { flex: 1; min-width: 0; height: 58px; font: 600 1.4rem/1 var(--font-text); text-align: center; border: 2px solid var(--line); border-radius: 14px; padding: 0 12px; color: var(--text); }
.check-q input:focus { outline: none; border-color: var(--violet-soft); box-shadow: 0 0 0 4px rgba(143, 91, 255, .2); }
.check-msg { min-height: 1.5em; font-size: .92rem; font-weight: 600; color: #C02A4A; margin: 0 0 12px; }
.check-box .btn-row { justify-content: flex-end; }
.check-box.shake { animation: shake .4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 26px; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--tint); color: #3A1D9C; font: 700 1.05rem/1 var(--font-display); margin-bottom: 14px; }
.steps h3 { font-size: 1.12rem; margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* ---- legal pages ---- */
.doc { max-width: 820px; margin: 0 auto; }
.doc h2 { font-size: 1.45rem; margin: 2.2em 0 .6em; scroll-margin-top: calc(var(--head-h) + 20px); }
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { font-size: 1.12rem; margin: 1.6em 0 .4em; }
.doc p, .doc li { color: #322D4A; }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: .45em; }
.doc-meta { display: inline-flex; gap: 10px; align-items: center; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); font-size: .9rem; color: var(--on-night-muted); margin-top: 22px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px 26px; margin-bottom: 40px; }
.toc h2 { font-size: 1rem !important; margin: 0 0 10px !important; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.note-box { background: var(--tint); border-radius: var(--radius-m); padding: 18px 22px; margin: 22px 0; color: #2E1F70; }
.note-box p { color: inherit; margin: 0; }
.data-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: .95rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { background: #F7F5FC; font-size: .85rem; }

/* mascots */
.mascot { width: auto; }
.wave-in { animation: wave-in 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes wave-in { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-3deg) translateY(-3px); } }

/* ---- footer ---- */
.site-footer { position: relative; background: #0E0A24; color: var(--on-night-muted); padding: clamp(56px, 7vw, 88px) 0 40px; font-size: .95rem; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 50%; top: -260px; width: 900px; height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(91, 24, 229, .35), transparent); pointer-events: none; }
.site-footer a { color: #DAD3F5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-top { position: relative; display: flex; justify-content: space-between; gap: 32px; align-items: flex-start; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.foot-brand img { height: 42px; width: auto; margin-bottom: 14px; }
.foot-brand p { max-width: 26em; }
.foot-cta { max-width: 420px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-m); padding: 22px 24px; }
.foot-cta p { color: #E4DEFA; }
.foot-cta .btn { color: #fff; text-decoration: none; }
.site-footer .social { display: flex; gap: 6px; margin-top: 8px; }
.site-footer .social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .06); color: #E4DEFA; }
.site-footer .social a:hover { background: rgba(255, 255, 255, .14); text-decoration: none; }
.site-footer .social svg { width: 19px; height: 19px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 40px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.foot-col h2 { font: 600 .8rem/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: #8E86B3; margin-bottom: 16px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.legal { padding-top: 28px; font-size: .84rem; line-height: 1.65; color: #8E86B3; }
.legal p { margin: 0 0 10px; max-width: 78em; }
.legal a { color: #B7AEDC; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 860px) { .foot-top { flex-direction: column; } .foot-cols { grid-template-columns: 1fr 1fr; } }

/* ---- loading screen: the boot splash on glass ---- */
#splash { display: none; }
html.splash-on #splash { display: block; }
html.splash-on body { overflow: hidden; }
#splash {
  position: fixed; inset: 0; z-index: 9999; cursor: progress;
  background:
    radial-gradient(1200px 700px at 30% 20%, rgba(106, 34, 240, .30), transparent 60%),
    radial-gradient(900px 600px at 80% 80%, rgba(47, 69, 224, .25), transparent 60%),
    rgba(14, 10, 34, .58);
  backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%);
  transition: opacity .55s ease, visibility 0s linear .55s;
}
#splash::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, .06); pointer-events: none; }
#splash canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#splash.out { opacity: 0; visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mesh i, .logo3d .glow, .scroll-cue, .wave-in { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  #splash { transition: none; }
}
.doc-meta svg { width: 18px; height: 18px; flex: none; }
