/* ============================================================
   UI UX PRO MAX — SHOWCASE GALLERY
   Design System + Gallery Styles
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Bebas+Neue&family=Poppins:wght@400;500;600;700&family=Fredoka:wght@400;500;600;700&family=Lora:wght@400;500;600;700&family=Space+Mono:wght@400;700&family=Orbitron:wght@400;500;600;700&family=Russo+One&family=Syne:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700&family=Press+Start+2P&family=Cormorant+Garamond:wght@400;500;600;700&family=Caveat:wght@400;500;600;700&family=Abril+Fatface&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Background */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(255, 255, 255, 0.06);

  /* Text */
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b80;
  --text-accent: #7c5cfc;

  /* Accent */
  --accent-primary: #7c5cfc;
  --accent-secondary: #00d4ff;
  --accent-gradient: linear-gradient(135deg, #7c5cfc, #00d4ff);
  --accent-glow: 0 0 30px rgba(124, 92, 252, 0.3);

  /* Borders */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.12);

  /* Spacing */
  --section-padding: 6rem 0;
  --container-max: 1400px;
  --gap: 1.5rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 3px;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- Section ---------- */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem;
  background: rgba(124, 92, 252, 0.12);
  border: 1px solid rgba(124, 92, 252, 0.25);
  border-radius: 100px;
  color: var(--accent-primary);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .75rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Sticky Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: .75rem 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.nav-logo span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: .25rem;
  list-style: none;
}

.nav-links a {
  padding: .5rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.15), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.25rem;
  background: rgba(124, 92, 252, 0.1);
  border: 1px solid rgba(124, 92, 252, 0.3);
  border-radius: 100px;
  color: var(--accent-primary);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 0 rgba(124, 92, 252, 0);
  }

  50% {
    box-shadow: 0 0 20px rgba(124, 92, 252, 0.2);
  }
}

.hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero h1 .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

/* ---------- Stats Grid ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.stat-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--accent-glow);
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .25rem;
  font-weight: 500;
}

/* ---------- Filter Bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: .5rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-glass);
}

.filter-btn.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

/* ---------- Card Grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--gap);
}

.card-grid-sm {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card-grid-lg {
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

/* ---------- Style Card ---------- */
.style-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
  display: flex;
  flex-direction: column;
}

.style-card:hover {
  border-color: rgba(124, 92, 252, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(124, 92, 252, 0.1);
}

.style-card-preview {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.style-card-info {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  border-top: 1px solid var(--border-color);
}

.style-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.style-card-category {
  display: inline-flex;
  padding: .2rem .6rem;
  font-size: .7rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
  width: fit-content;
}

.cat-general {
  background: rgba(124, 92, 252, 0.15);
  color: #a78bfa;
}

.cat-landing {
  background: rgba(0, 212, 255, 0.15);
  color: #00d4ff;
}

.cat-dashboard {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.cat-modern {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

.style-card-desc {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.style-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: auto;
}

.style-tag {
  padding: .15rem .5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  font-size: .7rem;
  color: var(--text-muted);
}

.style-card-colors {
  display: flex;
  gap: .35rem;
  margin-top: .5rem;
}

.color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.style-card-meta {
  display: flex;
  gap: .75rem;
  font-size: .72rem;
  color: var(--text-muted);
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .15rem .45rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.meta-badge.good {
  color: #22c55e;
}

.meta-badge.warn {
  color: #f59e0b;
}

.meta-badge.bad {
  color: #ef4444;
}

/* ============================================================
   STYLE PREVIEW BACKGROUNDS
   Each style card has a unique mini-demo background
   ============================================================ */

/* --- Minimalism --- */
.preview-minimalism {
  background: #ffffff;
}

.preview-minimalism .demo-el {
  width: 200px;
  background: #fff;
  padding: 1rem;
}

.preview-minimalism .demo-line {
  height: 3px;
  background: #000;
  margin-bottom: .5rem;
  border-radius: 0;
}

.preview-minimalism .demo-line-sm {
  height: 2px;
  width: 60%;
  background: #808080;
  margin-bottom: .35rem;
}

/* --- Neumorphism --- */
.preview-neumorphism {
  background: #e0e0e0;
}

.preview-neumorphism .demo-btn {
  padding: .75rem 2rem;
  border-radius: 14px;
  background: #e0e0e0;
  color: #555;
  font-weight: 600;
  font-size: .85rem;
  box-shadow: -5px -5px 15px rgba(255, 255, 255, 0.8), 5px 5px 15px rgba(0, 0, 0, 0.15);
  border: none;
}

/* --- Glassmorphism --- */
.preview-glassmorphism {
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
}

.preview-glassmorphism .demo-glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  color: #fff;
  width: 200px;
}

.preview-glassmorphism .demo-glass-title {
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: .35rem;
}

.preview-glassmorphism .demo-glass-text {
  font-size: .72rem;
  opacity: .8;
}

/* --- Brutalism --- */
.preview-brutalism {
  background: #ffff00;
}

.preview-brutalism .demo-brutal {
  background: #fff;
  border: 3px solid #000;
  padding: 1rem 1.5rem;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: #000;
  box-shadow: 5px 5px 0 #000;
}

/* --- 3D Hyperrealism --- */
.preview-3d {
  background: linear-gradient(135deg, #001f3f, #0a4c7d);
}

.preview-3d .demo-3d-obj {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #FFD700, #C0C0C0, #228B22);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 -5px 15px rgba(0, 0, 0, 0.3), inset 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* --- Vibrant Block --- */
.preview-vibrant {
  background: #1a1a2e;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 1.5rem !important;
}

.preview-vibrant .demo-block {
  border-radius: 8px;
  height: 80px;
}

.preview-vibrant .demo-block:nth-child(1) {
  background: #39FF14;
}

.preview-vibrant .demo-block:nth-child(2) {
  background: #BF00FF;
}

.preview-vibrant .demo-block:nth-child(3) {
  background: #FF1493;
}

.preview-vibrant .demo-block:nth-child(4) {
  background: #00FFFF;
}

/* --- Dark Mode OLED --- */
.preview-dark-oled {
  background: #000000;
}

.preview-dark-oled .demo-dark-card {
  background: #121212;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  width: 200px;
}

.preview-dark-oled .demo-dark-accent {
  width: 30px;
  height: 3px;
  background: #39FF14;
  border-radius: 2px;
  margin-bottom: .5rem;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

.preview-dark-oled .demo-dark-title {
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: .25rem;
}

.preview-dark-oled .demo-dark-text {
  color: #666;
  font-size: .7rem;
}

/* --- Accessible & Ethical --- */
.preview-accessible {
  background: #ffffff;
}

.preview-accessible .demo-a11y {
  padding: 1rem;
  width: 220px;
}

.preview-accessible .demo-a11y-label {
  font-size: .7rem;
  font-weight: 600;
  color: #333;
  margin-bottom: .3rem;
}

.preview-accessible .demo-a11y-input {
  width: 100%;
  padding: .5rem;
  border: 2px solid #333;
  border-radius: 4px;
  font-size: .85rem;
  outline: 3px solid #0066ff;
  outline-offset: 2px;
  background: #fff;
  color: #000;
}

/* --- Claymorphism --- */
.preview-claymorphism {
  background: #f0e6ff;
}

.preview-claymorphism .demo-clay {
  background: linear-gradient(145deg, #FDBCB4, #ffe0d6);
  border: 3px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  box-shadow: inset -2px -2px 8px rgba(0, 0, 0, 0.06), 4px 4px 12px rgba(0, 0, 0, 0.1);
  color: #5a3e2d;
  font-weight: 600;
  font-size: .85rem;
}

/* --- Aurora UI --- */
.preview-aurora {
  background: linear-gradient(135deg, #0080FF, #8B00FF, #FF1493, #00FFFF);
  background-size: 300% 300%;
  animation: aurora-flow 6s ease-in-out infinite;
}

@keyframes aurora-flow {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.preview-aurora .demo-aurora-text {
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* --- Retro Futurism --- */
.preview-retro {
  background: #1A1A2E;
  position: relative;
}

.preview-retro::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
}

.preview-retro .demo-retro-text {
  font-family: 'Space Mono', monospace;
  color: #FF006E;
  font-size: 1.1rem;
  font-weight: 700;
  text-shadow: 0 0 10px #FF006E, 0 0 20px #FF006E;
  position: relative;
  z-index: 1;
}

/* --- Flat Design --- */
.preview-flat {
  background: #fff;
  display: flex;
  gap: 8px;
  padding: 1.5rem !important;
}

.preview-flat .demo-flat-card {
  width: 80px;
  height: 100px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}

.preview-flat .demo-flat-card:nth-child(1) {
  background: #2196F3;
  color: #fff;
}

.preview-flat .demo-flat-card:nth-child(2) {
  background: #FF5722;
  color: #fff;
}

.preview-flat .demo-flat-card:nth-child(3) {
  background: #4CAF50;
  color: #fff;
}

.preview-flat .demo-flat-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.preview-flat .demo-flat-label {
  font-size: .6rem;
  font-weight: 600;
}

/* --- Skeuomorphism --- */
.preview-skeuomorphism {
  background: linear-gradient(180deg, #c8b99a, #8b7355);
}

.preview-skeuomorphism .demo-skeu {
  background: linear-gradient(180deg, #f5f0e6, #d4c9b5);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #3a2e1e;
  font-weight: 600;
  font-size: .85rem;
}

/* --- Liquid Glass --- */
.preview-liquid {
  background: linear-gradient(135deg, #ff006e, #8338ec, #3a86ff, #06d6a0);
  background-size: 400% 400%;
  animation: aurora-flow 8s ease-in-out infinite;
}

.preview-liquid .demo-liquid-el {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morph 6s ease-in-out infinite;
}

@keyframes morph {

  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }

  50% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
}

/* --- Motion Driven --- */
.preview-motion {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

.preview-motion .demo-motion-el {
  width: 50px;
  height: 50px;
  background: var(--accent-gradient);
  border-radius: 12px;
  animation: bounce-motion 2s ease-in-out infinite;
}

@keyframes bounce-motion {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-20px) rotate(5deg);
  }

  75% {
    transform: translateY(10px) rotate(-5deg);
  }
}

/* --- Micro-interactions --- */
.preview-micro {
  background: #f8f9fa;
}

.preview-micro .demo-toggle {
  width: 52px;
  height: 28px;
  background: #22c55e;
  border-radius: 14px;
  position: relative;
  cursor: pointer;
}

.preview-micro .demo-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

/* --- Zero Interface --- */
.preview-zero {
  background: #fafafa;
}

.preview-zero .demo-zero-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.1), rgba(0, 212, 255, 0.1));
  border: 2px solid rgba(124, 92, 252, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-voice 2s ease-in-out infinite;
}

@keyframes pulse-voice {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.preview-zero .demo-zero-mic {
  width: 16px;
  height: 24px;
  background: var(--accent-primary);
  border-radius: 8px;
}

/* --- Soft UI Evolution --- */
.preview-softui {
  background: #eef2f7;
}

.preview-softui .demo-soft-card {
  background: #eef2f7;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: -4px -4px 10px rgba(255, 255, 255, 0.8), 4px 4px 10px rgba(0, 0, 0, 0.08);
  width: 180px;
}

.preview-softui .demo-soft-bar {
  height: 6px;
  background: linear-gradient(90deg, #87CEEB, #90EE90);
  border-radius: 3px;
  margin-top: .5rem;
  width: 70%;
}

/* --- Neubrutalism --- */
.preview-neubrutalism {
  background: #FFEB3B;
}

.preview-neubrutalism .demo-neub {
  background: #fff;
  border: 3px solid #000;
  border-radius: 0;
  padding: .75rem 1.5rem;
  font-weight: 700;
  font-size: .9rem;
  color: #000;
  box-shadow: 4px 4px 0 #000;
}

/* --- Bento Grid --- */
.preview-bento {
  background: #F5F5F7;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  padding: 1rem !important;
}

.preview-bento .demo-bento-cell {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.preview-bento .demo-bento-cell:first-child {
  grid-column: 1 / 3;
}

/* --- Y2K --- */
.preview-y2k {
  background: linear-gradient(135deg, #FF69B4, #00FFFF, #9400D3);
}

.preview-y2k .demo-y2k-el {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1));
  border-radius: 20px;
  padding: .75rem 1.5rem;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* --- Cyberpunk --- */
.preview-cyberpunk {
  background: #0D0D0D;
  position: relative;
}

.preview-cyberpunk::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 255, 0, 0.03), rgba(0, 255, 0, 0.03) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
}

.preview-cyberpunk .demo-cyber-text {
  font-family: 'Space Mono', monospace;
  color: #00FF00;
  font-size: 1rem;
  font-weight: 700;
  text-shadow: 0 0 10px #00FF00, 0 0 20px #00FF00;
  position: relative;
  z-index: 1;
}

/* --- Organic Biophilic --- */
.preview-organic {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.preview-organic .demo-organic-blob {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #228B22, #87CEEB);
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  opacity: 0.7;
}

/* --- AI Native --- */
.preview-ai {
  background: #f9fafb;
}

.preview-ai .demo-ai-chat {
  width: 220px;
}

.preview-ai .demo-ai-bubble {
  background: #f3f4f6;
  border-radius: 12px 12px 12px 4px;
  padding: .5rem .75rem;
  font-size: .7rem;
  color: #374151;
  margin-bottom: .35rem;
  max-width: 160px;
}

.preview-ai .demo-ai-bubble-user {
  background: #6366F1;
  color: #fff;
  border-radius: 12px 12px 4px 12px;
  margin-left: auto;
}

.preview-ai .demo-ai-typing {
  display: flex;
  gap: 4px;
  padding: .5rem;
}

.preview-ai .demo-ai-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ca3af;
  animation: typing-dot 1.4s ease-in-out infinite;
}

.preview-ai .demo-ai-dot:nth-child(2) {
  animation-delay: .2s;
}

.preview-ai .demo-ai-dot:nth-child(3) {
  animation-delay: .4s;
}

@keyframes typing-dot {

  0%,
  100% {
    opacity: .3;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

/* --- Memphis --- */
.preview-memphis {
  background: #fff;
  position: relative;
  overflow: hidden;
}

.preview-memphis .demo-memphis-tri {
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 45px solid #FF71CE;
  position: absolute;
  top: 20px;
  left: 30px;
  transform: rotate(15deg);
}

.preview-memphis .demo-memphis-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFCE5C;
  position: absolute;
  bottom: 30px;
  right: 40px;
}

.preview-memphis .demo-memphis-squiggle {
  width: 60px;
  height: 30px;
  border: 4px solid #86CCCA;
  border-radius: 0 0 50px 50px;
  border-top: none;
  position: absolute;
  top: 50px;
  right: 70px;
  transform: rotate(-10deg);
}

/* --- Vaporwave --- */
.preview-vaporwave {
  background: linear-gradient(180deg, #FF71CE, #01CDFE, #B967FF);
}

.preview-vaporwave .demo-vapor-text {
  font-family: 'Outfit', sans-serif;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
  letter-spacing: .1em;
}

/* --- Dimensional Layering --- */
.preview-dimensional {
  background: #f0f0f5;
  perspective: 500px;
}

.preview-dimensional .demo-dim-stack {
  position: relative;
  width: 150px;
  height: 100px;
}

.preview-dimensional .demo-dim-layer {
  position: absolute;
  width: 130px;
  height: 80px;
  background: #fff;
  border-radius: 12px;
}

.preview-dimensional .demo-dim-layer:nth-child(1) {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  top: 20px;
  left: 0;
}

.preview-dimensional .demo-dim-layer:nth-child(2) {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  top: 10px;
  left: 10px;
}

.preview-dimensional .demo-dim-layer:nth-child(3) {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  top: 0;
  left: 20px;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}

/* --- Exaggerated Minimalism --- */
.preview-exaggerated {
  background: #fff;
}

.preview-exaggerated .demo-huge-text {
  font-family: 'Inter', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: #000;
  letter-spacing: -0.05em;
  line-height: 1;
}

/* --- Swiss Modernism --- */
.preview-swiss {
  background: #fff;
}

.preview-swiss .demo-swiss-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4px;
  width: 200px;
}

.preview-swiss .demo-swiss-cell {
  height: 30px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
}

.preview-swiss .demo-swiss-cell.accent {
  background: #ff0000;
  border-color: #ff0000;
}

.preview-swiss .demo-swiss-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  color: #000;
  grid-column: 1 / 3;
  margin-bottom: 4px;
}

/* --- HUD Sci-Fi --- */
.preview-hud {
  background: rgba(0, 10, 20, 0.95);
}

.preview-hud .demo-hud-el {
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 4px;
  padding: 1rem 1.5rem;
  position: relative;
}

.preview-hud .demo-hud-el::before,
.preview-hud .demo-hud-el::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid #00FFFF;
}

.preview-hud .demo-hud-el::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.preview-hud .demo-hud-el::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.preview-hud .demo-hud-text {
  font-family: 'Space Mono', monospace;
  color: #00FFFF;
  font-size: .75rem;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

/* --- Pixel Art --- */
.preview-pixel {
  background: #1a1a2e;
  image-rendering: pixelated;
}

.preview-pixel .demo-pixel-char {
  display: grid;
  grid-template-columns: repeat(5, 8px);
  gap: 1px;
}

.preview-pixel .demo-pixel-char span {
  width: 8px;
  height: 8px;
  background: #39FF14;
}

.preview-pixel .demo-pixel-char span.off {
  background: transparent;
}

/* --- Spatial UI --- */
.preview-spatial {
  background: linear-gradient(135deg, #667788, #99aabb);
}

.preview-spatial .demo-spatial-panel {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius: 24px;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
}

/* --- E-Ink Paper --- */
.preview-eink {
  background: #FDFBF7;
}

.preview-eink .demo-eink {
  font-family: Georgia, serif;
  color: #1A1A1A;
  width: 200px;
}

.preview-eink .demo-eink-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .35rem;
  border-bottom: 1px solid #E0E0E0;
  padding-bottom: .35rem;
}

.preview-eink .demo-eink-text {
  font-size: .7rem;
  line-height: 1.6;
  color: #4A4A4A;
}

/* --- Gen Z Chaos --- */
.preview-genz {
  background: #000;
  position: relative;
  overflow: hidden;
}

.preview-genz .demo-genz-el {
  position: absolute;
  font-weight: 900;
  font-size: 1.2rem;
}

.preview-genz .demo-genz-el:nth-child(1) {
  color: #FF00FF;
  top: 20%;
  left: 10%;
  transform: rotate(-15deg);
}

.preview-genz .demo-genz-el:nth-child(2) {
  color: #00FF00;
  top: 50%;
  right: 15%;
  transform: rotate(10deg);
}

.preview-genz .demo-genz-el:nth-child(3) {
  color: #FFFF00;
  bottom: 15%;
  left: 30%;
  transform: rotate(5deg);
}

/* --- Tactile Digital --- */
.preview-tactile {
  background: linear-gradient(135deg, #f0e6ff, #e6f0ff);
}

.preview-tactile .demo-jelly-btn {
  background: linear-gradient(145deg, #FF9ECD, #e88ebb);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  padding: .75rem 2rem;
  border-radius: 16px;
  border: none;
  box-shadow: 0 6px 20px rgba(255, 158, 205, 0.4), inset 0 -3px 6px rgba(0, 0, 0, 0.1), inset 0 3px 6px rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: transform .15s;
}

.preview-tactile .demo-jelly-btn:active {
  transform: scale(0.95);
}

/* --- Editorial Magazine --- */
.preview-editorial {
  background: #fff;
}

.preview-editorial .demo-editorial {
  width: 200px;
}

.preview-editorial .demo-dropcap {
  float: left;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-right: .35rem;
  color: #000;
}

.preview-editorial .demo-editorial-text {
  font-family: Georgia, serif;
  font-size: .65rem;
  color: #333;
  line-height: 1.5;
}

/* --- Vintage Analog --- */
.preview-vintage {
  background: #F5E6C8;
  position: relative;
}

.preview-vintage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
}

.preview-vintage .demo-vintage-frame {
  background: #fff;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transform: rotate(-3deg);
  position: relative;
  z-index: 1;
}

.preview-vintage .demo-vintage-photo {
  width: 100px;
  height: 80px;
  background: linear-gradient(135deg, #D4A574, #8B7355);
  filter: sepia(30%) contrast(1.1) saturate(0.8);
}

/* --- Landing / Dashboard generic previews (simplified) --- */
.preview-landing-generic {
  background: linear-gradient(135deg, #f8f9fc, #e8ecf4);
}

.preview-dashboard-generic {
  background: #0f172a;
}

/* ============================================================
   LANDING PATTERN CARDS
   ============================================================ */
.pattern-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}

.pattern-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.pattern-card-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.pattern-number {
  width: 32px;
  height: 32px;
  background: rgba(0, 212, 255, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  color: #00d4ff;
  flex-shrink: 0;
}

.pattern-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.pattern-flow {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: 1rem;
}

.pattern-step {
  padding: .25rem .6rem;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 6px;
  font-size: .7rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: .25rem;
}

.pattern-step .arrow {
  color: var(--text-muted);
  font-size: .6rem;
}

.pattern-bestfor {
  font-size: .78rem;
  color: var(--text-muted);
}

/* ============================================================
   COLOR PALETTE CARDS
   ============================================================ */
.color-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.color-card:hover {
  border-color: rgba(124, 92, 252, 0.25);
  transform: translateY(-2px);
}

.color-card-swatches {
  display: flex;
  height: 40px;
}

.color-card-swatches span {
  flex: 1;
}

.color-card-info {
  padding: .75rem 1rem;
}

.color-card-name {
  font-weight: 600;
  font-size: .82rem;
  color: var(--text-primary);
  margin-bottom: .25rem;
}

.color-card-hexes {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  color: var(--text-muted);
  word-break: break-all;
}

/* ============================================================
   TYPOGRAPHY CARDS
   ============================================================ */
.typo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.typo-card:hover {
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-3px);
}

.typo-card-preview {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.typo-card-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .35rem;
  line-height: 1.2;
}

.typo-card-body {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.typo-card-info {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
}

.typo-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-primary);
  margin-bottom: .15rem;
}

.typo-card-fonts {
  font-size: .75rem;
  color: var(--text-muted);
}

.typo-card-mood {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .5rem;
}

/* ============================================================
   CHART & STACK CARDS
   ============================================================ */
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: var(--transition);
}

.chart-card:hover {
  border-color: rgba(34, 197, 94, 0.3);
  transform: translateY(-2px);
}

.chart-card-icon {
  font-size: 1.5rem;
  margin-bottom: .5rem;
}

.chart-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-primary);
  margin-bottom: .25rem;
}

.chart-card-type {
  font-size: .78rem;
  color: var(--accent-secondary);
  margin-bottom: .5rem;
}

.chart-card-libs {
  font-size: .7rem;
  color: var(--text-muted);
}

/* ============================================================
   SEARCH INPUT
   ============================================================ */
.search-input {
  display: block;
  margin: 0 auto 1.5rem;
  padding: .6rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  color: var(--text-primary);
  font-size: .85rem;
  width: 300px;
  max-width: 90%;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.15);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer p {
  font-size: .85rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--accent-primary);
  text-decoration: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: block;
  }

  .nav-links.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card-grid-sm {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .container {
    padding: 0 1rem;
  }
}