:root {
  --bg: #050505;
  --panel: #121214;
  --panel-soft: #18181c;
  --text: #ffffff;
  --muted: #b5b5c2;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #b245ff;
  --accent-hover: #c96bff;
  --cyan: var(--accent);
  --purple: var(--accent-hover);
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

::selection {
  background: rgba(178, 69, 255, 0.42);
  color: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  opacity: 1 !important;
  visibility: visible !important;
}

main,
.site,
.page {
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 220ms ease, opacity 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(5, 5, 5, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color 160ms ease, background 160ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.94);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand span,
.site-nav a,
.button,
.eyebrow {
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.site-nav a {
  transition:
    transform 220ms ease,
    color 220ms ease,
    opacity 220ms ease;
}

.site-nav a:hover {
  transform: translateY(-1px);
}

.site-nav a:hover,
.legal-links a:hover {
  color: var(--cyan);
}

.language-toggle {
  min-height: 34px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.language-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 107, 255, 0.72);
  color: var(--accent-hover);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 100vh;
  padding: clamp(96px, 12vw, 150px) clamp(18px, 4vw, 56px) clamp(64px, 8vw, 104px);
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at center, rgba(178, 69, 255, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.35), #050505 92%);
}

.hero-bg,
.home-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(1.15) brightness(0.75);
  transform: scale(1.06);
  opacity: 0.55;
  z-index: 0;
}

.hero-content,
.home-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  padding: 0 24px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(72px, 12vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

p {
  font-weight: 500;
  line-height: 1.55;
}

.hero-text {
  max-width: none;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 28px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  gap: 8px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease,
    opacity 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 107, 255, 0.72);
  box-shadow: 0 12px 30px rgba(178, 69, 255, 0.22);
}

.button-primary,
.button-download {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
}

.button-primary:hover,
.button-download:hover {
  background: var(--accent-hover);
  border-color: transparent;
}

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

.button-secondary:hover {
  background: rgba(178, 69, 255, 0.1);
  border-color: rgba(178, 69, 255, 0.75);
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

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

.plugin-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel-soft), var(--panel));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 46px var(--shadow);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease,
    opacity 220ms ease;
}

.plugin-card:hover {
  transform: translateY(-6px);
  border-color: rgba(178, 69, 255, 0.65);
  box-shadow: 0 18px 50px rgba(178, 69, 255, 0.16);
}

.plugin-card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
}

.plugin-card-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  display: block;
  transition: transform 260ms ease, opacity 260ms ease;
}

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

.plugin-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.plugin-content p {
  min-height: 48px;
  margin: 0;
  color: var(--muted);
}

.plugin-content .button {
  width: 100%;
  min-height: 48px;
  padding-inline: 22px;
  text-align: center;
}

.plugin-content .button-download {
  margin-top: auto;
}

.plugin-content small {
  display: block;
  color: #858595;
  font-size: 12px;
}

.plugin-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  overflow: hidden;
  padding: clamp(44px, 7vw, 90px) clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.plugin-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.72), rgba(5, 5, 5, 0.42), rgba(5, 5, 5, 0.7)),
    linear-gradient(180deg, rgba(5, 5, 5, 0.08), rgba(5, 5, 5, 0.78));
}

.plugin-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(7px) saturate(1.25) brightness(1.2);
  transform: scale(1.06);
  opacity: 0.68;
}

.plugin-hero-content {
  position: relative;
  z-index: 2;
}

.plugin-hero h1,
.plugin-hero p,
.plugin-hero .tagline {
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.85);
}

.plugin-hero-copy {
  max-width: 680px;
}

.plugin-hero-media img {
  width: min(100%, 560px);
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 56px var(--shadow);
}

.plugin-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(56px, 8vw, 104px) clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.detail-panel {
  min-width: 0;
  padding: 22px;
  background: linear-gradient(180deg, var(--panel-soft), var(--panel));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-panel h2 {
  font-size: 28px;
}

.detail-panel p {
  color: var(--muted);
}

.detail-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.legal-note {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.legal-note p {
  margin: 0;
}

.split-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, rgba(178, 69, 255, 0.08), rgba(201, 107, 255, 0.08));
}

.split-section p {
  max-width: 680px;
  color: var(--muted);
}

.text-link {
  color: var(--text);
  font-weight: 800;
}

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

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  line-height: 1;
  text-align: center;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease,
    opacity 220ms ease;
}

.link-row a:hover {
  transform: translateY(-2px);
  background: rgba(178, 69, 255, 0.1);
  border-color: rgba(178, 69, 255, 0.75);
  box-shadow: 0 12px 30px rgba(178, 69, 255, 0.18);
}

.site-footer {
  padding: 34px clamp(18px, 4vw, 56px);
  color: #9494a0;
  font-size: 14px;
}

.site-footer p {
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--muted);
  margin-right: 14px;
}

.site-footer a:hover {
  color: var(--cyan);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(12px);
}

.modal-backdrop.is-open {
  display: flex;
}

.download-modal {
  width: min(520px, 100%);
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.64);
}

.download-modal h2 {
  margin-bottom: 14px;
  font-size: 30px;
}

.download-modal p {
  color: var(--muted);
}

.download-modal a {
  color: var(--accent-hover);
  font-weight: 800;
}

.agreement-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  color: var(--text);
}

.agreement-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

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

.button:disabled,
.button.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.legal-page {
  min-height: 100vh;
}

.legal-document {
  width: min(880px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(44px, 8vw, 86px) 0;
}

.legal-document h1 {
  font-size: clamp(42px, 7vw, 78px);
}

.legal-document p {
  color: var(--muted);
}

.legal-document ul {
  display: grid;
  gap: 14px;
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
}

.legal-document li {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
}

@media (max-width: 1180px) {
  .plugin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .hero {
    min-height: 100svh;
    padding-inline: 18px;
  }

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

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

  .plugin-hero-media {
    order: -1;
  }

  .split-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

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

  .hero-actions,
  .hero-actions .button,
  .support-actions,
  .support-actions .button,
  .split-section .button,
  .link-row,
  .link-row a {
    width: 100%;
  }

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

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

  .plugin-content p {
    min-height: 0;
  }
}
