/* ==========================================================================
   Fluxer landing — инструкция для друзей
   Визуальный язык повторяет fluxer.app: «космический» тёмный фон,
   аврора-градиенты, волны, крупная типографика Radio Canada Big,
   индиго-акценты (#a09cfa / #4641d9).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --space-deep: #06060c;
  --space-ink: #121122;
  --surface: #0c0c18;
  --surface-muted: #13131f;
  --surface-hover: #1a1a27;

  --line-subtle: #1b1b24;
  --line: #282833;
  --line-strong: #3a3a47;

  --ink: #f3f3f8;
  --ink-muted: #d0d0db;
  --ink-subtle: #a7a7b8;
  --ink-faint: #8b8b9d;
  --ink-dim: #6d6d80;

  --brand: #a09cfa;
  --brand-solid: #5450e2;
  --brand-solid-hover: #635ee9;
  --brand-subtle: #1d1b3f;
  --brand-strong: #bdbafc;

  --success: #4ade80;
  --success-ink: #86efac;
  --success-surface: #0e2519;
  --success-line: #1e4a34;

  --warning-ink: #fdba74;
  --warning-surface: #2a1a0d;
  --warning-line: #573317;

  --danger: #f87171;
  --danger-ink: #fca5a5;
  --danger-surface: #2a1214;
  --danger-line: #5a2028;

  --info: #b0adff;
  --info-surface: #14123a;
  --info-line: #2b2768;

  /* RGB-триплеты для градиентов/свечения */
  --flux-light: 176 173 255;
  --flux-glow-light: 129 124 255;
  --flux-glow-indigo: 99 94 233;

  --flux-gradient: linear-gradient(
    100deg,
    #5a55e6 0%,
    #4641d9 55%,
    #322cb0 100%
  );
  --flux-aurora: radial-gradient(
      64rem 30rem at 8% -8rem,
      rgb(var(--flux-glow-light) / 0.2),
      transparent 70%
    ),
    radial-gradient(
      56rem 32rem at 92% -6rem,
      rgb(var(--flux-glow-indigo) / 0.3),
      transparent 72%
    );
  --flux-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)'/%3E%3C/svg%3E");
  --flux-waves: url("../img/waves.svg");

  --font-display: "Radio Canada Big", "Noto Sans", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-sans: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;

  --text-display: clamp(2.375rem, 1.15rem + 5.1vw, 4rem);
  --text-title: clamp(1.75rem, 1.35rem + 1.7vw, 2.75rem);
  --text-heading: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --text-lead: clamp(1.0625rem, 1rem + 0.32vw, 1.25rem);

  --radius-control: 0.75rem;
  --radius-card: 1rem;
  --radius-sheet: 1.25rem;

  --gutter: 1.25rem;
  --measure: 38rem;
  --nav-h: 4.5rem;

  --shadow-card: 0 24px 48px -32px rgb(0 0 0 / 0.85);
  --shadow-shot: 0 40px 80px -32px rgb(var(--flux-glow-light) / 0.32);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--space-deep);
  background-image: var(--flux-grain), var(--flux-aurora),
    linear-gradient(to bottom, #07070d 0%, #0b0a14 45%, #0f0f1d 100%);
  background-repeat: repeat, no-repeat, no-repeat;
  background-size:
    128px 128px,
    100% 100%,
    100% 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 0.4rem;
}

::selection {
  background: rgb(var(--flux-glow-light) / 0.35);
  color: #fff;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-control);
  background: var(--brand-solid);
  color: #fff;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 1rem;
}

.section {
  padding-block: clamp(2.75rem, 1.5rem + 4vw, 5rem);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgb(6 6 12 / 0.78);
  border-bottom-color: #ffffff14;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  font-family: var(--font-display);
  transition: opacity 0.15s ease;
}

.brand:hover {
  opacity: 0.82;
}

.brand__mark {
  width: 2rem;
  height: 2rem;
  flex: none;
  border-radius: 0.625rem;
  box-shadow:
    0 8px 24px -10px rgb(var(--flux-glow-light) / 0.9),
    inset 0 1px 0 #ffffff40;
}

.brand__name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__divider {
  color: var(--ink-dim);
  font-weight: 500;
}

.brand__sub {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink-subtle);
}

.nav__links {
  display: none;
  gap: 0.25rem;
  margin-inline-start: auto;
}

.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.75rem;
  border-radius: var(--radius-control);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-subtle);
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: #fff;
  background: #ffffff0f;
}

.nav__cta {
  margin-inline-start: auto;
}

@media (min-width: 60rem) {
  .nav__links {
    display: flex;
  }

  .nav__links + .nav__cta,
  .nav__cta {
    margin-inline-start: 1rem;
  }
}

.nav__cta {
  white-space: nowrap;
}

@media (max-width: 26rem) {
  .brand__divider,
  .brand__sub {
    display: none;
  }

  .brand__name {
    font-size: 1.125rem;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-control);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: #fff;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.btn svg {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
}

.btn--primary {
  border: 1px solid rgb(var(--flux-light) / 0.35);
  background-color: #4641d9;
  background-image: var(--flux-gradient);
  box-shadow:
    inset 0 1px 0 #ffffff2e,
    0 12px 32px -16px rgb(var(--flux-glow-light) / 0.6);
}

.btn--primary:hover {
  border-color: rgb(var(--flux-light) / 0.7);
  box-shadow:
    inset 0 1px 0 #ffffff38,
    0 14px 36px -14px rgb(var(--flux-glow-light) / 0.8);
  filter: brightness(1.06);
}

.btn--secondary {
  border: 1px solid #ffffff4d;
  background-color: rgb(8 8 17 / 0.45);
  color: #fff;
}

.btn--secondary:hover {
  border-color: #ffffff80;
  background-color: #ffffff0f;
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-muted);
}

.btn--ghost:hover {
  color: #fff;
  border-color: #ffffff59;
  background: #ffffff0a;
}

.btn--sm {
  min-height: 2.5rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.9375rem;
  border-radius: 0.625rem;
}

.btn--lg {
  min-height: 3.5rem;
  padding-inline: 1.75rem;
  font-size: 1.0625rem;
  border-radius: 0.875rem;
}

.btn:active {
  transform: translateY(1px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 1.5rem + 4vw, 5rem));
  padding-bottom: clamp(3rem, 2rem + 5vw, 6rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--flux-waves);
  background-size: 1200px 640px;
  background-repeat: repeat;
  opacity: 0.9;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -30% 0;
  z-index: -1;
  height: 60%;
  background: radial-gradient(
    50rem 20rem at 50% 100%,
    rgb(var(--flux-glow-indigo) / 0.28),
    transparent 70%
  );
  pointer-events: none;
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 1rem + 5vw, 4rem);
  align-items: center;
}

@media (min-width: 68rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: 3rem;
  }
}

.hero__copy {
  max-width: var(--measure);
  margin-inline: auto;
  text-align: center;
}

@media (min-width: 68rem) {
  .hero__copy {
    margin-inline: 0;
    text-align: start;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem 0.375rem 0.5rem;
  border: 1px solid #ffffff1f;
  border-radius: 999px;
  background: rgb(8 8 17 / 0.5);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 12px 2px rgb(var(--flux-glow-light) / 0.8);
}

.hero h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.125rem, 1.05rem + 4.2vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.grad {
  background-image: linear-gradient(
    92deg,
    #cfcdff 0%,
    #a09cfa 38%,
    #817cff 72%,
    #b0adff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin-top: 1.25rem;
  font-size: var(--text-lead);
  line-height: 1.55;
  color: #ffffffd9;
}

.hero__lead code {
  padding: 0.1em 0.35em;
  border: 1px solid #ffffff1f;
  border-radius: 0.375rem;
  background: #0a0a10cc;
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: #e7e6ff;
  overflow-wrap: anywhere;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 40rem) {
  .hero__actions {
    justify-content: center;
  }
}

@media (min-width: 68rem) {
  .hero__actions {
    justify-content: start;
  }
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-top: 1.75rem;
  font-size: 0.9375rem;
  color: var(--ink-faint);
}

@media (min-width: 68rem) {
  .hero__meta {
    justify-content: start;
  }
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__meta li::before {
  content: "";
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 999px;
  background: var(--brand);
  opacity: 0.8;
}

/* ---------- Screenshot frame ---------- */
.shot {
  position: relative;
  margin: 0;
  border-radius: var(--radius-sheet);
  border: 1px solid #ffffff24;
  background: linear-gradient(180deg, #15141f 0%, #0b0a12 100%);
  box-shadow: var(--shadow-shot);
  overflow: hidden;
}

.shot::before {
  content: "";
  position: absolute;
  inset: 0 1.5rem auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(var(--flux-light) / 0.75) 20%,
    #817cffb3 70%,
    transparent
  );
  pointer-events: none;
  z-index: 2;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* Скриншот с собственным окном и тенью (прозрачный фон) — без второй рамки */
.shot--plain,
.shot--plain.is-missing {
  border: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.shot--plain img {
  filter: drop-shadow(0 0 1px rgb(255 255 255 / 0.2))
    drop-shadow(0 20px 44px rgb(0 0 0 / 0.55))
    drop-shadow(0 0 60px rgb(var(--flux-glow-light) / 0.06));
}

.shot--plain::before {
  display: none;
}

.shot--plain.is-missing {
  border: 1px solid #ffffff24;
  border-radius: var(--radius-sheet);
  background: linear-gradient(180deg, #15141f 0%, #0b0a12 100%);
  overflow: hidden;
}

/* Клик по скриншоту — просмотр в полном размере */
.shot[data-zoom] {
  cursor: zoom-in;
}

.shot[data-zoom]::after {
  content: "";
  position: absolute;
  inset: auto 0.75rem 0.75rem auto;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #ffffff33;
  border-radius: 0.625rem;
  background: #0b0a14e6
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23f3f3f8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M9 21H3v-6'/%3E%3Cpath d='M21 3l-7 7'/%3E%3Cpath d='M3 21l7-7'/%3E%3C/svg%3E")
    center / 1rem no-repeat;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.shot[data-zoom]:hover::after,
.shot[data-zoom]:focus-visible::after {
  opacity: 1;
}

@media (hover: none) {
  .shot[data-zoom]::after {
    opacity: 0.9;
  }
}

.shot[data-zoom]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: var(--radius-sheet);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: #05050bd9;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: zoom-out;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - clamp(2rem, 6vw, 5rem));
  width: auto;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 40px 80px -40px #000;
}

.lightbox__close {
  position: absolute;
  inset: max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right)) auto auto;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #ffffff33;
  border-radius: 0.75rem;
  background: #14121fcc;
  color: #fff;
  cursor: pointer;
}

.lightbox__close:hover {
  background: #ffffff1a;
}

.lightbox__close svg {
  width: 1.25rem;
  height: 1.25rem;
}

body.has-lightbox {
  overflow: hidden;
}

.shot__caption {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  color: var(--ink-faint);
  text-align: center;
}

.shot-figure {
  margin: 0;
}

.shot-figure .shot__caption {
  max-width: 40rem;
  margin-inline: auto;
}

.hero__shot {
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
}

@media (min-width: 68rem) {
  .hero__shot {
    max-width: none;
    transform-origin: 100%;
    transform: perspective(1800px) rotateY(-7deg) rotateX(1.5deg);
  }
}

/* Плейсхолдер вместо отсутствующего скриншота */
.shot.is-missing {
  display: block;
  padding: 0;
  background: repeating-linear-gradient(
      135deg,
      #ffffff06 0 10px,
      transparent 10px 20px
    ),
    linear-gradient(180deg, #15141f 0%, #0b0a12 100%);
}

.shot__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 16rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.shot__placeholder-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--ink-dim);
}

.shot__placeholder-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink-muted);
}

.shot__placeholder-file {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--brand);
  word-break: break-all;
}

.shot__placeholder-hint {
  max-width: 26rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-faint);
}

/* ---------- Quick nav ---------- */
.quicknav {
  display: grid;
  gap: 0.875rem;
  margin-top: 2rem;
}

@media (min-width: 48rem) {
  .quicknav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 76rem) {
  .quicknav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.qcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.25rem 1.25rem 1.125rem;
  border: 1px solid #ffffff17;
  border-radius: var(--radius-card);
  background: rgb(12 12 24 / 0.55);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.qcard::after {
  content: "";
  position: absolute;
  inset: -1px 1.25rem auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(var(--flux-light) / 0.65),
    transparent
  );
  opacity: 0;
  transition: opacity 0.18s ease;
}

.qcard:hover {
  transform: translateY(-3px);
  border-color: rgb(var(--flux-light) / 0.35);
  background: rgb(20 18 40 / 0.72);
}

.qcard:hover::after {
  opacity: 1;
}

.qcard__num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.qcard__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

.qcard__meta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

/* ---------- Timeline / steps ---------- */
.timeline {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.step {
  position: relative;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 60rem) {
  .step {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 2rem;
  }
}

.step__rail {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

@media (min-width: 60rem) {
  .step__rail {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
}

.step__num {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: 999px;
  border: 1px solid rgb(var(--flux-light) / 0.4);
  background: radial-gradient(
    120% 120% at 30% 0%,
    rgb(var(--flux-glow-light) / 0.35),
    rgb(8 8 17 / 0.9) 70%
  );
  box-shadow:
    0 0 0 6px rgb(8 8 17 / 0.6),
    0 12px 28px -14px rgb(var(--flux-glow-light) / 0.8);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.step__line {
  flex: 1;
  width: 1px;
  min-height: 1px;
  background: linear-gradient(180deg, rgb(var(--flux-light) / 0.45), #ffffff0a);
}

@media (max-width: 59.999rem) {
  .step__line {
    height: 1px;
    width: auto;
    background: linear-gradient(
      90deg,
      rgb(var(--flux-light) / 0.45),
      transparent
    );
  }
}

.step__content {
  min-width: 0;
}

.step__label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.step h2 {
  margin-top: 0.5rem;
  font-size: var(--text-title);
}

.step__lead {
  max-width: 46rem;
  margin-top: 0.875rem;
  font-size: var(--text-lead);
  color: var(--ink-muted);
}

.step__grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.75rem;
  align-items: start;
}

@media (min-width: 72rem) {
  .step__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 2.5rem;
  }
}

.prose {
  max-width: 46rem;
  color: var(--ink-muted);
}

.aside {
  display: grid;
  gap: 1rem;
}

@media (min-width: 72rem) {
  .aside {
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
  }
}

.panel {
  padding: 1.25rem;
  border: 1px solid #ffffff17;
  border-radius: var(--radius-card);
  background: rgb(12 12 24 / 0.55);
  box-shadow: var(--shadow-card);
}

.panel__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.panel__foot {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid #ffffff0d;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-faint);
}

.panel .status {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 0.75rem;
  gap: 0.5rem;
}

.oslist {
  display: grid;
  margin-top: 0.5rem;
}

.oslist li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
  border-top: 1px solid #ffffff0d;
}

.oslist li:first-child {
  border-top: 0;
}

.oslist__os {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.oslist__note {
  font-size: 0.8125rem;
  text-align: end;
  color: var(--ink-faint);
}

.oslist__item--accent .oslist__os {
  color: var(--brand-strong);
}

.oslist__item--accent .oslist__note {
  color: var(--brand);
}

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

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose a:not(.btn) {
  color: var(--brand-strong);
  text-decoration: underline;
  text-decoration-color: rgb(var(--flux-light) / 0.75);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:not(.btn):hover {
  text-decoration-color: var(--brand);
}

.prose code {
  padding: 0.1em 0.375em;
  border: 1px solid #ffffff14;
  border-radius: 0.375rem;
  background: #0a0a10;
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: #e1e1ea;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

[hidden] {
  display: none !important;
}

.invite {
  margin-top: 1.25rem;
}

/* ---------- Numbered list ---------- */
.steps-list {
  counter-reset: stepitem;
  display: grid;
  gap: 0.75rem;
}

.steps-list li {
  counter-increment: stepitem;
  position: relative;
  padding-inline-start: 2.5rem;
  color: var(--ink-muted);
}

.steps-list li::before {
  content: counter(stepitem);
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.0625rem;
  display: grid;
  place-items: center;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 999px;
  border: 1px solid rgb(var(--flux-light) / 0.35);
  background: rgb(20 18 40 / 0.9);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
}

.steps-list strong {
  color: var(--ink);
}

.steps-list .url {
  margin-top: 0.5rem;
}

.mini-title {
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.mini-title + * {
  margin-top: 0.75rem;
}

/* ---------- Callouts ---------- */
.callout {
  --callout-bg: var(--info-surface);
  --callout-line: var(--info-line);
  --callout-ink: var(--info);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.875rem;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--callout-line);
  border-radius: var(--radius-card);
  background: var(--callout-bg);
}

.callout__icon {
  width: 1.375rem;
  height: 1.375rem;
  margin-top: 0.125rem;
  color: var(--callout-ink);
}

.callout__body > * + * {
  margin-top: 0.5rem;
}

.callout__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--callout-ink);
}

.callout p,
.callout li {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.callout .checklist li {
  color: var(--ink-muted);
}

.callout strong {
  color: var(--ink);
}

.callout--warn {
  --callout-bg: var(--warning-surface);
  --callout-line: var(--warning-line);
  --callout-ink: var(--warning-ink);
}

.callout--success {
  --callout-bg: var(--success-surface);
  --callout-line: var(--success-line);
  --callout-ink: var(--success-ink);
}

.callout--danger {
  --callout-bg: var(--danger-surface);
  --callout-line: var(--danger-line);
  --callout-ink: var(--danger-ink);
}

/* ---------- URL chip ---------- */
.url {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  padding: 0.375rem 0.375rem 0.375rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: #0a0a10;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #e1e1ea;
}

.url__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.url__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: none;
  border-radius: 0.5rem;
  border: 1px solid #ffffff1a;
  color: var(--ink-subtle);
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.url__copy svg {
  width: 1rem;
  height: 1rem;
}

.url__copy:hover {
  color: #fff;
  background: #ffffff12;
  border-color: #ffffff33;
}

.url__copy.is-done {
  color: var(--success-ink);
  border-color: var(--success-line);
  background: var(--success-surface);
}

.toast {
  position: fixed;
  inset: auto 1.25rem 1.5rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: max-content;
  margin-inline: auto;
  padding: 0.75rem 1rem;
  border: 1px solid var(--success-line);
  border-radius: var(--radius-control);
  background: #0b1e14;
  box-shadow: 0 24px 40px -24px #000;
  font-size: 0.9375rem;
  color: var(--success-ink);
  opacity: 0;
  transform: translateY(0.75rem);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast__icon {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
}

/* ---------- Status strip ---------- */
.status {
  display: grid;
  gap: 0.875rem;
  margin-top: 1.25rem;
}

@media (min-width: 40rem) {
  .status {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }
}

.status__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #ffffff05;
}

.status__item b {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: var(--ink);
}

.status__item span {
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.status__item--done {
  border-color: var(--success-line);
  background: var(--success-surface);
}

.status__item--wait {
  border-color: var(--warning-line);
  background: var(--warning-surface);
}

.status__item--done b {
  color: var(--success-ink);
}

.status__item--wait b {
  color: var(--warning-ink);
}

/* ---------- Checklist ---------- */
.checklist {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 48rem) {
  .checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.checklist li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 1rem 1.125rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgb(12 12 24 / 0.55);
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.checklist svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  color: var(--success);
}

.checklist strong {
  color: var(--ink);
}

.panel .checklist--plain {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.625rem;
  margin-top: 0.875rem;
}

.checklist--plain li {
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.checklist--plain svg {
  color: var(--success);
}

.panel--success {
  border-color: var(--success-line);
  background: linear-gradient(
    180deg,
    rgb(74 222 128 / 0.08),
    rgb(12 12 24 / 0.55) 60%
  );
}

.panel--success .panel__title {
  color: var(--success-ink);
}

.panel--success .panel__foot {
  border-top-color: var(--success-line);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 0.625rem;
  max-width: 52rem;
  margin-top: 2rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgb(12 12 24 / 0.5);
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.faq details[open] {
  border-color: rgb(var(--flux-light) / 0.3);
  background: rgb(18 16 36 / 0.75);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding: 0.875rem 1.125rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  border-right: 2px solid var(--ink-faint);
  border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg) translateY(-2px);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
  border-color: var(--brand);
}

.faq__answer {
  padding: 0 1.125rem 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.faq__answer > * + * {
  margin-top: 0.625rem;
}

/* ---------- Section heading ---------- */
.section-head {
  max-width: 48rem;
}

.section-head h2 {
  margin-top: 0.5rem;
  font-size: var(--text-title);
}

.section-head p {
  margin-top: 0.875rem;
  font-size: var(--text-lead);
  color: var(--ink-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(2rem, 1rem + 4vw, 4rem);
  border-top: 1px solid #ffffff10;
  background: linear-gradient(180deg, transparent, #050509 70%);
  padding-block: 2.5rem 3rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: flex-start;
  justify-content: space-between;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 26rem;
}

.footer__note {
  font-size: 0.875rem;
  color: var(--ink-faint);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-subtle);
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  transition: color 0.15s ease;
}

.footer__links a:hover {
  color: #fff;
}

.footer__legal {
  width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid #ffffff0a;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(1.125rem);
    transition:
      opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .reveal[data-delay="70"] {
    --reveal-delay: 70ms;
  }

  .reveal[data-delay="140"] {
    --reveal-delay: 140ms;
  }

  .reveal[data-delay="210"] {
    --reveal-delay: 210ms;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Print ---------- */
@media print {
  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .hero::before,
  .hero::after,
  .toast {
    display: none;
  }

  .shot {
    box-shadow: none;
  }
}
