@font-face {
  font-family: "Fredoka";
  src: url("Fredoka-VariableFont_wdth,wght.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 300 700;
}

:root {
  --ink: #f4f7f1;
  --ink-soft: #b9c0b6;
  --ink-muted: #7f887e;
  --lime: #78ef57;
  --lime-bright: #9dff74;
  --lime-deep: #2d9f35;
  --lime-wash: rgba(120, 239, 87, 0.11);
  --night: #0a0d0b;
  --panel: rgba(20, 24, 21, 0.84);
  --panel-solid: #151a16;
  --panel-soft: rgba(31, 36, 32, 0.78);
  --line: rgba(190, 227, 181, 0.14);
  --line-strong: rgba(120, 239, 87, 0.38);
  --danger: #ff5f68;
  --warning: #efc35b;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.45);
  --page: min(1320px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 112.5%;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--night);
  font-family: "Fredoka", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(157, 255, 116, 0.72);
  outline-offset: 3px;
}

::selection {
  color: #071007;
  background: var(--lime-bright);
}

.background-stage {
  position: fixed;
  z-index: -3;
  inset: 0;
  overflow: hidden;
  background: #111710;
}

.background-slide {
  position: absolute;
  inset: -4%;
  opacity: 0;
  background-position: center;
  background-size: cover;
  filter: blur(4px) saturate(0.9);
  transform: scale(1.08);
  transition: opacity 1.8s ease, transform 9s linear;
}

.background-slide.is-active {
  opacity: 0.65;
  transform: scale(1.02);
}

.background-stage::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 74% 12%, rgba(120, 239, 87, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(6, 9, 7, 0.48), rgba(6, 9, 7, 0.84) 56%, #090c0a 96%);
}

.background-stage::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  content: "";
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

.page-shell {
  position: relative;
  min-height: 100vh;
}

.site-nav {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-nav.is-scrolled {
  border-color: var(--line);
  background: rgba(8, 11, 9, 0.82);
  backdrop-filter: blur(18px) saturate(1.25);
}

.nav-inner {
  width: var(--page);
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 118px;
  height: auto;
  image-rendering: auto;
  filter: drop-shadow(0 5px 14px rgba(0, 0, 0, 0.4));
}

.brand-kicker {
  padding-left: 11px;
  border-left: 1px solid var(--line-strong);
  color: var(--ink-muted);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a,
.nav-link-button {
  min-height: 42px;
  padding: 10px 13px;
  border: 0;
  border-radius: 10px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 0.91rem;
  font-weight: 520;
  text-decoration: none;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.nav-link-button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.nav-download {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(157, 255, 116, 0.52);
  border-radius: 11px;
  color: #0a1309;
  background: var(--lime);
  box-shadow: 0 8px 24px rgba(82, 215, 72, 0.18);
  font-size: 0.9rem;
  font-weight: 660;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nav-download:hover {
  background: var(--lime-bright);
  box-shadow: 0 11px 32px rgba(82, 215, 72, 0.28);
  transform: translateY(-1px);
}

.nav-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(20, 24, 21, 0.82);
  cursor: pointer;
}

.nav-menu-button span,
.nav-menu-button::before,
.nav-menu-button::after {
  display: block;
  width: 18px;
  height: 2px;
  content: "";
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-menu-button span {
  margin: 4px 0;
}

.hero {
  width: var(--page);
  min-height: 700px;
  margin: 0 auto;
  padding: 76px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--lime-bright);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  content: "";
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.hero h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(3.6rem, 7.2vw, 7rem);
  font-weight: 640;
  line-height: 0.88;
  letter-spacing: -0.058em;
}

.hero h1 span {
  display: block;
  color: var(--lime);
  text-shadow: 0 0 40px rgba(120, 239, 87, 0.22);
}

.hero-lede {
  max-width: 650px;
  margin: 28px 0 0;
  color: #ced4cb;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 360;
  line-height: 1.55;
}

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

.button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(20, 24, 21, 0.7);
  font-weight: 570;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  border-color: rgba(180, 233, 164, 0.34);
  background: rgba(35, 42, 36, 0.9);
  transform: translateY(-2px);
}

.button-primary {
  border-color: rgba(157, 255, 116, 0.58);
  color: #091108;
  background: var(--lime);
  box-shadow: 0 12px 32px rgba(75, 214, 66, 0.22);
}

.button-primary:hover {
  border-color: var(--lime-bright);
  background: var(--lime-bright);
  box-shadow: 0 16px 40px rgba(75, 214, 66, 0.32);
}

.button-quiet {
  color: var(--ink-soft);
  background: rgba(14, 17, 15, 0.46);
  backdrop-filter: blur(10px);
}

.button-danger {
  border-color: rgba(255, 95, 104, 0.5);
  color: #fff;
  background: rgba(143, 30, 38, 0.46);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 25px;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta span::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: var(--lime);
  box-shadow: 0 0 10px rgba(120, 239, 87, 0.7);
}

.product-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(35, 41, 36, 0.94), rgba(15, 18, 16, 0.93));
  box-shadow: var(--shadow-lg), inset 0 1px rgba(255, 255, 255, 0.06);
  transform: rotate(1deg);
  transition: transform 300ms ease, border-color 300ms ease;
}

.product-card:hover {
  border-color: rgba(157, 255, 116, 0.6);
  transform: rotate(0deg) translateY(-5px);
}

.product-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.1 / 1;
  border-radius: 22px;
  background: #1a211b;
}

.product-image-wrap::after {
  position: absolute;
  inset: 0;
  content: "";
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.035);
}

.version-badge {
  position: absolute;
  z-index: 2;
  top: 31px;
  right: 31px;
  padding: 8px 11px;
  border: 1px solid rgba(157, 255, 116, 0.42);
  border-radius: 99px;
  color: var(--lime-bright);
  background: rgba(8, 13, 9, 0.78);
  backdrop-filter: blur(12px);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.product-info {
  padding: 20px 6px 6px;
}

.product-info-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.product-info h2 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.product-info p {
  margin: 5px 0 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.live-dot {
  width: 10px;
  height: 10px;
  margin-top: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(120, 239, 87, 0.1), 0 0 14px var(--lime);
}

.version-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.version-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.025);
  font: inherit;
  font-size: 0.79rem;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.version-row:hover {
  border-color: rgba(120, 239, 87, 0.34);
  background: rgba(120, 239, 87, 0.075);
  transform: translateX(2px);
}

.version-row strong {
  color: var(--ink);
  font-weight: 570;
}

.status {
  padding: 3px 7px;
  border-radius: 99px;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-stable {
  color: #b8ff9e;
  background: rgba(82, 196, 69, 0.14);
}

.status-parked {
  color: #d8d8d8;
  background: rgba(210, 210, 210, 0.1);
}

.status-beta {
  color: #ffd586;
  background: rgba(230, 165, 49, 0.12);
}

.release-ribbon {
  width: var(--page);
  margin: 0 auto 110px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(14, 18, 15, 0.67);
  backdrop-filter: blur(15px);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.release-ribbon:hover {
  border-color: var(--line-strong);
  background: rgba(23, 30, 24, 0.82);
  transform: translateY(-2px);
}

.release-ribbon:hover .text-link {
  color: var(--lime-bright);
}

.release-ribbon-label {
  color: var(--lime-bright);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.release-ribbon-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 570;
  text-decoration: none;
  cursor: pointer;
}

.text-link:hover {
  color: var(--lime-bright);
}

.section {
  width: var(--page);
  margin: 0 auto;
  padding: 88px 0;
}

.section-dark {
  position: relative;
}

.section-dark::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  content: "";
  border-block: 1px solid var(--line);
  background: rgba(9, 12, 10, 0.74);
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.4vw, 4.4rem);
  font-weight: 590;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.section-heading p:not(.eyebrow) {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

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

.feature-card {
  min-height: 0;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(31, 38, 32, 0.82), rgba(15, 18, 16, 0.84));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
  transition: border-color 200ms ease, transform 200ms ease, background 200ms ease;
}

.feature-card:hover {
  border-color: var(--line-strong);
  background: linear-gradient(160deg, rgba(37, 47, 38, 0.92), rgba(15, 18, 16, 0.9));
  transform: translateY(-4px);
}

.feature-index {
  color: var(--lime);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.feature-card h3 {
  margin: 30px 0 10px;
  font-size: 1.45rem;
  font-weight: 590;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.feature-card-featured {
  background:
    radial-gradient(circle at 90% 4%, rgba(120, 239, 87, 0.18), transparent 34%),
    linear-gradient(160deg, rgba(31, 44, 33, 0.94), rgba(14, 18, 15, 0.9));
}

.section-cta {
  margin-top: 26px;
  display: flex;
  justify-content: flex-end;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(42px, 8vw, 100px);
  align-items: center;
}

.video-card {
  position: relative;
  overflow: hidden;
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  color: var(--ink);
  background: var(--panel-solid);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 500ms ease, filter 500ms ease;
}

.video-card:hover img {
  filter: saturate(1.08);
  transform: scale(1.025);
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #0b110b;
  background: rgba(157, 255, 116, 0.92);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, background 180ms ease;
}

.video-card:hover .video-play {
  background: var(--lime-bright);
  transform: translate(-50%, -50%) scale(1.08);
}

.video-caption {
  display: block;
  padding: 20px 25px 23px;
}

.video-caption span {
  display: block;
  margin-bottom: 4px;
  color: var(--lime);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.video-caption strong {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
}

.story-copy h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.story-copy > p:not(.eyebrow) {
  margin: 20px 0 0;
  color: var(--ink-soft);
}

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

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

.resource-card {
  min-height: 210px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: rgba(25, 30, 26, 0.74);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.resource-card:hover {
  border-color: var(--line-strong);
  background: rgba(34, 41, 35, 0.9);
  transform: translateY(-3px);
}

.resource-number {
  color: var(--lime);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.68rem;
}

.resource-card h3 {
  margin: auto 0 5px;
  font-size: 1.3rem;
  font-weight: 590;
}

.resource-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.86rem;
}

.legacy-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.legacy-heading-row h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 570;
}

.legacy-heading-row p {
  max-width: 500px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
  text-align: right;
}

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

.legacy-card {
  padding: 20px;
  display: grid;
  grid-template-columns: 86px 1fr auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(19, 22, 20, 0.7);
  filter: saturate(0.68);
}

.legacy-card img {
  width: 86px;
  height: 86px;
  border-radius: 14px;
  object-fit: cover;
}

.legacy-card h3 {
  margin: 0;
  color: #c5cac3;
  font-size: 1.06rem;
  font-weight: 560;
}

.legacy-card p {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.legacy-badge {
  display: inline-block;
  margin-bottom: 7px;
  padding: 3px 7px;
  border-radius: 99px;
  color: #b7bbb6;
  background: rgba(255, 255, 255, 0.07);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legacy-migrate {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(239, 195, 91, 0.42);
  border-radius: 11px;
  color: #f8df9c;
  background: rgba(134, 97, 21, 0.18);
  font-size: 0.78rem;
  font-weight: 580;
  cursor: pointer;
}

.legacy-migrate:hover {
  background: rgba(134, 97, 21, 0.3);
}

.site-footer {
  width: var(--page);
  margin: 0 auto;
  padding: 30px 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.77rem;
}

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

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

.floating-tools {
  position: fixed;
  z-index: 45;
  bottom: 18px;
  left: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.lofi-player {
  width: min(380px, calc(100vw - 36px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(12, 15, 13, 0.86);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, opacity 180ms ease;
}

.lofi-player.is-collapsed .lofi-controls {
  display: none;
}

.lofi-now {
  width: 100%;
  overflow: hidden;
  padding: 6px 8px 9px;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 0.75rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.lofi-now strong {
  color: var(--lime);
  font-weight: 570;
}

.lofi-player iframe,
#ytLofiIframe {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.lofi-controls {
  display: grid;
  grid-template-columns: repeat(4, 36px) 1fr;
  align-items: center;
  gap: 5px;
}

.lofi-control {
  width: 36px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.lofi-control:hover {
  color: var(--lime);
  border-color: var(--line-strong);
}

.lofi-controls input[type="range"] {
  width: 100%;
  accent-color: var(--lime);
}

.bug-launcher {
  position: fixed;
  z-index: 46;
  right: 18px;
  bottom: 18px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid rgba(255, 116, 124, 0.65);
  border-radius: 99px;
  color: #fff;
  background: rgba(210, 49, 62, 0.92);
  box-shadow: 0 13px 34px rgba(151, 18, 29, 0.32);
  font-size: 0.86rem;
  font-weight: 620;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.bug-launcher:hover {
  background: #ed3f4d;
  transform: translateY(-2px);
}

.redesign-notice {
  position: fixed;
  z-index: 47;
  bottom: 20px;
  left: 50%;
  width: min(590px, calc(100vw - 40px));
  padding: 22px 21px 22px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 18px;
  border: 1px solid rgba(120, 239, 87, 0.34);
  border-radius: 17px;
  opacity: 0;
  color: var(--ink);
  background: rgba(15, 20, 16, 0.94);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px) saturate(1.2);
  pointer-events: none;
  transform: translate(-50%, 18px) scale(0.98);
  transition: opacity 120ms ease, transform 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.redesign-notice.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.redesign-notice-mark {
  width: 12px;
  height: 12px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(120, 239, 87, 0.09), 0 0 16px rgba(120, 239, 87, 0.72);
}

.redesign-notice-copy {
  min-width: 0;
}

.redesign-notice-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--lime);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.redesign-notice h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.redesign-notice p {
  margin: 7px 0 12px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.redesign-notice-link {
  padding: 0;
  border: 0;
  color: var(--lime-bright);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 570;
  cursor: pointer;
}

.redesign-notice-link:hover {
  color: #c1ffab;
}

.redesign-notice-close {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 1.12rem;
  line-height: 1;
  cursor: pointer;
}

.redesign-notice-close:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.2);
}

.web-guide-launcher {
  position: fixed;
  z-index: 60;
  top: 18px;
  left: 18px;
  min-height: 42px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(120, 239, 87, 0.34);
  border-radius: 12px;
  opacity: 0;
  color: var(--ink-soft);
  background: rgba(13, 18, 14, 0.92);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  font-size: 0.76rem;
  font-weight: 570;
  cursor: pointer;
  transform: translateY(-8px);
  transition: opacity 120ms ease, transform 150ms ease, border-color 150ms ease, color 150ms ease;
}

.web-guide-launcher[hidden] {
  display: none;
}

.web-guide-launcher.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.web-guide-launcher:hover {
  color: var(--ink);
  border-color: rgba(157, 255, 116, 0.58);
}

.web-guide-launcher-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(120, 239, 87, 0.7);
}

.web-guide-launcher-tooltip {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  width: max-content;
  max-width: min(260px, calc(100vw - 30px));
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  opacity: 0;
  color: var(--ink);
  background: rgba(15, 20, 16, 0.98);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
  font-size: 0.7rem;
  font-weight: 440;
  line-height: 1.35;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 130ms ease, transform 130ms ease;
}

.web-guide-launcher:hover .web-guide-launcher-tooltip,
.web-guide-launcher:focus-visible .web-guide-launcher-tooltip,
.web-guide-launcher.is-hinting .web-guide-launcher-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.web-guide {
  position: fixed;
  z-index: 200;
  inset: 0;
  overflow: hidden;
  pointer-events: auto;
}

.web-guide[hidden] {
  display: none;
}

.web-guide-spotlight {
  position: fixed;
  z-index: 201;
  border: 2px solid rgba(157, 255, 116, 0.92);
  border-radius: 16px;
  opacity: 0;
  box-shadow:
    0 0 0 9999px rgba(2, 5, 3, 0.76),
    0 0 0 7px rgba(120, 239, 87, 0.1),
    0 0 34px rgba(120, 239, 87, 0.28);
  pointer-events: none;
  transition: opacity 90ms ease;
  animation: webGuidePulse 2.2s ease-in-out infinite;
}

.web-guide-spotlight.is-ready {
  opacity: 1;
}

.web-guide-spotlight.is-positioning {
  opacity: 0 !important;
  transition: none !important;
}

@keyframes webGuidePulse {
  0%, 100% {
    border-color: rgba(157, 255, 116, 0.76);
    box-shadow: 0 0 0 9999px rgba(2, 5, 3, 0.76), 0 0 0 6px rgba(120, 239, 87, 0.08), 0 0 28px rgba(120, 239, 87, 0.2);
  }
  50% {
    border-color: rgba(190, 255, 164, 1);
    box-shadow: 0 0 0 9999px rgba(2, 5, 3, 0.76), 0 0 0 10px rgba(120, 239, 87, 0.14), 0 0 42px rgba(120, 239, 87, 0.34);
  }
}

.web-guide-card {
  position: fixed;
  z-index: 202;
  width: min(490px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid rgba(157, 255, 116, 0.52);
  border-radius: 20px;
  opacity: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 94% 4%, rgba(120, 239, 87, 0.12), transparent 34%),
    rgba(15, 20, 16, 0.98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62), inset 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: auto;
  transform: translateY(8px) scale(0.985);
  transition: opacity 100ms ease, transform 130ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.web-guide-card.is-ready {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.web-guide-card.is-positioning {
  opacity: 0 !important;
  transform: translateY(8px) scale(0.985) !important;
  transition: none !important;
}

.web-guide-card::after {
  position: absolute;
  width: 0;
  height: 0;
  content: "";
  filter: drop-shadow(0 0 5px rgba(120, 239, 87, 0.3));
}

.web-guide-card[data-placement="right"]::after {
  top: 50%;
  left: -13px;
  border-top: 11px solid transparent;
  border-right: 13px solid rgba(157, 255, 116, 0.78);
  border-bottom: 11px solid transparent;
  transform: translateY(-50%);
}

.web-guide-card[data-placement="left"]::after {
  top: 50%;
  right: -13px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 13px solid rgba(157, 255, 116, 0.78);
  transform: translateY(-50%);
}

.web-guide-card[data-placement="below"]::after {
  top: -13px;
  left: 50%;
  border-right: 11px solid transparent;
  border-bottom: 13px solid rgba(157, 255, 116, 0.78);
  border-left: 11px solid transparent;
  transform: translateX(-50%);
}

.web-guide-card[data-placement="above"]::after {
  bottom: -13px;
  left: 50%;
  border-top: 13px solid rgba(157, 255, 116, 0.78);
  border-right: 11px solid transparent;
  border-left: 11px solid transparent;
  transform: translateX(-50%);
}

.web-guide-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 20px;
}

.web-guide-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--lime);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.web-guide-card h2 {
  margin: 0;
  font-size: 1.42rem;
  font-weight: 610;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.web-guide-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.web-guide-close:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.075);
}

.web-guide-description {
  margin: 15px 0 18px;
  color: var(--ink-soft);
  font-size: 0.91rem;
  line-height: 1.52;
}

.web-guide-progress {
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.web-guide-progress span {
  display: block;
  width: 14.285%;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(120, 239, 87, 0.45);
  transition: width 240ms ease;
}

.web-guide-footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.web-guide-count {
  color: var(--ink-muted);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.web-guide-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.web-guide-back,
.web-guide-next {
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 11px;
  font-size: 0.8rem;
  font-weight: 580;
  cursor: pointer;
}

.web-guide-back {
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.035);
}

.web-guide-back:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.2);
}

.web-guide-back[hidden] {
  display: none;
}

.web-guide-next {
  border: 1px solid rgba(157, 255, 116, 0.58);
  color: #091108;
  background: var(--lime);
  box-shadow: 0 9px 24px rgba(75, 214, 66, 0.2);
}

.web-guide-next:hover {
  background: var(--lime-bright);
}

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  place-items: center;
  padding: 26px;
  opacity: 0;
  background: rgba(3, 5, 4, 0.76);
  backdrop-filter: blur(12px) saturate(0.8);
  transition: opacity 180ms ease;
}

.modal.is-open {
  display: grid;
}

.modal.is-visible {
  opacity: 1;
}

.modal-panel {
  width: min(840px, 100%);
  max-height: min(86vh, 920px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(140, 226, 116, 0.34);
  border-radius: 25px;
  background: rgba(20, 24, 21, 0.98);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.62), inset 0 1px rgba(255, 255, 255, 0.055);
  transform: translateY(14px) scale(0.985);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal.is-visible .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-panel-wide {
  width: min(1140px, 100%);
}

.modal-panel-narrow {
  width: min(680px, 100%);
}

.modal-header {
  flex: 0 0 auto;
  min-height: 86px;
  padding: 22px 25px 20px 29px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.modal-heading {
  min-width: 0;
  margin-right: auto;
}

.modal-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--lime);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.modal-header h2 {
  margin: 0;
  overflow: hidden;
  font-size: 1.35rem;
  font-weight: 580;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-close {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.035);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.modal-body {
  min-height: 0;
  overflow-y: auto;
  padding: 34px 34px 38px;
  scrollbar-color: rgba(120, 239, 87, 0.45) transparent;
  scrollbar-width: thin;
}

.modal-body-center {
  text-align: center;
}

.modal-body > :first-child {
  margin-top: 0;
}

.modal-body > :last-child {
  margin-bottom: 0;
}

.modal-intro {
  max-width: 680px;
  margin: 0 0 25px;
  color: var(--ink-soft);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.version-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.version-option {
  min-height: 145px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.version-option:hover {
  border-color: var(--line-strong);
  background: var(--lime-wash);
  transform: translateY(-2px);
}

.version-option small {
  color: var(--ink-muted);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.version-option strong {
  margin: auto 0 3px;
  font-size: 1.2rem;
  font-weight: 590;
}

.version-option span {
  color: var(--lime);
  font-size: 0.8rem;
}

.warning-mark {
  width: 58px;
  height: 58px;
  margin: 2px auto 19px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 95, 104, 0.4);
  border-radius: 50%;
  color: var(--danger);
  background: rgba(255, 95, 104, 0.08);
  font-family: ui-monospace, monospace;
  font-size: 1.4rem;
  font-weight: 700;
}

.warning-mark-parked {
  border-color: rgba(210, 210, 210, 0.32);
  color: #d7d7d7;
  background: rgba(210, 210, 210, 0.06);
}

.warning-title {
  margin: 0 0 16px;
  color: var(--danger);
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  font-weight: 610;
  letter-spacing: -0.035em;
}

.warning-title-parked {
  color: #dedede;
}

.warning-copy {
  max-width: 590px;
  margin: 0 auto;
  color: var(--ink-soft);
}

.warning-copy + .warning-copy {
  margin-top: 14px;
}

.download-success {
  width: 62px;
  height: 62px;
  margin: 1px auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #081107;
  background: var(--lime);
  box-shadow: 0 0 0 8px rgba(120, 239, 87, 0.08), 0 0 35px rgba(120, 239, 87, 0.2);
  font-size: 1.45rem;
  font-weight: 700;
}

.download-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.download-summary {
  margin: 7px 0 25px;
  color: var(--ink-muted);
}

.dependency-card {
  max-width: 590px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
}

.dependency-card strong {
  display: block;
  margin-bottom: 12px;
  font-weight: 570;
}

.dependency-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dependency-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink-soft);
}

.dependency-list a {
  color: var(--lime);
}

.compatibility-note {
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-style: italic;
}

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

.video-grid .video-item:first-child {
  grid-column: 1 / -1;
}

.video-item {
  overflow: hidden;
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.025);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.video-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.video-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-item-copy {
  display: block;
  padding: 17px 20px 20px;
}

.video-item-copy small {
  display: block;
  margin-bottom: 4px;
  color: var(--lime);
  font-family: ui-monospace, monospace;
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-item-copy strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 560;
  line-height: 1.32;
}

.catalog {
  display: grid;
  gap: 26px;
}

.catalog-version {
  scroll-margin-top: 90px;
}

.catalog-version h3 {
  margin: 0 0 11px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--lime);
  font-size: 1.32rem;
  font-weight: 590;
}

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

.catalog-item {
  padding: 15px 16px;
  border-left: 2px solid rgba(120, 239, 87, 0.38);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.025);
}

.catalog-item strong {
  display: block;
  margin-bottom: 3px;
  color: #dfffd7;
  font-size: 0.9rem;
  font-weight: 570;
}

.catalog-item p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.81rem;
  line-height: 1.45;
}

.command-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.command-list li {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.command-list code {
  color: var(--lime-bright);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.88rem;
}

.command-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.alias-tooltip {
  position: relative;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(120, 239, 87, 0.34);
  border-radius: 50%;
  color: var(--lime);
  background: rgba(120, 239, 87, 0.07);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.66rem;
  font-weight: 700;
  cursor: help;
}

.alias-tooltip::after {
  position: absolute;
  z-index: 5;
  top: calc(100% + 10px);
  left: 50%;
  width: max-content;
  max-width: min(300px, 70vw);
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink);
  content: attr(data-tooltip);
  background: #101511;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
  font-family: "Fredoka", sans-serif;
  font-size: 0.76rem;
  font-weight: 450;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.alias-tooltip:hover::after,
.alias-tooltip:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.install-step-tooltip {
  margin-left: 7px;
  vertical-align: middle;
}

.install-step-tooltip::after {
  right: -8px;
  left: auto;
  text-align: left;
  transform: translateY(-4px);
}

.install-step-tooltip:hover::after,
.install-step-tooltip:focus-visible::after {
  transform: translateY(0);
}

.command-list span {
  display: block;
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 0.84rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 5px;
  width: 1px;
  content: "";
  background: rgba(120, 239, 87, 0.25);
}

.timeline li {
  position: relative;
  padding: 0 0 22px 29px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  position: absolute;
  top: 7px;
  left: 1px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--panel-solid);
  border-radius: 50%;
  content: "";
  background: var(--lime);
  box-shadow: 0 0 0 2px rgba(120, 239, 87, 0.26);
}

.timeline time {
  display: block;
  color: var(--lime);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.timeline p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

#featuresModal .modal-header {
  position: relative;
  justify-content: center;
}

#featuresModal .modal-heading {
  margin: 0 auto;
  padding: 0 52px;
  text-align: center;
}

#featuresModal .modal-close {
  position: absolute;
  right: 22px;
}

#featuresModal .modal-intro {
  margin-right: auto;
  margin-bottom: 30px;
  margin-left: auto;
  text-align: center;
}

#featuresModal .catalog-version h3 {
  text-align: center;
}

#changelogModal .modal-panel {
  width: min(1040px, 100%);
}

#changelogModal .modal-body {
  padding: 40px 46px 44px;
}

#changelogModal .timeline li {
  padding: 0 0 29px 35px;
}

#changelogModal .timeline::before {
  left: 7px;
}

#changelogModal .timeline li::before {
  top: 8px;
  left: 1px;
  width: 13px;
  height: 13px;
}

#changelogModal .timeline time {
  font-size: 0.76rem;
}

#changelogModal .timeline p {
  margin-top: 6px;
  font-size: 1.02rem;
  line-height: 1.52;
}

.guide-steps {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
  counter-reset: guide;
}

.guide-steps li {
  padding: 16px 17px 16px 56px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.025);
  counter-increment: guide;
}

.guide-steps li::before {
  position: absolute;
  top: 14px;
  left: 16px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #0b120a;
  content: counter(guide);
  background: var(--lime);
  font-family: ui-monospace, monospace;
  font-size: 0.74rem;
  font-weight: 700;
}

.guide-steps .guide-step-zero {
  counter-increment: none;
}

.guide-steps .guide-step-zero::before {
  content: "0";
}

#installationModal .modal-panel {
  width: min(980px, 100%);
}

#installationModal .modal-header {
  min-height: 94px;
  padding: 24px 28px 22px 32px;
}

#installationModal .modal-header h2 {
  font-size: 1.55rem;
}

#installationModal .modal-body {
  padding: 40px 42px 44px;
}

#installationModal .modal-intro {
  max-width: 760px;
  margin-bottom: 30px;
  font-size: 1.06rem;
  line-height: 1.6;
}

#installationModal .guide-steps {
  gap: 12px;
}

#installationModal .guide-steps li {
  padding: 19px 20px 19px 66px;
  font-size: 1.02rem;
  line-height: 1.55;
}

#installationModal .guide-steps li::before {
  top: 17px;
  left: 19px;
  width: 32px;
  height: 32px;
  font-size: 0.82rem;
}

.safety-callout {
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: var(--lime-wash);
}

.safety-callout strong {
  color: var(--lime-bright);
}

.bug-form {
  display: grid;
  gap: 16px;
}

.form-note {
  margin: 0 0 18px;
  padding: 14px 15px;
  border-left: 2px solid var(--danger);
  border-radius: 0 10px 10px 0;
  color: var(--ink-muted);
  background: rgba(255, 95, 104, 0.055);
  font-size: 0.79rem;
  font-style: italic;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 530;
}

.required {
  color: var(--danger);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  padding: 12px 13px;
  transition: border-color 160ms ease, background 160ms ease;
}

.field textarea {
  min-height: 105px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(120, 239, 87, 0.52);
  outline: none;
  background: rgba(255, 255, 255, 0.065);
}

.field-help,
.char-count {
  color: var(--ink-muted);
  font-size: 0.72rem;
}

.char-count {
  justify-self: end;
  margin-top: -28px;
  margin-right: 10px;
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--panel-solid);
  pointer-events: none;
}

.form-status {
  display: none;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 0.82rem;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  color: #c9ffbc;
  background: rgba(120, 239, 87, 0.09);
}

.form-status.is-error {
  color: #ffb4b8;
  background: rgba(255, 95, 104, 0.09);
}

.noscript {
  position: fixed;
  z-index: 1000;
  inset: 15px;
  height: fit-content;
  padding: 16px;
  border: 1px solid var(--danger);
  border-radius: 12px;
  color: #fff;
  background: #281215;
  text-align: center;
}

.legal-page {
  min-height: 100vh;
  padding: 38px 20px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 82% 8%, rgba(120, 239, 87, 0.13), transparent 30%),
    linear-gradient(145deg, #0d110e, #080a09 62%);
}

.legal-shell {
  width: min(880px, 100%);
}

.legal-nav {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.legal-nav img {
  width: 120px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  text-decoration: none;
}

.legal-back:hover {
  color: var(--lime);
}

.legal-card {
  padding: clamp(25px, 6vw, 58px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(20, 24, 21, 0.92);
  box-shadow: var(--shadow-lg), inset 0 1px rgba(255, 255, 255, 0.05);
}

.legal-card h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 610;
  line-height: 1;
  letter-spacing: -0.05em;
}

.legal-updated {
  margin: 12px 0 32px;
  color: var(--lime);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-card h2 {
  margin: 31px 0 8px;
  color: #e0f6da;
  font-size: 1.18rem;
  font-weight: 580;
}

.legal-card p,
.legal-card li {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.legal-card ul {
  padding-left: 1.2rem;
}

.legal-card li + li {
  margin-top: 7px;
}

.legal-card pre {
  overflow-x: auto;
  margin: 25px 0 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #cdd5ca;
  background: rgba(0, 0, 0, 0.2);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.78rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.legal-footer {
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: 0.72rem;
  text-align: center;
}

@media (max-width: 980px) {
  .nav-inner {
    min-height: 68px;
  }

  .nav-menu-button {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    right: 20px;
    left: 20px;
    padding: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(13, 17, 14, 0.97);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a,
  .nav-link-button {
    width: 100%;
    text-align: left;
  }

  .nav-download {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 62px;
    grid-template-columns: 1fr;
    gap: 54px;
  }

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

  .product-card {
    width: min(580px, 100%);
    margin: 0 auto;
    transform: none;
  }

  .release-ribbon {
    margin-top: 25px;
  }

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

  .feature-card:last-child,
  .resource-card:last-child {
    grid-column: 1 / -1;
  }

  .story-layout {
    grid-template-columns: 1fr;
  }

  .video-card {
    order: 2;
  }

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

@media (min-width: 681px) and (max-width: 1500px) {
  .web-guide-launcher {
    top: 94px;
  }
}

@media (max-width: 680px) {
  :root {
    --page: min(100% - 28px, 1180px);
  }

  html {
    font-size: 106.25%;
  }

  body {
    font-size: 1rem;
  }

  .brand img {
    width: 98px;
  }

  .brand-kicker,
  .nav-download span {
    display: none;
  }

  .nav-download {
    min-width: 44px;
    padding: 9px 13px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 16vw, 5.1rem);
  }

  .hero-lede {
    font-size: 1rem;
  }

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

  .product-card {
    padding: 12px;
    border-radius: 23px;
  }

  .version-badge {
    top: 23px;
    right: 23px;
  }

  .product-info {
    padding: 17px 4px 4px;
  }

  .version-row {
    grid-template-columns: 1fr auto;
  }

  .version-row > span:not(.status) {
    display: none;
  }

  .release-ribbon {
    grid-template-columns: 1fr auto;
    gap: 6px 14px;
    margin-bottom: 72px;
  }

  .release-ribbon-copy {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .section {
    padding: 67px 0;
  }

  .feature-grid,
  .resource-grid,
  .catalog-list,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .resource-card {
    grid-column: auto !important;
  }

  .feature-card {
    min-height: 0;
  }

  .legacy-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .legacy-heading-row p {
    text-align: left;
  }

  .legacy-card {
    grid-template-columns: 64px 1fr;
  }

  .legacy-card img {
    width: 64px;
    height: 64px;
  }

  .legacy-migrate {
    grid-column: 1 / -1;
    width: 100%;
  }

  .site-footer {
    padding-bottom: 104px;
    align-items: flex-start;
    flex-direction: column;
  }

  .floating-tools {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .lofi-player {
    width: 44px;
    padding: 4px;
    border-radius: 12px;
  }

  .lofi-player:not(.is-expanded) .lofi-now,
  .lofi-player:not(.is-expanded) .lofi-controls > *:not(#lofiPlay) {
    display: none;
  }

  .lofi-player:not(.is-expanded) .lofi-controls {
    display: block;
  }

  .bug-launcher {
    right: 14px;
    bottom: 14px;
  }

  .bug-launcher span:last-child {
    display: none;
  }

  .redesign-notice {
    top: 82px;
    bottom: auto;
    width: calc(100vw - 28px);
    transform: translate(-50%, -14px) scale(0.98);
  }

  .redesign-notice.is-visible {
    transform: translate(-50%, 0) scale(1);
  }

  .web-guide-launcher {
    top: 82px;
    left: 14px;
  }

  .web-guide-card {
    width: calc(100vw - 24px);
    padding: 20px;
  }

  .web-guide-card[data-placement]::after {
    display: none;
  }

  .web-guide-description {
    font-size: 0.86rem;
  }

  .web-guide-footer {
    gap: 10px;
  }

  .modal {
    padding: 10px;
    place-items: end center;
  }

  .modal-panel {
    width: 100%;
    max-height: 92vh;
    border-radius: 22px 22px 16px 16px;
  }

  .modal-header {
    min-height: 68px;
    padding: 15px 15px 14px 19px;
  }

  .modal-body {
    padding: 22px 18px 25px;
  }

  #installationModal .modal-header {
    min-height: 72px;
    padding: 16px 15px 15px 19px;
  }

  #installationModal .modal-header h2 {
    font-size: 1.28rem;
  }

  #installationModal .modal-body {
    padding: 24px 18px 27px;
  }

  #installationModal .modal-intro {
    margin-bottom: 22px;
    font-size: 0.98rem;
  }

  #installationModal .guide-steps li {
    padding: 16px 14px 16px 56px;
    font-size: 0.92rem;
  }

  #installationModal .guide-steps li::before {
    top: 15px;
    left: 15px;
    width: 28px;
    height: 28px;
  }

  .version-picker {
    grid-template-columns: 1fr;
  }

  .version-option {
    min-height: 100px;
  }

  .video-grid .video-item:first-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
