/* ==========================================================================
   VideoFlow — design tokens
   ========================================================================== */

:root {
  --color-bg: #f7f8fa;
  --color-surface: #ffffff;
  --color-surface-muted: #f1f3f7;
  --color-text: #20242b;
  --color-text-secondary: #747b87;
  --color-text-faint: #9aa1ad;
  --color-border: #e4e7ec;
  --color-border-strong: #d4d9e1;
  --color-accent: #5865e8;
  --color-accent-hover: #4753d6;
  --color-accent-soft: rgba(88, 101, 232, 0.08);
  --color-accent-soft-strong: rgba(88, 101, 232, 0.14);
  --color-success: #22a06b;
  --color-warning-text: #8a5c12;
  --color-warning-bg: #fff8e8;
  --color-warning-border: #f0dcb0;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 12px 24px -12px rgba(16, 24, 40, 0.16);
  --shadow-lg: 0 28px 60px -28px rgba(16, 24, 40, 0.28);

  --container: 1120px;
  --header-height: 64px;

  --space-section: 96px;
  --transition: 160ms ease;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

svg {
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--color-text);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  margin: 0;
}

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

code,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

code {
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.12em 0.36em;
  color: var(--color-text);
  word-break: break-word;
}

pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  background: #171a21;
  color: #e8ecf3;
  border-radius: var(--radius-md);
  line-height: 1.6;
  -webkit-overflow-scrolling: touch;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: 0.9rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(88, 101, 232, 0.18);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translate(-50%, -200%);
  z-index: 200;
  padding: 10px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translate(-50%, 0);
  color: var(--color-text);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 250, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--color-text);
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: var(--shadow-xs);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--color-text);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  position: relative;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle__bars::before {
  position: absolute;
  top: -6px;
}

.nav-toggle__bars::after {
  position: absolute;
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   Buttons and badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition),
    box-shadow var(--transition), transform var(--transition);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), 0 8px 18px -10px rgba(88, 101, 232, 0.7);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn--secondary {
  background: var(--color-surface);
  border-color: var(--color-border-strong);
  color: var(--color-text);
  box-shadow: var(--shadow-xs);
}

.btn--secondary:hover {
  border-color: #bcc2cc;
  color: var(--color-text);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
  min-height: 36px;
  padding: 0 12px;
}

.btn--ghost:hover {
  color: var(--color-text);
  background: var(--color-surface-muted);
}

.btn--small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.875rem;
  border-radius: 8px;
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.badge--accent {
  border-color: rgba(88, 101, 232, 0.22);
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
}

.badge--success {
  border-color: rgba(34, 160, 107, 0.24);
  background: rgba(34, 160, 107, 0.1);
  color: #157a51;
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -180px 0 auto;
  height: 620px;
  background: radial-gradient(52% 58% at 50% 34%, rgba(88, 101, 232, 0.14), rgba(88, 101, 232, 0) 72%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.hero__title {
  max-width: 820px;
  font-size: clamp(2.35rem, 4.8vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.028em;
}

.hero__lede {
  max-width: 660px;
  margin-top: 22px;
  color: var(--color-text-secondary);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.62;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 20px;
  color: var(--color-text-faint);
  font-size: 0.8125rem;
  font-weight: 500;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__meta svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 56px auto 0;
}

.hero__shot {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
}

.hero__shot img {
  width: 100%;
  aspect-ratio: 1600 / 1084;
  object-fit: cover;
}

/* Platform strip under the hero */

.platforms {
  padding-bottom: 8px;
}

.platforms__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.platforms__text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.platforms__label {
  color: var(--color-text-faint);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.platforms__link {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: var(--space-section) 0;
}

.section--tight {
  padding-top: 0;
}

.section--alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section__head {
  max-width: 680px;
  margin: 0 auto 52px;
  text-align: center;
}

.section__head--left {
  margin-left: 0;
  text-align: left;
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section__title {
  font-size: clamp(1.75rem, 2.9vw, 2.3rem);
}

.section__lede {
  margin-top: 16px;
  color: var(--color-text-secondary);
  font-size: 1.0625rem;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

/* Features */

.feature {
  padding: 26px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.feature:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 11px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.feature__icon svg {
  width: 20px;
  height: 20px;
}

.feature__title {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.feature__text {
  margin-top: 8px;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.62;
}

/* Screenshot gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.gallery__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery__item--wide {
  grid-column: 1 / -1;
  width: 100%;
  max-width: calc(50% - 12px);
  margin: 0 auto;
}

.shot {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.shot:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.shot img {
  width: 100%;
  aspect-ratio: 1600 / 1084;
  object-fit: cover;
}

.gallery__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.gallery__caption strong {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Steps */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px 26px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--color-text);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 650;
}

.step__title {
  font-size: 1rem;
  font-weight: 650;
}

.step__text {
  margin-top: 8px;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

/* Technology */

.tech {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.tech__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.tech__item span {
  color: var(--color-text-faint);
  font-weight: 500;
}

/* ==========================================================================
   Release card
   ========================================================================== */

.release {
  padding: 34px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.release__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.release__identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.release__icon {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
}

.release__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.release__sub {
  margin-top: 6px;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.release__body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.release__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.release__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  font-size: 0.875rem;
  font-weight: 500;
}

.release__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.release__links svg {
  width: 14px;
  height: 14px;
}

.release__notice {
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--color-warning-bg);
  border: 1px solid var(--color-warning-border);
  border-radius: var(--radius-md);
  color: var(--color-warning-text);
  font-size: 0.875rem;
  line-height: 1.55;
}

.release__notice strong {
  color: var(--color-warning-text);
}

.checklist {
  display: grid;
  gap: 10px;
  align-content: start;
}

.checklist li {
  position: relative;
  padding-left: 26px;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(34, 160, 107, 0.12);
  border: 1px solid rgba(34, 160, 107, 0.28);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.52em;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--color-success);
  border-bottom: 2px solid var(--color-success);
  transform: rotate(-45deg);
}

.download-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding: 20px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.download-inline__version {
  margin-top: 6px;
  color: var(--color-text);
  font-size: 1.0625rem;
  font-weight: 650;
}

.download-inline__sub {
  margin-top: 2px;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  align-content: start;
}

.spec {
  min-width: 0;
}

.spec__label {
  display: block;
  color: var(--color-text-faint);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spec__value {
  display: block;
  margin-top: 4px;
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 550;
  overflow-wrap: anywhere;
}

.spec__value--mono {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.release__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--color-text-faint);
  font-size: 0.8125rem;
}

.release__status:empty {
  display: none;
}

.release__error {
  display: none;
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.release__error a {
  font-weight: 600;
}

.release [data-when="ready"] {
  display: none;
}

.release[data-state="ready"] [data-when="ready"] {
  display: flex;
}

.release[data-state="loading"] .release__error {
  display: none;
}

.release[data-state="error"] .release__error {
  display: block;
}

.release[data-state="error"] [data-when="ready"] {
  display: none;
}

.release[data-state="ready"] .release__error {
  display: none;
}

.skeleton {
  display: none;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eceff4 25%, #f6f7fa 37%, #eceff4 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

.release[data-state="loading"] .skeleton {
  display: block;
}

.skeleton--sm {
  width: 96px;
  height: 12px;
}

.skeleton--md {
  width: 160px;
}

@keyframes shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* ==========================================================================
   Callouts, prose and long-form pages
   ========================================================================== */

.page-head {
  padding: 72px 0 48px;
  text-align: center;
}

.page-head__title {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: -0.026em;
}

.page-head__lede {
  max-width: 680px;
  margin: 20px auto 0;
  color: var(--color-text-secondary);
  font-size: 1.0625rem;
}

.page-head__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.page-head__meta {
  margin-top: 18px;
}

.callout--spaced {
  margin-top: 32px;
}

.page-body {
  padding-bottom: var(--space-section);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}

.layout__aside {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.toc {
  padding: 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.toc__title {
  color: var(--color-text-faint);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ul {
  margin-top: 12px;
  display: grid;
  gap: 9px;
}

.toc a {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

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

.prose {
  max-width: 760px;
}

.prose > * + * {
  margin-top: 18px;
}

.prose h2 {
  margin-top: 52px;
  font-size: 1.5rem;
  letter-spacing: -0.018em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 34px;
  font-size: 1.125rem;
}

.prose p,
.prose li {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.68;
}

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

.prose ul,
.prose ol {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.prose ul li {
  list-style: disc;
}

.prose ol li {
  list-style: decimal;
}

.prose a {
  font-weight: 500;
}

.prose pre + p,
.prose p + pre {
  margin-top: 14px;
}

.callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.callout svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
}

.callout p {
  color: inherit;
  font-size: inherit;
}

.callout + .callout {
  margin-top: 12px;
}

.callout--warning {
  background: var(--color-warning-bg);
  border-color: var(--color-warning-border);
  color: var(--color-warning-text);
}

.callout--info {
  background: var(--color-accent-soft);
  border-color: rgba(88, 101, 232, 0.18);
  color: #3c46b8;
}

.callout__title {
  display: block;
  margin-bottom: 4px;
  font-weight: 650;
}

/* Numbered install steps */

.install-steps {
  display: grid;
  gap: 20px;
  counter-reset: install;
  margin-top: 28px;
}

.install-step {
  position: relative;
  padding: 24px 26px 24px 74px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  counter-increment: install;
}

.install-step::before {
  content: counter(install);
  position: absolute;
  left: 24px;
  top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-accent-soft-strong);
  color: var(--color-accent-hover);
  font-size: 0.875rem;
  font-weight: 650;
}

.install-step__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.install-step p {
  margin-top: 8px;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.install-step pre {
  margin-top: 14px;
}

.install-step__hint {
  display: block;
  margin-top: 10px;
  color: var(--color-text-faint);
  font-size: 0.8125rem;
}

/* FAQ */

.faq {
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}

.faq__item {
  padding: 22px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.faq__question {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.faq__answer {
  margin-top: 8px;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.68;
}

.faq__answer a {
  font-weight: 500;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 60px 0 32px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer__brand {
  max-width: 320px;
}

.footer__brand .brand {
  margin-bottom: 14px;
}

.footer__tagline {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
}

.footer__col-title {
  color: var(--color-text-faint);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer__col ul {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.footer__col a {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

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

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-faint);
  font-size: 0.8125rem;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  width: min(1100px, 92vw);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  color: #fff;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(16, 24, 40, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.lightbox__frame {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.lightbox__image {
  width: 100%;
  height: auto;
}

.lightbox__caption {
  padding: 14px 18px;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  border-top: 1px solid var(--color-border);
}

.lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.lightbox__close svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1000px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .layout__aside {
    position: static;
  }

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

@media (max-width: 860px) {
  :root {
    --space-section: 72px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 24px 24px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .nav[data-open="true"] {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav__link {
    display: block;
    padding: 12px 4px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .nav__actions {
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
  }

  .nav__actions .btn {
    width: 100%;
  }

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

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .release__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  .hero {
    padding-top: 64px;
  }

  .hero__visual {
    margin-top: 44px;
  }
}

@media (max-width: 640px) {
  :root {
    --space-section: 60px;
  }

  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero__actions {
    width: 100%;
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__meta {
    font-size: 0.75rem;
    gap: 6px 14px;
  }

  .grid--3,
  .grid--2,
  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery__item--wide {
    grid-column: auto;
    max-width: none;
  }

  .download-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .download-inline .btn {
    width: 100%;
  }

  .release {
    padding: 22px;
  }

  .release__top {
    gap: 18px;
  }

  .specs {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .release__actions .btn {
    flex: 1 1 100%;
  }

  .section__head {
    margin-bottom: 36px;
  }

  .feature {
    padding: 22px;
  }

  .install-step {
    padding: 22px 20px 22px 20px;
  }

  .install-step::before {
    position: static;
    margin-bottom: 14px;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-head {
    padding: 48px 0 32px;
  }

  .lightbox__close {
    top: 8px;
    right: 8px;
  }
}

/* ==========================================================================
   Motion preferences and print
   ========================================================================== */

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

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

  .feature:hover,
  .shot:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .lightbox {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .section {
    padding: 24px 0;
  }
}
