:root {
  --bg-primary: #07090e;
  --bg-secondary: #0d121c;
  --bg-card: #121824;
  --bg-card-hover: #172030;
  --border-subtle: #1e293b;
  --border-accent: rgba(0, 240, 255, 0.35);

  --accent-cyan: #00f0ff;
  --accent-green: #00e676;
  --accent-lime: #76ff03;
  --accent-amber: #ffd600;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --glow-cyan: 0 0 25px rgba(0, 240, 255, 0.25);
  --glow-green: 0 0 25px rgba(0, 230, 118, 0.25);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  /* Custom UI easing curves */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --transition: 0.2s var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Glows */
.bg-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  position: absolute;
  top: -150px;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
  filter: blur(80px);
}

.bg-glow-2 {
  position: absolute;
  top: 40%;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.06) 0%, transparent 70%);
  filter: blur(100px);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}

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

.nav-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  gap: 1px;
  line-height: 1;
  transition: transform 160ms var(--ease-out);
  transform-origin: left center;
}

.nav-brand:active {
  transform: scale(0.97);
}

.nav-brand:focus-visible,
.footer-logo-link:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.nav-logo-svg {
  height: 50px;
  width: auto;
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .nav-brand:hover,
  .footer-logo-link:hover {
    transform: scale(1.03);
  }
}

.brand-subtext {
  font-family: 'Inter', var(--font-sans);
  font-weight: 700;
  font-size: 0.65rem;
  color: #bee400;
  letter-spacing: -0.01em;
  line-height: 1;
  text-align: right;
  text-shadow: 0 0 10px rgba(190, 228, 0, 0.4);
  margin-top: -8px;
  position: relative;
  z-index: 1;
}

.footer-logo-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  gap: 1px;
  line-height: 1;
  margin-bottom: 14px;
  transition: transform 160ms var(--ease-out);
  transform-origin: left center;
}

.footer-logo-link:active {
  transform: scale(0.97);
}

.footer-logo-svg {
  height: 56px;
  width: auto;
  display: block;
}

.footer-logo-link .brand-subtext {
  font-size: 0.72rem;
}

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

nav.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  transition: color 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  nav.nav-links a:hover {
    color: var(--accent-cyan);
  }
}

nav.nav-links a:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
  border-radius: 2px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
  cursor: pointer;
  border: 1px solid transparent;
  user-select: none;
  -webkit-user-select: none;
}

.btn:active {
  transform: scale(0.97) !important;
}

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

.btn-primary {
  background: linear-gradient(135deg, #00e676, #00b0ff);
  color: #07090e;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.25);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 240, 255, 0.4);
  }
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
  }
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Hero Section */
.hero-section {
  padding: 65px 0 35px;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan) 80%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroFadeUp 400ms var(--ease-out) both;
  animation-delay: 40ms;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 36px;
  line-height: 1.6;
  animation: heroFadeUp 400ms var(--ease-out) both;
  animation-delay: 100ms;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 45px;
  animation: heroFadeUp 400ms var(--ease-out) both;
  animation-delay: 160ms;
}

/* Screenshot Preview Container */
.screenshot-wrapper {
  position: relative;
  max-width: 1050px;
  margin: 0 auto 60px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.3) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), var(--glow-cyan);
  transition: transform 200ms var(--ease-out), border-color 200ms var(--ease-out);
  animation: heroFadeUp 450ms var(--ease-out) both;
  animation-delay: 220ms;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screenshot-btn {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: block;
  width: 100%;
  border-radius: calc(var(--radius-lg) - 6px);
  overflow: hidden;
  transition: transform 160ms var(--ease-out);
}

.screenshot-btn:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
}

.screenshot-btn:active {
  transform: scale(0.99);
}

@media (hover: hover) and (pointer: fine) {
  .screenshot-wrapper:hover {
    border-color: rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
  }
}

.screenshot-img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 6px);
  display: block;
}

.screenshot-caption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Sections */
.section {
  padding: 70px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 40px;
}

.section-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-green);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* SoundCloud Audio Widget Container */
.audio-demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 950px;
  margin: 0 auto;
}

.audio-demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.audio-demo-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.audio-demo-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-green);
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.audio-demo-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.audio-demo-intro a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.audio-demo-intro a:hover {
  text-decoration: underline;
}

.soundcloud-frame-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
}

.soundcloud-frame-wrapper iframe {
  display: block;
  width: 100%;
  border: none;
}

/* CLAP & VST3 Standards Section */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.standard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 200ms var(--ease-out), border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (hover: hover) and (pointer: fine) {
  .standard-card:hover {
    border-color: rgba(0, 240, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  }
}

.standard-card.primary-standard {
  border-color: rgba(0, 230, 118, 0.35);
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.04) 0%, var(--bg-card) 40%);
}

.standard-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.standard-pill.clap {
  background: rgba(0, 230, 118, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.standard-pill.vst3 {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.standard-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.standard-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.standard-features-list {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
  margin-top: auto;
}

.standard-features-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.standard-features-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
}


/* Code Snippet / Quick Install */
.code-container {
  background: #04060a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin: 16px 0;
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #0d121c;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.copy-btn:active {
  transform: scale(0.95);
}

.copy-btn:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .copy-btn:hover {
    color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.05);
  }
}

.copy-btn-text {
  display: inline-block;
  transition: filter 100ms var(--ease-out), opacity 100ms var(--ease-out);
}

.copy-btn-text.transitioning {
  filter: blur(2px);
  opacity: 0.6;
}

.copy-btn.copied {
  color: var(--accent-green);
}

pre {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  overflow-x: auto;
  color: #38bdf8;
  line-height: 1.5;
}

/* Specifications Table */
.specs-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: 0 auto;
  max-width: 900px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.specs-table th, .specs-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.specs-table th {
  background: var(--bg-secondary);
  color: var(--text-main);
  font-weight: 700;
  width: 35%;
}

.specs-table td {
  color: var(--text-muted);
}

.specs-table tr:last-child td, .specs-table tr:last-child th {
  border-bottom: none;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  background: #040609;
  padding: 60px 0 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 12px;
}

.footer-links-group {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover {
    color: var(--accent-cyan);
  }
}

.footer-col a:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Lightbox Modal for Screenshot */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(4, 6, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms var(--ease-out), visibility 220ms var(--ease-out);
}

.modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-accent);
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.3);
  transform: scale(0.95);
  opacity: 0;
  transform-origin: center;
  transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out);
}

.modal.active .modal-content {
  transform: scale(1);
  opacity: 1;
}

/* Asymmetric timing: Exit is snappy (140ms) */
.modal:not(.active) {
  transition: opacity 140ms var(--ease-out), visibility 140ms var(--ease-out);
}

.modal:not(.active) .modal-content {
  transition: transform 140ms var(--ease-out), opacity 140ms var(--ease-out);
}

.modal-close {
  position: absolute;
  top: 25px;
  right: 35px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 36px;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.modal-close:active {
  transform: scale(0.92);
}

.modal-close:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .modal-close:hover {
    color: var(--accent-cyan);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .nav-actions {
    gap: 8px;
  }
  nav.nav-links {
    display: none;
  }
  .hero-section {
    padding: 40px 0 25px;
  }
  .hero-cta {
    flex-direction: column;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .specs-table th, .specs-table td {
    padding: 12px 16px;
  }
  .audio-demo-card {
    padding: 18px;
  }
}
