/* ============================================================
   FERNODE — dark landing page and plugin library
   Plain CSS. Manrope + DM Mono, editorial dark theme.
   ============================================================ */

:root {
  --bg: #09090a;
  --panel: #111113;
  --panel-2: #17171a;
  --panel-3: #202024;
  --text: #f4f3ef;
  --muted: #99999f;
  --muted-strong: #b9b9c0;
  --line: rgba(255, 255, 255, .11);
  --line-strong: rgba(255, 255, 255, .2);
  --accent: #83a8ff;
  --accent-soft: rgba(131, 168, 255, .14);
  --green: #9de4b2;
  --warn-bg: rgba(255, 196, 110, .12);
  --warn-ink: #ffd399;
  --warn-line: rgba(255, 196, 110, .28);
  --font-sans: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  color-scheme: dark;
  scrollbar-color: #3a3a40 var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

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

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

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

section[id] {
  scroll-margin-top: 105px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.sr-only {
  position: absolute !important;
  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;
  z-index: 120;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform .2s ease;
}

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

/* ---------- Shell ---------- */

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at 50% -10%, #182445 0, var(--bg) 28%);
}

/* ---------- Header ---------- */

.topbar {
  width: min(1380px, calc(100% - 40px));
  height: 68px;
  padding: 0 12px 0 18px;
  position: absolute;
  z-index: 30;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 12, 14, .76);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
}

.brand-mark .icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c3c3c8;
  font-size: 12px;
}

.desktop-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  transition: color .2s, background .2s;
}

.desktop-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .07);
}

.header-download {
  justify-self: end;
  min-height: 44px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: background .2s, transform .2s;
}

.header-download:hover {
  background: #dfe7ff;
  color: var(--bg);
  transform: translateY(-1px);
}

.header-download .icon {
  width: 16px;
  height: 16px;
  transition: transform .2s;
}

.header-download:hover .icon {
  transform: translateX(3px);
}

.menu-button,
.mobile-nav {
  display: none;
}

.menu-close-icon {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  padding: 150px 7vw 70px;
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #07102c;
}

.hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 5, 15, .94) 0%, rgba(3, 5, 15, .78) 30%, rgba(3, 5, 15, .24) 61%, rgba(3, 5, 15, .06) 100%),
    linear-gradient(0deg, rgba(3, 5, 15, .6), transparent 52%);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: banner-settle 1.8s cubic-bezier(.2, .8, .2, 1) both;
}

.hero-copy {
  width: min(780px, 56%);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.eyebrow,
.section-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  color: #c3c3c9;
}

.eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
  animation: status-pulse 2s ease-in-out infinite;
}

.hero h1 {
  max-width: 900px;
  margin: 28px 0 0;
  font-size: clamp(56px, 6.6vw, 98px);
  line-height: .91;
  letter-spacing: -.07em;
  font-weight: 500;
  text-shadow: 0 8px 45px rgba(0, 0, 0, .38);
}

.hero h1 span {
  color: rgba(255, 255, 255, .62);
}

.hero-description {
  max-width: 590px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, .76);
  font-size: 16px;
  line-height: 1.7;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .45);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.primary-cta,
.text-cta {
  min-height: 52px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  border-radius: 13px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: transform .2s, background .2s;
}

.primary-cta {
  background: var(--text);
  color: var(--bg);
}

.primary-cta:hover {
  background: #dfe7ff;
  color: var(--bg);
  transform: translateY(-2px);
}

.text-cta {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .045);
}

.text-cta:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--text);
  transform: translateY(-2px);
}

.primary-cta .icon,
.text-cta .icon {
  width: 16px;
  height: 16px;
}

.hero-note {
  margin-top: 17px;
  color: #b8b8c0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .045em;
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .hero-description,
.hero-copy .hero-actions,
.hero-copy .hero-note {
  opacity: 0;
  animation: boot-in .7s cubic-bezier(.2, .8, .2, 1) forwards;
}

.hero-copy .eyebrow {
  animation-delay: .1s;
}

.hero-copy h1 {
  animation-delay: .2s;
}

.hero-copy .hero-description {
  animation-delay: .32s;
}

.hero-copy .hero-actions {
  animation-delay: .43s;
}

.hero-copy .hero-note {
  animation-delay: .54s;
}

/* ---------- Compatibility ---------- */

.compatibility-bar {
  width: min(1180px, calc(100% - 48px));
  margin: 54px auto 0;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.compatibility-bar::-webkit-scrollbar {
  display: none;
}

.compatibility-bar span {
  color: #9999a0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .13em;
}

.compatibility-bar strong {
  color: #b4b4bc;
  font-size: 10px;
  letter-spacing: .12em;
}

.compatibility-bar i {
  width: 3px;
  height: 3px;
  flex: none;
  border-radius: 50%;
  background: #77777f;
}

/* ---------- Shared headings ---------- */

.plugins-section,
.gallery-section,
.faq-section {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
  padding: 150px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr .55fr;
  align-items: end;
  gap: 40px;
  margin-bottom: 56px;
}

.section-index {
  color: var(--accent);
}

.section-heading h2,
.tool-copy h2,
.faq-heading h2,
.principles-intro h2 {
  margin: 18px 0 0;
  font-size: clamp(46px, 5vw, 74px);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 500;
}

.section-heading > p {
  max-width: 480px;
  justify-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.section-heading > p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-heading > p a:hover {
  color: #b8ceff;
}

/* ---------- Plugin toolbar ---------- */

.library-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(17, 17, 19, .78);
}

.library-search {
  position: relative;
  flex: 1 1 240px;
  min-width: 0;
}

.library-search .icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.library-search input,
.library-select select,
.field {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d0d0f;
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
}

.library-search input {
  padding-left: 42px;
}

.library-search input::placeholder {
  color: #8c8c94;
  opacity: 1;
}

.library-search input:hover,
.library-select select:hover,
.field:hover {
  border-color: rgba(255, 255, 255, .2);
}

.library-search input:focus,
.library-select select:focus,
.field:focus {
  border-color: var(--accent);
}

.library-select {
  flex: 0 1 232px;
  min-width: 190px;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 17px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #b6b6bd;
  border-bottom: 2px solid #b6b6bd;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.select-wrap select {
  appearance: none;
  padding-right: 44px;
  cursor: pointer;
}

.select-wrap select option {
  background: #111113;
  color: var(--text);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: background .2s, border-color .2s, color .2s;
}

.chip:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.chip.is-active {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.results-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  margin: 18px 2px 16px;
}

.results-row p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.bundle-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bundle-link:hover {
  color: #b8ceff;
}

.bundle-link .icon {
  width: 15px;
  height: 15px;
}

/* ---------- Plugin cards ---------- */

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

.plugin-card {
  min-width: 0;
  min-height: 550px;
  padding: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  transition: transform .3s, border-color .3s, background .3s;
}

.plugin-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background: var(--panel-2);
}

.plugin-card-top {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.plugin-number,
.plugin-state {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  background: rgba(5, 7, 13, .64);
  backdrop-filter: blur(8px);
  color: #d0d0d6;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  white-space: nowrap;
}

.plugin-state {
  display: flex;
  align-items: center;
  gap: 6px;
}

.plugin-state i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.plugin-media {
  height: 300px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 16px;
  color: var(--text);
  background: radial-gradient(circle at 50% 60%, #233b72, #0d111c 68%);
}

.plugin-media::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 7, 13, .28), transparent 34%),
    linear-gradient(0deg, rgba(5, 7, 13, .66), transparent 44%);
}

.plugin-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #0d111c;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

.plugin-card:hover .plugin-video {
  transform: scale(1.035);
}

.plugin-media-icon {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  left: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background: rgba(5, 7, 13, .62);
  backdrop-filter: blur(9px);
}

.plugin-media-icon .icon {
  width: 19px;
  height: 19px;
  stroke-width: 1.6;
}

.plugin-demo-label {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(5, 7, 13, .6);
  backdrop-filter: blur(8px);
  color: #d0d0d6;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .08em;
}

.plugin-info {
  flex: 1;
  padding: 22px 13px 0;
}

.plugin-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.plugin-title-row h3 {
  margin: 0;
  font-size: clamp(20px, 1.9vw, 27px);
  letter-spacing: -.04em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.version,
.tag-row span {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #a8a8b0;
  font-family: var(--font-mono);
  font-size: 9px;
  white-space: nowrap;
}

.plugin-info p {
  margin: 15px 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.plugin-action {
  margin: 20px 13px 11px;
  padding-top: 13px;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.download-button {
  min-width: 138px;
  min-height: 46px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  border-radius: 11px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: none;
  transition: transform .2s, background .2s;
}

.download-button:hover {
  background: #dfe7ff;
  color: var(--bg);
  transform: translateY(-2px);
}

.download-button .icon {
  width: 15px;
  height: 15px;
}

.download-button.is-disabled,
.download-button[aria-disabled="true"] {
  opacity: .4;
  pointer-events: none;
  cursor: not-allowed;
}

.download-button.is-downloading {
  background: var(--accent);
}

.download-button.is-downloading .icon {
  animation: download-confirm .45s cubic-bezier(.2, .9, .3, 1.3);
}

.plugin-action .download-button {
  min-width: 150px;
}

.empty-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 18px;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: var(--panel);
}

.empty-state h3 {
  margin: 0 0 4px;
  font-size: 20px;
  letter-spacing: -.02em;
}

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

.text-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.text-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .08);
}

.library-note {
  margin: 22px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* ---------- Principles ---------- */

.principles-section {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto 150px;
  padding: 14px;
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #0d0d0f;
}

.principles-intro {
  padding: 68px 50px;
  border-radius: 20px;
  background: var(--panel-2);
}

.principles-intro p {
  max-width: 420px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.principle-card {
  min-height: 280px;
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.principle-card.featured {
  grid-column: 1 / -1;
  min-height: 315px;
  background: linear-gradient(135deg, #18233b, var(--panel) 65%);
}

.principle-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
}

.principle-icon .icon {
  width: 18px;
  height: 18px;
}

.principle-card small,
.card-index {
  color: #94949c;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
}

.principle-card h3 {
  margin: 10px 0 0;
  font-size: clamp(24px, 2.7vw, 40px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 600;
}

.principle-card p {
  max-width: 390px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.big-number {
  position: absolute;
  right: 25px;
  top: 20px;
  color: rgba(131, 168, 255, .55);
  font-size: clamp(70px, 8vw, 120px);
  font-weight: 700;
  letter-spacing: -.08em;
  line-height: 1;
}

.big-number::after {
  content: " plugins";
  font-family: var(--font-mono);
  font-size: .14em;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  vertical-align: top;
}

.card-index {
  position: absolute;
  right: 22px;
  top: 22px;
}

/* ---------- Server tool ---------- */

.tool-section {
  width: min(1380px, calc(100% - 48px));
  min-height: 710px;
  margin: 0 auto 150px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #0d0d0f;
}

.tool-visual {
  padding: 6%;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 20px;
  background: radial-gradient(circle at 30% 20%, #2b457d, #10131c 55%, #0b0c10);
}

.window {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(13, 15, 21, .88);
  box-shadow: 0 35px 80px rgba(0, 0, 0, .55);
  transform: perspective(1000px) rotateY(3deg) rotateX(1deg);
}

.window-bar {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .06em;
}

.window-bar div {
  display: flex;
  gap: 6px;
}

.window-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #62626a;
}

.window-body {
  min-height: 360px;
  display: grid;
  grid-template-columns: 135px 1fr;
}

.window-body aside {
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--line);
}

.window-body aside span {
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  color: #9a9aa2;
  font-size: 9px;
}

.window-body aside span.active {
  background: var(--accent-soft);
  color: #dce6ff;
}

.window-body aside .icon {
  width: 13px;
  height: 13px;
}

.console {
  padding: 35px 30px;
}

.console > span {
  color: #9aa2b6;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .05em;
}

.console > strong {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  letter-spacing: -.03em;
}

.console > strong i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.console-lines {
  margin-top: 35px;
  padding: 16px;
  border-radius: 10px;
  background: #08090c;
  color: #a0a8bc;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.8;
}

.console-lines p {
  margin: 0;
}

.console-lines .cursor {
  margin-top: 12px;
  color: var(--text);
}

.tool-copy {
  padding: clamp(36px, 4.2vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 20px;
  background: var(--panel-2);
}

.tool-copy > p {
  max-width: 500px;
  margin: 27px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.tool-features {
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  list-style: none;
}

.tool-features li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c7c7cd;
  font-size: 10px;
  line-height: 1.45;
}

.tool-features .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.tool-download {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.download-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.field-label {
  color: #b4b4bc;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.version-pill {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b7b7be;
  font-family: var(--font-mono);
  font-size: 9px;
}

.field-help {
  margin: 8px 0 0;
  color: #94949c;
  font-size: 11px;
  line-height: 1.5;
}

.download-actions {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.tool-main-download {
  width: 100%;
}

.installer-link {
  min-height: 40px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: background .2s, border-color .2s, color .2s;
}

.installer-link:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .07);
  color: var(--text);
}

.installer-link.is-disabled {
  opacity: .4;
  pointer-events: none;
}

.status-note {
  margin: 15px 0 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: #cdd9f8;
  font-size: 11px;
  line-height: 1.55;
}

.status-note.is-warn {
  border: 1px solid var(--warn-line);
  background: var(--warn-bg);
  color: var(--warn-ink);
}

.hash-row {
  margin-top: 10px;
  padding: 9px 9px 9px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d0d0f;
}

.hash-label {
  color: #94949c;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .06em;
}

.hash-row code {
  overflow: hidden;
  color: #a8a8b0;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
}

.copy-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.copy-button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.tool-fineprint {
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #94949c;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .03em;
}

/* ---------- Gallery ---------- */

.gallery-section {
  padding-top: 0;
}

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

.gallery-card {
  display: block;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  color: var(--text);
  transition: transform .3s, border-color .3s, background .3s;
}

.gallery-card:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--panel-2);
  transform: translateY(-5px);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 15px;
}

.gallery-meta {
  padding: 13px 8px 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.gallery-meta strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.gallery-meta small {
  color: #94949c;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .03em;
  white-space: nowrap;
}

/* ---------- Bundle strip ---------- */

.server-strip {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 150px;
  padding: 42px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(100deg, #131722, #121214);
}

.server-strip > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.server-strip span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .13em;
}

.server-strip strong {
  font-size: clamp(24px, 3vw, 39px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.05;
}

.server-strip small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.bundle-download {
  min-height: 48px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: background .2s, border-color .2s, transform .2s;
}

.bundle-download:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .1);
  color: var(--text);
  transform: translateY(-2px);
}

.bundle-download .icon {
  width: 15px;
  height: 15px;
}

/* ---------- FAQ ---------- */

.faq-section {
  padding-top: 0;
  padding-bottom: 90px;
  display: grid;
  grid-template-columns: .7fr 1fr;
  gap: 10vw;
}

.faq-heading a {
  width: max-content;
  margin-top: 36px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: background .2s, border-color .2s;
}

.faq-heading a:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .05);
}

.faq-heading a .icon {
  width: 15px;
  height: 15px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0;
}

.faq-item button {
  width: 100%;
  min-height: 88px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
}

.faq-item button > span {
  display: flex;
  align-items: center;
  gap: 22px;
}

.faq-item button small {
  color: #94949c;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .05em;
}

.faq-icon {
  width: 17px;
  height: 17px;
  transition: transform .25s;
}

.faq-item button:hover .faq-icon {
  transform: rotate(90deg);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .3s, visibility .3s;
}

.faq-answer p {
  min-height: 0;
  max-width: 580px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.faq-answer code {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .07);
  color: #c7d7ff;
  font-family: var(--font-mono);
  font-size: .94em;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
  visibility: visible;
}

.faq-item.open .faq-answer p {
  padding: 0 42px 26px;
}

/* ---------- Advertisement ---------- */

.ad-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 100px;
}

.ad-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(17, 17, 19, .72);
}

.ad-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  color: #94949c;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ad-card .adsbygoogle {
  min-height: 90px;
}

/* ---------- Footer ---------- */

.site-footer {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
  padding: 55px 0 35px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  font-size: 12px;
}

.footer-top p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  color: #a8a8ae;
  font-size: 11px;
}

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

.footer-legal {
  display: block;
  margin-top: 55px;
  color: #94949c;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---------- Toast and no-script notice ---------- */

.toast {
  position: fixed;
  z-index: 110;
  right: 18px;
  bottom: 18px;
  max-width: min(370px, calc(100vw - 36px));
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .4);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}

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

.noscript-note {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100vw - 36px));
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--warn-line);
  border-radius: 10px;
  background: #241b0f;
  color: var(--warn-ink);
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- Privacy page ---------- */

.legal-page {
  background:
    radial-gradient(circle at 82% 0%, rgba(131, 168, 255, .12), transparent 34rem),
    var(--bg);
}

.legal-header {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.legal-brand {
  font-size: 12px;
}

.legal-back {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.legal-back:hover {
  color: #b8ceff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-main {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 36px 24px 72px;
}

.legal-main h1 {
  margin: 18px 0 8px;
  font-size: clamp(44px, 6vw, 64px);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 500;
}

.legal-updated {
  margin: 0 0 32px;
  color: #94949c;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
}

.legal-content {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}

.legal-content section + section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.legal-content p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: #b8ceff;
}

.legal-content code {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .07);
  color: #c7d7ff;
  font-family: var(--font-mono);
  font-size: .94em;
}

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

.legal-footer-inner {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #94949c;
  font-family: var(--font-mono);
  font-size: 10px;
}

.legal-footer-inner a {
  color: var(--accent);
  text-decoration: none;
}

.legal-footer-inner a:hover {
  color: #b8ceff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s, transform .75s cubic-bezier(.2, .8, .2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .plugin-card.reveal {
  transition: opacity .6s, transform .6s, border-color .3s, background .3s;
}

.js .plugin-card.reveal:hover {
  transform: translateY(-6px);
}

/* ---------- Motion ---------- */

@keyframes boot-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes banner-settle {
  from {
    opacity: .5;
    transform: scale(1.035);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes status-pulse {
  50% {
    opacity: .55;
  }
}

@keyframes download-confirm {
  0% {
    transform: scale(.5) rotate(-12deg);
  }

  70% {
    transform: scale(1.2) rotate(3deg);
  }

  100% {
    transform: none;
  }
}

/* ---------- Responsive ---------- */

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

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

  .header-download {
    justify-self: end;
  }

  .hero-copy {
    width: min(680px, 68%);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .section-heading > p {
    justify-self: start;
  }

  .plugin-list {
    grid-template-columns: 1fr;
  }

  .plugin-card {
    min-height: 500px;
  }

  .plugin-media {
    height: 260px;
  }

  .principles-section {
    grid-template-columns: 1fr;
  }

  .tool-section {
    grid-template-columns: 1fr;
  }

  .tool-copy {
    padding: 64px 55px;
  }

  .faq-section {
    grid-template-columns: 1fr;
    gap: 70px;
  }
}

@media (max-width: 700px) {
  .topbar {
    width: calc(100% - 24px);
    height: 60px;
    top: 12px;
    padding: 0 8px 0 12px;
  }

  .brand {
    font-size: 11px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .header-download {
    display: none;
  }

  .menu-button {
    justify-self: end;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .07);
    color: var(--text);
  }

  .menu-button .icon {
    width: 20px;
    height: 20px;
  }

  .menu-button.is-open .menu-open-icon {
    display: none;
  }

  .menu-button.is-open .menu-close-icon {
    display: block;
  }

  .mobile-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    padding: 8px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(12, 12, 14, .97);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
  }

  .mobile-nav a {
    padding: 14px;
    border-radius: 9px;
    color: #d0d0d5;
    font-size: 13px;
  }

  .mobile-nav a:hover {
    background: rgba(255, 255, 255, .06);
    color: var(--text);
  }

  .hero {
    min-height: 780px;
    padding: 130px 24px 70px;
    align-items: flex-end;
  }

  .hero-copy {
    width: 100%;
  }

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

  .hero-description {
    font-size: 14px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

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

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

  .hero-art::after {
    background:
      linear-gradient(0deg, rgba(3, 5, 15, .97) 0%, rgba(3, 5, 15, .78) 48%, rgba(3, 5, 15, .1) 100%);
  }

  .compatibility-bar {
    width: calc(100% - 24px);
    margin-top: 35px;
    padding: 18px 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    white-space: normal;
    overflow: visible;
  }

  .plugins-section,
  .gallery-section,
  .faq-section {
    width: calc(100% - 32px);
    padding: 100px 0;
  }

  .gallery-section,
  .faq-section {
    padding-top: 0;
  }

  .faq-section {
    padding-bottom: 100px;
  }

  .section-heading h2,
  .tool-copy h2,
  .faq-heading h2,
  .principles-intro h2 {
    font-size: clamp(42px, 12vw, 52px);
  }

  .library-toolbar {
    padding: 8px;
  }

  .library-search,
  .library-select {
    flex-basis: 100%;
  }

  .chip-row {
    width: 100%;
  }

  .chip {
    flex: 1 1 auto;
  }

  .results-row {
    align-items: flex-start;
    flex-direction: column;
    margin: 16px 0;
  }

  .plugin-card {
    min-height: 510px;
  }

  .plugin-media {
    height: 220px;
  }

  .plugin-action .download-button {
    width: 100%;
  }

  .principles-section,
  .tool-section {
    width: calc(100% - 24px);
    margin-bottom: 100px;
    padding: 8px;
    border-radius: 22px;
  }

  .principles-intro {
    padding: 55px 24px;
  }

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

  .principle-card.featured {
    grid-column: 1;
  }

  .principle-card {
    min-height: 260px;
    padding: 24px;
  }

  .big-number {
    font-size: 66px;
  }

  .tool-visual {
    min-height: 0;
    padding: 30px 16px;
  }

  .window {
    min-width: 0;
    width: 100%;
    transform: none;
  }

  .window-bar {
    height: 40px;
    padding: 0 12px;
    font-size: 8px;
  }

  .window-body {
    min-height: 300px;
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .window-body aside {
    padding: 14px 7px;
  }

  .window-body aside span {
    padding: 7px 6px;
    font-size: 8px;
  }

  .window-body aside .icon {
    width: 12px;
    height: 12px;
  }

  .console {
    min-width: 0;
    padding: 22px 14px;
  }

  .console > strong {
    font-size: 18px;
  }

  .console-lines {
    margin-top: 22px;
    padding: 11px;
    font-size: 8px;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }

  .tool-copy {
    padding: 60px 24px;
  }

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

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

  .server-strip {
    width: calc(100% - 32px);
    margin-bottom: 100px;
    padding: 30px 24px;
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .bundle-download {
    width: 100%;
    justify-content: space-between;
  }

  .faq-item button {
    min-height: 96px;
    font-size: 13px;
  }

  .faq-item button > span {
    gap: 12px;
  }

  .faq-item.open .faq-answer p {
    padding: 0 0 24px 22px;
  }

  .ad-wrap {
    width: calc(100% - 32px);
    margin: 0 auto 80px;
  }

  .site-footer {
    width: calc(100% - 32px);
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-links {
    gap: 18px;
  }

  .footer-legal {
    margin-top: 35px;
  }

  .legal-header,
  .legal-main,
  .legal-footer-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .legal-main {
    padding-top: 24px;
  }

  .legal-main h1 {
    font-size: 42px;
  }

  .legal-content {
    padding: 22px;
  }

  .legal-content p {
    font-size: 14px;
  }
}

@media (max-width: 430px) {
  .hero {
    min-height: 730px;
  }

  .eyebrow {
    font-size: 9px;
  }

  .plugin-card-top {
    left: 16px;
    right: 16px;
  }

  .plugin-number,
  .plugin-state {
    padding: 6px 7px;
    font-size: 8px;
  }

  .plugin-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .plugin-info p {
    font-size: 12px;
  }

  .faq-item button {
    font-size: 12px;
  }

  .faq-item button small {
    display: none;
  }

  .footer-links {
    font-size: 10px;
  }
}

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

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