/* ==========================================================================
   Kajuby — main stylesheet
   Dark-mode-first design system for a VST/VSTi plugin vendor site.
   ========================================================================== */

:root {
  --bg-0: #0a0b0f;
  --bg-1: #101218;
  --bg-2: #161923;
  --bg-3: #1e222f;
  --bg-elevated: #1a1d28;
  --border: #2a2f3d;
  --border-soft: #21242f;

  --text-0: #f4f5f8;
  --text-1: #c7cbd6;
  --text-2: #8b91a3;
  --text-3: #5c6274;

  --accent: #6f5cff;
  --accent-2: #00e0c6;
  --accent-warm: #ff8a3d;
  --accent-grad: linear-gradient(135deg, #6f5cff 0%, #00b8ff 55%, #00e0c6 100%);

  --danger: #ff5470;
  --success: #35d68e;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px rgba(111, 92, 255, 0.25), 0 12px 40px rgba(111, 92, 255, 0.18);

  --container: 1240px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
}

h1, h2, h3, h4 {
  color: var(--text-0);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section {
  padding-block: 88px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-top: 14px;
}

.section-head p {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 17px;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  background: var(--accent-grad);
  color: #05060a;
}

.btn-primary:hover {
  box-shadow: 0 10px 30px rgba(111, 92, 255, 0.35);
}

.btn-secondary {
  background: var(--bg-3);
  color: var(--text-0);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text-0);
}

.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-2);
  color: var(--text-0);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
}

/* ------------------------------------------------------------------ badge */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--bg-3);
  color: var(--text-2);
  border: 1px solid var(--border-soft);
}

.badge-accent {
  background: rgba(111, 92, 255, 0.15);
  color: #b6acff;
  border-color: rgba(111, 92, 255, 0.35);
}

.badge-free {
  background: rgba(53, 214, 142, 0.14);
  color: var(--success);
  border-color: rgba(53, 214, 142, 0.3);
}

.badge-beta {
  background: rgba(255, 138, 61, 0.15);
  color: var(--accent-warm);
  border-color: rgba(255, 138, 61, 0.35);
}

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 11, 15, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text-0);
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--accent-grad);
  color: #05060a;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 16px;
}

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

.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.15s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  color: var(--text-0);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding-top: 80px;
  padding-bottom: 48px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 640px;
  background:
    radial-gradient(50% 60% at 20% 20%, rgba(111, 92, 255, 0.28), transparent 70%),
    radial-gradient(45% 55% at 85% 10%, rgba(0, 224, 198, 0.16), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.hero-track {
  position: relative;
  z-index: 1;
  display: flex;
  transition: transform 0.6s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.hero-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  min-height: 460px;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.1;
  margin-top: 18px;
}

.hero h1 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  margin-top: 20px;
  font-size: 18px;
  color: var(--text-2);
  max-width: 52ch;
}

.hero-plugin-id {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-plugin-logo {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  object-fit: contain;
  background: var(--bg-3);
  border: 1px solid var(--border-soft);
  padding: 5px;
  flex-shrink: 0;
}

.hero-plugin-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}

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

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-stat b {
  display: block;
  font-size: 26px;
  color: var(--text-0);
  font-family: var(--font-mono);
}

.hero-stat span {
  font-size: 13px;
  color: var(--text-3);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1));
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.hero-visual .browser-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.hero-visual .browser-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-3);
}

.hero-visual-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.hero-visual-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hero-visual-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-3);
}

.hero-visual-caption strong {
  color: var(--text-0);
}

/* ------------------------------------------------------- brand intro slide */
.brand-vis {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 3.2vw, 18px);
}

.brand-vis-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-vis-mark {
  width: clamp(32px, 9vw, 44px);
  height: clamp(32px, 9vw, 44px);
  border-radius: 12px;
  background: var(--accent-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(15px, 3.6vw, 20px);
  color: #05060a;
  flex-shrink: 0;
}

.brand-vis-heading {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-vis-heading strong {
  font-size: clamp(14px, 3.4vw, 18px);
  color: var(--text-0);
}

.brand-vis-heading span {
  font-size: 10.5px;
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-vis-knobs {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 4vw, 22px);
  padding-block: 2px;
}

.brand-knob {
  position: relative;
  width: clamp(28px, 8vw, 42px);
  height: clamp(28px, 8vw, 42px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--bg-elevated), var(--bg-1));
  border: 1px solid var(--border-soft);
}

.brand-knob::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(var(--knob-color) 0deg, var(--knob-color) var(--knob-fill, 120deg), transparent var(--knob-fill, 120deg));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
}

.brand-knob span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 30%;
  background: var(--text-1);
  border-radius: 2px;
  transform-origin: bottom center;
  transform: translate(-50%, -100%) rotate(var(--knob-angle, 0deg));
}

.brand-vis-wave {
  width: 100%;
  height: clamp(32px, 9vw, 54px);
  display: block;
}

.brand-vis-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.brand-vis-tags .badge {
  font-size: 10px;
  padding: 3px 7px;
}

/* ------------------------------------------------------------- slider nav */
.hero-slider-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.hero-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.hero-arrow:hover {
  color: var(--text-0);
  border-color: var(--accent);
  background: var(--bg-3);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--bg-3);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.hero-dot:hover {
  background: var(--text-3);
}

.hero-dot.is-active {
  background: var(--accent);
  transform: scale(1.25);
}

/* --------------------------------------------------------------- logo bar */
.logo-strip {
  padding-block: 28px;
  border-block: 1px solid var(--border-soft);
  background: var(--bg-1);
}

.logo-strip-track {
  display: flex;
  align-items: center;
  gap: 42px;
  overflow-x: auto;
  scrollbar-width: none;
}

.logo-strip-track::-webkit-scrollbar {
  display: none;
}

.logo-strip-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.65;
  filter: grayscale(0.3);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
}

.logo-strip-item img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: cover;
}

/* ----------------------------------------------------------------- filter */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  border-color: var(--text-2);
  color: var(--text-0);
}

.filter-chip.active {
  background: var(--accent-grad);
  color: #05060a;
  border-color: transparent;
}

/* ------------------------------------------------------------------- grid */
.plugin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.plugin-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.plugin-card:hover {
  transform: translateY(-4px);
  border-color: rgba(111, 92, 255, 0.45);
  box-shadow: var(--shadow-glow);
}

.plugin-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(111, 92, 255, 0.14), transparent 60%),
    var(--bg-3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.plugin-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease;
}

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

.plugin-card-media .featured-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 11, 15, 0.75);
  backdrop-filter: blur(6px);
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 224, 198, 0.35);
}

.plugin-card-media .coming-soon-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10, 11, 15, 0.75);
  backdrop-filter: blur(6px);
  color: var(--accent-warm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 138, 61, 0.35);
}

.btn.btn-disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.plugin-card-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.plugin-card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plugin-card-logo {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid var(--border-soft);
  background: var(--bg-3);
  flex: none;
}

.plugin-card-title-row h3 {
  font-size: 17px;
}

.plugin-card-tagline {
  color: var(--text-2);
  font-size: 14px;
  min-height: 40px;
}

.plugin-card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 6px;
}

.plugin-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

.plugin-card-price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 14px;
  display: none;
}

/* ------------------------------------------------------------------ about */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-copy p {
  color: var(--text-2);
  font-size: 16px;
  margin-top: 16px;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}

.about-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-1);
  font-size: 15px;
}

.about-list li .dot {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(111, 92, 255, 0.15);
  color: var(--accent-2);
  display: grid;
  place-items: center;
  font-size: 12px;
  margin-top: 2px;
}

.about-panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  gap: 22px;
}

.about-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.about-stat {
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px;
}

.about-stat b {
  display: block;
  font-size: 24px;
  color: var(--text-0);
  font-family: var(--font-mono);
}

.about-stat span {
  color: var(--text-3);
  font-size: 13px;
}

/* -------------------------------------------------------------- newsletter/CTA */
.cta-band {
  background: linear-gradient(135deg, rgba(111, 92, 255, 0.16), rgba(0, 224, 198, 0.1));
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.cta-band .container {
  padding-block: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(24px, 3vw, 32px);
}

.cta-band p {
  color: var(--text-2);
  margin-top: 8px;
  max-width: 46ch;
}

/* ------------------------------------------------------------------ footer */
.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border-soft);
  padding-block: 56px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}

.footer-brand p {
  color: var(--text-3);
  font-size: 14px;
  margin-top: 14px;
  max-width: 34ch;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition: all 0.15s ease;
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--text-0);
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 16px;
}

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

.footer-col a {
  color: var(--text-2);
  font-size: 14.5px;
  transition: color 0.15s ease;
}

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

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-3);
  font-size: 13px;
}

/* -------------------------------------------------------------- legal pages */
.legal-hero {
  padding-top: 56px;
  padding-bottom: 8px;
}

.legal-container {
  max-width: 760px;
}

.legal-hero h1 {
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.15;
  margin-top: 12px;
}

.legal-updated {
  margin-top: 10px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 13px;
}

.legal-section {
  padding-top: 24px;
  padding-bottom: 96px;
}

.legal-body h2 {
  font-size: 21px;
  color: var(--text-0);
  margin-top: 46px;
  margin-bottom: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
}

.legal-body > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-body h3 {
  font-size: 16px;
  color: var(--text-0);
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-body p {
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 68ch;
}

.legal-body ul {
  margin: 0 0 16px 0;
  padding-left: 22px;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 68ch;
}

.legal-body li {
  margin-bottom: 6px;
}

.legal-body a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-body a:hover {
  color: var(--text-0);
}

.legal-body strong {
  color: var(--text-0);
}

.legal-address {
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 4px 0 24px;
  color: var(--text-1);
  font-size: 14.5px;
  line-height: 1.75;
  max-width: 68ch;
}

.legal-address strong {
  display: block;
  color: var(--text-0);
  margin-bottom: 2px;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 28px 0 0;
  padding: 18px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}

.legal-toc a {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  font-family: var(--font-mono);
}

.legal-toc a:hover {
  color: var(--accent-2);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
}

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

/* ------------------------------------------------------------------- modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}

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

.modal {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: modal-in 0.18s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(10, 11, 15, 0.7);
  border: 1px solid var(--border);
  color: var(--text-0);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.modal-media {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(111, 92, 255, 0.16), transparent 60%),
    var(--bg-3);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.modal-body {
  padding: 32px 36px 40px;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.modal-logo {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-soft);
  background: var(--bg-3);
}

.modal-title-row h3 {
  font-size: 24px;
}

.modal-tagline {
  color: var(--text-2);
  font-size: 15.5px;
  margin-bottom: 18px;
}

.modal-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.modal-summary {
  color: var(--text-1);
  font-size: 15px;
  margin-bottom: 24px;
}

.modal-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
}

.modal-columns h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 14px;
}

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

.feature-list li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-1);
  line-height: 1.5;
}

.feature-list li svg {
  flex: none;
  margin-top: 3px;
  color: var(--accent-2);
}

.spec-table {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}

.spec-row span:first-child {
  color: var(--text-3);
}

.spec-row span:last-child {
  color: var(--text-0);
  text-align: right;
  font-weight: 600;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-visual {
    order: -1;
  }

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

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

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

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

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.18s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions .btn-secondary {
    display: none;
  }

  .section {
    padding-block: 56px;
  }

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

  .cta-band .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .modal-body {
    padding: 24px 20px 28px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    gap: 20px;
  }
}
