:root {
  --bg: #08090a;
  --bg-soft: #0d0f10;
  --panel: #111315;
  --panel-hover: #16191b;
  --text: #f5f5f2;
  --muted: #a5a6a3;
  --quiet: #898b87;
  --line: rgba(255, 255, 255, 0.105);
  --line-bright: rgba(255, 184, 57, 0.34);
  --accent: #f3aa24;
  --accent-bright: #ffc85a;
  --accent-dark: #9c5d00;
  --shell: min(1220px, calc(100vw - 48px));
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.21;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

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

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

button,
input {
  color: inherit;
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 4px;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: #161006;
  background: var(--accent-bright);
  border-radius: 8px;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1320px, calc(100vw - 32px));
  min-height: 70px;
  padding: 0 22px;
  margin-top: 16px;
  background: rgba(7, 8, 9, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  box-shadow: 0 8px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(7, 8, 9, 0.93);
  border-color: rgba(255, 184, 57, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 840;
  letter-spacing: -0.025em;
}

.brand img {
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  color: #d3d3cf;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 680;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.07);
}

.site-nav .nav-github {
  margin-left: 4px;
  color: var(--accent-bright);
  border: 1px solid rgba(255, 184, 57, 0.35);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
  border-radius: 3px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 850px;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: -1;
  height: 220px;
  content: "";
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.03) brightness(0.76);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(0deg, rgba(4, 5, 6, 0.98) 0%, rgba(4, 5, 6, 0.4) 24%, rgba(4, 5, 6, 0.57) 48%, rgba(4, 5, 6, 0.28) 73%),
    linear-gradient(180deg, rgba(4, 5, 6, 0.2), transparent 52%, rgba(4, 5, 6, 0.92));
}

.hero-content {
  align-self: center;
  padding-top: 92px;
  padding-bottom: 72px;
}

.hero-content > * {
  max-width: 690px;
}

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

.eyebrow > span {
  width: 28px;
  height: 1px;
  background: currentColor;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(3.3rem, 7vw, 6.35rem);
  line-height: 0.94;
  letter-spacing: -0.067em;
}

h1 em,
h2 em {
  color: var(--accent-bright);
  font-style: normal;
}

.hero-copy {
  max-width: 590px;
  margin-bottom: 34px;
  color: #d0d1ce;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 0.92rem;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

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

.button-primary {
  color: #1c1304;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  box-shadow: 0 14px 35px rgba(213, 132, 15, 0.22);
}

.button-primary:hover {
  box-shadow: 0 17px 42px rgba(213, 132, 15, 0.35);
}

.button-secondary {
  color: #f0f0ed;
  background: rgba(10, 11, 12, 0.5);
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.button-secondary:hover {
  background: rgba(25, 26, 27, 0.75);
  border-color: rgba(255, 184, 57, 0.5);
}

.button svg {
  width: 20px;
  fill: currentColor;
}

.start-section {
  padding-top: 110px;
  padding-bottom: 110px;
}

.section-heading {
  margin-bottom: 54px;
}

.section-heading-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: end;
  gap: 80px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.section-heading > p,
.section-heading-split > p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 1.05rem;
}

.plugins-section {
  padding: 110px 0 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.plugin-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  align-items: end;
  gap: 70px;
}

.plugin-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -30px;
}

.plugin-heading h2 {
  grid-column: 1;
}

.plugin-heading .section-lead {
  grid-column: 2;
}

.plugin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 14px;
}

.search-control {
  display: flex;
  align-items: center;
  width: min(290px, 100%);
  min-height: 46px;
  padding: 0 14px;
  color: var(--quiet);
  background: #0a0b0c;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.search-control:focus-within {
  color: var(--accent-bright);
  border-color: var(--line-bright);
}

.search-control svg {
  width: 18px;
  margin-right: 10px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.search-control input {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
}

.search-control input::placeholder {
  color: #696b68;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.filter-buttons button {
  min-height: 38px;
  padding: 0 13px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 760;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.filter-buttons button:hover,
.filter-buttons button.is-active {
  color: #181005;
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}

.results-status {
  margin-bottom: 28px;
  color: var(--quiet);
  font-size: 0.8rem;
}

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

.plugin-card {
  grid-column: span 3;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(20, 22, 23, 0.97), rgba(13, 15, 16, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.plugin-card:hover {
  background: linear-gradient(145deg, var(--panel-hover), #101213);
  border-color: var(--line-bright);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.plugin-card[hidden] {
  display: none;
}

.card-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: #050606;
  border-bottom: 1px solid var(--line);
  aspect-ratio: 818 / 196;
}

.card-image::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 -28px 35px rgba(0, 0, 0, 0.24);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, filter 220ms ease;
}

.plugin-card:hover .card-image img {
  filter: saturate(1.08) brightness(1.07);
  transform: scale(1.025);
}

.card-body {
  display: flex;
  flex-direction: column;
  min-height: 246px;
  padding: 22px;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 13px;
  color: var(--accent-bright);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.card-topline span:last-child {
  color: var(--quiet);
  text-align: right;
}

.card-body h3 {
  margin-bottom: 8px;
  font-size: 1.28rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.card-body p {
  margin-bottom: 23px;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.55;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: auto;
}

.card-actions a {
  position: relative;
  color: #e8e8e4;
  font-size: 0.78rem;
  font-weight: 800;
}

.card-actions a::after {
  display: inline-block;
  margin-left: 6px;
  color: var(--accent);
  content: "↗";
  transition: transform 140ms ease;
}

.card-actions a:hover {
  color: var(--accent-bright);
}

.card-actions a:hover::after {
  transform: translate(2px, -2px);
}

.empty-state {
  padding: 60px 24px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.empty-state h3 {
  margin-bottom: 4px;
  color: var(--text);
}

.empty-state p {
  margin: 0;
}

code {
  padding: 0.15em 0.35em;
  color: var(--accent-bright);
  background: rgba(255, 184, 57, 0.1);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.88em;
}

.installation-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.install-checklist {
  padding: 0 48px 0 0;
  margin: 0;
  list-style: none;
}

.install-checklist li {
  display: grid;
  grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.install-checklist li:last-child {
  border-bottom: 0;
}

.install-checklist strong {
  font-size: 0.94rem;
}

.install-checklist span {
  color: var(--muted);
  font-size: 0.9rem;
}

.version-note {
  padding: 31px 0 31px 42px;
  border-left: 1px solid var(--line);
}

.version-note h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
}

.version-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.reference-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin-top: 28px;
}

.reference-links a {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.reference-links a:hover {
  color: var(--accent-bright);
}

.reference-links span {
  color: var(--accent);
}

.cta-section {
  padding: 0 0 110px;
}

.cta-panel {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  min-height: 330px;
  padding: 55px;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(8, 9, 10, 0.96), rgba(8, 9, 10, 0.6)),
    url("/assets/cobbleworks-cta.png") center 58% / cover;
  border: 1px solid var(--line-bright);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.cta-panel::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at 75% 50%, transparent, rgba(0, 0, 0, 0.25));
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.cta-copy {
  max-width: 520px;
  margin: 17px 0 0;
  color: #c2c3bf;
  font-size: 0.95rem;
}

.cta-panel .button {
  flex: 0 0 auto;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  min-height: 128px;
}

.footer-inner p {
  margin: 0;
  color: var(--quiet);
  font-size: 0.8rem;
  text-align: center;
}

.footer-inner nav {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.footer-inner nav a {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.footer-inner nav a:hover {
  color: var(--accent-bright);
}

@media (max-width: 1120px) {
  .plugin-card {
    grid-column: span 4;
  }

  .footer-inner {
    grid-template-columns: auto 1fr auto;
  }
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 36px, 760px);
  }

  .hero {
    min-height: 790px;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(4, 5, 6, 0.96) 0%, rgba(4, 5, 6, 0.78) 58%, rgba(4, 5, 6, 0.32)),
      linear-gradient(180deg, rgba(4, 5, 6, 0.1), transparent 45%, rgba(4, 5, 6, 0.94));
  }

  .section-heading-split,
  .plugin-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .plugin-heading .eyebrow {
    margin-bottom: 0;
  }

  .plugin-heading h2,
  .plugin-heading .section-lead {
    grid-column: 1;
  }

  .plugin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-control {
    width: 100%;
  }

  .filter-buttons {
    justify-content: flex-start;
  }

  .plugin-card {
    grid-column: span 6;
  }

  .installation-guide {
    grid-template-columns: 1fr;
  }

  .install-checklist {
    padding-right: 0;
  }

  .version-note {
    padding: 30px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-end;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 35px 0;
    text-align: center;
  }

  .footer-inner .brand,
  .footer-inner nav {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .site-header {
    width: calc(100vw - 22px);
    min-height: 62px;
    padding: 0 13px;
    margin-top: 11px;
  }

  .site-header .brand img {
    width: 36px;
    height: 36px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: 9px;
    background: rgba(7, 8, 9, 0.98);
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: var(--shadow);
  }

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

  .site-nav .nav-github {
    margin-left: 0;
  }

  .hero {
    min-height: 770px;
  }

  .hero-content {
    align-self: end;
    padding-bottom: 95px;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(4, 5, 6, 0.15), rgba(4, 5, 6, 0.52) 32%, rgba(4, 5, 6, 0.94) 70%, rgba(4, 5, 6, 0.98)),
      linear-gradient(90deg, rgba(4, 5, 6, 0.52), rgba(4, 5, 6, 0.12));
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

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

  .start-section,
  .plugins-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .plugin-card {
    grid-column: span 12;
  }

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

  .install-checklist li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .cta-panel {
    min-height: 410px;
    padding: 32px 25px;
    background-position: 57% center;
  }

  .cta-panel .button {
    width: 100%;
  }
}

@media (max-width: 470px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .brand span {
    font-size: 0.98rem;
  }

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

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

  .filter-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-buttons button:first-child {
    grid-column: 1 / -1;
  }
}

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

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