/* ReaperSub promo page — Anidub Studio */

:root {
  --bg: #0b0d19;
  --surface: #14172a;
  --surface-2: #191c2e;
  --border: #262a40;
  --border-strong: #343954;
  --text: #e9eaf2;
  --muted: #9aa0b4;
  --muted-2: #7f869d;
  --primary: #cb0c9f;
  --primary-2: #ff5bcf;
  --coral: #ef4b3f;
  --green: #34d399;
  --amber: #fbbf24;
  --radius: 16px;
  --max: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 620px at 82% -8%, rgba(203, 12, 159, 0.16), transparent 60%),
    radial-gradient(700px 500px at -5% 18%, rgba(59, 130, 246, 0.08), transparent 60%),
    var(--bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

::selection {
  color: #fff;
  background: rgba(203, 12, 159, 0.55);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #e020b8 0%, var(--primary) 55%, #a2087f 100%);
  box-shadow:
    0 10px 24px -8px rgba(203, 12, 159, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px -8px rgba(203, 12, 159, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  color: var(--text);
  background: rgba(25, 28, 46, 0.72);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: rgba(25, 28, 46, 1);
  border-color: var(--border-strong);
}

.btn-sm {
  padding: 9px 15px;
  border-radius: 9px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

/* Navigation */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 25, 0.78);
  border-bottom: 1px solid rgba(38, 42, 64, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 9px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.brand b {
  color: var(--primary-2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}

.nav-links a {
  transition: color 0.18s ease;
}

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

/* Hero */

.hero {
  position: relative;
  padding: 78px 0 104px;
  border-bottom: 1px solid rgba(38, 42, 64, 0.55);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(203, 12, 159, 0.22), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(203, 12, 159, 0.22);
  border-radius: 999px;
  color: #ff9fe4;
  background: rgba(203, 12, 159, 0.08);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-2);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 91, 207, 0.35);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(255, 91, 207, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 91, 207, 0);
  }
}

h1 {
  margin: 20px 0 22px;
  font-size: clamp(40px, 5.2vw, 70px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.grad {
  display: inline-block;
  color: transparent;
  background: linear-gradient(100deg, #ff6bd5 0%, var(--primary) 48%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.lead {
  max-width: 610px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(15.5px, 1.55vw, 18px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.hero-meta li {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #b9bfd2;
  background: rgba(20, 23, 42, 0.62);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-note {
  margin: 13px 0 0;
  color: var(--muted-2);
  font-size: 12px;
}

/* Hero mock */

.hero-visual {
  position: relative;
  min-width: 0;
  perspective: 1100px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 2% -10% 6%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(203, 12, 159, 0.3), transparent 66%);
  filter: blur(35px);
}

.float {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border: 1px solid rgba(52, 57, 84, 0.9);
  border-radius: 10px;
  color: #cfd3e4;
  background: rgba(13, 15, 31, 0.9);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 10px;
  font-weight: 600;
}

.float-a {
  top: -13px;
  right: -9px;
  animation: bob 5s ease-in-out infinite alternate;
}

.float-b {
  bottom: -26px;
  left: -30px;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  animation: bob 6s ease-in-out infinite alternate-reverse;
}

.float-b strong {
  color: var(--text);
  font-size: 10px;
}

.float-b span {
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 500;
}

.float-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12);
}

@keyframes bob {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-7px);
  }
}

/* Screenshots */

.shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid #323753;
  border-radius: 14px;
  background: #101222;
  box-shadow: 0 20px 50px -22px rgba(0, 0, 0, 0.7);
  cursor: zoom-in;
}

.shot:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 2px;
}

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

.shot figcaption {
  padding: 11px 16px;
  border-top: 1px solid rgba(50, 55, 83, 0.7);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.hero-shot {
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(203, 12, 159, 0.12),
    0 34px 80px -28px rgba(0, 0, 0, 0.85);
}

.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 26px;
}

.shots .shot-wide {
  grid-column: 1 / -1;
}

.cache-shot {
  max-width: 620px;
  margin-top: 16px;
}

/* Sections */

.section {
  position: relative;
  padding: 88px 0;
  border-top: 1px solid rgba(38, 42, 64, 0.55);
}

.section-head {
  max-width: 700px;
  margin-bottom: 38px;
}

.kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(29px, 3.7vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-head p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

/* Features */

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

.feature {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(25, 28, 46, 0.72), rgba(18, 21, 38, 0.72));
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px 180px at 15% 0%, rgba(203, 12, 159, 0.08), transparent 70%);
  pointer-events: none;
}

.feature:hover {
  border-color: rgba(203, 12, 159, 0.35);
  background: linear-gradient(180deg, rgba(29, 33, 54, 0.85), rgba(18, 21, 38, 0.8));
  transform: translateY(-2px);
}

.feature-wide {
  display: grid;
  grid-column: span 2;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 22px;
}

.feature-cta {
  display: flex;
  grid-column: span 2;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-color: rgba(203, 12, 159, 0.3);
  background:
    linear-gradient(135deg, rgba(203, 12, 159, 0.16), rgba(239, 75, 63, 0.07)),
    linear-gradient(180deg, rgba(29, 33, 54, 0.9), rgba(18, 21, 38, 0.9));
}

.feature-cta .kicker {
  margin-bottom: 7px;
}

.feature-cta h3 {
  margin-bottom: 5px;
}

.feature-cta p {
  max-width: 430px;
}

.feature-cta .btn {
  flex: none;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border: 1px solid rgba(203, 12, 159, 0.24);
  border-radius: 11px;
  color: #ff8bdf;
  background: linear-gradient(135deg, rgba(203, 12, 159, 0.24), rgba(239, 75, 63, 0.1));
}

.feature-icon svg {
  width: 19px;
  height: 19px;
}

.feature h3 {
  margin: 0 0 7px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.feature-shot {
  justify-self: center;
  align-self: center;
  height: 340px;
  aspect-ratio: 596 / 787;
  overflow: hidden;
  border: 1px solid rgba(50, 55, 83, 0.9);
  border-radius: 11px;
  background: #171a2b;
  cursor: zoom-in;
}

.feature-shot:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 2px;
}

.feature-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step {
  position: relative;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(20, 23, 42, 0.58);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border: 1px solid rgba(203, 12, 159, 0.3);
  border-radius: 8px;
  color: #ff9fe4;
  background: rgba(203, 12, 159, 0.12);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 16px;
  padding: 17px 18px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 14px;
  background: rgba(251, 191, 36, 0.055);
}

.callout > svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 2px;
  color: var(--amber);
}

.callout h3 {
  margin: 0 0 5px;
  color: #ffd98a;
  font-size: 14.5px;
  font-weight: 700;
}

.callout p {
  margin: 0;
  color: #d5c49c;
  font-size: 13px;
  line-height: 1.65;
}

.callout strong {
  color: #ffe6b0;
  font-weight: 600;
}

/* Install */

.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.os-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(25, 28, 46, 0.7), rgba(17, 20, 36, 0.7));
}

.os-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(38, 42, 64, 0.8);
}

.os-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(203, 12, 159, 0.2);
  border-radius: 10px;
  color: #ff9fe4;
  background: rgba(203, 12, 159, 0.1);
}

.os-icon svg {
  width: 20px;
  height: 20px;
}

.os-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.os-head span:not(.os-icon) {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.os-card ol {
  padding-left: 18px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.os-card li + li {
  margin-top: 12px;
}

.os-card li::marker {
  color: var(--primary-2);
  font-weight: 700;
}

.os-card code {
  color: #e1e4f2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.os-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.5;
}

.code-row {
  position: relative;
  margin-top: 8px;
}

.code-row > code {
  display: block;
  padding: 11px 78px 11px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #d9dcf0;
  background: #0a0c18;
  font-size: 11.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.copy-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 5px 7px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  color: var(--muted);
  background: #161a2e;
  font-size: 9.5px;
  font-weight: 600;
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.copy-btn:hover {
  color: var(--text);
  border-color: rgba(203, 12, 159, 0.45);
  background: #1c2038;
}

.cache-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin-top: 14px;
  padding: 20px 22px;
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.07), rgba(20, 23, 42, 0.6));
}

.cache-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 10px;
  color: var(--amber);
  background: rgba(251, 191, 36, 0.1);
}

.cache-icon svg {
  width: 19px;
  height: 19px;
}

.cache-card h3 {
  margin: 0 0 7px;
  color: #ffd98a;
  font-size: 15.5px;
  font-weight: 700;
}

.cache-card p {
  margin: 0;
  color: #d5c49c;
  font-size: 13.5px;
  line-height: 1.65;
}

.cache-card ul {
  padding-left: 18px;
  margin: 8px 0 0;
  color: #d5c49c;
  font-size: 13.5px;
  line-height: 1.7;
}

.cache-card li + li {
  margin-top: 4px;
}

.cache-card strong {
  color: #ffe6b0;
  font-weight: 600;
}

.cache-note {
  margin-top: 9px !important;
  color: #b9a97f !important;
  font-size: 12.5px !important;
}

/* FAQ */

#faq .section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.faq-list {
  display: grid;
  max-width: 820px;
  margin-inline: auto;
  gap: 9px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(20, 23, 42, 0.55);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.faq-item summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--primary-2);
  border-color: rgba(203, 12, 159, 0.4);
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 18px 17px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.faq-body code {
  color: #e1e4f2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.faq-body a {
  color: var(--primary-2);
  text-decoration: underline;
  text-decoration-color: rgba(255, 91, 207, 0.35);
  text-underline-offset: 3px;
}

/* Download */

.download-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  padding: 34px 36px;
  border: 1px solid rgba(203, 12, 159, 0.3);
  border-radius: 22px;
  background:
    radial-gradient(700px 320px at 100% 0%, rgba(203, 12, 159, 0.24), transparent 65%),
    linear-gradient(135deg, #1a1d34, #0f1120);
}

.download-panel::before {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 75, 63, 0.16), transparent 70%);
  pointer-events: none;
}

.download-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 36px);
}

.download-panel p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.download-meta span {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(11, 13, 25, 0.45);
  font-size: 10.5px;
  letter-spacing: 0.03em;
}

.download-action {
  position: relative;
  z-index: 1;
}

.checksum {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(10, 12, 24, 0.6);
}

.checksum > span {
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.checksum code {
  display: block;
  width: 100%;
  color: #aeb4ca;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9.5px;
  line-height: 1.5;
  word-break: break-all;
}

.checksum .copy-btn {
  position: static;
  margin-top: 3px;
  padding: 3px 6px;
  font-size: 8.5px;
}

/* Footer */

.site-footer {
  padding: 28px 0;
  border-top: 1px solid rgba(38, 42, 64, 0.7);
  background: rgba(9, 11, 21, 0.55);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted-2);
  font-size: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 600;
}

.footer-brand img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 7px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted-2);
  transition: color 0.15s ease;
}

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

.footer-version {
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.03em;
}

/* Responsive */

@media (max-width: 1040px) {
  .hero-grid {
    gap: 34px;
  }

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

  .feature-wide {
    grid-column: span 2;
  }

  .feature-cta {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

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

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
  }

  .float-a {
    right: -4px;
  }

  .float-b {
    left: -4px;
  }

  .section {
    padding: 70px 0;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .download-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .download-action {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(calc(100% - 32px), var(--max));
  }

  .site-nav .wrap {
    height: 66px;
  }

  .brand {
    gap: 8px;
    font-size: 10.5px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .lead {
    font-size: 15px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero-meta li {
    padding: 6px 8px;
    font-size: 10.5px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .feature-wide,
  .feature-cta {
    grid-column: span 1;
  }

  .feature-wide {
    grid-template-columns: 1fr;
  }

  .feature-wide .feature-shot {
    width: 100%;
    height: auto;
    max-width: 320px;
    margin: 4px auto 0;
  }

  .feature-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .install-grid {
    grid-template-columns: 1fr;
  }

  .download-panel {
    padding: 24px;
  }

  .download-panel h2 {
    font-size: 26px;
  }

  .cache-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-links {
    gap: 14px;
  }

  .float {
    display: none;
  }
}

@media (max-width: 420px) {
  .btn-sm {
    padding: 8px 12px;
    font-size: 12px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .brand span {
    display: none;
  }
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(3, 5, 11, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.lightbox[hidden] {
  display: none;
}

body.lb-open {
  overflow: hidden;
}

.lightbox figure {
  max-width: min(1400px, 96vw);
  margin: 0;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border: 1px solid #323753;
  border-radius: 12px;
  background: #101222;
}

.lightbox figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 1px solid #343954;
  border-radius: 10px;
  color: #e9eaf2;
  background: rgba(13, 15, 31, 0.9);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.lightbox-close:hover {
  border-color: rgba(203, 12, 159, 0.45);
  color: #fff;
}

@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;
  }
}
