:root {
  color-scheme: dark;
  --background: #04101d;
  --background-soft: #071827;
  --surface: rgba(12, 34, 52, 0.72);
  --surface-strong: #0b2235;
  --surface-light: rgba(255, 255, 255, 0.07);
  --border: rgba(137, 205, 233, 0.14);
  --border-strong: rgba(99, 220, 255, 0.3);
  --text: #f5fbff;
  --muted: #8faabb;
  --cyan: #60ddff;
  --cyan-bright: #b8f3ff;
  --blue: #2a84ff;
  --green: #45e19a;
  --orange: #ffae57;
  --purple: #b287ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius-large: 30px;
  --radius-medium: 20px;
  --radius-small: 13px;
  --shell: min(1160px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(85, 206, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 206, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 50% -20%, #113b58 0, var(--background) 43%);
  background-size: 48px 48px, 48px 48px, auto;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

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

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

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(110px);
  pointer-events: none;
}

.ambient-one {
  top: 12%;
  right: -220px;
  background: #00bfff;
}

.ambient-two {
  bottom: 8%;
  left: -260px;
  background: #265cff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1240px, calc(100vw - 24px));
  min-height: 74px;
  margin: 12px auto 0;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(4, 16, 29, 0.72);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(20, 168, 235, 0.26);
}

.brand span {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.header-nav a {
  padding: 8px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease;
}

.header-nav a:hover {
  background: var(--surface-light);
  color: var(--text);
}

.language-switch {
  display: flex;
  justify-self: end;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.language-switch button {
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.language-switch button.active {
  background: rgba(96, 221, 255, 0.16);
  color: var(--cyan-bright);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  align-items: center;
  min-height: 650px;
  padding-block: 70px 52px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.eyebrow,
.section-kicker,
.showcase-label {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(96, 221, 255, 0.18);
  border-radius: 999px;
  background: rgba(53, 187, 231, 0.07);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(69, 225, 154, 0.1), 0 0 15px var(--green);
}

.hero h1 {
  max-width: 760px;
  margin: 24px 0 20px;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.99;
  letter-spacing: -0.058em;
}

.hero-copy > p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 720;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.button-primary {
  background: linear-gradient(135deg, #6ce6ff, #288dff);
  box-shadow: 0 12px 35px rgba(34, 149, 255, 0.26);
  color: #001522;
}

.button-primary:hover {
  box-shadow: 0 16px 42px rgba(34, 149, 255, 0.34);
}

.button-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.08);
}

.source-address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 560px;
  margin-top: 18px;
  padding: 13px 15px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(2, 11, 20, 0.5);
  color: #b4c9d5;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.source-address > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.secure-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
  font-family: inherit;
  font-size: 9px;
  font-weight: 800;
}

.secure-label svg {
  width: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 430px;
}

.device-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(38, 166, 255, 0.22);
  filter: blur(70px);
}

.showcase-card {
  position: relative;
  width: min(100%, 410px);
  padding: 25px;
  overflow: hidden;
  border: 1px solid rgba(122, 222, 255, 0.2);
  border-radius: 32px;
  background:
    linear-gradient(150deg, rgba(19, 58, 82, 0.92), rgba(5, 23, 38, 0.94)),
    var(--surface-strong);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(2.5deg);
}

.showcase-card::before {
  position: absolute;
  top: -130px;
  right: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 225, 255, 0.24), transparent 66%);
  content: "";
}

.showcase-top {
  position: relative;
  display: grid;
  grid-template-columns: 66px 1fr auto;
  align-items: center;
  gap: 15px;
}

.showcase-top img {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.showcase-top h2 {
  margin: 3px 0 0;
  font-size: 26px;
  letter-spacing: -0.035em;
}

.version-pill {
  align-self: start;
  padding: 7px 10px;
  border: 1px solid rgba(96, 221, 255, 0.2);
  border-radius: 999px;
  background: rgba(96, 221, 255, 0.09);
  color: var(--cyan-bright);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
}

.showcase-card > p {
  position: relative;
  margin: 22px 0;
  color: #aec4d1;
  font-size: 14px;
  line-height: 1.55;
}

.metric-preview {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metric-preview > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.metric-preview span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.metric-preview strong {
  font-size: 12px;
}

.metric-preview i {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.metric-preview i::after {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  content: "";
}

.showcase-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 19px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.showcase-footer > span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px var(--green);
}

.repo-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: rgba(8, 27, 43, 0.64);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.repo-stats > div {
  display: grid;
  gap: 5px;
  padding: 22px 25px;
}

.repo-stats > div + div {
  border-left: 1px solid var(--border);
}

.repo-stats span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.repo-stats strong {
  font-size: 18px;
  letter-spacing: -0.025em;
}

.packages-section {
  padding-block: 120px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-heading h2,
.about-copy h2,
.install-section h2 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.section-heading p,
.about-copy > p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.search-box {
  display: flex;
  align-items: center;
  width: min(100%, 300px);
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-box:focus-within {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 4px rgba(96, 221, 255, 0.06);
}

.search-box svg {
  width: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-box input {
  width: 100%;
  padding: 0 0 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-box input::placeholder {
  color: #688394;
}

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

.package-card {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 17px;
  min-height: 255px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: linear-gradient(155deg, rgba(14, 43, 64, 0.72), rgba(6, 23, 37, 0.78));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.package-card::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 163, 255, 0.13), transparent 65%);
  content: "";
  pointer-events: none;
}

.package-card:hover,
.package-card:focus-visible {
  border-color: var(--border-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.06);
  outline: none;
  transform: translateY(-5px);
}

.package-icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.26);
}

.package-main {
  min-width: 0;
}

.package-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.package-main h3 {
  margin: 2px 0 3px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.package-id {
  overflow: hidden;
  color: #6f8b9c;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.package-description {
  grid-column: 1 / -1;
  display: -webkit-box;
  min-height: 65px;
  margin: 2px 0 0;
  overflow: hidden;
  color: #a1b8c6;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.package-tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.package-tags span {
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.package-open {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: end;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  color: var(--cyan-bright);
  font-size: 11px;
  font-weight: 750;
}

.package-open svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.package-card-loading {
  cursor: default;
}

.skeleton {
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.04));
  background-size: 240% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-icon {
  width: 62px;
  height: 62px;
  grid-row: 1 / span 2;
}

.skeleton-line {
  width: 55%;
  height: 12px;
}

.skeleton-wide {
  width: 86%;
  height: 19px;
}

.skeleton-button {
  grid-column: 1 / -1;
  align-self: end;
  height: 42px;
}

@keyframes shimmer {
  to {
    background-position: -240% 0;
  }
}

.empty-state {
  padding: 70px 20px;
  text-align: center;
}

.empty-state span {
  color: var(--cyan);
  font-size: 44px;
}

.empty-state h3 {
  margin: 12px 0 4px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 76px;
  padding: 70px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background:
    radial-gradient(circle at 100% 0, rgba(57, 174, 255, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(12, 39, 59, 0.88), rgba(5, 21, 34, 0.92));
  box-shadow: var(--shadow);
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.feature-list span {
  padding: 9px 11px;
  border: 1px solid rgba(96, 221, 255, 0.13);
  border-radius: 10px;
  background: rgba(96, 221, 255, 0.055);
  color: #b6d4e2;
  font-size: 11px;
  font-weight: 700;
}

.screenshots {
  display: flex;
  align-items: start;
  justify-content: center;
  gap: 18px;
  height: 470px;
  perspective: 1000px;
}

.screenshots img {
  width: min(48%, 230px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 25px;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.4);
}

.screenshots img:first-child {
  transform: rotateY(4deg) translateY(34px);
}

.screenshots img:last-child {
  transform: rotateY(-4deg);
}

.install-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-block: 120px 70px;
  padding: 40px 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-medium);
  background: linear-gradient(110deg, rgba(22, 103, 145, 0.3), rgba(12, 37, 57, 0.72));
}

.install-section h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.install-section .button {
  flex: 0 0 auto;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 25px 42px;
  border-top: 1px solid var(--border);
}

.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.footer-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

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

.package-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
}

.package-modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0, 6, 12, 0.75);
  cursor: default;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.modal-panel {
  position: relative;
  width: min(700px, 100%);
  max-height: min(820px, calc(100vh - 44px));
  padding: 30px;
  overflow: auto;
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 0, rgba(63, 186, 255, 0.18), transparent 35%),
    #071b2a;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  animation: modal-in 180ms ease-out;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
  }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  cursor: pointer;
}

.modal-close svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.modal-hero {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  align-items: center;
  gap: 18px;
  padding-right: 34px;
}

.modal-hero > img {
  width: 82px;
  height: 82px;
  border-radius: 21px;
  box-shadow: 0 15px 36px rgba(0, 0, 0, 0.32);
}

.modal-hero h2 {
  margin: 4px 0 3px;
  font-size: 31px;
  letter-spacing: -0.04em;
}

.modal-identifier {
  margin: 0;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.modal-description {
  margin: 26px 0 20px;
  color: #aec5d2;
  font-size: 15px;
  line-height: 1.65;
}

.package-metadata {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--border);
}

.package-metadata > div {
  min-width: 0;
  padding: 13px 15px;
  background: rgba(7, 27, 42, 0.96);
}

.package-metadata dt {
  margin-bottom: 4px;
  color: #7291a2;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.package-metadata dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #dbeaf1;
  font-size: 12px;
  line-height: 1.45;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.modal-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-top: 24px;
}

.modal-gallery[hidden] {
  display: none;
}

.modal-gallery img {
  border: 1px solid var(--border);
  border-radius: 18px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  max-width: calc(100vw - 44px);
  padding: 12px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(9, 37, 56, 0.95);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  color: var(--cyan-bright);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 80px;
  }

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

  .hero-visual {
    min-height: 480px;
  }

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

  .about-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .screenshots {
    height: 520px;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(100% - 24px, 1160px);
  }

  .site-header {
    width: calc(100vw - 16px);
    min-height: 66px;
    margin-top: 8px;
    border-radius: 17px;
  }

  .brand img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-block: 68px 35px;
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 64px);
  }

  .hero-copy > p {
    font-size: 16px;
  }

  .hero-actions .button {
    flex: 1 1 150px;
  }

  .hero-visual {
    min-height: 410px;
  }

  .showcase-card {
    padding: 20px;
    transform: none;
  }

  .showcase-top {
    grid-template-columns: 58px 1fr;
  }

  .showcase-top img {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .showcase-top .version-pill {
    position: absolute;
    top: 0;
    right: 0;
  }

  .repo-stats {
    grid-template-columns: 1fr 1fr;
  }

  .repo-stats > div {
    padding: 18px;
  }

  .repo-stats > div + div {
    border-left: 0;
  }

  .repo-stats > div:nth-child(even) {
    border-left: 1px solid var(--border);
  }

  .repo-stats > div:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .packages-section {
    padding-block: 90px;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

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

  .package-card {
    min-height: 240px;
  }

  .about-section {
    width: calc(100% - 16px);
    padding: 38px 22px 0;
    border-radius: 24px;
  }

  .screenshots {
    height: 440px;
    gap: 10px;
  }

  .screenshots img {
    border-radius: 17px;
  }

  .install-section {
    align-items: stretch;
    flex-direction: column;
    margin-block: 90px 60px;
    padding: 28px 24px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .package-modal {
    align-items: end;
    padding: 0;
  }

  .modal-panel {
    width: 100%;
    max-height: 92vh;
    padding: 25px 19px calc(25px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
  }

  .modal-hero {
    grid-template-columns: 66px 1fr;
    gap: 14px;
  }

  .modal-hero > img {
    width: 66px;
    height: 66px;
    border-radius: 17px;
  }

  .modal-hero .version-pill {
    position: absolute;
    top: 18px;
    right: 62px;
  }

  .modal-hero h2 {
    font-size: 25px;
  }

  .package-metadata {
    grid-template-columns: 1fr;
  }

  .modal-actions .button {
    flex: 1 1 100%;
  }
}

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