/* ============================================
   DIGITALIST — Design System & Styles
   A portal to another dimension of sound
   ============================================ */

/* --- Custom Properties --- */
:root {
  color-scheme: dark;

  /* Layout / device safe areas */
  --nav-height: calc(72px + env(safe-area-inset-top, 0px));
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* Colors – extracted from Main Website Artwork palette */
  --bg-deep: #050510;
  --bg: #0a0a1a;
  --bg-surface: #0f0f24;
  --bg-card: #12122a;
  --bg-card-hover: #1a1a3a;

  --border: rgba(100, 140, 255, 0.12);
  --border-glow: rgba(80, 160, 255, 0.25);

  --text-primary: #e8e4f0;
  --text-secondary: #9a95b0;
  --text-muted: #6a6580;

  --accent-blue: #4da8ff;
  --accent-cyan: #00d4ff;
  --accent-purple: #8b6bb8;
  --accent-violet: #6a4dcc;
  --accent-gold: #d4a853;
  --accent-amber: #e8a030;
  --accent-pink: #c45c8a;
  --accent-green: #3ddc97;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0a0a2e 0%, #1a0a3a 30%, #0a1a3a 60%, #050520 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(77, 168, 255, 0.15) 0%, transparent 70%);
  --gradient-card: linear-gradient(145deg, rgba(20, 20, 50, 0.8), rgba(10, 10, 30, 0.9));
  --gradient-accent: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));

  /* Typography */
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-ui: 'Space Grotesk', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;

  /* Sizing */
  --container: min(1200px, 90vw);
  --container-wide: min(1400px, 94vw);

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-glow: 0 0 30px rgba(77, 168, 255, 0.15), 0 0 60px rgba(77, 168, 255, 0.05);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 12px 48px rgba(77, 168, 255, 0.12), 0 4px 16px rgba(0, 0, 0, 0.3);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition: 0.4s var(--ease-out);
  --transition-slow: 0.8s var(--ease-out);
}


/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1rem);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

body.menu-open {
  overflow: hidden;
}

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

picture {
  display: contents;
}

/* Keyboard focus stays visible on every interactive element. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-blue);
}

::selection {
  background: rgba(77, 168, 255, 0.3);
  color: #fff;
}


/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: max(var(--space-lg), env(safe-area-inset-left, 0px));
  padding-right: max(var(--space-lg), env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 5, 16, 0.75);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.nav.scrolled {
  background: rgba(5, 5, 16, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav__brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text-primary);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav__links a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text-primary);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  touch-action: manipulation;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav__toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


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

/* ============================================
   HERO / HEADER SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: clamp(140px, 22vh, 230px);
  padding-bottom: var(--space-xl);
  overflow: hidden;
}

.hero__artwork {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The artwork wordmark is centered at ~50% of the image width.
     Keeping this centered keeps the whole wordmark visible even in
     narrow desktop windows just above the stacked-hero threshold. */
  object-position: 50% top;
}

.hero__artwork::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 16, 0.2) 0%,
    rgba(5, 5, 16, 0.05) 25%,
    rgba(5, 5, 16, 0.35) 65%,
    rgba(5, 5, 16, 1) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-md) var(--space-lg);
  max-width: 860px;
}

.hero__subtitle {
  font-family: var(--font-ui);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 4px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(5, 5, 16, 0.95), 0 0 25px rgba(0, 212, 255, 0.4);
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: #c5c0d8;
  font-style: italic;
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 10px rgba(5, 5, 16, 0.95);
}

.hero__cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}


/* ============================================
   STACKED HERO (WORDMARK-SAFE)
   The wide artwork crop only shows the full DIGITALIST
   wordmark on sufficiently wide viewports. Whenever the
   viewport is portrait/square, short, or phone-sized, the
   artwork becomes a 4:3 band below the navigation and the
   hero copy flows underneath it.
   ============================================ */

@media (max-aspect-ratio: 6/5),
       (max-height: 500px) and (orientation: landscape),
       (max-width: 768px) {
  .hero {
    padding-top: var(--nav-height);
    padding-bottom: var(--space-lg);
  }

  .hero__artwork {
    position: relative;
    inset: auto;
    width: 100%;
    height: min(75vw, 60vh);
    height: min(75vw, 60svh);
    flex: 0 0 auto;
  }

  .hero__artwork img {
    object-position: 50% top;
  }

  .hero__artwork::after {
    background: linear-gradient(
      to bottom,
      rgba(5, 5, 16, 0) 0%,
      rgba(5, 5, 16, 0) 55%,
      rgba(5, 5, 16, 0.5) 82%,
      rgba(5, 5, 16, 1) 100%
    );
  }

  .hero__content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: var(--space-lg) var(--space-md);
  }

  .hero__subtitle {
    font-size: clamp(0.95rem, 3.2vw, 1.2rem);
    letter-spacing: 2px;
  }

  .hero__tagline {
    margin-bottom: var(--space-md);
  }
}


/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  min-height: 44px;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
}

.btn--primary {
  background: var(--gradient-accent);
  color: #050510;
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(0, 212, 255, 0.35);
  color: #050510;
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(8px);
}

.btn--outline:hover {
  background: rgba(77, 168, 255, 0.08);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.btn--ghost {
  background: transparent;
  color: var(--accent-cyan);
  padding: 0.5rem 0;
  letter-spacing: 1.5px;
}

.btn--ghost:hover {
  color: var(--text-primary);
}

.btn--ghost::after {
  content: ' →';
  transition: transform var(--transition-fast);
  display: inline-block;
}

.btn--ghost:hover::after {
  transform: translateX(4px);
}

.btn--large {
  padding: 1.1rem 3rem;
  font-size: 0.95rem;
}

.btn--gold {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
  color: #050510;
  box-shadow: 0 4px 24px rgba(212, 168, 83, 0.25);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(212, 168, 83, 0.35);
  color: #050510;
}


/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section--dark {
  background: var(--bg);
}

.section--surface {
  background: var(--bg-surface);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.container--wide {
  width: var(--container-wide);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section__kicker {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: var(--space-sm);
  display: block;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Decorative line */
.section__line {
  width: 60px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 1px;
  margin: var(--space-md) auto;
}


/* ============================================
   ABOUT SECTION
   ============================================ */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about__lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.9;
  border-left: 3px solid var(--accent-cyan);
  padding-left: var(--space-md);
}

.about__body p {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.about__mission {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--accent-gold);
  padding: var(--space-md);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: var(--radius-md);
  background: rgba(212, 168, 83, 0.05);
  text-align: center;
}

.about__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/10;
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about__image:hover img {
  transform: scale(1.03);
}

.about__image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  pointer-events: none;
}

/* Social links */
.socials {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-fast);
}

.socials a:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(77, 168, 255, 0.06);
}


/* ============================================
   MUSIC SECTION
   ============================================ */

.music__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.release-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  display: block;
}

.release-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-hover);
  color: var(--text-primary);
}

.release-card__image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.release-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.release-card:hover .release-card__image img {
  transform: scale(1.05);
}

.release-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 16, 0.8) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity var(--transition);
}

.release-card:hover .release-card__overlay {
  opacity: 1;
}

.release-card__play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #050510;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.release-card__info {
  padding: var(--space-md);
}

.release-card__tag {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
}

.release-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.release-card__artist {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.release-card__year {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* --- Video Grid (Watch Section) --- */
.watch-section {
  margin-top: var(--space-2xl);
}

.watch-section__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.watch-section__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.watch-section__subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: var(--space-lg);
  max-width: 1100px;
  margin: 0 auto;
}

.video-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.video-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.video-card__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.video-card__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-card__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card__info {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.video-card__tag {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.video-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-primary);
}

.video-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}


/* ============================================
   PLUGINS / TOOLS SECTION
   ============================================ */

.plugin-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.plugin-showcase--reverse {
  direction: rtl;
}

.plugin-showcase--reverse > * {
  direction: ltr;
}

.plugin__gallery {
  display: grid;
  gap: var(--space-sm);
}

.plugin__gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.plugin__gallery-main img {
  width: 100%;
  height: auto;
  display: block;
}

.plugin__gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xs);
}

.plugin__thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  aspect-ratio: 16/10;
}

.plugin__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plugin__thumb:hover,
.plugin__thumb.active {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.2);
}

.plugin__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.plugin__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.plugin__tag {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.plugin__status {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.08);
}

.plugin__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.3;
}

.plugin__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.plugin__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.plugin__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.plugin__feature-icon {
  color: var(--accent-cyan);
  font-size: 0.85rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.plugin__price-section,
.plugin__notify {
  width: 100%;
  max-width: 480px;
  padding: var(--space-md);
}

.plugin__price-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  background: rgba(212, 168, 83, 0.06);
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-radius: var(--radius-md);
  margin-top: var(--space-sm);
}

.plugin__price-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.35rem;
}

.plugin__price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.plugin__price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-gold);
}

.plugin__price-was {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.plugin__currency {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.plugin__price-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.plugin__buy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
  margin-left: 0;
}

.plugin__buy .btn {
  width: 100%;
  max-width: 320px;
  justify-content: center;
}

.plugin__buy-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

.plugin__notify {
  margin-top: var(--space-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(100, 140, 255, 0.04);
}

.plugin__notify-title {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.plugin__notify-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.plugin__notify-note {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.notify-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.notify-form input[type="email"] {
  flex: 1 1 220px;
  min-height: 48px;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  caret-color: var(--accent-cyan);
}

.notify-form input[type="email"]:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.plugin__shop-status {
  margin-top: var(--space-sm);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  background: rgba(100, 140, 255, 0.06);
  border: 1px solid var(--border);
}

.plugin__shop-status[data-kind="error"] {
  color: #f0b7b7;
  background: rgba(220, 80, 80, 0.08);
  border-color: rgba(220, 80, 80, 0.25);
}

.plugin__shop-status[data-kind="test"] {
  color: var(--accent-gold);
  background: rgba(212, 168, 83, 0.08);
  border-color: rgba(212, 168, 83, 0.25);
}

.plugin__shop-status[data-kind="success"] {
  color: #b7f0c8;
  background: rgba(80, 200, 120, 0.08);
  border-color: rgba(80, 200, 120, 0.25);
}

.plugin__purchase-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem 1rem;
  margin-top: var(--space-sm);
}

.plugin__fact {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.plugin__fact-icon {
  color: var(--accent-gold);
  font-size: 0.7rem;
  margin-top: 0.28rem;
  flex-shrink: 0;
}

/* Interface details (UI + modulation matrix) */
.interface-details {
  margin-top: var(--space-2xl);
}

.interface-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
}

.interface-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.interface-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.interface-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Specs grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.spec-item {
  text-align: center;
  padding: var(--space-sm);
}

.spec-item__label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.spec-item__value {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
}


/* ============================================
   CONTACT SECTION
   ============================================ */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact__info p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.contact__channel {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.contact__channel-icon {
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group select,
.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  outline: none;
  resize: vertical;
  -webkit-appearance: none;
  appearance: none;
  caret-color: var(--accent-cyan);
}

.form-group select,
.form-group input {
  min-height: 48px;
}

.form-group select {
  padding-right: 2.75rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%239a95b0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 12px 8px;
}

.form-group select option {
  color: var(--text-primary);
  background: var(--bg-card);
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group textarea {
  min-height: 140px;
}

.form__success {
  display: none;
  text-align: center;
  padding: var(--space-lg);
  color: var(--accent-green);
  font-family: var(--font-ui);
  font-weight: 500;
  letter-spacing: 1px;
}

.form__success.show {
  display: block;
}

.form__error {
  margin-top: var(--space-sm);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #f0b7b7;
  background: rgba(220, 80, 80, 0.08);
  border: 1px solid rgba(220, 80, 80, 0.25);
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}


/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0 calc(var(--space-xl) + var(--safe-bottom));
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__copy a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.footer__copy a:hover {
  color: var(--accent-cyan);
}

.footer__links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.footer__links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--accent-cyan);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  list-style: none;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.footer__legal a {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer__legal a:hover {
  color: var(--accent-cyan);
}


/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.5s; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   PARTICLES / AMBIENT EFFECTS
   ============================================ */

.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.ambient-glow__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.08;
  animation: float-orb 20s infinite ease-in-out;
}

.ambient-glow__orb:nth-child(1) {
  width: 600px;
  height: 600px;
  background: var(--accent-blue);
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.ambient-glow__orb:nth-child(2) {
  width: 500px;
  height: 500px;
  background: var(--accent-purple);
  top: 50%;
  right: -10%;
  animation-delay: -7s;
}

.ambient-glow__orb:nth-child(3) {
  width: 400px;
  height: 400px;
  background: var(--accent-cyan);
  bottom: 10%;
  left: 30%;
  animation-delay: -14s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(30px, -40px); }
  50% { transform: translate(-20px, 20px); }
  75% { transform: translate(40px, 30px); }
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .about__grid,
  .plugin-showcase,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .plugin-showcase--reverse {
    direction: ltr;
  }

  .about__image {
    order: -1;
  }

  /* Horizontal reveal offsets cause a few pixels of sideways
     overflow on narrow screens; use a vertical reveal instead. */
  .reveal-left,
  .reveal-right {
    transform: translateY(30px);
  }

  .reveal-left.visible,
  .reveal-right.visible {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 16, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(1.25rem, 5vh, 2.5rem);
    padding: clamp(2rem, 8vh, 4rem) var(--space-md) calc(var(--space-lg) + var(--safe-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 1.25rem;
    font-size: 1.05rem;
    letter-spacing: 2px;
  }

  .nav__toggle {
    display: flex;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .section__header {
    margin-bottom: var(--space-xl);
  }

  .section__title {
    letter-spacing: 2px;
  }

  .section__subtitle {
    font-size: 1rem;
  }

  .about__lead {
    font-size: 1.1rem;
  }

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

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

  .plugin__price {
    font-size: 2rem;
  }

  .plugin__buy {
    align-items: center;
  }

  .plugin__buy-note {
    text-align: center;
  }

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

  .footer__content {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xs) var(--space-md);
  }

  .footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.25rem 0.4rem;
  }
}

@media (max-width: 480px) {
  .hero__cta {
    flex-direction: column;
    align-items: center;
  }

  .hero__subtitle {
    letter-spacing: 1.5px;
  }

  .btn {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }

  .socials {
    justify-content: center;
  }

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

@media (pointer: coarse) {
  .socials a,
  .footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .socials a {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }
}


/* ============================================
   SUCCESS / ORDER PAGE
   ============================================ */

.success {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + var(--space-2xl)) 0 calc(var(--space-2xl) + var(--safe-bottom));
}

.success__card {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-xl);
  text-align: center;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.success__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.3;
  margin-top: var(--space-sm);
}

.success__message {
  margin-top: var(--space-sm);
  color: var(--text-secondary);
  line-height: 1.8;
}

.success__details {
  display: grid;
  gap: 0.85rem;
  margin: var(--space-lg) 0;
  padding: var(--space-md) 0;
  text-align: left;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.success__details > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
}

.success__details dt {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.success__details dd {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text-primary);
  text-align: right;
  overflow-wrap: anywhere;
}

.success__details code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 1px;
  color: var(--accent-gold);
}

.success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.success__message + .success__actions {
  margin-top: var(--space-lg);
}

.success__hint a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.success__retry {
  margin-top: var(--space-sm);
}

.success__hint {
  margin-top: var(--space-lg);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.success__card[data-state="error"] {
  border-color: rgba(220, 80, 80, 0.3);
}

@media (max-width: 480px) {
  .success__card {
    padding: var(--space-lg) var(--space-md);
  }

  .success__details > div {
    flex-direction: column;
    gap: 0.15rem;
  }

  .success__details dd {
    text-align: left;
  }
}


/* ============================================
   REDUCED MOTION
   ============================================ */

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

  *, *::before, *::after {
    animation-duration: 0.01s !important;
    transition-duration: 0.01s !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .stagger > * {
    opacity: 1;
    transform: none;
  }

  .ambient-glow {
    display: none;
  }
}
