:root {
  color-scheme: dark;
  --bg: #0d1117;
  --panel: #121923;
  --panel-2: #141e36;
  --panel-3: #0f1620;
  --line: rgba(31, 156, 240, 0.24);
  --line-strong: rgba(31, 156, 240, 0.42);
  --muted: #a4aab3;
  --text: #f6f8fb;
  --soft: #d7dfea;
  --accent: #1f9cf0;
  --accent-bright: #5cb6f5;
  --accent-ink: #0d1117;
  --accent-glow: rgba(31, 156, 240, 0.16);
  --button: rgba(20, 30, 54, 0.72);
  --button-border: rgba(31, 156, 240, 0.34);
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--accent) #15191f;
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(31, 156, 240, 0.1), transparent 28rem),
    linear-gradient(180deg, #101722 0%, var(--bg) 42rem);
  color: var(--text);
  font-family: Cantarell, Ubuntu, Inter, "Segoe UI", sans-serif;
  line-height: 1.5;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #15191f;
}

::-webkit-scrollbar-thumb {
  background: rgba(31, 156, 240, 0.72);
  border: 2px solid #15191f;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

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

img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(58px, 9vw, 112px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  max-width: 600px;
  color: var(--soft);
  font-size: clamp(16px, 2.2vw, 21px);
}

.section-sub {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 0 clamp(18px, 5vw, 64px);
  background: rgba(13, 17, 23, 0.92);
  border-bottom: 1px solid rgba(31, 156, 240, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
}

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

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(12px, 3vw, 28px);
  color: var(--soft);
  font-size: 14px;
}

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

.icon-link,
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon-link img,
.button img {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.button {
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--button-border);
  border-radius: 7px;
  background: var(--button);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
}

.button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent-bright);
  color: var(--accent-ink);
}

.button.secondary {
  color: var(--soft);
}

.button.secondary img {
  filter: brightness(0) invert(1);
  opacity: 0.75;
}

.button.large {
  min-height: 52px;
  padding: 0 22px;
  font-size: 15px;
}

.store-button-label {
  display: grid;
  gap: 2px;
  line-height: 1.05;
}

.store-button-label small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.18fr);
  align-items: center;
  gap: clamp(28px, 5vw, 48px);
  padding: clamp(42px, 6vw, 72px) clamp(18px, 5vw, 64px);
  padding-bottom: clamp(22px, 4vw, 32px);
}

.hero > .marquee-wrap {
  grid-column: 1 / -1;
}

.hero-copy {
  min-width: 0;
  max-width: 640px;
}

.hero-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  margin-top: 24px;
}

.hero-mode {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 30, 54, 0.78);
}

.hero-mode-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--accent-glow);
}

.hero-mode-icon img {
  width: 18px;
  height: 18px;
}

.hero-mode-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.hero-mode-text strong {
  display: block;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 800;
}

.hero-mode-text span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.vscode-mockup {
  min-width: 0;
  width: min(100%, 760px);
  max-width: 100%;
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(31, 156, 240, 0.22);
  border-radius: 10px;
  background: #0e1117;
  box-shadow: 0 32px 90px var(--shadow);
}

.vs-titlebar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 14px;
  background: #0b111b;
  border-bottom: 1px solid rgba(31, 156, 240, 0.12);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.vs-titlebar > img {
  width: 18px;
  height: 18px;
}

.vs-dots {
  display: flex;
  gap: 6px;
}

.vs-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(219, 230, 242, 0.28);
}

.vs-body {
  display: grid;
  grid-template-columns: 52px 1fr;
  min-width: 0;
  min-height: 520px;
}

.activity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  background: #0b1017;
  border-right: 1px solid rgba(31, 156, 240, 0.1);
}

.activity img {
  width: 22px;
  height: 22px;
  opacity: 0.58;
}

.activity img.active {
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(31, 156, 240, 0.4));
}

.panel {
  min-width: 0;
  padding: 14px;
  background:
    radial-gradient(circle at 85% 0%, rgba(31, 156, 240, 0.07), transparent 18rem),
    #13192a;
}

.repo-row,
.tabs,
.pkg-list li,
.summary-wrap {
  display: flex;
  align-items: center;
}

.repo-row {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.repo-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.repo-name img {
  width: 22px;
  height: 22px;
}

.gear {
  color: var(--muted);
  letter-spacing: 2px;
}

.tabs b {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent-glow);
  color: var(--accent-bright);
  font-size: 10px;
}

.tabs {
  gap: 4px;
  padding: 3px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #111820;
}

.tabs button {
  flex: 1 1 0;
  min-width: 0;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
}

.tabs button.active {
  border-color: var(--line-strong);
  background: var(--accent-glow);
  color: var(--accent-bright);
}

.pkg-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.pkg-list li {
  gap: 11px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(31, 156, 240, 0.1);
  border-radius: 7px;
  background: rgba(20, 30, 54, 0.65);
}

.pkg-list li.selected {
  border-color: var(--line-strong);
  background: var(--accent-glow);
}

.pkg-cube {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(0, 122, 204, 0.16);
}

.pkg-cube img {
  width: 18px;
  height: 18px;
}

.pkg-meta {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.pkg-meta b {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.pkg-meta i {
  color: var(--muted);
  font-size: 11.5px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pkg-ver {
  flex: 0 0 auto;
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: 800;
}

.commit-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(14, 22, 40, 0.9);
}

.install-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.install-row .field {
  flex: 1 1 0;
  min-width: 0;
}

.commit-card .field > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.commit-card input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(31, 156, 240, 0.22);
  border-radius: 6px;
  background: #111315;
  color: var(--soft);
  font: inherit;
  font-size: 12px;
}

.select-fake {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(31, 156, 240, 0.22);
  border-radius: 6px;
  background: #111315;
  color: var(--soft);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.select-fake > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-fake em {
  flex: 0 0 auto;
  color: var(--accent-bright);
  font-style: normal;
  transition: transform 0.18s ease;
}

.select.open .select-fake {
  border-color: var(--line-strong);
}

.select.open .select-fake em {
  transform: rotate(180deg);
}

/* ---- demo: tabs / panes ---- */
/* All panes share one fixed height so switching tabs never shifts layout.
   The package list scrolls internally; search/header/install card stay fixed. */
.pane {
  display: none;
}

.pane.active {
  display: flex;
  flex-direction: column;
  height: 432px;
}

.pane .pkg-list {
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.pane .search-wrap,
.pane .section-head,
.pane .commit-card {
  flex: 0 0 auto;
}

.pane .commit-card {
  margin-top: 12px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- demo: browse rows are clickable ---- */
[data-browse] li[data-pkg] {
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

[data-browse] li[data-pkg]:hover {
  border-color: var(--line-strong);
}

.pkg-empty {
  display: block !important;
  padding: 16px 10px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* ---- demo: custom dropdowns ---- */
.select {
  position: relative;
}

.select-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 20;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #0e1626;
  box-shadow: 0 18px 40px var(--shadow);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.select.open .select-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.select-menu li {
  padding: 7px 9px;
  border-radius: 5px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.select-menu:not(.select-menu--check) li:hover {
  background: rgba(31, 156, 240, 0.12);
}

.select-menu li.sel {
  background: var(--accent-glow);
  color: var(--accent-bright);
}

.select-menu--check li {
  cursor: default;
}

.select-menu--check label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.select-menu--check input {
  accent-color: var(--accent);
}

/* ---- demo: row buttons + badges ---- */
.row-btn {
  flex: 0 0 auto;
  height: 26px;
  padding: 0 12px;
  border: 1px solid var(--accent-bright);
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}

.row-btn:hover {
  transform: translateY(-1px);
}

.row-btn.ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
}

.row-btn.ghost:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.row-done {
  flex: 0 0 auto;
  color: #62d39a;
  font-size: 11px;
  font-weight: 800;
}

.badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.badge.patch {
  background: rgba(98, 211, 154, 0.16);
  color: #62d39a;
}

.badge.minor {
  background: rgba(231, 189, 87, 0.16);
  color: #e7bd57;
}

.badge.major {
  background: rgba(240, 110, 110, 0.16);
  color: #f06e6e;
}

[data-installed] li,
[data-updates] li {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-installed] li.removing {
  opacity: 0;
  transform: translateX(14px);
}

[data-updates] li.updated {
  border-color: rgba(98, 211, 154, 0.3);
}

/* ---- demo: install button states ---- */
.commit-btn {
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.commit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.commit-btn.busy {
  opacity: 0.85;
  cursor: progress;
}

.commit-btn.done {
  background: #62d39a;
}

.summary-wrap {
  position: relative;
}

.search-wrap {
  margin-bottom: 12px;
}

.summary-wrap input {
  width: 100%;
  height: 34px;
  padding: 0 42px 0 10px;
  border: 1px solid rgba(31, 156, 240, 0.22);
  border-radius: 6px;
  background: #111315;
  color: var(--soft);
  font: inherit;
  font-size: 12px;
}

.summary-wrap button {
  position: absolute;
  right: 1px;
  top: 1px;
  bottom: 1px;
  display: grid;
  place-items: center;
  width: 38px;
  border: 0;
  border-left: 1px solid rgba(31, 156, 240, 0.22);
  background: transparent;
}

.summary-wrap button img {
  width: 15px;
  height: 15px;
}

.commit-btn {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-row {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 14px 0;
  animation: marquee 34s linear infinite;
}

.marquee-row li {
  flex: 0 0 auto;
  padding: 6px 20px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.band {
  padding: clamp(44px, 7vw, 76px) clamp(18px, 5vw, 64px);
  background:
    radial-gradient(circle at 88% 12%, rgba(31, 156, 240, 0.06), transparent 24rem),
    linear-gradient(180deg, #111820 0%, #0d1117 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band--alt {
  background:
    radial-gradient(circle at 16% 18%, rgba(31, 156, 240, 0.05), transparent 22rem),
    #0d1117;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

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

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

.feature-grid article,
.privacy-grid article,
.workflow article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 30, 54, 0.55);
  transition: border-color 0.2s, transform 0.2s;
}

.feature-grid article:hover,
.privacy-grid article:hover,
.workflow article:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.feature-grid p,
.privacy-grid p,
.workflow p,
.install-section p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.feat-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--accent-glow);
}

.feat-icon img {
  width: 21px;
  height: 21px;
}

.feature-grid code,
.privacy-grid code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(31, 156, 240, 0.12);
  color: var(--accent-bright);
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  font-size: 12px;
}

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

.step-n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent-bright);
  font-size: 13px;
  font-weight: 900;
}

.privacy-band {
  padding: clamp(44px, 7vw, 76px) clamp(18px, 5vw, 64px);
  background:
    radial-gradient(circle at 15% 20%, rgba(31, 156, 240, 0.13), transparent 23rem),
    var(--panel-3);
}

.privacy-inner {
  max-width: 1180px;
}

.install-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: clamp(44px, 7vw, 76px) clamp(18px, 5vw, 64px);
  background: var(--bg);
}

.install-section > div:first-child {
  max-width: 720px;
}

.compat-note {
  margin-top: 8px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.install-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.policy-page {
  min-height: calc(100vh - 136px);
  padding: clamp(44px, 7vw, 76px) clamp(18px, 5vw, 64px);
  background:
    radial-gradient(circle at 14% 12%, rgba(31, 156, 240, 0.08), transparent 24rem),
    linear-gradient(180deg, #111820 0%, #0d1117 100%);
}

.policy-hero {
  max-width: 820px;
  margin-bottom: 34px;
  min-width: 0;
}

.policy-hero h1 {
  max-width: 880px;
  font-size: clamp(42px, 7vw, 82px);
  overflow-wrap: anywhere;
}

.policy-content {
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.policy-content article {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 30, 54, 0.55);
}

.policy-content h2 {
  margin-bottom: 8px;
  margin-top: 0;
  font-size: 20px;
}

.policy-content p {
  margin-bottom: 0;
  color: var(--soft);
  overflow-wrap: anywhere;
}

.policy-content a {
  color: var(--accent-bright);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 0 clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: #0b1017;
  color: var(--muted);
  font-size: 14px;
}

footer > span {
  color: var(--soft);
  font-weight: 800;
}

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

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

/* ---- Motion: scroll-progress bar ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  box-shadow: 0 0 12px rgba(31, 156, 240, 0.55);
  z-index: 50;
  will-change: transform;
  pointer-events: none;
}

/* ---- Motion: scroll-reveal fade-up ---- */
[data-reveal] {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0s),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0s);
}

.motion-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* step markers pop in with a slight overshoot once their card reveals */
.motion-enabled .workflow article .step-n {
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.18s;
}

.workflow article.revealed .step-n {
  transform: scale(1);
}

/* ---- Motion: hero entrance cascade ---- */
.hero-anim {
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.motion-enabled .hero-anim {
  opacity: 0;
  transform: translateY(34px);
}

.motion-enabled .hero-anim-title {
  transform: translateY(42px) scale(0.96);
}

/* the mockup only fades in (no transform) so its scroll position stays stable */
.hero-anim-mockup {
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-enabled .hero-anim-mockup {
  opacity: 0;
  transform: none;
}

.hero-anim.is-in {
  opacity: 1;
  transform: none;
}

.button:active {
  transform: translateY(0) scale(0.97);
}

@media (max-width: 980px) {
  .hero,
  .install-section {
    grid-template-columns: 1fr;
  }

  .vscode-mockup {
    justify-self: stretch;
  }

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

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

  .install-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  nav {
    justify-content: flex-start;
    gap: 12px 18px;
  }

  .hero {
    min-height: auto;
    gap: 22px;
    padding-top: 32px;
    padding-bottom: 20px;
  }

  .hero-mode {
    flex-basis: 100%;
  }

  .vs-body {
    grid-template-columns: 42px 1fr;
    min-height: auto;
  }

  .pane.active {
    height: 360px;
  }

  .marquee-wrap {
    display: none;
  }

  .activity {
    gap: 14px;
  }

  .activity img {
    width: 19px;
    height: 19px;
  }

  .panel {
    padding: 10px;
  }

  .install-row {
    flex-direction: column;
  }

  .feature-grid,
  .privacy-grid,
  .workflow,
  .policy-content {
    grid-template-columns: 1fr;
  }

  .policy-page {
    overflow: hidden;
  }

  .policy-hero h1 {
    font-size: clamp(38px, 12vw, 48px);
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  [data-reveal],
  .hero-anim,
  .hero-anim-title,
  .workflow article .step-n {
    opacity: 1 !important;
    transform: none !important;
  }
}
