@import url('https://fonts.googleapis.com/css2?family=Courier+Prime&family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  /* Stark Monochrome Elemental Palette */
  --bg-primary: #000000;
  --bg-secondary: #080808;
  --bg-tertiary: #0f0f0f;
  
  --border-primary: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --border-active: rgba(255, 255, 255, 0.8);
  
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --text-tertiary: #444444;
  
  --accent: #ffffff;
  --accent-inverse: #000000;
  --accent-glow: rgba(255, 255, 255, 0.15);
  
  --glass-bg: rgba(10, 10, 10, 0.7);
  --glass-blur: blur(20px);
  
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Courier Prime', monospace;
  
  --header-height: 70px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-elastic: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Grids */
.ambient-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.008) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center center;
  mask-image: radial-gradient(circle 80% at 50% 50%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(circle 80% at 50% 50%, black 30%, transparent 90%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  transition: var(--transition-smooth);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-primary);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none;
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 0 3rem;
}

.header-fluid-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 350px;
  z-index: -1;
  pointer-events: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-dot {
  width: 10px;
  height: 10px;
  background: var(--text-primary);
  border-radius: 50%;
  animation: pulseLogo 3s infinite alternate ease-in-out;
}

@keyframes pulseLogo {
  0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
  100% { transform: scale(1.3); filter: drop-shadow(0 0 6px rgba(255,255,255,0.6)); }
}

nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

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

/* General Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 1px solid var(--text-primary);
}

.btn-primary:hover {
  background: transparent;
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem 2rem;
  position: relative;
}

.hero-tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  margin-bottom: 2rem;
  background: var(--bg-secondary);
}

.hero-title-wrap {
  filter: url(#gooey-elemental-text);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 5.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 40%, #888888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 10px;
}

.hero p.subtitle {
  max-width: 600px;
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
}

/* Catalog Marketplace Section */
.catalog-section {
  padding: 4rem 4rem 8rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Categorized Tabs */
.catalog-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--border-primary);
  padding-bottom: 1.5rem;
}

.filter-tab {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  color: var(--text-secondary);
  padding: 0.5rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.filter-tab.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* Catalog Cards Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2.5rem;
}

.catalog-card {
  background: rgba(8, 8, 8, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 380px;
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(1000px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.catalog-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.02);
}

/* Preview Area inside Card */
.card-preview-area {
  flex-grow: 1;
  background: #030303;
  border-bottom: 1px solid var(--border-primary);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Grid behind the animation in cards */
.card-preview-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(255,255,255,0.003) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.003) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 0;
}

.card-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg-secondary);
  z-index: 2;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-price {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--border-primary);
}

.card-price.free {
  color: #a3a3a3;
  border-color: rgba(255, 255, 255, 0.03);
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  height: 2.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-action-btn {
  width: 100%;
  font-size: 0.75rem;
  padding: 0.6rem 0;
}

/* Customizer details Modal overlay */
.customizer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.customizer-modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  width: 92%;
  max-width: 1200px;
  height: 85vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.9);
}

/* Modal Left: Preview Workspace */
.modal-preview-panel {
  background: #020202;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border-primary);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  border-color: var(--text-primary);
  transform: scale(1.05);
}

.modal-preview-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Modal Right: Editor Control Panel */
.modal-editor-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-secondary);
}

.editor-header {
  padding: 2rem 2rem 1.5rem 2rem;
  border-bottom: 1px solid var(--border-primary);
}

.editor-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.editor-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-primary);
}

.editor-scroll-area {
  flex-grow: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

/* Control Elements */
.editor-control-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.editor-control-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
}

.editor-control-group label span {
  font-family: var(--font-mono);
  color: var(--text-primary);
}

/* Custom Text and Code Tab Section */
.editor-tabs-header {
  display: flex;
  border-bottom: 1px solid var(--border-primary);
  background: var(--bg-tertiary);
}

.editor-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition-smooth);
}

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

.editor-tab-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
  background: var(--bg-secondary);
}

.editor-tabs-content {
  position: relative;
  flex-grow: 1;
  min-height: 250px;
  background: var(--bg-tertiary);
}

.tab-pane {
  display: none;
  padding: 1.5rem;
  height: 100%;
  overflow: auto;
}

.tab-pane.active {
  display: block;
}

/* Code block output formatting */
.code-block-wrap {
  position: relative;
  height: 100%;
  width: 100%;
}

.code-display {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: #020202;
  color: #dddddd;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-primary);
  white-space: pre-wrap;
  word-break: break-all;
  height: 100%;
  max-height: 280px;
  overflow: auto;
}

.btn-copy-code {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-copy-code:hover {
  border-color: var(--text-primary);
}

/* Locked Asset Blocker overlay in Customizer Drawer */
.locked-code-shield {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border-primary);
}

.locked-shield-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

/* Checkout Popover Panel (Simulating payment) */
.checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 300;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.checkout-modal.active {
  display: flex;
  opacity: 1;
}

.checkout-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 20px;
  width: 90%;
  max-width: 480px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.checkout-header {
  text-align: center;
}

.checkout-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Credit Card Animation Mockup */
.card-visualizer {
  height: 170px;
  position: relative;
  perspective: 1000px;
  margin-bottom: 1rem;
}

.card-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-visualizer.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.card-front {
  background: linear-gradient(135deg, #111111 0%, #262626 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.card-back {
  background: linear-gradient(135deg, #262626 0%, #111111 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  transform: rotateY(180deg);
}

.card-chip {
  width: 36px;
  height: 26px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}

.card-num-display {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  margin: 1.5rem 0 0.5rem 0;
}

.card-details-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

.card-magnetic-strip {
  height: 36px;
  background: black;
  width: 100%;
  margin-top: 10px;
}

.card-signature-area {
  background: #3a3a3a;
  height: 30px;
  width: 70%;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: white;
}

/* Card input fields wrapper */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-row-double {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.checkout-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.checkout-input-wrap label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.checkout-input-wrap input {
  background: #030303;
  border: 1px solid var(--border-primary);
  color: white;
  padding: 0.8rem;
  font-size: 0.9rem;
  border-radius: 6px;
  outline: none;
  transition: var(--transition-smooth);
}

.checkout-input-wrap input:focus {
  border-color: var(--text-primary);
}

/* Spinner / Loading Overlays */
.payment-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  z-index: 20;
  border-radius: 20px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.payment-loading-overlay.active {
  display: flex;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success Ticket Tick Animation */
.success-tick-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: scaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.success-tick-icon {
  font-size: 2rem;
  color: white;
}

@keyframes scaleUp {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* =========================================================================
   Individual Library Animations Styles
   ========================================================================= */

/* SVG Gooey Filters Containers */
.elemental-gooey-wrap {
  filter: url(#gooey-elemental-heavy);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.elemental-gooey-light-wrap {
  filter: url(#gooey-elemental-light);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* 1. Liquid Magnetic Button (Visual & Physics) */
.magnetic-btn-wrap {
  position: relative;
  filter: url(#gooey-elemental-heavy);
}

.wavemelt-magnetic-btn {
  background: white;
  color: black;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 1.1rem 2.4rem;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: transform 0.1s ease;
  outline: none;
}

.magnetic-blob {
  position: absolute;
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

/* 2. Ink Splat Loader (Viscous dots swirling) */
.wavemelt-ink-loader {
  width: 60px;
  height: 60px;
  position: relative;
}

.ink-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  top: 18px;
  left: 18px;
}

.ink-dot-1 {
  animation: inkRotate1 2.5s infinite ease-in-out;
}

.ink-dot-2 {
  animation: inkRotate2 2.5s infinite ease-in-out;
}

.ink-dot-3 {
  animation: inkRotate3 2.5s infinite ease-in-out;
}

@keyframes inkRotate1 {
  0%, 100% { transform: rotate(0deg) translate(0, 0) scale(1); }
  50% { transform: rotate(180deg) translate(28px, 0) scale(0.8); }
}

@keyframes inkRotate2 {
  0%, 100% { transform: rotate(120deg) translate(0, 0) scale(0.9); }
  50% { transform: rotate(300deg) translate(28px, 0) scale(1.1); }
}

@keyframes inkRotate3 {
  0%, 100% { transform: rotate(240deg) translate(0, 0) scale(1.1); }
  50% { transform: rotate(420deg) translate(28px, 0) scale(0.9); }
}

/* 5. Mercury Morphing Menu Icon */
.wavemelt-morphing-menu {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-primary);
  background: var(--bg-tertiary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.wavemelt-morphing-menu:hover {
  border-color: white;
}

.menu-bar {
  width: 18px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
              opacity 0.4s ease, 
              width 0.4s ease;
}

.wavemelt-morphing-menu.active .menu-bar-1 {
  transform: translateY(6px) rotate(45deg);
}

.wavemelt-morphing-menu.active .menu-bar-2 {
  opacity: 0;
  width: 0;
}

.wavemelt-morphing-menu.active .menu-bar-3 {
  transform: translateY(-6px) rotate(-45deg);
}

/* 6. Viscous Droplet Slider */
.wavemelt-viscous-slider-container {
  width: 80%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.slider-track-wrap {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.wavemelt-range-input {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
  position: relative;
  z-index: 5;
}

.wavemelt-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  cursor: grab;
  border: none;
}

.wavemelt-range-input::-webkit-slider-thumb:active {
  cursor: grabbing;
}

.slider-droplet-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  filter: url(#gooey-elemental-heavy);
}

.slider-dripping-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  top: -5px;
  transform: translate(-50%, 0);
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* Ledger Dropdown styling */
.ledger-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  width: 300px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
  z-index: 150;
  padding: 1.25rem;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.ledger-dropdown.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.ledger-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding: 0.4rem 0;
}

.ledger-item-row a {
  text-decoration: none;
  color: var(--text-primary);
}

.ledger-item-row a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-primary);
  background: #020202;
  padding: 4rem 4rem 3rem 4rem;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: white;
}

/* Responsive */
@media (max-width: 1024px) {
  header { padding: 0 2rem; }
  .modal-content {
    grid-template-columns: 1fr;
    height: 90vh;
    width: 95%;
  }
  .modal-preview-panel {
    height: 40%;
    border-right: none;
    border-bottom: 1px solid var(--border-primary);
  }
  .modal-editor-panel {
    height: 60%;
  }
  .hero-title { font-size: 4rem; }
  .catalog-filters { flex-wrap: wrap; }
}

@media (max-width: 768px) {
  header { padding: 0 1.5rem; }
  nav { display: none; }
  .catalog-section { padding: 3rem 1.5rem; }
  .hero-title { font-size: 3rem; }
  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
}

/* =========================================================================
   Interactive Liquid Background Canvas
   ========================================================================= */
.liquid-background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
  background: #000000;
  filter: blur(45px) contrast(170%);
  opacity: 0.65;
  transition: opacity 0.5s ease;
}

/* =========================================================================
   Custom trailing gooey cursor
   ========================================================================= */
.custom-cursor-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: difference;
}

.cursor-dot-container {
  filter: url(#gooey-elemental-light);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.cursor-dot {
  position: absolute;
  border-radius: 50%;
  background: #ffffff;
  pointer-events: none;
}

.cursor-dot-leader {
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              background 0.25s ease;
}

.cursor-dot-trailer {
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  z-index: 1;
  transform-origin: center center;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease;
}

.cursor-glow {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.35s ease;
  z-index: 0;
}

/* Hover States for Cursor */
.custom-cursor-wrap.hovering .cursor-dot-leader {
  width: 0px;
  height: 0px;
}

.custom-cursor-wrap.hovering .cursor-dot-trailer {
  width: 38px;
  height: 38px;
  background: #ffffff;
}

.custom-cursor-wrap.hovering .cursor-glow {
  width: 60px;
  height: 60px;
  border-color: rgba(255, 255, 255, 0.95);
  border-width: 1px;
}

/* Hide native cursor for modern layout, except when prefers-reduced-motion or touch */
@media (hover: hover) and (pointer: fine) {
  html, body, a, button, input, select, textarea, .btn, .filter-tab, .card-action-btn, .ledger-item-link, .menu-bar, .logo {
    cursor: none !important;
  }
}

/* =========================================================================
   Glass Card Glare and Tilt Transition
   ========================================================================= */
.card-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  transition: background 0.15s ease-out;
  border-radius: 12px;
}

/* =========================================================================
   Scroll reveals
   ========================================================================= */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  filter: blur(8px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}

/* Media query prefers-reduced-motion fallback */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .custom-cursor-wrap {
    display: none !important;
  }
  html, body, a, button, input, select, textarea, .btn, .filter-tab, .card-action-btn, .ledger-item-link, .menu-bar, .logo {
    cursor: auto !important;
  }
}

/* =========================================================================
   Magnetic Spring transition override
   ========================================================================= */
.logo, nav a, header .btn, .logo-dot {
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================================================
   Multi-Page Catalog Header Variation
   ========================================================================= */
header.static-header {
  background: rgba(8, 8, 8, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* =========================================================================
   Hero Canvas & Visualizer Wrappers
   ========================================================================= */
#hero-molten-canvas {
  display: block;
  width: 100%;
  height: 180px;
  max-width: 900px;
  margin: 0 auto;
  z-index: 10;
  position: relative;
}

.hero-grid-canvas-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

#hero-grid-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.22;
}

/* =========================================================================
   Home Page Interactive Playground Showcase
   ========================================================================= */
.playground-section {
  padding: 8rem 4rem;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(to bottom, #000000 0%, #020202 50%, #050505 100%);
  z-index: 10;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.playground-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.widget-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 28px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  min-height: 420px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}

.widget-card:hover {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
  transform: translateY(-6px);
}

.widget-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  display: inline-block;
  width: fit-content;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.widget-badge.pink {
  background: rgba(255, 42, 95, 0.08);
  color: #ff2a5f;
  border: 1px solid rgba(255, 42, 95, 0.15);
}

.widget-badge.cyan {
  background: rgba(0, 229, 117, 0.08);
  color: #00e575;
  border: 1px solid rgba(0, 229, 117, 0.15);
}

.widget-badge.purple {
  background: rgba(138, 43, 226, 0.08);
  color: #8a2be2;
  border: 1px solid rgba(138, 43, 226, 0.15);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 650;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.widget-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.widget-body {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.015);
  border-radius: 20px;
  padding: 2rem;
  min-height: 190px;
}

.droplet-slider-bar-widget {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.06);
  height: 4px;
  border-radius: 2px;
  outline: none;
}

.droplet-slider-bar-widget::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  z-index: 20;
  position: relative;
}

.glow-btn {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.glow-btn:hover {
  box-shadow: 0 0 25px rgba(255, 42, 95, 0.35);
  background: #ff2a5f !important;
  border-color: #ff2a5f !important;
}

/* =========================================================================
   Interactive Studio Workbench Layout
   ========================================================================= */
.workbench-page {
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  background-color: var(--bg-primary);
}

.workbench-container {
  display: grid;
  grid-template-columns: 280px 1fr 340px;
  height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
  position: relative;
  z-index: 10;
  overflow: hidden;
}

/* Left Sidebar: Library Docks */
.workbench-sidebar {
  background: rgba(8, 8, 8, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--border-primary);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  overflow-y: auto;
  z-index: 15;
}

.sidebar-header h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.workbench-sidebar .catalog-filters {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-primary);
}

.workbench-sidebar .filter-tab {
  text-align: left;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
}

.workbench-sidebar .filter-tab:hover {
  background: rgba(255, 255, 255, 0.03);
}

.workbench-sidebar .filter-tab.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.sidebar-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sidebar-item-btn {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  padding: 0.9rem 1.1rem;
  border-radius: 8px;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-item-btn:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.sidebar-item-btn.active {
  background: white;
  color: black;
  border-color: white;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.12);
}

.sidebar-item-btn .item-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.sidebar-item-btn.active .item-tag {
  background: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.6);
}

/* Center Screen: Viewport Sandbox */
.workbench-viewport {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background: #020202;
  padding: 2rem 3rem;
  overflow: hidden;
}

.viewport-header {
  margin-bottom: 1.5rem;
  z-index: 10;
}

.viewport-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.active-item-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
}

.active-item-price {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-primary);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.active-item-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.45;
}

.viewport-canvas-wrapper {
  flex-grow: 1;
  position: relative;
  border: 1px solid var(--border-primary);
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewport-canvas-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.005) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.005) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 0;
}

.viewport-canvas-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.viewport-canvas-container .magnetic-btn-wrap-widget,
.viewport-canvas-container .slider-dripping-wrap,
.viewport-canvas-container .mercury-menu-widget,
.viewport-canvas-container .elemental-gooey-wrap,
.viewport-canvas-container .elemental-gooey-light-wrap,
.viewport-canvas-container .wavemelt-viscous-slider-container {
  /* Dynamic scale adjustment inside workbench */
  transform: scale(1.1);
}

.viewport-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  z-index: 10;
}

.interaction-instruction {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.interaction-instruction::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e575;
  box-shadow: 0 0 8px #00e575;
}

.trigger-drawer-btn {
  font-size: 0.75rem;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
}

/* Right Sidebar: Controls Inspector & Exporter */
.workbench-editor {
  background: rgba(8, 8, 8, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-left: 1px solid var(--border-primary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 15;
}

.workbench-editor .editor-header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid var(--border-primary);
}

.workbench-editor .editor-header h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

.workbench-editor .editor-tabs-header {
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-primary);
  display: flex;
}

.workbench-editor .editor-tab-btn {
  flex: 1;
  padding: 0.85rem 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  border-bottom: 2px solid transparent;
}

.workbench-editor .editor-tab-btn.active {
  border-bottom-color: white;
  background: rgba(255, 255, 255, 0.01);
}

.workbench-editor .editor-tabs-content {
  flex-grow: 1;
  position: relative;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.workbench-editor .tab-pane {
  padding: 1.5rem;
  height: 100%;
  overflow-y: auto;
}

.workbench-editor .editor-scroll-area {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 0;
}

.workbench-editor .editor-footer {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border-primary);
  background: var(--bg-secondary);
}

.workbench-editor .code-display {
  height: 100%;
  max-height: 100%;
  white-space: pre;
  word-break: normal;
  overflow: auto;
}

/* Slide-up Marketing & About Drawer */
.marketing-drawer {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 500;
  background: #000000;
  border-top: 1px solid var(--border-primary);
  transition: bottom 0.65s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.marketing-drawer.active {
  bottom: 0;
}

.drawer-header-tab {
  height: 50px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 10;
  user-select: none;
}

.drawer-header-tab:hover {
  background: var(--bg-tertiary);
}

.drawer-pull-bar {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  margin-bottom: 0.4rem;
}

.drawer-content-scroll {
  flex-grow: 1;
  overflow-y: auto;
  padding: 4rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 5.5rem;
  scroll-behavior: smooth;
}

.marketing-hero {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.marketing-hero .m-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
  padding: 0.4rem 1.1rem;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
}

.marketing-hero h2 {
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #ffffff 40%, #888888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}

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

.marketing-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feat-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 2.2rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.feat-card:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.02);
}

.feat-icon {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

.feat-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: white;
}

.feat-card p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.marketing-faq {
  max-width: 1000px;
  margin: 0 auto;
  border-top: 1px solid var(--border-primary);
  padding-top: 5rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 4rem;
  margin-top: 2.5rem;
}

.faq-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: white;
  font-weight: 600;
}

.faq-item p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.faq-item code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.78rem;
  color: #ff2a5f;
}

/* Responsiveness overrides for the new workbench */
@media (max-width: 1200px) {
  .workbench-container {
    grid-template-columns: 240px 1fr 300px;
  }
}

@media (max-width: 1024px) {
  .workbench-page {
    overflow-y: auto;
    height: auto;
  }
  .workbench-container {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
  .workbench-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-primary);
    max-height: 280px;
  }
  .workbench-sidebar .catalog-filters {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.8rem;
  }
  .workbench-sidebar .filter-tab {
    width: auto;
    white-space: nowrap;
  }
  .sidebar-items-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.8rem;
  }
  .sidebar-item-btn {
    white-space: nowrap;
    padding: 0.6rem 1rem;
  }
  .workbench-viewport {
    height: 600px;
    padding: 1.5rem;
  }
  .workbench-editor {
    border-left: none;
    border-top: 1px solid var(--border-primary);
    height: 550px;
  }
  .drawer-content-scroll {
    padding: 3rem 2rem;
    gap: 4rem;
  }
  .marketing-features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* =========================================================================
   5 New Catalog Components Preview Layouts
   ========================================================================= */

/* 1. Viscous Slingshot Preview Styles */
.slingshot-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  background: #000000;
  overflow: hidden;
}

/* 2. Liquid Vortex Preview Styles */
.vortex-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  background: #000000;
  overflow: hidden;
}

/* 3. Molten Mercury Toggle Styles */
.mercury-toggle-wrap {
  position: relative;
  background: #000000;
  border-radius: 30px;
  overflow: hidden;
}
.mercury-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* 4. Viscous Text Cell Styles */
.text-bubble-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  background: #000000;
  overflow: hidden;
}
.bubble-text-layer {
  position: absolute;
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: 0.05em;
  mix-blend-mode: difference;
  color: #ffffff;
  pointer-events: none;
  z-index: 10;
}

/* 5. Glue Accordion Styles */
.liquid-accordion-container {
  width: 100%;
  height: 100%;
  position: relative;
  background: #000000;
  box-sizing: border-box;
}
.accordion-item-p {
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  background: #050505;
  position: relative;
  z-index: 10;
}
.accordion-header-p {
  padding: 14px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  user-select: none;
}
.accordion-content-p {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  color: #aaa;
  font-size: 0.8rem;
  padding: 0 14px;
}
.accordion-content-p p {
  padding-bottom: 14px;
  margin: 0;
}




