/* ============================================================
   Enotix VST plugins — landing styles
   Dark theme, purple accent. Mobile-first, system fonts.
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #0a0612;
  --bg-2: #0f0a1c;
  --surface: #150e26;
  --surface-2: #1c1333;
  --border: #2a1f45;
  --border-strong: #3a2a63;

  /* Text */
  --text: #ece7f7;
  --text-dim: #b3a7cc;
  --text-faint: #7d7095;

  /* Purple brand ramp */
  --purple: #a855f7;
  --purple-bright: #c084fc;
  --magenta: #d946ef;
  --purple-deep: #7c3aed;

  /* Effects */
  --glow: 0 0 40px rgba(168, 85, 247, 0.35);
  --grad: linear-gradient(135deg, var(--purple-deep), var(--purple), var(--magenta));
  --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(217, 70, 239, 0.12));

  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1140px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.lightbox-open { overflow: hidden; }

/* Ambient purple glows fixed to the backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60vw 60vw at 15% -5%, rgba(124, 58, 237, 0.22), transparent 60%),
    radial-gradient(50vw 50vw at 100% 10%, rgba(217, 70, 239, 0.14), transparent 55%),
    radial-gradient(70vw 60vw at 50% 110%, rgba(168, 85, 247, 0.12), transparent 60%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--purple-bright); outline-offset: 3px; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(217, 70, 239, 0.45); }

.btn-ghost {
  background: rgba(168, 85, 247, 0.08);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(168, 85, 247, 0.16); border-color: var(--purple); }

.btn-donate {
  background: transparent;
  border-color: var(--magenta);
  color: var(--purple-bright);
}
.btn-donate:hover { background: rgba(217, 70, 239, 0.14); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 6, 18, 0.72);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.02em; }
.brand .mark { width: 34px; height: 34px; }
.brand .brand-name { font-size: 1.1rem; }
.brand .brand-name small { display: block; font-size: 0.66rem; font-weight: 500; color: var(--text-faint); letter-spacing: 0.14em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: none; gap: 26px; }
.nav-links a { color: var(--text-dim); font-size: 0.92rem; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }

@media (min-width: 860px) {
  .nav-links { display: flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 72px; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--grad-soft);
  color: var(--purple-bright);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 10px var(--magenta); }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  font-weight: 800;
}
.slogan {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.hero p.lead {
  max-width: 620px;
  margin: 0 auto 34px;
  color: var(--text-dim);
  font-size: clamp(1rem, 2.4vw, 1.18rem);
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 42px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--text-dim);
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.badge svg { width: 15px; height: 15px; color: var(--purple-bright); }

/* ---------- Section shells ---------- */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  font-weight: 800;
}
.section-head p { color: var(--text-dim); margin: 0; font-size: 1.05rem; }

/* ---------- Plugin cards ---------- */
.plugins-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .plugins-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .plugins-grid { grid-template-columns: repeat(3, 1fr); } }

.plugin-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(217, 70, 239, 0.18), transparent 55%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: 34px 30px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.plugin-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), var(--glow);
}
.plugin-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  margin-bottom: 20px;
}
.plugin-icon svg { width: 30px; height: 30px; color: var(--purple-bright); }
.plugin-card h3 { font-size: 1.5rem; margin: 0 0 4px; letter-spacing: -0.02em; }
.plugin-card .tagline { color: var(--purple-bright); font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; }
.plugin-preview {
  position: relative;
  width: 100%;
  margin: 0 0 22px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #07040d;
  cursor: zoom-in;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}
.plugin-preview picture,
.plugin-preview img {
  width: 100%;
}
.plugin-preview img {
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.plugin-preview span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10, 6, 18, 0.82);
  border: 1px solid rgba(192, 132, 252, 0.42);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.plugin-preview:hover img { transform: scale(1.015); filter: brightness(1.08); }
.plugin-preview:hover span,
.plugin-preview:focus-visible span {
  opacity: 1;
  transform: none;
}
.plugin-preview:focus-visible {
  outline: 2px solid var(--purple-bright);
  outline-offset: 3px;
}
.plugin-card .desc { color: var(--text-dim); font-size: 0.98rem; margin-bottom: 22px; }

.feature-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 11px; }
.feature-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.92rem; color: var(--text-dim); }
.feature-list li svg { width: 18px; height: 18px; color: var(--purple-bright); flex-shrink: 0; margin-top: 2px; }

.card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  margin-top: auto;
}
@media (min-width: 1100px) {
  .card-actions { min-height: 150px; }
}
.dl-meta { font-size: 0.78rem; color: var(--text-faint); }

/* ---------- Full-size plugin screenshots ---------- */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 72px 20px 28px;
  background: rgba(4, 2, 8, 0.88);
  backdrop-filter: blur(16px);
  cursor: zoom-out;
}
.image-lightbox[hidden] { display: none; }
.image-lightbox picture {
  display: grid;
  place-items: center;
  width: min(100%, 1180px);
  max-height: 100%;
}
.lightbox-img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 112px);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #07040d;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  cursor: default;
}
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(21, 14, 38, 0.86);
  color: var(--text);
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(168, 85, 247, 0.2); }
.lightbox-close:focus-visible {
  outline: 2px solid var(--purple-bright);
  outline-offset: 3px;
}
.lightbox-close svg {
  width: 22px;
  height: 22px;
}

/* ---------- A/B demo players ---------- */
.demos-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .demos-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .demos-grid { grid-template-columns: repeat(3, 1fr); } }

.demo {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: 28px 26px;
}
.demo h3 { margin: 0 0 4px; font-size: 1.2rem; }
.demo .demo-sub { color: var(--text-faint); font-size: 0.85rem; margin-bottom: 22px; }

.ab-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 22px;
}
.ab-toggle button {
  border: 0;
  background: transparent;
  color: var(--text-dim);
  padding: 8px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.ab-toggle button[aria-pressed="true"] { color: #fff; background: var(--grad); }
.ab-toggle button:focus-visible { outline: 2px solid var(--purple-bright); outline-offset: 2px; }

.player { display: flex; align-items: center; gap: 16px; }
.play-btn {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 0;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.4);
  transition: transform 0.15s;
}
.play-btn:hover { transform: scale(1.06); }
.play-btn:focus-visible { outline: 2px solid var(--purple-bright); outline-offset: 3px; }
.play-btn svg { width: 22px; height: 22px; grid-area: 1 / 1; }
.play-btn .icon-pause { display: none; }
.play-btn.playing .icon-play { display: none; }
.play-btn.playing .icon-pause { display: block; }

.player-body { flex: 1; min-width: 0; }
.seek {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  cursor: pointer;
  overflow: hidden;
}
.seek-fill { position: absolute; inset: 0; width: 0%; background: var(--grad); border-radius: 999px; }
.player-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.75rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.now-label { font-weight: 600; color: var(--purple-bright); }

/* ---------- Install ---------- */
.install-method + .install-method { margin-top: 34px; }
.install-method-title {
  margin: 0 0 14px;
  color: var(--purple-bright);
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.install {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 36px;
  display: grid;
  gap: 28px;
}
@media (min-width: 760px) { .install { grid-template-columns: repeat(3, 1fr); } }
.step { display: grid; gap: 10px; }
.step .num {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border-strong);
  color: var(--purple-bright); font-weight: 700;
}
.step h4 { margin: 0; font-size: 1.02rem; }
.step p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }
.step code {
  font-family: var(--mono);
  font-size: 0.8rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--purple-bright);
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

/* ---------- Contacts ---------- */
#contacts { scroll-margin-top: 68px; }
.contacts-card {
  text-align: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--grad-soft);
  padding: 48px 24px;
}
.contacts-card .section-head { margin-bottom: 32px; }
.contact-details {
  display: grid;
  gap: 24px;
  max-width: 620px;
  margin: 0 auto;
}
.contact-details dt { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 6px; }
.contact-details dd { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.contact-details a { color: var(--purple-bright); text-decoration: underline; text-underline-offset: 4px; }
.contact-details a:hover { color: var(--text); }
.contact-details a:focus-visible { outline: 2px solid var(--purple-bright); outline-offset: 5px; }
.contact-status, .contact-note { color: var(--text-dim); font-size: 0.88rem; margin: 24px 0; }
@media (min-width: 600px) {
  .contact-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 46px 0 60px;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  text-align: center;
}
@media (min-width: 720px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-dim); font-size: 0.88rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--purple-bright); }
.footer-note { color: var(--text-faint); font-size: 0.8rem; max-width: 420px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .plugin-card:hover, .play-btn:hover { transform: none; }
}
