/* ---------- Tokens ---------- */
:root {
  --bg: #07070a;
  --bg-2: #0b0b10;
  --card: #0e0e14;
  --card-hi: #14141c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --ink: #f4f4f6;
  --ink-2: #b4b4be;
  --ink-3: #6a6a78;
  --accent: #ffffff;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 60px -30px rgba(0,0,0,0.6);
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(120,120,160,0.08), transparent 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(80,80,120,0.06), transparent 60%),
    var(--bg);
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 400px at 20% 30%, rgba(255,255,255,0.025), transparent 50%),
    radial-gradient(500px 400px at 80% 70%, rgba(255,255,255,0.02), transparent 60%);
  z-index: 0;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 28px;
  background: rgba(7,7,10,0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-group { display: flex; gap: 8px; align-items: center; }
.nav-right { justify-content: flex-end; }
.nav-center {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.brand-mark { color: var(--ink); font-weight: 600; }
.brand-mark-dim { color: var(--ink-3); }

.chip {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 150ms ease;
}
.chip:hover { background: rgba(255,255,255,0.04); border-color: var(--line-strong); }
.chip:active { transform: translateY(1px); }
.chip.active {
  background: rgba(255,255,255,0.06);
  border-color: var(--line-strong);
  color: #fff;
}
.chip.icon { padding: 8px 10px; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Layout ---------- */
.container {
  position: relative;
  z-index: 1;
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px 28px 80px;
}
.section { padding-top: 26px; }
.section + .section { padding-top: 56px; }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 2px;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
  font-weight: 500;
}
.section-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1180px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 920px)  { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Card ---------- */
.card {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #101018 0%, #0a0a10 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), border-color 200ms ease, background 200ms ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.05), transparent 60%);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}
.card:hover .stage > * { transform: scale(1.03); }
.stage > * { transition: transform 500ms cubic-bezier(.2,.7,.2,1); }

.stage {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 14%;
}
.stage-left { place-items: center start; padding: 10% 12%; }

.pin {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}
.pin:hover { background: rgba(255,255,255,0.08); color: #fff; }

.card-meta {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(0,0,0,0.25);
}
.card-id { color: var(--ink); }
.card-name { color: var(--ink-2); }

/* ---------- Mockups (CSS art) ---------- */
.stage {
  background:
    radial-gradient(60% 50% at 50% 35%, rgba(255,255,255,0.04), transparent 65%),
    radial-gradient(80% 60% at 50% 110%, rgba(0,0,0,0.6), transparent 50%);
}

/* iPhone */
.mk-iphone {
  width: 42%;
  aspect-ratio: 9 / 18;
  background: linear-gradient(180deg, #1a1a22, #07070b);
  border: 1px solid #1d1d28;
  border-radius: 22px;
  position: relative;
  box-shadow: 0 30px 40px -25px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.04);
}
.mk-iphone-screen {
  position: absolute; inset: 6px;
  border-radius: 16px;
  background: linear-gradient(160deg, #0a0a10, #050507);
  box-shadow: inset 0 1px 6px rgba(255,255,255,0.04);
}
.mk-iphone-notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 36%; height: 14px;
  background: #050507;
  border-radius: 999px;
  z-index: 2;
}

/* Drink Carton */
.mk-carton {
  width: 36%;
  aspect-ratio: 5 / 9;
  position: relative;
  filter: drop-shadow(0 22px 22px rgba(0,0,0,0.6));
  transform: rotate(-6deg);
}
.mk-carton-body {
  position: absolute; left: 0; right: 0; bottom: 0; top: 18%;
  background: linear-gradient(120deg, #15151c 0%, #0a0a10 60%, #1a1a22 100%);
  border: 1px solid #1c1c26;
  border-radius: 4px;
}
.mk-carton-top {
  position: absolute; left: 8%; right: 8%; top: 6%; height: 20%;
  background: linear-gradient(180deg, #1c1c26, #0e0e15);
  clip-path: polygon(0 100%, 0 30%, 50% 0, 100% 30%, 100% 100%);
}
.mk-carton-cap {
  position: absolute; right: 18%; top: 0; width: 14%; height: 14%;
  background: #f5f5f7;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.6);
  z-index: 3;
}

/* Hoodie */
.mk-hoodie {
  width: 80%;
  height: 80%;
  position: relative;
  filter: drop-shadow(0 30px 30px rgba(0,0,0,0.6));
}
.mk-hood {
  position: absolute; left: 50%; top: 4%;
  transform: translateX(-50%);
  width: 42%; height: 30%;
  background: radial-gradient(60% 90% at 50% 100%, #1c1c25, #0e0e14);
  border-radius: 60% 60% 30% 30% / 70% 70% 30% 30%;
  border: 1px solid #1c1c26;
}
.mk-hoodie-body {
  position: absolute; left: 14%; right: 14%; top: 22%; bottom: 0;
  background: linear-gradient(160deg, #1a1a23, #0c0c12 80%);
  border: 1px solid #1c1c26;
  border-radius: 12px 12px 8px 8px;
  clip-path: polygon(20% 0, 80% 0, 100% 25%, 100% 100%, 0 100%, 0 25%);
}
.mk-hoodie-sleeve {
  position: absolute; top: 22%; width: 22%; height: 50%;
  background: linear-gradient(160deg, #181820, #0a0a10);
  border: 1px solid #1c1c26;
}
.mk-hoodie-sleeve.left  { left: 0; border-radius: 40% 12px 12px 30%; transform: rotate(-2deg); }
.mk-hoodie-sleeve.right { right: 0; border-radius: 12px 40% 30% 12px; transform: rotate(2deg); }
.mk-hoodie-pocket {
  position: absolute; left: 30%; right: 30%; bottom: 14%; height: 22%;
  border: 1px solid #1c1c26;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.2));
}

/* Apple Watch */
.mk-watch {
  width: 56%;
  aspect-ratio: 1/1;
  position: relative;
  filter: drop-shadow(0 22px 22px rgba(0,0,0,0.6));
}
.mk-watch-body {
  position: absolute; inset: 18% 8%;
  background: linear-gradient(160deg, #1a1a22, #07070b);
  border: 1px solid #1c1c26;
  border-radius: 28%;
  overflow: hidden;
}
.mk-watch-screen {
  position: absolute; inset: 10%;
  background: linear-gradient(160deg, #0a0a10, #050507);
  border-radius: 22%;
}
.mk-watch-crown {
  position: absolute; right: 0; top: 42%;
  width: 8%; height: 16%;
  background: #1c1c26; border-radius: 2px;
  transform: translateX(80%);
}
.mk-watch-band {
  position: absolute; left: 22%; right: 22%; height: 22%;
  background: linear-gradient(180deg, #161620, #0c0c12);
  border: 1px solid #1c1c26;
}
.mk-watch-band.top    { top: 0; border-radius: 14% 14% 4% 4%; }
.mk-watch-band.bottom { bottom: 0; border-radius: 4% 4% 14% 14%; }

/* Cap */
.mk-cap {
  width: 80%;
  height: 70%;
  position: relative;
  filter: drop-shadow(0 24px 24px rgba(0,0,0,0.6));
}
.mk-cap-crown {
  position: absolute; left: 18%; right: 18%; top: 0; bottom: 30%;
  background: radial-gradient(60% 80% at 50% 100%, #1c1c26, #0c0c12);
  border-radius: 50% 50% 18% 18% / 90% 90% 18% 18%;
  border: 1px solid #1c1c26;
}
.mk-cap-brim {
  position: absolute; left: 8%; right: 8%; bottom: 22%; height: 14%;
  background: linear-gradient(180deg, #1a1a22, #08080c);
  border-radius: 50% 50% 8% 8% / 100% 100% 12% 12%;
  border: 1px solid #1c1c26;
}
.mk-cap-button {
  position: absolute; left: 50%; top: 6%;
  width: 6%; height: 6%;
  transform: translateX(-50%);
  background: #2a2a36;
  border-radius: 50%;
}

/* Pro Display */
.mk-display {
  width: 84%;
  position: relative;
  filter: drop-shadow(0 28px 24px rgba(0,0,0,0.6));
}
.mk-display-screen {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(160deg, #0a0a10, #050507);
  border: 1px solid #1c1c26;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.mk-display-neck {
  width: 10%; height: 16px;
  margin: 4px auto 0;
  background: linear-gradient(180deg, #1c1c26, #0e0e15);
}
.mk-display-stand {
  width: 28%; height: 10px;
  margin: 0 auto;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #1c1c26, #0a0a10);
}

/* Business Card */
.mk-businesscard {
  width: 80%; aspect-ratio: 16/10;
  position: relative;
}
.mk-bcard {
  position: absolute; inset: 0;
  border-radius: 8px;
  background: linear-gradient(160deg, #14141c, #08080c);
  border: 1px solid #1c1c26;
  box-shadow: 0 24px 30px -20px rgba(0,0,0,0.7);
}
.mk-bcard.back { transform: translate(8%, 16%) rotate(-4deg); opacity: 0.85; }
.mk-bcard.front { transform: translate(-4%, -4%) rotate(2deg); }

/* MacBook Pro */
.mk-macbook {
  width: 88%;
  position: relative;
  filter: drop-shadow(0 28px 24px rgba(0,0,0,0.6));
}
.mk-mb-screen {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(180deg, #1a1a22, #0a0a10);
  border: 1px solid #1c1c26;
  border-radius: 8px 8px 2px 2px;
  padding: 4px;
}
.mk-mb-display {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #0a0a10, #050507);
  border-radius: 4px;
}
.mk-mb-base {
  width: 108%;
  margin-left: -4%;
  height: 8px;
  background: linear-gradient(180deg, #1c1c26, #08080c);
  border-radius: 0 0 12px 12px;
  position: relative;
}
.mk-mb-hinge {
  position: absolute; left: 38%; right: 38%; top: 0; height: 2px;
  background: rgba(0,0,0,0.6);
  border-radius: 2px;
}

/* Card Stack */
.mk-cardstack {
  width: 70%; aspect-ratio: 1/1;
  position: relative;
}
.mk-cs {
  position: absolute; inset: 0;
  border-radius: 12px;
  background: linear-gradient(160deg, #16161e, #08080c);
  border: 1px solid #1c1c26;
}
.mk-cs.c1 { transform: rotate(-8deg) translate(-10%, 4%); opacity: 0.8; }
.mk-cs.c2 { transform: rotate(0deg); }
.mk-cs.c3 { transform: rotate(8deg) translate(10%, -4%); opacity: 0.6; }

/* ---------- Component demos ---------- */
/* Toggle */
.demo-toggle { display: grid; place-items: center; }
.toggle-pill {
  width: 90px; height: 44px;
  background: #f5f5f7;
  border: none;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 240ms ease;
}
.toggle-thumb {
  position: absolute;
  top: 4px; left: 4px;
  width: 36px; height: 36px;
  background: #0a0a10;
  border-radius: 50%;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), background 240ms ease;
}
.toggle-pill[aria-pressed="true"] { background: #1a1a22; }
.toggle-pill[aria-pressed="true"] .toggle-thumb {
  transform: translateX(46px);
  background: #f5f5f7;
}

/* Sphere */
.demo-sphere { width: 90%; aspect-ratio: 1/1; display: grid; place-items: center; }
#sphere-canvas-preview { width: 100%; height: 100%; display: block; }

/* Grid loader */
.demo-gridloader {
  display: grid;
  grid-template-columns: repeat(7, 8px);
  grid-auto-rows: 8px;
  gap: 6px;
}
.demo-gridloader span {
  width: 8px; height: 8px;
  color: #fff;
  position: relative;
}
.demo-gridloader span::before,
.demo-gridloader span::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: currentColor;
}
.demo-gridloader span::before { width: 8px; height: 1.5px; }
.demo-gridloader span::after  { width: 1.5px; height: 8px; }
.demo-gridloader span { opacity: 0.2; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.15; } 50% { opacity: 1; } }

/* Confirm Check */
.demo-check { display: grid; place-items: center; cursor: pointer; }
.demo-check input { display: none; }
.check-box {
  width: 72px; height: 72px;
  background: #f5f5f7; color: #0a0a10;
  border-radius: 14px;
  display: grid; place-items: center;
  transition: transform 220ms ease;
}
.demo-check input:checked ~ .check-box {
  transform: scale(1);
  background: #fff;
}
.check-box svg { width: 36px; height: 36px; }

/* Show more */
.demo-showmore { color: var(--ink); }
.sm-text {
  font-size: 13px; line-height: 1.5;
  color: var(--ink); margin: 0 0 12px;
  max-width: 220px;
}
.sm-btn {
  background: none; border: none;
  font-family: var(--font-sans);
  color: var(--ink); font-weight: 500;
  cursor: pointer; padding: 0;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}
.sm-btn span { display: inline-block; transform: rotate(90deg); margin-left: 2px; }

/* Table */
.demo-table {
  width: 86%; font-family: var(--font-mono);
  font-size: 11px; color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
}
.dt-row { display: flex; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.dt-row:last-child { border-bottom: none; }
.dt-head { color: var(--ink-3); }

/* Compare */
.demo-compare {
  position: relative; width: 86%; aspect-ratio: 4/3;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line);
}
.cmp-left, .cmp-right { position: absolute; inset: 0; }
.cmp-left { background: linear-gradient(160deg, #e7e7ec, #b6b6c2); }
.cmp-right { background: linear-gradient(160deg, #1a1a22, #08080c); clip-path: inset(0 0 0 50%); }
.cmp-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; background: #fff;
  transform: translateX(-50%);
}
.cmp-handle span {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 22px; height: 22px;
  background: #fff; color: #000;
  border-radius: 50%;
  display: grid; place-items: center;
}
.cmp-handle span::before {
  content: "⇆";
  font-size: 12px;
}

/* Scramble */
.demo-scramble {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.18em;
  color: var(--ink);
}

/* Marquee */
.demo-marquee {
  width: 100%; overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.mq-track {
  display: flex; gap: 12px;
  white-space: nowrap;
  animation: mq 14s linear infinite;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--ink);
}
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Magnetic button */
.demo-magnet {
  appearance: none;
  background: #f5f5f7; color: #0a0a10;
  border: none;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 200ms cubic-bezier(.2,.7,.2,1), background 200ms ease;
}
.demo-magnet:hover { background: #fff; }

/* ---------- C 016 Cursor Spotlight ---------- */
.demo-spotlight {
  position: relative;
  width: 100%; height: 100%;
  display: grid; place-items: center;
  border-radius: 12px;
  background: #0a0a10;
  color: rgba(255,255,255,0.12);
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.32em;
  overflow: hidden;
  cursor: none;
}
.demo-spotlight::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
  transition: opacity 240ms ease;
  opacity: 0;
}
.demo-spotlight.hover::before { opacity: 1; }
.demo-spotlight span {
  position: relative;
  z-index: 2;
  background: linear-gradient(120deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.08) 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

/* ---------- C 017 Tilt Card ---------- */
.demo-tilt {
  width: 70%;
  aspect-ratio: 3/4;
  perspective: 800px;
  cursor: pointer;
}
.tilt-inner {
  width: 100%; height: 100%;
  border-radius: 16px;
  background: linear-gradient(160deg, #1a1a22, #08080c);
  border: 1px solid #1c1c26;
  box-shadow: 0 30px 40px -25px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
  transform-style: preserve-3d;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1);
  position: relative;
  overflow: hidden;
}
.tilt-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120px circle at var(--tx, 50%) var(--ty, 0%), rgba(255,255,255,0.12), transparent 60%);
  pointer-events: none;
}
.tilt-id   { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.16em; text-transform: uppercase; }
.tilt-name { font-family: var(--font-sans); font-size: 14px; color: var(--ink); font-weight: 600; }

/* ---------- C 018 Aurora ---------- */
.demo-aurora {
  width: 86%; aspect-ratio: 1/1;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #06060a;
  position: relative;
  overflow: hidden;
}
.demo-aurora span {
  position: absolute;
  width: 80%; aspect-ratio: 1/1;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.7;
  animation: aurora 9s ease-in-out infinite alternate;
}
.demo-aurora span:nth-child(1) { background: radial-gradient(circle, #2a4cff, transparent 60%); top: -20%; left: -20%; }
.demo-aurora span:nth-child(2) { background: radial-gradient(circle, #b026ff, transparent 60%); top: 30%; left: 30%; animation-delay: -3s; }
.demo-aurora span:nth-child(3) { background: radial-gradient(circle, #00e1ff, transparent 60%); bottom: -20%; right: -10%; animation-delay: -6s; }
@keyframes aurora {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(8%, 12%) scale(1.15); }
  100% { transform: translate(-6%, -8%) scale(0.95); }
}

/* ---------- C 019 Floating Dock ---------- */
.demo-dock {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.demo-dock span {
  display: block;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(160deg, #1c1c26, #0c0c12);
  border: 1px solid #1c1c26;
  transition: transform 240ms cubic-bezier(.2,.7,.2,1), margin 240ms cubic-bezier(.2,.7,.2,1);
}

/* ---------- C 020 Number Ticker ---------- */
.demo-ticker {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 64px;
  color: var(--ink);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  position: relative;
}
.demo-ticker::after {
  content: "%";
  font-size: 22px;
  color: var(--ink-3);
  margin-left: 4px;
  font-weight: 500;
  letter-spacing: 0;
}

/* ---------- C 021 Glitch Text ---------- */
.demo-glitch {
  position: relative;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.18em;
  color: var(--ink);
  cursor: pointer;
}
.demo-glitch::before,
.demo-glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}
.demo-glitch::before { color: #00e1ff; transform: translate(-2px, 0); }
.demo-glitch::after  { color: #ff2dcb; transform: translate( 2px, 0); }
.demo-glitch:hover::before,
.demo-glitch:hover::after { opacity: 0.8; animation: glitch 700ms steps(2) infinite; }
@keyframes glitch {
  0%   { transform: translate(-2px, 0); clip-path: inset(20% 0 60% 0); }
  25%  { transform: translate( 3px, 1px); clip-path: inset(60% 0 10% 0); }
  50%  { transform: translate(-1px,-1px); clip-path: inset(40% 0 30% 0); }
  75%  { transform: translate( 2px, 0); clip-path: inset(10% 0 70% 0); }
  100% { transform: translate(-2px, 0); clip-path: inset(50% 0 20% 0); }
}

/* ---------- C 022 Avatar Stack ---------- */
.demo-avatars {
  display: flex;
  padding: 4px;
}
.demo-avatars .av {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #0a0a10;
  font-weight: 600;
  border: 2px solid #0a0a10;
  margin-left: -10px;
  transition: margin 280ms cubic-bezier(.2,.7,.2,1), transform 280ms cubic-bezier(.2,.7,.2,1);
}
.demo-avatars .av:first-child { margin-left: 0; }
.demo-avatars .av-1 { background: linear-gradient(160deg, #ffd5a8, #ff8266); }
.demo-avatars .av-2 { background: linear-gradient(160deg, #c9b3ff, #6a5cff); }
.demo-avatars .av-3 { background: linear-gradient(160deg, #a8efff, #00d4ff); }
.demo-avatars .av-4 { background: linear-gradient(160deg, #ffd0e7, #ff4d8d); }
.demo-avatars .av-5 { background: #1a1a22; color: var(--ink); }
.card:hover .demo-avatars .av { margin-left: 4px; }
.card:hover .demo-avatars .av:first-child { margin-left: 0; }

/* ====================== NEW MOCKUPS ====================== */

/* M 001 iPad */
.mk-ipad {
  width: 78%; aspect-ratio: 4/3; position: relative;
  background: linear-gradient(160deg, #1a1a22, #07070b);
  border: 1px solid #1d1d28;
  border-radius: 14px;
  padding: 6%;
  box-shadow: 0 30px 40px -25px rgba(0,0,0,.8);
}
.mk-ipad-screen {
  width: 100%; height: 100%;
  border-radius: 8px;
  background: linear-gradient(160deg, #0a0a10, #050507);
}
.mk-ipad-camera {
  position: absolute; left: 50%; top: 2.5%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  background: #2a2a36; border-radius: 50%;
}

/* M 003 AirPods Case */
.mk-airpods {
  width: 60%; aspect-ratio: 1.2/1; position: relative;
  filter: drop-shadow(0 22px 22px rgba(0,0,0,.6));
}
.mk-airpods-body {
  position: absolute; inset: 30% 0 0;
  background: linear-gradient(180deg, #f5f5f7, #cfcfd5);
  border-radius: 50% 50% 22% 22% / 24% 24% 22% 22%;
  border: 1px solid #d4d4da;
}
.mk-airpods-lid {
  position: absolute; inset: 0 8% 60% 8%;
  background: linear-gradient(180deg, #ececef, #b8b8be);
  border-radius: 60% 60% 14% 14% / 80% 80% 14% 14%;
  border: 1px solid #b8b8be;
}
.mk-airpods-light {
  position: absolute; left: 50%; top: 32%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  background: #4ade80; border-radius: 50%;
  box-shadow: 0 0 8px rgba(74,222,128,.7);
}

/* M 004 Mug */
.mk-mug {
  width: 60%; aspect-ratio: 1/1; position: relative;
  filter: drop-shadow(0 22px 22px rgba(0,0,0,.6));
}
.mk-mug-body {
  position: absolute; left: 10%; right: 28%; top: 12%; bottom: 8%;
  background: linear-gradient(160deg, #1c1c26, #0e0e15);
  border: 1px solid #1c1c26;
  border-radius: 4px 4px 8px 8px;
}
.mk-mug-rim {
  position: absolute; left: 10%; right: 28%; top: 12%; height: 6%;
  background: linear-gradient(180deg, #2a2a36, #1a1a22);
  border-radius: 50%;
}
.mk-mug-handle {
  position: absolute; right: 12%; top: 26%;
  width: 22%; height: 44%;
  border: 5px solid #1c1c26;
  border-left: none;
  border-radius: 0 60% 60% 0 / 0 50% 50% 0;
}

/* M 006 T-Shirt */
.mk-tee {
  width: 90%; height: 90%; position: relative;
  filter: drop-shadow(0 26px 26px rgba(0,0,0,.6));
}
.mk-tee-body {
  position: absolute; inset: 18% 18% 0 18%;
  background: linear-gradient(160deg, #1a1a23, #0c0c12);
  border: 1px solid #1c1c26;
  clip-path: polygon(15% 0, 85% 0, 100% 18%, 100% 100%, 0 100%, 0 18%);
}
.mk-tee-collar {
  position: absolute; left: 50%; top: 12%;
  transform: translateX(-50%);
  width: 22%; height: 14%;
  border: 2px solid #1c1c26;
  border-top: none;
  border-radius: 0 0 60% 60% / 0 0 100% 100%;
  background: var(--bg, #07070a);
}
.mk-tee-sleeve {
  position: absolute; top: 18%; width: 26%; height: 30%;
  background: linear-gradient(160deg, #181820, #0a0a10);
  border: 1px solid #1c1c26;
}
.mk-tee-sleeve.left  { left: 0; clip-path: polygon(0 0, 70% 0, 100% 100%, 0 100%); transform: skewY(-8deg); }
.mk-tee-sleeve.right { right: 0; clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); transform: skewY(8deg); }

/* M 007 Tote Bag */
.mk-tote {
  width: 70%; aspect-ratio: 4/5; position: relative;
  filter: drop-shadow(0 26px 26px rgba(0,0,0,.6));
}
.mk-tote-body {
  position: absolute; inset: 30% 0 0;
  background: linear-gradient(160deg, #1a1a23, #0c0c12);
  border: 1px solid #1c1c26;
  border-radius: 4px 4px 8px 8px;
}
.mk-tote-handle {
  position: absolute; top: 4%; width: 20%; height: 32%;
  border: 4px solid #1c1c26;
  border-bottom: none;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.mk-tote-handle.left  { left: 18%; }
.mk-tote-handle.right { right: 18%; }

/* M 010 Vinyl Record */
.mk-vinyl {
  width: 80%; aspect-ratio: 1/1; position: relative;
  filter: drop-shadow(0 26px 26px rgba(0,0,0,.6));
}
.mk-vinyl-sleeve {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #14141c, #08080c);
  border: 1px solid #1c1c26;
  border-radius: 4px;
}
.mk-vinyl-disc {
  position: absolute; left: 32%; top: 0; bottom: 0;
  width: 88%;
  background:
    radial-gradient(circle at center, #1c1c26 0%, #08080c 30%, #14141c 31%, #08080c 32%, #14141c 33%, #08080c 34%, #14141c 35%, #08080c 38%, #14141c 39%, #08080c 40%, #14141c 41%, #08080c 42%, #14141c 43%, #08080c 100%);
  border-radius: 50%;
  border: 1px solid #1c1c26;
  display: grid; place-items: center;
}
.mk-vinyl-disc span {
  width: 18%; height: 18%;
  background: #f5f5f7; border-radius: 50%;
  position: relative;
}
.mk-vinyl-disc span::after {
  content: ""; position: absolute;
  left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 18%; height: 18%; background: #0a0a10; border-radius: 50%;
}

/* M 014 Credit Card */
.mk-creditcard {
  width: 76%; aspect-ratio: 16/10; position: relative;
  background: linear-gradient(135deg, #1c1c26 0%, #0a0a10 60%, #14141c 100%);
  border: 1px solid #2a2a36;
  border-radius: 14px;
  box-shadow: 0 26px 28px -20px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.04);
}
.mk-cc-chip {
  position: absolute; left: 10%; top: 28%;
  width: 18%; height: 22%;
  background: linear-gradient(160deg, #d4af37, #8b6914);
  border-radius: 4px;
}
.mk-cc-chip::before, .mk-cc-chip::after {
  content: ""; position: absolute; left: 12%; right: 12%;
  height: 1px; background: rgba(0,0,0,.4);
}
.mk-cc-chip::before { top: 28%; }
.mk-cc-chip::after  { top: 64%; }
.mk-cc-band {
  position: absolute; left: 10%; bottom: 18%;
  width: 36%; height: 6%;
  background: rgba(255,255,255,.18);
  border-radius: 2px;
}
.mk-cc-brand {
  position: absolute; right: 10%; bottom: 14%;
  width: 22%; height: 18%;
  background:
    radial-gradient(circle at 30% 50%, rgba(245,245,247,.7) 0%, rgba(245,245,247,.7) 30%, transparent 31%),
    radial-gradient(circle at 70% 50%, rgba(245,245,247,.45) 0%, rgba(245,245,247,.45) 30%, transparent 31%);
}

/* M 016 Coffee Cup */
.mk-cup {
  width: 50%; aspect-ratio: 5/8; position: relative;
  filter: drop-shadow(0 26px 22px rgba(0,0,0,.6));
}
.mk-cup-body {
  position: absolute; inset: 22% 4% 0 4%;
  background: linear-gradient(180deg, #1a1a23, #0c0c12);
  border: 1px solid #1c1c26;
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
}
.mk-cup-lid {
  position: absolute; left: 0; right: 0; top: 8%;
  height: 16%;
  background: linear-gradient(180deg, #1c1c26, #14141c);
  border: 1px solid #1c1c26;
  border-radius: 14px 14px 4px 4px;
}
.mk-cup-lid::after {
  content: ""; position: absolute;
  left: 30%; right: 30%; top: 24%;
  height: 28%;
  background: #08080c;
  border-radius: 50% / 60%;
}
.mk-cup-sleeve {
  position: absolute; left: 6%; right: 6%; top: 44%;
  height: 26%;
  background: linear-gradient(160deg, #2a2a36, #14141c);
  border: 1px solid #2a2a36;
  border-radius: 4px;
}

/* M 022 Box */
.mk-box {
  width: 64%; aspect-ratio: 1/1; position: relative;
  filter: drop-shadow(0 28px 22px rgba(0,0,0,.6));
  transform: rotate(-6deg);
}
.mk-box-front {
  position: absolute; left: 0; right: 30%; top: 26%; bottom: 0;
  background: linear-gradient(160deg, #1a1a23, #0c0c12);
  border: 1px solid #1c1c26;
}
.mk-box-side {
  position: absolute; right: 0; top: 18%; bottom: 0;
  width: 32%;
  background: linear-gradient(160deg, #14141c, #08080c);
  border: 1px solid #1c1c26;
  clip-path: polygon(0 24%, 100% 0, 100% 78%, 0 100%);
}
.mk-box-top {
  position: absolute; left: 0; right: 0; top: 0;
  height: 32%;
  background: linear-gradient(160deg, #20202c, #14141c);
  border: 1px solid #1c1c26;
  clip-path: polygon(0 78%, 70% 0, 100% 24%, 30% 100%);
}

/* ====================== NEW COMPONENT DEMOS ====================== */

/* C 054 Cookie Banner */
.demo-cookie {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: #14141c;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  max-width: 320px;
}
.ck-emoji { font-size: 22px; }
.ck-body { flex: 1; min-width: 0; }
.ck-body strong { display: block; font-family: var(--font-sans); font-size: 12px; color: var(--ink); }
.ck-body small  { display: block; font-size: 11px; color: var(--ink-2); font-family: var(--font-sans); }
.ck-cta {
  background: #f5f5f7; color: #0a0a10;
  border: none; padding: 8px 14px;
  border-radius: 8px; font-weight: 500; font-size: 11px;
  cursor: pointer;
}

/* C 055 Carousel Dots */
.demo-dots { display: flex; gap: 8px; align-items: center; }
.demo-dots span {
  width: 6px; height: 6px;
  background: rgba(255,255,255,.2);
  border-radius: 999px;
  transition: width .3s ease, background .3s ease;
}
.demo-dots span.active { width: 24px; background: #fff; }

/* C 056 Notification Stack */
.demo-notistack {
  position: relative;
  width: 80%; height: 110px;
}
.ns {
  position: absolute; left: 0; right: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: #f5f5f7; color: #0a0a10;
  border-radius: 12px;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.4);
  font-family: var(--font-sans); font-size: 12px; font-weight: 500;
  animation: stackIn .8s ease both;
}
.ns span {
  width: 18px; height: 18px;
  background: #0a0a10; color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px;
}
.ns1 { top: 0;  z-index: 3; transform: translateY(0)   scale(1);    opacity: 1; animation-delay: 0s; }
.ns2 { top: 8px; z-index: 2; transform: translateY(8px) scale(.94); opacity: .85; animation-delay: .15s; }
.ns3 { top: 16px; z-index: 1; transform: translateY(16px) scale(.88); opacity: .7;  animation-delay: .3s; }
@keyframes stackIn { from { transform: translateY(30px); opacity: 0; } }

/* C 057 Image Reveal */
.demo-reveal {
  position: relative; width: 76%; aspect-ratio: 4/3;
  border-radius: 12px; overflow: hidden;
  cursor: pointer;
}
.rv-before, .rv-after {
  position: absolute; inset: 0;
  transition: clip-path .6s cubic-bezier(.2,.7,.2,1);
}
.rv-before { background: linear-gradient(160deg, #1a1a22, #08080c); }
.rv-after  { background: linear-gradient(160deg, #6a5cff 0%, #00e1ff 50%, #ff2dcb 100%); clip-path: circle(0% at 50% 50%); }
.demo-reveal:hover .rv-after { clip-path: circle(75% at 50% 50%); }

/* C 058 Hover Card */
.demo-hovercard {
  position: relative;
  font-family: var(--font-sans);
}
.hc-link {
  color: #6a5cff; font-weight: 500; font-size: 14px;
  cursor: pointer;
  border-bottom: 1px dashed rgba(106,92,255,.4);
  padding-bottom: 2px;
}
.hc-pop {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 220px;
  padding: 14px;
  background: #0d0d14;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 30px 40px -20px rgba(0,0,0,.6);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 5;
}
.hc-av {
  display: block;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(160deg, #6a5cff, #ff2dcb);
  margin-bottom: 8px;
}
.hc-pop strong { display: block; font-size: 13px; color: var(--ink); }
.hc-pop small  { display: block; font-size: 11px; color: var(--ink-2); margin-top: 4px; }
.demo-hovercard:hover .hc-pop { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* C 059 Modal Dialog */
.demo-modal {
  position: relative;
  width: 86%; aspect-ratio: 1.2/1;
  border-radius: 12px; overflow: hidden;
  background: linear-gradient(160deg, #1a1a22, #0a0a10);
  border: 1px solid var(--line);
}
.md-back { position: absolute; inset: 0; background: rgba(0,0,0,.4); backdrop-filter: blur(2px); }
.md-card {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 78%;
  padding: 16px;
  background: #14141c;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,.6);
  animation: modalIn .4s ease;
}
@keyframes modalIn { from { transform: translate(-50%,-46%); opacity: 0; } }
.md-card strong { display: block; font-size: 13px; color: var(--ink); font-family: var(--font-sans); }
.md-card small  { display: block; font-size: 11px; color: var(--ink-2); margin-top: 4px; }
.md-row { display: flex; gap: 8px; margin-top: 12px; }
.md-row button {
  flex: 1; padding: 8px; border-radius: 6px; font-size: 11px;
  font-family: var(--font-sans); font-weight: 500; cursor: pointer;
}
.md-ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line-strong); }
.md-cta   { background: #f5f5f7; color: #0a0a10; border: none; }

/* C 060 Drawer */
.demo-drawer {
  position: relative;
  width: 86%; aspect-ratio: 1.2/1;
  border-radius: 12px; overflow: hidden;
  background: linear-gradient(160deg, #1a1a22, #0a0a10);
  border: 1px solid var(--line);
}
.dr-shade { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.dr-panel {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 62%;
  background: #14141c;
  border-left: 1px solid var(--line-strong);
  padding: 14px;
  display: grid; gap: 6px;
  animation: drawerIn .35s cubic-bezier(.2,.7,.2,1);
}
@keyframes drawerIn { from { transform: translateX(100%); } }
.dr-handle {
  width: 30px; height: 3px;
  background: var(--line-strong);
  border-radius: 999px; margin-bottom: 10px;
}
.dr-panel strong { font-family: var(--font-sans); font-size: 12px; color: var(--ink); margin-bottom: 6px; }
.dr-row {
  height: 22px; background: rgba(255,255,255,.04);
  border-radius: 6px;
}

/* C 061 Tag Pills */
.demo-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 280px; }
.demo-tags .tag {
  padding: 4px 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.demo-tags .tag.accent  { background: #f5f5f7; color: #0a0a10; border-color: #f5f5f7; }
.demo-tags .tag.accent2 { background: rgba(106,92,255,.18); color: #c9b3ff; border-color: rgba(106,92,255,.4); }

/* C 062 Color Swatches */
.demo-swatches { display: flex; gap: 10px; }
.demo-swatches span {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.14);
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}
.demo-swatches span:hover { transform: translateY(-3px); border-color: #fff; }

/* C 063 Empty State */
.demo-empty {
  display: grid; gap: 8px; justify-items: center;
  text-align: center;
  color: var(--ink-2);
  max-width: 200px;
}
.emp-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  display: grid; place-items: center;
  color: var(--ink-3);
}
.demo-empty strong { font-family: var(--font-sans); font-size: 12px; color: var(--ink); }
.demo-empty small  { font-size: 11px; color: var(--ink-3); }

/* C 064 Heatmap */
.demo-heat {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  grid-auto-rows: 1fr;
  gap: 3px;
  width: 88%; aspect-ratio: 13/7;
}
.demo-heat span {
  border-radius: 2px;
  background: rgba(255,255,255,.04);
  transition: background .3s ease;
}

/* C 065 Mini Calendar */
.demo-cal {
  width: 84%;
  padding: 12px;
  background: #0d0d14;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-mono);
  color: var(--ink-2);
}
.cal-head {
  font-size: 11px; font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-align: center;
}
.cal-dow, .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-dow {
  font-size: 9px;
  color: var(--ink-3);
  text-align: center;
  margin-bottom: 4px;
}
.cal-grid span {
  font-size: 10px;
  height: 22px;
  display: grid; place-items: center;
  border-radius: 4px;
  color: var(--ink-2);
}
.cal-grid span.muted   { color: var(--ink-3); opacity: .4; }
.cal-grid span.today   { background: #f5f5f7; color: #0a0a10; font-weight: 600; }
.cal-grid span.range   { background: rgba(106,92,255,.18); color: var(--ink); }

/* C 066 Activity Feed */
.demo-feed { width: 100%; display: grid; gap: 14px; padding: 0 4px; max-width: 260px; }
.fd-item { display: flex; gap: 12px; position: relative; }
.fd-item:not(:last-child)::after {
  content: ""; position: absolute;
  left: 5px; top: 16px; bottom: -14px;
  width: 1px; background: var(--line);
}
.fd-dot {
  flex-shrink: 0; width: 11px; height: 11px;
  border-radius: 50%; background: var(--bg);
  border: 2px solid #f5f5f7;
  margin-top: 3px; z-index: 1;
}
.fd-item:nth-child(2) .fd-dot { border-color: var(--ink-3); }
.fd-item:nth-child(3) .fd-dot { border-color: var(--ink-3); }
.fd-item strong { display: block; font-family: var(--font-sans); font-size: 12px; color: var(--ink); }
.fd-item small  { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); margin-top: 2px; }

/* C 067 Pricing Toggle */
.demo-pricetoggle { display: grid; gap: 12px; justify-items: center; }
.pt-amt {
  font-family: var(--font-sans);
  font-weight: 600; font-size: 48px;
  color: var(--ink);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.pt-amt small {
  font-size: 14px; color: var(--ink-3);
  font-weight: 500; margin-left: 4px;
}
.pt-switch {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pt-pill {
  width: 36px; height: 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  position: relative; cursor: pointer;
}
.pt-pill span {
  position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: #f5f5f7; border-radius: 50%;
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.pt-pill[aria-pressed="true"] span { transform: translateX(16px); }

/* C 068 FAB Menu */
.demo-fab {
  position: relative;
  width: 90px; height: 90px;
  display: grid; place-items: end center;
}
.fab-main {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #f5f5f7; color: #0a0a10;
  border: none; cursor: pointer;
  font-size: 24px; font-weight: 400;
  display: grid; place-items: center;
  box-shadow: 0 12px 24px -8px rgba(255,255,255,.18);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.demo-fab:hover .fab-main { transform: rotate(45deg); }
.fab-item {
  position: absolute; bottom: 18px; left: 50%;
  width: 36px; height: 36px;
  background: #1a1a22;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  opacity: 0;
  transform: translateX(-50%);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .3s ease;
}
.demo-fab:hover .fab-item.i1 { opacity: 1; transform: translate(-50%, -70px); }
.demo-fab:hover .fab-item.i2 { opacity: 1; transform: translate(calc(-50% - 56px), -50px); }
.demo-fab:hover .fab-item.i3 { opacity: 1; transform: translate(calc(-50% + 56px), -50px); }

/* C 069 Spotlight Card */
.demo-spotcard {
  width: 76%; aspect-ratio: 3/4;
  border-radius: 16px;
  background: linear-gradient(160deg, #14141c, #08080c);
  border: 1px solid var(--line-strong);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.demo-spotcard::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(200px circle at var(--sx, 50%) var(--sy, 50%), rgba(106,92,255,.3), transparent 60%);
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
.demo-spotcard:hover::before { opacity: 1; }
.sc-inner {
  position: relative; z-index: 1;
  padding: 16px; height: 100%;
  display: flex; flex-direction: column;
  justify-content: space-between;
}
.sc-inner span {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-3); letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sc-inner small {
  font-family: var(--font-sans); font-size: 14px;
  color: var(--ink); font-weight: 500;
}

/* ---------- C 024 Liquid Button ---------- */
.demo-liquid {
  appearance: none; border: none;
  width: 110px; height: 110px;
  border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%;
  background: linear-gradient(160deg, #f5f5f7, #d2d2d8);
  color: #0a0a10;
  font-family: var(--font-sans);
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  animation: liquid 6s ease-in-out infinite;
  transition: transform 240ms ease;
  box-shadow: 0 20px 40px -20px rgba(255,255,255,0.2), inset 0 1px 0 rgba(255,255,255,0.6);
}
.demo-liquid:hover { transform: scale(1.08); animation-duration: 2s; }
@keyframes liquid {
  0%   { border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%; }
  33%  { border-radius: 60% 40% 50% 50% / 60% 50% 50% 40%; }
  66%  { border-radius: 50% 50% 40% 60% / 40% 60% 40% 60%; }
  100% { border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%; }
}

/* ---------- C 025 Noise Grain ---------- */
.demo-noise {
  position: relative;
  width: 80%; aspect-ratio: 1/1;
  border-radius: 16px;
  background: linear-gradient(160deg, #1a1a22, #08080c);
  overflow: hidden;
  display: grid; place-items: center;
}
.demo-noise::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
  background-size: 160px;
  opacity: 0.18;
  animation: noise 0.5s steps(8) infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
}
@keyframes noise {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-5%, -5%); }
  40%  { transform: translate(-10%, 5%); }
  60%  { transform: translate(5%, 0); }
  80%  { transform: translate(0, -5%); }
  100% { transform: translate(-5%, 0); }
}
.demo-noise span {
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.3em;
  color: var(--ink-2);
  z-index: 2; position: relative;
}

/* ---------- C 026 Progress Ring ---------- */
.demo-ring { width: 70%; height: 70%; }
.demo-ring circle:last-of-type {
  animation: ringDraw 2.4s ease-in-out infinite alternate;
}
@keyframes ringDraw {
  from { stroke-dashoffset: 220; }
  to   { stroke-dashoffset: 60; }
}

/* ---------- C 027 Status Pulse ---------- */
.demo-pulse {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.p-dot {
  position: relative;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 16px rgba(74,222,128,0.5);
}
.p-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid #4ade80;
  animation: pulse-ring 1.8s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* ---------- C 028 Tooltip ---------- */
.demo-tip { position: relative; display: inline-block; }
.tip-btn {
  background: #f5f5f7; color: #0a0a10;
  border: none; padding: 10px 18px;
  font-family: var(--font-sans); font-weight: 500;
  border-radius: 999px; cursor: pointer;
}
.tip-bubble {
  position: absolute; bottom: calc(100% + 12px);
  left: 50%; transform: translateX(-50%);
  background: #1a1a22;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  box-shadow: 0 12px 24px -10px rgba(0,0,0,0.6);
  animation: tipFloat 2.4s ease-in-out infinite;
}
.tip-arrow {
  position: absolute; left: 50%; bottom: -4px;
  transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: #1a1a22;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
@keyframes tipFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-4px); }
}

/* ---------- C 029 Keyboard Key ---------- */
.demo-keys { display: flex; gap: 8px; }
.demo-keys kbd {
  display: grid; place-items: center;
  min-width: 44px; height: 44px;
  padding: 0 10px;
  background: linear-gradient(180deg, #20202c, #14141c);
  border: 1px solid #2a2a36;
  border-bottom-width: 3px;
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 80ms ease, border-bottom-width 80ms ease;
}
.demo-keys kbd:active {
  transform: translateY(2px);
  border-bottom-width: 1px;
}

/* ---------- C 030 Command Palette ---------- */
.demo-cmd {
  width: 88%;
  background: #0d0d14;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-2);
  box-shadow: 0 30px 40px -20px rgba(0,0,0,0.6);
}
.cmd-input {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  display: flex; gap: 6px; align-items: center;
}
.cmd-input .dim { color: var(--ink-3); }
.cmd-input .caret { animation: blink 1s steps(2) infinite; color: var(--ink); }
@keyframes blink { 50% { opacity: 0; } }
.cmd-row {
  padding: 8px 12px;
  display: flex; justify-content: space-between;
  align-items: center;
}
.cmd-row.hl { background: rgba(255,255,255,0.06); color: var(--ink); }
.cmd-row .kbd {
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-3);
}

/* ---------- C 031 Skeleton ---------- */
.demo-skel {
  width: 80%;
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: 12px 12px 12px;
  gap: 10px 14px;
  align-items: center;
}
.sk {
  display: block;
  background: linear-gradient(90deg, #14141c 0%, #20202c 50%, #14141c 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  border-radius: 6px;
}
.sk.circle { width: 48px; height: 48px; border-radius: 50%; grid-row: span 3; }
.sk.bar { height: 10px; }
.sk.w70 { width: 70%; }
.sk.w50 { width: 50%; }
.sk.w90 { width: 90%; }
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ---------- C 032 Toast ---------- */
.demo-toast {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: #f5f5f7; color: #0a0a10;
  border-radius: 10px;
  box-shadow: 0 20px 40px -20px rgba(255,255,255,0.18);
  animation: toastFloat 2.4s ease-in-out infinite;
}
.demo-toast .ti {
  width: 22px; height: 22px;
  background: #0a0a10; color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px;
}
.demo-toast strong { display: block; font-size: 12px; font-weight: 600; }
.demo-toast small  { display: block; font-size: 11px; opacity: 0.6; font-family: var(--font-mono); }
@keyframes toastFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* ---------- C 033 Accordion ---------- */
.demo-acc { width: 100%; display: grid; gap: 4px; }
.ac {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
}
.ac > span {
  display: flex; justify-content: space-between;
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 12px; color: var(--ink);
  cursor: pointer;
}
.ac > span i {
  font-style: normal;
  color: var(--ink-3);
  font-family: var(--font-mono);
}
.ac > p {
  margin: 0;
  padding: 0 12px 12px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-2);
  display: none;
}
.ac.open > p { display: block; }
.ac.open { background: rgba(255,255,255,0.02); }

/* ---------- C 034 Segmented Control ---------- */
.demo-segment {
  position: relative;
  display: inline-flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.demo-segment button {
  position: relative; z-index: 2;
  background: none; border: none;
  color: var(--ink-2);
  font-family: var(--font-sans); font-size: 12px; font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 200ms ease;
}
.demo-segment button.active { color: #0a0a10; }
.seg-pill {
  position: absolute; z-index: 1;
  top: 4px; bottom: 4px;
  left: calc(33.33% + 2px); width: calc(33.33% - 4px);
  background: #f5f5f7;
  border-radius: 999px;
  transition: left 300ms cubic-bezier(.2,.7,.2,1);
}

/* ---------- C 035 Range Slider ---------- */
.demo-range {
  width: 82%;
  position: relative;
  display: flex; align-items: center;
  padding: 16px 0;
}
.rg-track {
  flex: 1; height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px; position: relative;
}
.rg-fill {
  position: absolute; left: 0; top: 0; height: 100%;
  width: 62%;
  background: linear-gradient(90deg, #a8efff, #6a5cff);
  border-radius: 999px;
}
.rg-thumb {
  position: absolute; left: 62%;
  transform: translate(-50%, -50%);
  top: 50%;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  cursor: grab;
}
.rg-value {
  position: absolute; left: 62%;
  bottom: 100%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink-2);
  background: #1a1a22;
  padding: 2px 6px; border-radius: 4px;
  border: 1px solid var(--line);
}

/* ---------- C 036 Star Rating ---------- */
.demo-stars {
  display: flex; gap: 4px;
  font-size: 28px;
  color: rgba(255,255,255,0.14);
}
.demo-stars span { cursor: pointer; transition: color 200ms ease, transform 200ms ease; }
.demo-stars[data-rating="4"] span:nth-child(-n+4) { color: #fbbf24; }
.demo-stars span:hover { transform: scale(1.2); }

/* ---------- C 037 Pricing Card ---------- */
.demo-price {
  width: 70%;
  display: grid; gap: 8px;
  padding: 16px;
  background: linear-gradient(160deg, #14141c, #08080c);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  text-align: left;
}
.p-tag {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-3); letter-spacing: 0.18em;
  text-transform: uppercase;
}
.p-amt {
  font-family: var(--font-sans); font-weight: 600;
  font-size: 32px; color: var(--ink);
  letter-spacing: -0.02em;
}
.p-amt small {
  font-size: 12px; color: var(--ink-3);
  margin-left: 2px; font-weight: 400;
}
.p-note {
  font-size: 11px; color: var(--ink-2);
}
.p-cta {
  margin-top: 4px;
  background: #f5f5f7; color: #0a0a10;
  border: none;
  padding: 8px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 500; font-size: 12px;
  cursor: pointer;
}

/* ---------- C 038 Search Input ---------- */
.demo-search {
  width: 80%;
  display: flex; align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #14141c;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-3);
}
.demo-search input {
  flex: 1;
  background: transparent; border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--font-sans); font-size: 12px;
}
.demo-search input::placeholder { color: var(--ink-3); }
.demo-search .kbd {
  font-family: var(--font-mono); font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 5px;
}

/* ---------- C 039 Breadcrumb ---------- */
.demo-crumbs {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.demo-crumbs a { cursor: pointer; transition: color 200ms ease; }
.demo-crumbs a:hover { color: var(--ink); }
.demo-crumbs a.current { color: var(--ink); }
.demo-crumbs span { opacity: 0.3; }

/* ---------- C 040 Stepper ---------- */
.demo-stepper {
  display: flex; align-items: center; width: 80%;
}
.step {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3); background: var(--bg);
  flex-shrink: 0;
}
.step.done { background: #f5f5f7; color: #0a0a10; border-color: #f5f5f7; }
.step.now {
  background: var(--bg);
  border: 1.5px solid #fff; color: var(--ink);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
}
.demo-stepper .bar {
  flex: 1; height: 2px;
  background: var(--line);
}
.demo-stepper .bar.done { background: #f5f5f7; }

/* ---------- C 041 Code Block ---------- */
.demo-code {
  width: 84%;
  padding: 16px;
  background: #06060a;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-mono); font-size: 12px;
  line-height: 1.6; color: var(--ink-2);
}
.demo-code .ln { color: #ff79c6; }
.demo-code .va { color: #8be9fd; }
.demo-code .st { color: #50fa7b; }
.demo-code .sv { color: #f1fa8c; }
.demo-code .nu { color: #bd93f9; }

/* ---------- C 042 OTP Input ---------- */
.demo-otp { display: flex; gap: 6px; }
.demo-otp span {
  width: 32px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #0d0d14;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 16px;
  font-weight: 600; color: var(--ink);
}
.demo-otp .cursor {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
  position: relative;
}
.demo-otp .cursor::after {
  content: "";
  width: 2px; height: 20px;
  background: var(--ink);
  animation: blink 1s steps(2) infinite;
}

/* ---------- C 043 Audio Wave ---------- */
.demo-wave {
  display: flex; align-items: center; gap: 4px;
  height: 56px;
}
.demo-wave span {
  width: 4px; height: 30%;
  background: linear-gradient(180deg, #fff, #6a5cff);
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
}
.demo-wave span:nth-child(1) { animation-delay: 0.0s; }
.demo-wave span:nth-child(2) { animation-delay: 0.1s; }
.demo-wave span:nth-child(3) { animation-delay: 0.2s; }
.demo-wave span:nth-child(4) { animation-delay: 0.3s; }
.demo-wave span:nth-child(5) { animation-delay: 0.4s; }
.demo-wave span:nth-child(6) { animation-delay: 0.5s; }
.demo-wave span:nth-child(7) { animation-delay: 0.4s; }
.demo-wave span:nth-child(8) { animation-delay: 0.3s; }
.demo-wave span:nth-child(9) { animation-delay: 0.2s; }
@keyframes wave {
  0%, 100% { height: 18%; }
  50%      { height: 90%; }
}

/* ---------- C 044 Loading Bar ---------- */
.demo-loadbar {
  width: 70%; height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.demo-loadbar > div {
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  animation: loadbar 1.6s ease-in-out infinite;
}
@keyframes loadbar {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}

/* ---------- C 045 Floating Label ---------- */
.demo-float {
  position: relative;
  width: 76%;
}
.demo-float input {
  width: 100%;
  background: #0d0d14;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 18px 14px 8px;
  font-family: var(--font-sans); font-size: 13px;
  color: var(--ink); outline: none;
  transition: border-color 200ms ease;
}
.demo-float input:focus { border-color: rgba(255,255,255,0.32); }
.demo-float span {
  position: absolute; left: 14px; top: 14px;
  font-family: var(--font-sans); font-size: 13px;
  color: var(--ink-3);
  pointer-events: none;
  transition: transform 200ms ease, font-size 200ms ease, color 200ms ease;
  transform-origin: left top;
}
.demo-float input:focus ~ span,
.demo-float input:not(:placeholder-shown) ~ span {
  transform: translateY(-8px) scale(0.78);
  color: var(--ink-2);
}

/* ---------- C 046 Quote Block ---------- */
.demo-quote {
  margin: 0; padding: 0 0 0 24px;
  border-left: 2px solid var(--ink);
  font-family: var(--font-sans);
  font-size: 14px; line-height: 1.5;
  color: var(--ink); max-width: 240px;
  position: relative;
}
.demo-quote .q-mark {
  position: absolute; left: 10px; top: -6px;
  font-family: 'Georgia', serif;
  font-size: 36px; color: var(--ink-3);
  font-style: italic;
}
.demo-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 11px; font-family: var(--font-mono);
  color: var(--ink-3); font-style: normal;
  letter-spacing: 0.08em;
}

/* ---------- C 047 Logo Cloud ---------- */
.demo-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 88%;
}
.demo-logos span {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(50% 50% at 50% 50%, rgba(255,255,255,0.06), transparent 70%),
    #0d0d14;
  position: relative;
}
.demo-logos span::after {
  content: "";
  position: absolute; inset: 30%;
  background: rgba(255,255,255,0.16);
  border-radius: 2px;
}
.demo-logos span:nth-child(1)::after { clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0; }
.demo-logos span:nth-child(2)::after { border-radius: 50%; }
.demo-logos span:nth-child(3)::after { clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 0; }
.demo-logos span:nth-child(4)::after { border-radius: 0; }
.demo-logos span:nth-child(5)::after { clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); border-radius: 0; }
.demo-logos span:nth-child(6)::after { border-radius: 4px 50% 4px 50%; }

/* ---------- C 048 Chat Bubble ---------- */
.demo-chat {
  width: 80%;
  display: grid; gap: 6px;
}
.bub {
  padding: 8px 12px;
  border-radius: 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  max-width: 80%;
  width: fit-content;
}
.bub.them { background: #1a1a22; color: var(--ink); border-bottom-left-radius: 4px; }
.bub.me   { background: #f5f5f7; color: #0a0a10; border-bottom-right-radius: 4px; justify-self: end; }

/* ---------- C 049 Stat Card ---------- */
.demo-stat {
  display: grid; gap: 6px;
  padding: 16px;
  background: linear-gradient(160deg, #14141c, #08080c);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 200px;
}
.stat-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; color: var(--ink-3);
  text-transform: uppercase;
}
.stat-num {
  font-family: var(--font-sans);
  font-weight: 600; font-size: 32px;
  color: var(--ink); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-delta {
  font-family: var(--font-mono); font-size: 11px;
  color: #4ade80;
}

/* ---------- C 050 Gradient Border ---------- */
.demo-gradborder {
  width: 60%; aspect-ratio: 1/1;
  padding: 2px;
  border-radius: 18px;
  background: conic-gradient(from var(--angle, 0deg), #6a5cff, #00e1ff, #ff2dcb, #6a5cff);
  animation: spinBorder 3.5s linear infinite;
  position: relative;
}
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spinBorder { to { --angle: 360deg; } }
.gb-inner {
  width: 100%; height: 100%;
  border-radius: 16px;
  background: #0a0a10;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 22px; color: var(--ink);
  letter-spacing: 0.2em;
}
/* Fallback when @property unsupported */
@supports not (background: paint(something)) {
  .demo-gradborder { animation: spinBorderFallback 3.5s linear infinite; }
}
@keyframes spinBorderFallback {
  0%   { background: linear-gradient(0deg, #6a5cff, #00e1ff, #ff2dcb); }
  50%  { background: linear-gradient(180deg, #6a5cff, #00e1ff, #ff2dcb); }
  100% { background: linear-gradient(360deg, #6a5cff, #00e1ff, #ff2dcb); }
}

/* ---------- C 051 Mac Window ---------- */
.demo-macwin {
  width: 78%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #14141c;
  box-shadow: 0 30px 40px -20px rgba(0,0,0,0.6);
}
.mw-bar {
  display: flex; gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #1a1a22;
}
.mw-bar .dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.mw-bar .dot.r { background: #ff5f56; }
.mw-bar .dot.y { background: #ffbd2e; }
.mw-bar .dot.g { background: #27c93f; }
.mw-body {
  aspect-ratio: 16/10;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(120,120,160,0.16), transparent 70%),
    linear-gradient(180deg, #0d0d14, #06060a);
}

/* ---------- C 052 Terminal ---------- */
.demo-terminal {
  width: 80%;
  padding: 18px;
  background: #06060a;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 12px; color: var(--ink);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.t-prompt { color: #4ade80; }
.t-line   { color: var(--ink-2); }
.t-caret {
  width: 8px; height: 14px;
  background: var(--ink);
  animation: blink 1s steps(2) infinite;
  display: inline-block;
}

/* ---------- C 053 Spinner ---------- */
.demo-spinner {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: #fff;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- C 023 Bento Grid ---------- */
.demo-bento {
  display: grid;
  width: 88%; aspect-ratio: 1/1;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
}
.demo-bento span {
  border-radius: 8px;
  background: linear-gradient(160deg, #16161e, #08080c);
  border: 1px solid #1c1c26;
}
.demo-bento .b1 { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, #1c1c26, #0a0a10); }
.demo-bento .b2 { grid-column: span 1; grid-row: span 1; }
.demo-bento .b3 { grid-column: span 1; grid-row: span 1; background: linear-gradient(160deg, #2a2a36, #14141c); }
.demo-bento .b4 { grid-column: span 1; grid-row: span 1; }
.demo-bento .b5 { grid-column: span 2; grid-row: span 1; background: linear-gradient(160deg, #1c1c26, #0a0a10); }

/* ---------- Footer ---------- */
.footer {
  margin-top: 80px;
  padding: 28px 4px 0;
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-brand { color: var(--ink); }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: none;
}
.modal[aria-hidden="false"] { display: block; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(2,2,4,0.7);
  backdrop-filter: blur(8px);
  animation: fade 200ms ease;
}
.modal-shell {
  position: relative;
  margin: 6vh auto;
  max-width: 880px;
  width: calc(100% - 32px);
  max-height: 88vh;
  background: linear-gradient(180deg, #0f0f15, #08080c);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: pop 240ms cubic-bezier(.2,.7,.2,1);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop  { from { opacity: 0; transform: translateY(8px) scale(0.99); } to { opacity: 1; transform: none; } }

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.modal-titlewrap { display: flex; gap: 14px; align-items: baseline; }
.modal-id {
  font-family: var(--font-mono);
  color: var(--ink-3); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.modal-title {
  margin: 0; font-size: 16px; font-weight: 600;
  color: var(--ink);
}
.modal-close {
  background: transparent; border: 1px solid var(--line);
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  color: var(--ink-2); cursor: pointer;
}
.modal-close:hover { color: #fff; border-color: var(--line-strong); }

.modal-body {
  overflow-y: auto;
  padding: 0;
}
.modal-stage {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--line);
}
.modal-stage.has-customize { grid-template-columns: 1fr 280px; }
.modal-preview {
  height: 320px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 50% at 50% 35%, rgba(255,255,255,0.04), transparent 65%),
    radial-gradient(80% 60% at 50% 110%, rgba(0,0,0,0.6), transparent 50%),
    #0a0a10;
}
.modal-preview > * { max-width: 80%; max-height: 90%; }
.modal-preview.is-section { height: 500px; padding: 24px; }
.modal-preview.is-section > * { max-width: 100%; max-height: 100%; }

/* Customize panel */
.modal-customize {
  height: 320px;
  border-left: 1px solid var(--line);
  background: #08080c;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.modal-customize.hidden { display: none; }
.cust-head {
  padding: 14px 16px 10px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.cust-rows { padding: 12px 16px; display: grid; gap: 14px; flex: 1; }
.cust-row { display: grid; gap: 6px; }
.cust-row.inline { grid-template-columns: 1fr auto; align-items: center; }
.cust-label {
  font-family: var(--font-sans);
  font-size: 11px; color: var(--ink-2);
}
.cust-val {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-3); justify-self: end;
}
.cust-input {
  width: 100%;
  background: #0d0d14;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  color: var(--ink);
  font-family: var(--font-mono); font-size: 11px;
  outline: none;
  transition: border-color .2s;
}
.cust-input:focus { border-color: var(--line-strong); }
.cust-input[type="range"] {
  -webkit-appearance: none; appearance: none;
  height: 4px; padding: 0;
  background: rgba(255,255,255,.08);
  border: none;
  border-radius: 999px;
  cursor: pointer;
}
.cust-input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.cust-input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  border: none;
  cursor: grab;
}
.cust-input[type="color"] {
  -webkit-appearance: none; appearance: none;
  padding: 0;
  width: 100%; height: 28px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
}
.cust-input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.cust-input[type="color"]::-webkit-color-swatch { border: none; border-radius: 4px; }
.cust-reset {
  margin: 0 16px 16px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
  border-radius: 6px;
  padding: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.cust-reset:hover { border-color: var(--line-strong); color: var(--ink); }

@media (max-width: 760px) {
  .modal-stage.has-customize { grid-template-columns: 1fr; }
  .modal-customize { border-left: none; border-top: 1px solid var(--line); height: 240px; }
}

/* ============== NEW COMPONENT DEMOS C 070-075 ============== */

/* C 070 Primary Button */
.demo-btn070 {
  background: #f5f5f7; color: #0a0a10;
  border: none; cursor: pointer;
  font-family: var(--font-sans); font-weight: 500;
  padding: 12px 24px; border-radius: 999px;
  font-size: 14px;
  transition: transform .15s ease, box-shadow .2s ease;
}
.demo-btn070:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(245,245,247,.4); }

/* C 071 Glow Card */
.demo-glowcard {
  width: 76%; aspect-ratio: 3/4;
  padding: 18px;
  border-radius: 16px;
  background: #14141c;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 60px rgba(106,92,255,0.4);
  color: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
}
.demo-glowcard span  { font-family: var(--font-sans); font-weight: 600; font-size: 18px; }
.demo-glowcard small { font-family: var(--font-sans); font-size: 12px; color: var(--ink-2); }

/* C 072 Input Field */
.demo-input {
  width: 82%;
}
.demo-input input {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--ink);
  font-family: var(--font-sans); font-size: 13px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.demo-input input:focus {
  border-color: #6a5cff;
  box-shadow: 0 0 0 3px rgba(106,92,255,0.2);
}
.demo-input input::placeholder { color: var(--ink-3); }

/* C 073 Hero Heading */
.demo-hero {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}
.demo-hero span {
  background: linear-gradient(120deg, #6a5cff, #00e1ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* C 074 Icon Tile */
.demo-icontile {
  width: 84px; height: 84px;
  border-radius: 18px;
  background: linear-gradient(160deg, #6a5cff, #ff2dcb);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 20px 30px -16px rgba(106,92,255,0.5);
}

/* C 075 Gradient Text */
.demo-gradtext {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 42px;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff 0%, #6a5cff 50%, #ff2dcb 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradTextShift 6s ease-in-out infinite alternate;
}
@keyframes gradTextShift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

.modal-tabs {
  display: flex; align-items: center;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
  gap: 2px;
}
.tab {
  background: transparent; border: none;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: color 200ms ease, background 200ms ease;
}
.tab:hover { color: var(--ink-2); }
.tab.active { color: var(--ink); background: rgba(255,255,255,0.06); }
.tab.tab-live { position: relative; }
.tab.tab-live::after {
  content: "";
  position: absolute;
  top: 6px; right: 6px;
  width: 5px; height: 5px;
  background: #6a5cff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(106,92,255,.6);
}
.tab-spacer { flex: 1; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f5f5f7; color: #0a0a10;
  border: none; padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 150ms ease, background 200ms ease;
}
.copy-btn:hover { background: #fff; }
.copy-btn:active { transform: translateY(1px); }

.modal-code {
  margin: 0;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: #d5d5dc;
  background: #06060a;
  max-height: 320px;
  overflow: auto;
  white-space: pre;
}

/* Info modal */
.info-shell { max-width: 540px; }
.info-body { padding: 22px; color: var(--ink-2); line-height: 1.6; font-size: 14px; }
.info-body p { margin: 0 0 12px; }
.info-body strong { color: var(--ink); font-weight: 600; }
.info-list { list-style: none; padding: 0; margin: 16px 0 0; }
.info-list li { padding: 6px 0; color: var(--ink-2); font-family: var(--font-mono); font-size: 12px; }
.info-list li span { color: var(--ink-3); margin-right: 8px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #f5f5f7; color: #0a0a10;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), opacity 220ms ease;
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   TEMPLATES — multi-page site mockups
   ============================================ */

.grid-templates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1180px) { .grid-templates { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .grid-templates { grid-template-columns: 1fr; } }

.tpl-card { padding: 0; }
.tpl-stage {
  padding: 18px;
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(255,255,255,0.05), transparent 65%),
    radial-gradient(80% 60% at 50% 110%, rgba(0,0,0,0.6), transparent 50%);
  aspect-ratio: 16/11;
  display: grid; place-items: center;
}

.tpl-browser {
  width: 100%; aspect-ratio: 16/10;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: #0d0d14;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.6);
}
.tpl-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: #1a1a22;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.tpl-dot { width: 8px; height: 8px; border-radius: 50%; }
.tpl-dot.r { background: #ff5f56; }
.tpl-dot.y { background: #ffbd2e; }
.tpl-dot.g { background: #27c93f; }
.tpl-url {
  margin-left: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(255,255,255,.4);
  letter-spacing: .08em;
}
.tpl-page {
  padding: 14px 16px;
  height: calc(100% - 24px);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}

/* T 001 Lumen - Agency (dark elegant) */
.tpl-lumen .tpl-page { background: #07070a; }
.lm-nav { display: flex; gap: 8px; margin-bottom: 14px; }
.lm-nav span { width: 18px; height: 4px; background: rgba(255,255,255,.2); border-radius: 2px; }
.lm-nav span:first-child { background: #fff; width: 14px; }
.lm-h {
  font-family: 'Fraunces', serif;
  font-size: 16px; font-weight: 400;
  color: #f4f4f6;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.lm-h em { font-style: italic; color: #fff; }
.lm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  flex: 1;
}
.lm-grid span { background: linear-gradient(160deg, #1a1a22, #0a0a10); border-radius: 3px; }

/* T 002 Orbit - SaaS (bright gradient) */
.tpl-orbit .tpl-page {
  background:
    radial-gradient(60% 50% at 70% 0%, rgba(106,92,255,.4), transparent 65%),
    radial-gradient(50% 50% at 20% 80%, rgba(255,45,203,.25), transparent 65%),
    #0d0d14;
  position: relative;
}
.ob-glow {
  position: absolute; top: -20%; right: -10%;
  width: 60%; aspect-ratio: 1/1;
  background: radial-gradient(60% 60% at 50% 50%, rgba(106,92,255,.6), transparent 70%);
  filter: blur(20px);
}
.ob-h {
  position: relative; z-index: 1;
  font-family: 'Inter', sans-serif;
  font-size: 18px; font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 14px 0 14px;
}
.ob-row {
  display: flex; gap: 6px;
  position: relative; z-index: 1;
  margin-bottom: 16px;
}
.ob-input {
  flex: 1; height: 22px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 4px;
}
.ob-btn {
  width: 50px; height: 22px;
  background: #fff;
  border-radius: 4px;
}
.ob-logos {
  display: flex; gap: 8px; margin-top: auto;
  position: relative; z-index: 1;
}
.ob-logos span {
  flex: 1; height: 10px;
  background: rgba(255,255,255,.16);
  border-radius: 2px;
}

/* T 003 Drift - Editorial (serif, minimal) */
.tpl-drift .tpl-page { background: #f5f3ee; padding-top: 12px; }
.dr-nav { display: flex; justify-content: center; margin-bottom: 14px; }
.dr-nav span { width: 28px; height: 3px; background: #0a0a10; border-radius: 2px; }
.dr-h {
  font-family: 'Fraunces', serif;
  font-size: 18px; font-weight: 500;
  color: #0a0a10;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0 0 6px;
  text-align: center;
}
.dr-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px; color: #6a6a78;
  letter-spacing: .14em; text-transform: uppercase;
  text-align: center;
  margin-bottom: 14px;
}
.dr-cols { display: grid; gap: 4px; flex: 1; }
.dr-l { height: 5px; background: rgba(10,10,16,.15); border-radius: 1px; width: 100%; }
.dr-l.w70 { width: 70%; }

/* T 004 Forge - Dev Tools (mono, technical) */
.tpl-forge .tpl-page { background: #06060a; padding: 0; flex-direction: row; }
.fg-side {
  width: 60px;
  background: rgba(255,255,255,.02);
  border-right: 1px solid rgba(255,255,255,.06);
  padding: 12px 8px;
  display: grid; gap: 6px; align-content: start;
}
.fg-side span { height: 6px; background: rgba(255,255,255,.08); border-radius: 2px; }
.fg-side span:first-child { background: #6a5cff; }
.fg-main {
  flex: 1; padding: 14px 16px;
  display: grid; gap: 6px; align-content: start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
}
.fg-prompt { color: #4ade80; }
.fg-l { color: rgba(255,255,255,.5); }
.fg-l.ok { color: #4ade80; }

/* T 005 Veil - Photography (grid) */
.tpl-veil .tpl-page { background: #fff; padding: 8px; }
.vl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 100%; height: 100%;
}
.vl-grid span {
  background: linear-gradient(160deg, #d4d4dc, #9a9aa5);
  border-radius: 2px;
}
.vl-grid span:nth-child(1) { background: linear-gradient(160deg, #f0d5b0, #c8825a); }
.vl-grid span:nth-child(3) { background: linear-gradient(160deg, #b5c5e0, #5a7aa0); }
.vl-grid span:nth-child(5) { background: linear-gradient(160deg, #d2c0e0, #8a5ab0); }

/* T 006 Pulse - E-commerce */
.tpl-pulse .tpl-page { background: #fafaf8; }
.ps-nav {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.ps-nav span { height: 4px; background: rgba(10,10,16,.3); border-radius: 2px; }
.ps-nav span:first-child { width: 30px; background: #0a0a10; }
.ps-nav span:nth-child(2) { flex: 1; }
.ps-nav .ps-cart { width: 16px; height: 16px; border-radius: 4px; background: #0a0a10; }
.ps-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  flex: 1;
}
.ps-prod {
  background: #fff;
  border: 1px solid rgba(10,10,16,.08);
  border-radius: 4px;
  padding: 4px;
  display: grid; gap: 3px;
}
.ps-img {
  aspect-ratio: 1/1;
  background: linear-gradient(160deg, #f5d5a8, #d28266);
  border-radius: 2px;
}
.ps-prod:nth-child(2) .ps-img { background: linear-gradient(160deg, #c5b3e0, #6a5cff); }
.ps-prod:nth-child(3) .ps-img { background: linear-gradient(160deg, #a8e0d5, #5cc8b0); }
.ps-name { height: 3px; background: #0a0a10; border-radius: 1px; width: 80%; }
.ps-price { height: 3px; background: rgba(10,10,16,.4); border-radius: 1px; width: 40%; }

/* Template modal — multi-page grid */
.tpl-pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  padding: 20px;
  background: #06060a;
}
.tpl-page-thumb {
  background: #0d0d14;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/10;
  position: relative;
}
.tpl-page-label {
  position: absolute;
  bottom: 8px; left: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(255,255,255,.6);
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(0,0,0,.6);
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}
.tpl-desc {
  padding: 18px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  border-bottom: 1px solid var(--line);
}
.tpl-desc strong { color: var(--ink); font-weight: 600; }
.tpl-feats {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 10px;
}
.tpl-feats span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--ink-2);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ============================================
   NEW COMPONENT DEMOS C 126 – C 145
   ============================================ */

/* C 126 Color Picker */
.demo-cpicker {
  width: 220px;
  background: #14141f;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 14px;
  font-family: 'Inter', sans-serif;
}
.cp-canvas {
  aspect-ratio: 6/4;
  background:
    linear-gradient(0deg, #000, transparent),
    linear-gradient(90deg, #fff, #6a5cff);
  border-radius: 8px;
  position: relative;
  margin-bottom: 12px;
}
.cp-canvas::after {
  content: ""; position: absolute;
  top: 30%; left: 70%;
  width: 10px; height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,.5);
  transform: translate(-50%, -50%);
}
.cp-row { margin-bottom: 12px; }
.cp-hue {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
  position: relative;
}
.cp-thumb {
  position: absolute;
  top: 50%; left: 56%;
  transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.cp-foot { display: flex; align-items: center; gap: 10px; }
.cp-sw {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,.14);
}
.cp-hex {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #f4f4f6;
  letter-spacing: .04em;
}

/* C 127 Upload Zone */
.demo-upload {
  display: grid;
  gap: 8px;
  justify-items: center;
  width: 86%;
  padding: 40px 24px;
  background: rgba(106,92,255,.06);
  border: 1.5px dashed rgba(106,92,255,.4);
  border-radius: 14px;
  color: rgba(255,255,255,.7);
  font-family: 'Inter', sans-serif;
  text-align: center;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.demo-upload:hover { background: rgba(106,92,255,.12); border-color: rgba(106,92,255,.7); }
.demo-upload svg { color: #6a5cff; margin-bottom: 4px; }
.demo-upload strong { color: #f4f4f6; font-size: 14px; font-weight: 600; }
.demo-upload small { font-size: 12px; color: rgba(255,255,255,.5); }
.demo-upload u { color: #6a5cff; text-decoration: underline; }

/* C 128 Multi-Select */
.demo-multi {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 10px 14px;
  width: 100%;
  max-width: 340px;
  background: #0d0d14;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
}
.ms-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(106,92,255,.22);
  color: #c9b3ff;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.ms-chip i { font-style: normal; opacity: .6; cursor: pointer; font-size: 13px; }
.demo-multi input {
  flex: 1; min-width: 80px;
  background: none; border: none; outline: none;
  color: #f4f4f6; font-size: 13px; font-family: inherit;
}
.demo-multi input::placeholder { color: #6a6a78; }

/* C 129 Country Picker */
.demo-country {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 14px 11px 16px;
  background: #0d0d14;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  color: #f4f4f6;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  cursor: pointer;
  min-width: 230px;
}
.cy-flag { font-size: 18px; }
.cy-name { flex: 1; }
.cy-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,.5);
  padding: 2px 8px;
  background: rgba(255,255,255,.06);
  border-radius: 999px;
}
.demo-country svg { color: rgba(255,255,255,.5); }

/* C 130 Vertical Stepper */
.demo-vstep {
  display: grid;
  gap: 14px;
  font-family: 'Inter', sans-serif;
  position: relative;
  padding-left: 14px;
}
.vs-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  position: relative;
}
.vs-item:not(:last-child)::after {
  content: ""; position: absolute;
  left: 16px; top: 32px; bottom: -18px;
  width: 1.5px;
  background: rgba(255,255,255,.1);
}
.vs-item.done:not(:last-child)::after { background: #6a5cff; }
.vs-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.5);
  background: #07070a;
  z-index: 1;
}
.vs-item.done .vs-num { background: #6a5cff; border-color: #6a5cff; color: #fff; }
.vs-item.now .vs-num {
  background: #07070a;
  border-color: #6a5cff;
  color: #6a5cff;
  box-shadow: 0 0 0 4px rgba(106,92,255,.15);
}
.vs-item strong { color: #f4f4f6; font-size: 14px; font-weight: 500; display: block; }
.vs-item small { color: rgba(255,255,255,.5); font-size: 12px; }
.vs-item.done strong, .vs-item.now strong { color: #fff; }

/* C 131 Vertical Timeline */
.demo-vtimeline {
  display: grid; gap: 20px;
  font-family: 'Inter', sans-serif;
  padding-left: 8px;
}
.vt-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  position: relative;
}
.vt-item:not(:last-child)::after {
  content: ""; position: absolute;
  left: 10px; top: 22px; bottom: -22px;
  width: 1.5px;
  background: rgba(255,255,255,.1);
}
.vt-dot {
  width: 10px; height: 10px;
  margin-top: 6px; margin-left: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74,222,128,.18);
}
.vt-dot.now {
  background: #6a5cff;
  box-shadow: 0 0 0 4px rgba(106,92,255,.2);
  position: relative;
}
.vt-dot.now::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1.5px solid #6a5cff;
  animation: vtpulse 1.6s ease-out infinite;
}
.vt-dot.dim { background: rgba(255,255,255,.18); box-shadow: 0 0 0 4px rgba(255,255,255,.04); }
@keyframes vtpulse { 0%{transform:scale(1);opacity:.6} 100%{transform:scale(2);opacity:0} }
.vt-item strong { color: #f4f4f6; font-size: 14px; font-weight: 500; display: block; }
.vt-item small { color: rgba(255,255,255,.5); font-size: 12px; font-family: 'JetBrains Mono', monospace; letter-spacing: .04em; }
.vt-item.dim strong { color: rgba(255,255,255,.5); }

/* C 132 Floating TOC */
.demo-toc {
  display: grid;
  gap: 4px;
  width: 220px;
  padding: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
}
.toc-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,.4);
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 4px 10px 8px;
}
.demo-toc a {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
  border-left: 2px solid transparent;
}
.demo-toc a:hover { color: #f4f4f6; background: rgba(255,255,255,.04); }
.demo-toc a.active {
  color: #fff;
  border-left-color: #6a5cff;
  background: rgba(106,92,255,.08);
}

/* C 133 404 State */
.demo-404 {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: 8px;
  font-family: 'Inter', sans-serif;
}
.e404-code {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 92px;
  line-height: 1;
  background: linear-gradient(120deg, #6a5cff, #ff2dcb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
}
.demo-404 strong { color: #f4f4f6; font-size: 18px; font-weight: 600; }
.demo-404 small { color: rgba(255,255,255,.6); font-size: 13px; }
.e404-cta {
  margin-top: 8px;
  background: #fff; color: #0a0a10;
  border: none; padding: 10px 20px;
  border-radius: 999px;
  font-family: inherit; font-weight: 500; font-size: 13px;
  cursor: pointer;
  transition: transform .2s ease;
}
.e404-cta:hover { transform: translateY(-1px); }

/* C 134 Tour Popover */
.demo-tour {
  position: relative;
  width: 100%; max-width: 320px;
  padding: 24px 0;
}
.tour-target {
  width: 100%; height: 36px;
  background: rgba(106,92,255,.08);
  border: 1.5px dashed rgba(106,92,255,.6);
  border-radius: 8px;
  position: relative;
  z-index: 1;
}
.tour-pop {
  position: absolute;
  top: 80px; left: 50%;
  transform: translateX(-50%);
  width: 280px;
  padding: 16px 18px;
  background: #14141f;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.6);
}
.tour-arrow {
  position: absolute;
  top: -7px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: #14141f;
  border-top: 1px solid rgba(255,255,255,.14);
  border-left: 1px solid rgba(255,255,255,.14);
}
.tour-step {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  color: #6a5cff;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.tour-pop strong { color: #f4f4f6; font-size: 14px; font-weight: 600; display: block; }
.tour-pop p { color: rgba(255,255,255,.6); font-size: 12px; line-height: 1.5; margin: 4px 0 12px; }
.tour-row { display: flex; gap: 6px; justify-content: flex-end; }
.tour-row button {
  font-family: inherit; font-weight: 500; font-size: 11px;
  padding: 6px 12px; border-radius: 6px;
  cursor: pointer; border: none;
}
.tour-skip { background: transparent; color: rgba(255,255,255,.5); }
.tour-next { background: #6a5cff; color: #fff; }

/* C 135 Alert Variants */
.demo-alertv { display: grid; gap: 8px; width: 320px; font-family: 'Inter', sans-serif; }
.alv {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}
.alv span {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}
.alv-info { background: rgba(106,92,255,.1); color: #c9b3ff; border: 1px solid rgba(106,92,255,.3); }
.alv-info span { background: #6a5cff; color: #fff; }
.alv-success { background: rgba(74,222,128,.1); color: #4ade80; border: 1px solid rgba(74,222,128,.3); }
.alv-success span { background: #4ade80; color: #0a0a10; }
.alv-warn { background: rgba(251,191,36,.1); color: #fbbf24; border: 1px solid rgba(251,191,36,.3); }
.alv-warn span { background: #fbbf24; color: #0a0a10; }
.alv-error { background: rgba(239,68,68,.1); color: #ef4444; border: 1px solid rgba(239,68,68,.3); }
.alv-error span { background: #ef4444; color: #fff; }

/* C 136 Gauge */
.demo-gauge {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
}
.demo-gauge svg { display: block; }
.ga-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -10%);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: #f4f4f6;
  letter-spacing: -0.02em;
}
.ga-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-top: 6px;
}

/* C 137 Trend Card */
.demo-trend {
  width: 280px;
  padding: 20px;
  background: linear-gradient(160deg, #14141f, #08080c);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
}
.tr-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.tr-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
}
.tr-delta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #4ade80;
  font-weight: 600;
}
.tr-value {
  display: block;
  font-weight: 700;
  font-size: 32px;
  color: #f4f4f6;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.tr-spark { margin-left: -4px; }

/* C 138 Comparison Table */
.demo-cmptable {
  width: 100%;
  max-width: 380px;
  background: #0d0d14;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}
.cmpt-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px;
  padding: 12px 18px;
  font-size: 13px;
  color: rgba(255,255,255,.8);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.cmpt-row:last-child { border-bottom: none; }
.cmpt-row > span { text-align: center; }
.cmpt-row > span:first-child { text-align: left; color: rgba(255,255,255,.6); }
.cmpt-row.cmpt-head { background: rgba(255,255,255,.03); padding: 12px 18px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.cmpt-row .hi { color: #c9b3ff; font-weight: 600; }
.cmpt-row.cmpt-head .hi { color: #6a5cff; }
.cmpt-row .x { color: rgba(255,255,255,.25); }
.cmpt-row .v { color: #4ade80; }

/* C 139 Sparkbar */
.demo-sparkbar {
  width: 280px;
  padding: 20px;
  background: linear-gradient(160deg, #14141f, #08080c);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
}
.sb-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.sb-val {
  display: block;
  font-weight: 700;
  font-size: 26px;
  color: #f4f4f6;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
}
.sb-val small { font-size: 12px; color: #4ade80; font-family: 'JetBrains Mono', monospace; font-weight: 500; margin-left: 6px; }
.sb-bars { display: flex; align-items: end; gap: 6px; height: 48px; }
.sb-bars span {
  flex: 1;
  background: linear-gradient(180deg, #6a5cff, #4a3aaa);
  border-radius: 3px 3px 1px 1px;
  animation: sbgrow 1.4s ease-out;
  min-height: 4px;
}
@keyframes sbgrow { from { height: 0 !important; } }

/* C 140 Logos Marquee */
.demo-lmarq {
  width: 100%;
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
}
.demo-lmarq::before, .demo-lmarq::after {
  content: ""; position: absolute; top: 0; bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}
.demo-lmarq::before { left: 0; background: linear-gradient(90deg, var(--bg, #07070a), transparent); }
.demo-lmarq::after { right: 0; background: linear-gradient(-90deg, var(--bg, #07070a), transparent); }
.lm-track {
  display: flex; gap: 40px;
  white-space: nowrap;
  animation: lmscroll 18s linear infinite;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 22px;
  color: rgba(255,255,255,.5);
}
@keyframes lmscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* C 141 Bento 5-Cell */
.demo-bento5 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  width: 88%;
  aspect-ratio: 1/1;
}
.b5 {
  border-radius: 10px;
  background: linear-gradient(160deg, #14141f, #0a0a10);
  border: 1px solid rgba(255,255,255,.06);
}
.b5-1 {
  grid-column: 1; grid-row: 1 / span 2;
  background: linear-gradient(160deg, rgba(106,92,255,.4), rgba(255,45,203,.2)), #14141f;
  display: grid;
  align-items: end;
  padding: 16px;
}
.b5-1 strong { color: #fff; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; }
.b5-2 { background: linear-gradient(160deg, rgba(74,222,128,.2), transparent), #14141f; }
.b5-3 { background: linear-gradient(160deg, rgba(0,225,255,.2), transparent), #14141f; }
.b5-4 { background: linear-gradient(160deg, rgba(255,45,203,.2), transparent), #14141f; }
.b5-5 { background: linear-gradient(160deg, rgba(251,191,36,.2), transparent), #14141f; }

/* C 142 Reveal Card */
.demo-reveal-card {
  width: 240px;
  aspect-ratio: 1/1;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.rv-front, .rv-back {
  position: absolute;
  inset: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .4s ease;
}
.rv-front {
  background: linear-gradient(160deg, #14141f, #08080c);
  border: 1px solid rgba(255,255,255,.08);
  z-index: 2;
}
.rv-tag {
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #c9b3ff;
  background: rgba(106,92,255,.18);
  padding: 4px 10px;
  border-radius: 999px;
}
.rv-front strong {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #f4f4f6;
}
.rv-back {
  background: linear-gradient(160deg, #6a5cff, #ff2dcb);
  color: #fff;
  transform: translateY(100%);
  opacity: 0;
  z-index: 3;
}
.demo-reveal-card:hover .rv-back { transform: translateY(0); opacity: 1; }
.demo-reveal-card:hover .rv-front { transform: translateY(-10%); opacity: .4; }
.rv-back p { font-size: 14px; line-height: 1.55; }
.rv-arrow { font-size: 28px; align-self: flex-end; }

/* C 143 Audio Player */
.demo-audio {
  width: 320px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: #14141f;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
}
.aud-play {
  width: 38px; height: 38px;
  background: linear-gradient(120deg, #6a5cff, #ff2dcb);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  padding-left: 2px;
  cursor: pointer;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px -6px rgba(106,92,255,.5);
}
.aud-mid { flex: 1; }
.aud-title { display: block; font-size: 13px; color: #f4f4f6; font-weight: 500; margin-bottom: 4px; }
.aud-bar {
  height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}
.aud-bar span {
  position: absolute;
  inset: 0 50% 0 0;
  background: linear-gradient(90deg, #6a5cff, #ff2dcb);
  border-radius: 999px;
}
.aud-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
}

/* C 144 Magazine Cover Card */
.demo-mag {
  position: relative;
  width: 80%;
  aspect-ratio: 3/4;
  padding: 24px;
  background: linear-gradient(160deg, #faf2e6, #f0e5d2);
  border-radius: 14px;
  overflow: hidden;
  font-family: 'Fraunces', serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mag-issue {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #8a5a3a;
  font-weight: 600;
}
.demo-mag h3 {
  font-weight: 400;
  font-size: 38px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #1c1410;
  position: relative;
  z-index: 1;
}
.demo-mag h3 em { font-style: italic; color: #d4825c; }
.mag-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(28,20,16,.55);
  position: relative;
  z-index: 1;
}
.mag-blob {
  position: absolute;
  width: 70%;
  aspect-ratio: 1/1;
  bottom: -20%; right: -15%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(212,130,92,.6) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(8px);
}

/* C 145 Quick View */
.demo-quickview {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 14px;
  width: 100%;
  max-width: 380px;
  padding: 14px;
  background: #14141f;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
}
.qv-img {
  aspect-ratio: 1/1;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(106,92,255,.6), transparent 70%),
    linear-gradient(160deg, #1a1a22, #08080c);
  border-radius: 10px;
}
.qv-body { display: grid; align-content: center; gap: 6px; }
.qv-body strong { color: #f4f4f6; font-size: 16px; font-weight: 600; }
.qv-price {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  color: #fff;
  letter-spacing: -0.02em;
}
.qv-row { display: flex; gap: 6px; margin: 6px 0 10px; }
.qv-sw {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.14);
  cursor: pointer;
  transition: transform .15s;
}
.qv-sw:hover { transform: scale(1.15); }
.qv-sw.active { border-color: #fff; }
.qv-cta {
  background: #fff;
  color: #0a0a10;
  border: none;
  padding: 9px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
  transition: background .2s;
}
.qv-cta:hover { background: #c9b3ff; color: #0a0a10; }

/* ============================================
   NEW COMPONENT DEMOS C 111 – C 125
   ============================================ */

/* C 111 Soft Button */
.demo-soft {
  background: rgba(106, 92, 255, 0.18);
  color: #c9b3ff;
  border: 1px solid rgba(106, 92, 255, 0.4);
  padding: 12px 26px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.demo-soft:hover { background: rgba(106,92,255,.28); border-color: rgba(106,92,255,.6); }

/* C 112 Loading Button */
.demo-loadingbtn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #f5f5f7;
  color: #0a0a10;
  border: none;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px;
  cursor: progress;
  opacity: 0.85;
}
.lb-spin {
  width: 14px; height: 14px;
  border: 2px solid rgba(10,10,16,.2);
  border-top-color: #0a0a10;
  border-radius: 50%;
  animation: lbspin 0.8s linear infinite;
}
@keyframes lbspin { to { transform: rotate(360deg); } }

/* C 113 Number Stepper */
.demo-stepper-n {
  display: inline-flex; align-items: center;
  background: #0d0d14;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}
.ns-btn {
  background: transparent;
  color: #b4b4be;
  border: none;
  width: 40px; height: 44px;
  cursor: pointer;
  font-size: 18px; font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.ns-btn:hover { background: rgba(255,255,255,.06); color: #fff; }
.ns-val {
  min-width: 56px;
  text-align: center;
  color: #f4f4f6;
  font-weight: 600; font-size: 17px;
  font-variant-numeric: tabular-nums;
  border-left: 1px solid rgba(255,255,255,.08);
  border-right: 1px solid rgba(255,255,255,.08);
  padding: 11px 0;
}

/* C 114 Slider with Value */
.demo-slidervalue {
  display: grid; gap: 12px;
  width: 88%;
  font-family: 'Inter', sans-serif;
}
.sv-label { font-family: var(--font-mono); font-size: 11px; color: #6a6a78; letter-spacing: .16em; text-transform: uppercase; }
.sv-row { display: flex; align-items: center; gap: 14px; }
.sv-track {
  flex: 1; height: 5px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  position: relative;
}
.sv-fill {
  position: absolute;
  left: 0; top: 0; height: 100%;
  width: 72%;
  background: linear-gradient(90deg, #6a5cff, #00e1ff);
  border-radius: 999px;
}
.sv-fill::after {
  content: "";
  position: absolute;
  right: -8px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.sv-val {
  min-width: 50px;
  text-align: right;
  font-weight: 600; font-size: 14px;
  color: #f4f4f6;
  font-variant-numeric: tabular-nums;
}

/* C 115 Range Picker */
.demo-rangepicker {
  position: relative;
  width: 88%;
  padding: 18px 0;
}
.rp-track {
  height: 5px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  position: relative;
}
.rp-fill {
  position: absolute;
  left: 20%; right: 30%; top: 0;
  height: 100%;
  background: linear-gradient(90deg, #6a5cff, #ff2dcb);
  border-radius: 999px;
}
.rp-thumb {
  position: absolute; top: 50%;
  transform: translate(-50%, -50%);
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  cursor: grab;
}
.rp-thumb.a { left: 20%; }
.rp-thumb.b { left: 70%; }
.rp-labels {
  display: flex; justify-content: space-between;
  margin-top: 12px;
  font-family: var(--font-mono); font-size: 11px;
  color: #b4b4be;
  font-variant-numeric: tabular-nums;
}
.rp-labels span:first-child { margin-left: 20%; transform: translateX(-50%); }
.rp-labels span:last-child  { margin-right: 30%; transform: translateX(50%); }

/* C 116 Feature Card */
.demo-feature {
  display: grid; gap: 10px;
  padding: 22px 20px;
  background: linear-gradient(160deg, #14141c, #08080c);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  max-width: 260px;
}
.ft-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(160deg, #6a5cff, #ff2dcb);
  display: grid; place-items: center;
  color: #fff;
  margin-bottom: 4px;
}
.demo-feature strong { color: #f4f4f6; font-size: 15px; font-weight: 600; }
.demo-feature small { color: #b4b4be; font-size: 13px; line-height: 1.5; }

/* C 117 Pricing Comparison */
.demo-pricecmp {
  display: flex; gap: 8px;
  width: 88%;
  font-family: 'Inter', sans-serif;
}
.pc-tier {
  flex: 1;
  display: grid; gap: 6px;
  padding: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  text-align: center;
}
.pc-tier.highlight {
  background: linear-gradient(160deg, rgba(106,92,255,.18), rgba(255,45,203,.12));
  border-color: rgba(106,92,255,.5);
}
.pc-tier strong { color: #f4f4f6; font-size: 12px; font-weight: 500; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.pc-price { color: #fff; font-weight: 600; font-size: 22px; letter-spacing: -.02em; }

/* C 118 Word Cycle */
.demo-wordcycle {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 36px;
  color: #f4f4f6;
  letter-spacing: -.02em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.wc-words {
  position: relative;
  display: inline-block;
  height: 1.2em;
  overflow: hidden;
  vertical-align: bottom;
  min-width: 5ch;
}
.wc-words span {
  display: block;
  background: linear-gradient(120deg, #6a5cff, #ff2dcb);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: wcRoll 6s ease-in-out infinite;
}
.wc-words span:nth-child(1) { animation-delay: 0s; }
.wc-words span:nth-child(2) { animation-delay: -4s; }
.wc-words span:nth-child(3) { animation-delay: -2s; }
@keyframes wcRoll {
  0%, 30% { transform: translateY(0); }
  35%, 65% { transform: translateY(-100%); }
  70%, 100% { transform: translateY(-200%); }
}

/* C 119 Inline Code */
.demo-inlinecode {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #b4b4be;
  max-width: 320px;
  text-align: center;
  margin: 0;
}
.demo-inlinecode code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: rgba(106,92,255,.16);
  color: #c9b3ff;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(106,92,255,.2);
}

/* C 120 Snackbar */
.demo-snack {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 14px 12px 16px;
  background: #1a1a22;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: #f4f4f6;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  box-shadow: 0 24px 40px -16px rgba(0,0,0,.5);
}
.sn-icon {
  width: 22px; height: 22px;
  background: #4ade80;
  color: #0a0a10;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.sn-action {
  background: transparent;
  color: #6a5cff;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: inherit; font-weight: 500; font-size: 13px;
  cursor: pointer;
}
.sn-action:hover { color: #c9b3ff; }

/* C 121 Page Progress */
.demo-pageprog {
  position: relative;
  width: 100%; max-width: 320px;
  padding-top: 6px;
}
.pp-bar {
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  width: 64%;
  background: linear-gradient(90deg, #6a5cff, #ff2dcb);
  border-radius: 999px;
  animation: ppGrow 5s ease-in-out infinite alternate;
}
@keyframes ppGrow { from { width: 5%; } to { width: 95%; } }
.pp-doc {
  display: grid; gap: 8px;
  margin-top: 16px;
}
.pp-line {
  height: 8px;
  background: rgba(255,255,255,.06);
  border-radius: 4px;
}
.pp-line.w90 { width: 90%; }
.pp-line.w70 { width: 70%; }
.pp-line.w80 { width: 80%; }
.pp-line.w50 { width: 50%; }

/* C 122 Tab Switcher */
.demo-tabs {
  position: relative;
  display: inline-flex;
  background: rgba(255,255,255,.04);
  border-radius: 10px;
  padding: 4px;
  font-family: 'Inter', sans-serif;
}
.demo-tabs button {
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  color: rgba(255,255,255,.6);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border-radius: 6px;
  transition: color .2s ease;
}
.demo-tabs button.active { color: #f4f4f6; }
.tab-indicator {
  position: absolute;
  z-index: 1;
  top: 4px; bottom: 4px;
  left: 4px; width: 88px;
  background: rgba(255,255,255,.1);
  border-radius: 6px;
  transition: left .3s cubic-bezier(.2,.7,.2,1);
}

/* C 123 Bottom Nav */
.demo-bottomnav {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: rgba(20, 20, 28, 0.9);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-family: 'Inter', sans-serif;
}
.demo-bottomnav a {
  display: grid; gap: 4px; justify-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.demo-bottomnav a small { font-size: 10px; font-weight: 500; letter-spacing: .04em; }
.demo-bottomnav a.active { color: #fff; background: rgba(255,255,255,.06); }
.demo-bottomnav a:hover { color: #fff; }

/* C 124 Data Table */
.demo-datatable {
  width: 88%; max-width: 320px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  overflow: hidden;
  background: #0d0d14;
  font-family: 'Inter', sans-serif;
}
.demo-datatable .dt-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #f4f4f6;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.demo-datatable .dt-row:last-child { border-bottom: none; }
.demo-datatable .dt-head {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #6a6a78;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(255,255,255,.02);
}
.dt-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.dt-tag.ok { background: rgba(74,222,128,.15); color: #4ade80; }
.dt-tag.idle { background: rgba(255,255,255,.06); color: #b4b4be; }

/* C 125 Glass Card */
.demo-glass {
  position: relative;
  width: 76%; max-width: 220px;
  padding: 24px 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 24px 48px -16px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08);
  font-family: 'Inter', sans-serif;
}
.demo-glass strong {
  display: block;
  color: #f4f4f6;
  font-size: 18px; font-weight: 600;
  margin-bottom: 6px;
}
.demo-glass small { color: #b4b4be; font-size: 13px; }

/* ============================================
   NEW COMPONENT DEMOS C 091 – C 110
   ============================================ */

/* C 091 Outline Button */
.demo-outline {
  background: transparent;
  color: #f4f4f6;
  border: 2px solid currentColor;
  padding: 12px 26px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.demo-outline:hover { background: #f4f4f6; color: #0a0a10; }

/* C 092 Gradient Button */
.demo-gradbtn {
  background: linear-gradient(120deg, #6a5cff, #ff2dcb);
  background-size: 200% 200%;
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px;
  cursor: pointer;
  box-shadow: 0 12px 30px -8px rgba(106,92,255,.5);
  animation: gradMove 6s ease-in-out infinite;
  transition: transform .15s ease;
}
.demo-gradbtn:hover { transform: translateY(-1px); }
@keyframes gradMove { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* C 093 Pill Icon Button */
.demo-pillicon {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.06);
  color: #f4f4f6;
  border: 1px solid rgba(255,255,255,.1);
  padding: 10px 16px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 13px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.demo-pillicon:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); }

/* C 094 Floating CTA */
.demo-fcta {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px 12px 16px;
  background: #14141c;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  box-shadow: 0 24px 40px -16px rgba(0,0,0,.5);
  font-family: 'Inter', sans-serif;
  max-width: 360px;
}
.fc-emoji { font-size: 22px; }
.fc-text { flex: 1; line-height: 1.2; }
.fc-text strong { display: block; color: #f4f4f6; font-size: 13px; font-weight: 600; }
.fc-text small { display: block; color: #b4b4be; font-size: 11px; margin-top: 2px; }
.demo-fcta button {
  background: #f5f5f7; color: #0a0a10;
  border: none; padding: 8px 16px;
  border-radius: 999px; font-weight: 500; font-size: 12px;
  cursor: pointer;
}

/* C 095 Tags Input */
.demo-tagsinput {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 8px 12px;
  background: #0d0d14;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  min-width: 280px; max-width: 360px;
  font-family: 'Inter', sans-serif;
}
.ti-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(106,92,255,.18);
  color: #c9b3ff;
  padding: 4px 8px 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.ti-chip i { font-style: normal; opacity: .6; cursor: pointer; }
.demo-tagsinput input {
  flex: 1; min-width: 60px;
  background: none; border: none; outline: none;
  color: #f4f4f6; font-size: 13px;
  font-family: inherit;
}
.demo-tagsinput input::placeholder { color: #6a6a78; }

/* C 096 Switch Stack */
.demo-switches { display: grid; gap: 12px; font-family: 'Inter', sans-serif; font-size: 14px; color: #f4f4f6; min-width: 280px; }
.demo-switches label {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 0;
  cursor: pointer;
}
.demo-switches .sw {
  position: relative;
  width: 38px; height: 22px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  transition: background .25s ease;
}
.demo-switches .sw.on { background: #4ade80; }
.demo-switches .sw span {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.demo-switches .sw.on span { transform: translateX(16px); }

/* C 097 Date Field */
.demo-date {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: #0d0d14;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  color: #f4f4f6;
  font-family: 'Inter', sans-serif; font-size: 14px;
  cursor: pointer;
}
.demo-date svg { color: #6a6a78; }

/* C 098 Phone Input */
.demo-phone {
  display: inline-flex; align-items: center;
  background: #0d0d14;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}
.ph-cc {
  padding: 12px 14px;
  background: rgba(255,255,255,.04);
  color: #f4f4f6; font-size: 14px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.demo-phone input {
  flex: 1;
  background: none; border: none; outline: none;
  color: #f4f4f6; font-size: 14px;
  padding: 12px 14px;
  min-width: 180px;
  font-family: inherit;
}
.demo-phone input::placeholder { color: #6a6a78; }

/* C 099 Big Stat */
.demo-bigstat {
  display: grid; gap: 8px;
  padding: 4px;
}
.bs-label { font-family: var(--font-mono); font-size: 11px; color: #6a6a78; letter-spacing: .16em; text-transform: uppercase; }
.bs-value { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 56px; color: #f4f4f6; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.bs-delta { font-family: 'Inter', sans-serif; font-size: 13px; color: #4ade80; }

/* C 100 Article Card */
.demo-article {
  width: 70%; max-width: 240px;
  font-family: 'Inter', sans-serif;
}
.ar-img {
  width: 100%; aspect-ratio: 3/2;
  background:
    radial-gradient(70% 80% at 30% 30%, rgba(106,92,255,.5), transparent 60%),
    radial-gradient(60% 70% at 80% 70%, rgba(255,45,203,.4), transparent 60%),
    linear-gradient(160deg, #1a1a22, #08080c);
  border-radius: 10px;
  margin-bottom: 12px;
}
.ar-meta { display: block; font-family: var(--font-mono); font-size: 10px; color: #6a6a78; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px; }
.demo-article strong { color: #f4f4f6; font-size: 14px; font-weight: 600; line-height: 1.3; display: block; }

/* C 101 Event Card */
.demo-event {
  display: flex; align-items: stretch; gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(160deg, #14141c, #08080c);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  max-width: 280px;
}
.ev-date {
  display: grid; justify-items: center; align-content: center;
  background: rgba(106,92,255,.15);
  border: 1px solid rgba(106,92,255,.35);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 56px;
}
.ev-mo { font-family: var(--font-mono); font-size: 9px; color: #c9b3ff; letter-spacing: .12em; text-transform: uppercase; }
.ev-day { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 22px; color: #fff; line-height: 1; }
.ev-body { display: grid; gap: 4px; align-content: center; }
.ev-body strong { color: #f4f4f6; font-size: 14px; font-weight: 600; }
.ev-body small { color: #b4b4be; font-size: 12px; }

/* C 102 Newsletter Signup */
.demo-newsletter {
  display: grid; gap: 10px;
  padding: 18px;
  background: linear-gradient(160deg, #14141c, #08080c);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  max-width: 320px;
}
.demo-newsletter strong { color: #f4f4f6; font-size: 14px; font-weight: 600; }
.nl-row { display: flex; gap: 6px; }
.nl-row input {
  flex: 1;
  background: #0d0d14;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: 9px 12px;
  color: #f4f4f6;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.nl-row button {
  background: #f5f5f7; color: #0a0a10;
  border: none; padding: 9px 16px;
  border-radius: 8px; font-weight: 500; font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

/* C 103 Animated Underline */
.demo-underline {
  font-family: 'Inter', sans-serif;
  font-size: 18px; color: #f4f4f6;
  text-decoration: none;
  position: relative;
  cursor: pointer;
  padding-bottom: 4px;
}
.demo-underline::after {
  content: ""; position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #6a5cff, #ff2dcb);
  transition: right .4s cubic-bezier(.2,.7,.2,1);
}
.demo-underline:hover::after { right: 0; }

/* C 104 Type Cursor */
.demo-typecursor {
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 36px; color: #f4f4f6;
  letter-spacing: -.02em;
  display: inline-flex; align-items: center;
}
.tc-bar {
  width: 3px; height: 36px;
  background: #6a5cff;
  margin-left: 4px;
  animation: tc0xx 1s steps(2) infinite;
}
@keyframes tc0xx { 50% { opacity: 0; } }

/* C 105 Confirmation Dialog */
.demo-confirm {
  display: grid; gap: 8px;
  padding: 20px;
  background: linear-gradient(160deg, #14141c, #08080c);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  font-family: 'Inter', sans-serif;
  width: 76%; max-width: 280px;
}
.demo-confirm strong { color: #f4f4f6; font-size: 15px; font-weight: 600; }
.demo-confirm small { color: #b4b4be; font-size: 13px; }
.cf-row { display: flex; gap: 8px; margin-top: 8px; }
.cf-row button {
  flex: 1; padding: 9px 12px;
  border-radius: 8px;
  font-family: inherit; font-weight: 500; font-size: 13px;
  cursor: pointer;
}
.cf-ghost { background: transparent; color: #b4b4be; border: 1px solid rgba(255,255,255,.14); }
.cf-danger { background: #ef4444; color: #fff; border: none; }

/* C 106 Connection Status */
.demo-connection {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: rgba(74,222,128,.1);
  border: 1px solid rgba(74,222,128,.3);
  border-radius: 999px;
  font-family: 'Inter', sans-serif; font-size: 13px;
}
.cn-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(74,222,128,.7);
  position: relative;
}
.cn-dot::after {
  content: ""; position: absolute; inset: -3px;
  border: 1px solid #4ade80;
  border-radius: 50%;
  animation: cn0xx 1.8s ease-out infinite;
}
@keyframes cn0xx { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2); opacity: 0; } }
.demo-connection strong { color: #4ade80; font-weight: 600; }
.demo-connection small { color: rgba(74,222,128,.7); font-family: var(--font-mono); font-size: 11px; }

/* C 107 Bar Loader */
.demo-barloader { display: flex; gap: 4px; align-items: end; height: 36px; }
.demo-barloader span {
  width: 4px; height: 100%;
  background: #f4f4f6;
  border-radius: 2px;
  animation: bl0xx 1s ease-in-out infinite;
}
.demo-barloader span:nth-child(2) { animation-delay: 0.1s; }
.demo-barloader span:nth-child(3) { animation-delay: 0.2s; }
.demo-barloader span:nth-child(4) { animation-delay: 0.3s; }
.demo-barloader span:nth-child(5) { animation-delay: 0.4s; }
@keyframes bl0xx { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* C 108 Sidebar Nav */
.demo-sidebar {
  display: grid; gap: 4px;
  padding: 10px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  width: 88%; max-width: 220px;
  font-family: 'Inter', sans-serif;
}
.sb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.65);
  font-size: 13px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.sb-item:hover { background: rgba(255,255,255,.04); color: #f4f4f6; }
.sb-item.active { background: rgba(255,255,255,.08); color: #fff; }
.sb-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }
.sb-item.active .sb-dot { background: #6a5cff; opacity: 1; }
.sb-item small {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 10px;
  background: rgba(255,255,255,.06);
  padding: 1px 6px;
  border-radius: 999px;
}

/* C 109 Donut Chart */
.demo-donut circle:last-of-type {
  transition: stroke-dashoffset .8s ease;
}

/* C 110 Bar Chart */
.demo-barchart {
  display: flex; align-items: end; gap: 6px;
  height: 100px;
  padding: 14px;
}
.demo-barchart span {
  width: 14px;
  background: linear-gradient(180deg, #6a5cff, #00e1ff);
  border-radius: 4px 4px 2px 2px;
  animation: bc0xx 1.4s ease-out;
}
@keyframes bc0xx { from { height: 0 !important; } }

/* ============================================
   NEW COMPONENT DEMOS C 076 – C 090
   ============================================ */

/* C 076 Ghost Button */
.demo-ghost {
  background: transparent;
  color: #f4f4f6;
  border: 1.5px solid rgba(255,255,255,.18);
  padding: 12px 22px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 500; font-size: 14px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.demo-ghost span { transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.demo-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.4); }
.demo-ghost:hover span { transform: translateX(4px); }

/* C 077 Icon Button */
.demo-iconbtn-row { display: flex; gap: 10px; }
.demo-iconbtn {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: #f4f4f6;
  border-radius: 12px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.demo-iconbtn:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }

/* C 078 Split Button */
.demo-split { display: inline-flex; }
.demo-split button {
  background: #f5f5f7; color: #0a0a10;
  border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px;
}
.demo-split .sp-main {
  padding: 11px 18px;
  border-radius: 10px 0 0 10px;
}
.demo-split .sp-arrow {
  padding: 11px 10px;
  border-radius: 0 10px 10px 0;
  border-left: 1px solid rgba(0,0,0,.1);
}
.demo-split button:hover { background: #fff; }

/* C 079 Checkbox Group */
.demo-checks { display: grid; gap: 10px; font-family: 'Inter', sans-serif; font-size: 14px; color: #f4f4f6; }
.demo-checks label { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.cb-box {
  width: 20px; height: 20px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.22);
  border-radius: 5px;
  display: grid; place-items: center;
  font-size: 11px; color: transparent;
  transition: all .2s ease;
}
.demo-checks .checked .cb-box { background: #6a5cff; border-color: #6a5cff; color: #fff; }

/* C 080 Radio Group */
.demo-radio { display: grid; gap: 10px; font-family: 'Inter', sans-serif; font-size: 14px; color: #f4f4f6; }
.demo-radio label {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.demo-radio label small { margin-left: auto; color: #4ade80; font-family: var(--font-mono); font-size: 11px; }
.demo-radio .rd-dot {
  width: 18px; height: 18px;
  border: 1.5px solid rgba(255,255,255,.22);
  border-radius: 50%;
  position: relative;
}
.demo-radio .checked { border-color: rgba(106,92,255,.5); background: rgba(106,92,255,.08); }
.demo-radio .checked .rd-dot { border-color: #6a5cff; }
.demo-radio .checked .rd-dot::after {
  content: ""; position: absolute; inset: 3px;
  background: #6a5cff; border-radius: 50%;
}

/* C 081 Select Dropdown */
.demo-select {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: #0d0d14;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  color: #f4f4f6;
  font-family: 'Inter', sans-serif; font-size: 14px;
  cursor: pointer;
  min-width: 200px;
  justify-content: space-between;
  transition: border-color .2s ease;
}
.demo-select:hover { border-color: rgba(255,255,255,.3); }

/* C 082 Textarea */
.demo-textarea {
  width: 86%;
  background: #0d0d14;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 12px 14px;
  color: #f4f4f6;
  font-family: 'Inter', sans-serif; font-size: 14px;
  outline: none; resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.demo-textarea:focus { border-color: #6a5cff; box-shadow: 0 0 0 3px rgba(106,92,255,.2); }

/* C 083 Product Card */
.demo-product {
  width: 74%; max-width: 240px;
  background: #14141c;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; overflow: hidden;
  font-family: 'Inter', sans-serif;
}
.prod-img {
  width: 100%; aspect-ratio: 4/3;
  background:
    radial-gradient(70% 80% at 50% 50%, rgba(106,92,255,.4), transparent 70%),
    linear-gradient(160deg, #1a1a22, #08080c);
}
.demo-product strong { display: block; padding: 12px 14px 2px; color: #f4f4f6; font-size: 14px; }
.demo-product .prod-meta { display: block; padding: 0 14px; color: #6a6a78; font-size: 11px; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.demo-product .prod-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; }
.demo-product .prod-price { color: #f4f4f6; font-weight: 600; font-size: 16px; }
.demo-product button {
  background: #f5f5f7; color: #0a0a10;
  border: none; padding: 6px 14px;
  border-radius: 999px; font-weight: 500; font-size: 12px;
  cursor: pointer;
}

/* C 084 Profile Card */
.demo-profile {
  width: 70%; max-width: 240px;
  display: grid; gap: 6px; justify-items: center;
  padding: 20px 16px;
  background: linear-gradient(160deg, #14141c, #08080c);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  text-align: center;
}
.prof-av {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(160deg, #6a5cff, #ff2dcb);
  margin-bottom: 4px;
}
.demo-profile strong { color: #f4f4f6; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; }
.demo-profile small { color: #b4b4be; font-family: 'Inter', sans-serif; font-size: 12px; }
.demo-profile .prof-row { display: flex; gap: 6px; margin-top: 10px; width: 100%; }
.demo-profile button { flex: 1; padding: 7px 10px; border-radius: 8px; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 12px; cursor: pointer; }
.prof-cta { background: #f5f5f7; color: #0a0a10; border: none; }
.prof-ghost { background: transparent; color: #b4b4be; border: 1px solid rgba(255,255,255,.12); }

/* C 085 Testimonial */
.demo-testi {
  width: 100%; max-width: 320px;
  padding: 18px;
  background: linear-gradient(160deg, #14141c, #08080c);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
}
.demo-testi p { margin: 0 0 14px; color: #f4f4f6; font-size: 13px; line-height: 1.5; }
.testi-foot { display: flex; align-items: center; gap: 10px; }
.testi-av {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(160deg, #ffd5a8, #ff8266);
}
.demo-testi strong { display: block; color: #f4f4f6; font-size: 12px; font-weight: 600; }
.demo-testi small { display: block; color: #6a6a78; font-size: 11px; font-family: var(--font-mono); letter-spacing: .08em; }

/* C 086 Alert Banner */
.demo-alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px;
  max-width: 360px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
}
.al-icon {
  width: 22px; height: 22px;
  background: #fbbf24; color: #0a0a10;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
.demo-alert strong { display: block; color: #fbbf24; font-size: 13px; font-weight: 600; }
.demo-alert small { display: block; color: rgba(255,255,255,.7); font-size: 12px; margin-top: 2px; }

/* C 087 Typing Dots */
.demo-typing { display: flex; gap: 6px; padding: 14px 18px; background: #1a1a22; border-radius: 18px; }
.demo-typing span {
  width: 8px; height: 8px;
  background: rgba(255,255,255,.5);
  border-radius: 50%;
  animation: typing0xx 1.4s ease-in-out infinite;
}
.demo-typing span:nth-child(2) { animation-delay: 0.2s; }
.demo-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing0xx { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* C 088 Pagination */
.demo-pag { display: inline-flex; align-items: center; gap: 4px; font-family: 'Inter', sans-serif; }
.demo-pag button {
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.65);
  border-radius: 8px; cursor: pointer;
  font-size: 13px; font-weight: 500;
  transition: all .2s ease;
}
.demo-pag button:hover { color: #fff; border-color: rgba(255,255,255,.2); }
.demo-pag button.active {
  background: #f5f5f7; color: #0a0a10; border-color: #f5f5f7;
}
.demo-pag span { color: rgba(255,255,255,.3); padding: 0 4px; }

/* C 089 Sparkline */
.demo-spark {
  padding: 18px 22px;
  background: linear-gradient(160deg, #14141c, #08080c);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
}
.spark-label { display: block; font-family: var(--font-mono); font-size: 10px; color: #6a6a78; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 4px; }
.demo-spark svg { display: block; margin: 4px 0; }
.spark-val { display: block; color: #f4f4f6; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }
.spark-val small { color: #4ade80; font-family: var(--font-mono); font-size: 11px; font-weight: 500; margin-left: 6px; }

/* C 090 KPI Grid */
.demo-kpi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 86%; max-width: 280px;
}
.demo-kpi > div {
  display: grid; gap: 4px;
  padding: 12px 14px;
  background: linear-gradient(160deg, #14141c, #08080c);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
}
.kpi-l { font-family: var(--font-mono); font-size: 9px; color: #6a6a78; letter-spacing: .16em; text-transform: uppercase; }
.kpi-v { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 18px; color: #f4f4f6; font-variant-numeric: tabular-nums; }

/* ============================================
   THEME OVERHAUL — mesh gradient + grain + serif hero
   ============================================ */

body {
  background:
    /* Top-left rust / terracotta */
    radial-gradient(55% 55% at 8% 16%, rgba(212, 122, 68, 0.78), transparent 60%),
    /* Top-right inky navy */
    radial-gradient(48% 60% at 92% 8%, rgba(10, 22, 60, 0.92), transparent 65%),
    /* Center teal */
    radial-gradient(45% 40% at 50% 52%, rgba(40, 120, 115, 0.62), transparent 62%),
    /* Bottom-left deep violet */
    radial-gradient(50% 50% at 24% 96%, rgba(80, 58, 138, 0.68), transparent 62%),
    /* Bottom-right warm magenta */
    radial-gradient(48% 50% at 96% 90%, rgba(178, 96, 130, 0.62), transparent 62%),
    #0d1430;
}

body.theme-orchid {
  background:
    radial-gradient(58% 55% at 10% 16%, rgba(218, 108, 196, 0.72), transparent 60%),
    radial-gradient(48% 58% at 92% 8%, rgba(40, 16, 90, 0.92), transparent 65%),
    radial-gradient(48% 42% at 50% 52%, rgba(160, 80, 210, 0.6), transparent 62%),
    radial-gradient(50% 50% at 26% 96%, rgba(180, 76, 200, 0.65), transparent 62%),
    radial-gradient(48% 50% at 96% 88%, rgba(220, 76, 158, 0.6), transparent 62%),
    #160826;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px;
  opacity: 0.42;
  mix-blend-mode: overlay;
}
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='480' height='480'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.7'/></svg>");
  background-size: 480px;
  opacity: 0.18;
  mix-blend-mode: soft-light;
}

/* Ensure content sits above ambient + grain. Note: do NOT include .modal or
   .toast here — they need their original fixed positioning + higher z-indexes. */
.statusbar, .nav, .hero, .container { position: relative; z-index: 5; }

/* Status bar */
.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 24px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}
.sb-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sb-left strong { color: rgba(255, 255, 255, 0.92); font-weight: 500; }
.sb-live { display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, 0.88); }
.sb-live i {
  width: 6px; height: 6px;
  background: #e08a5a;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(224, 138, 90, 0.7);
  animation: pulseLive 2.2s ease-in-out infinite;
}
.theme-orchid .sb-live i { background: #c668d8; box-shadow: 0 0 10px rgba(198, 104, 216, 0.75); }
@keyframes pulseLive { 50% { opacity: 0.45; transform: scale(0.85); } }
.sb-divider { width: 1px; height: 11px; background: rgba(255, 255, 255, 0.14); }
.sb-right { color: rgba(255, 255, 255, 0.6); }

/* Nav v2 */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  grid-template-columns: none;
  position: relative;
  top: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.brand-icon { color: #fff; }
.brand-name {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
}
.brand-name em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
}

.theme-switch {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ts-opt {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.62);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  transition: color 0.2s ease, background 0.2s ease;
}
.ts-opt.active { background: #fff; color: #0a0a10; }
.ts-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
.ts-opt[data-theme="orchid"] .ts-dot { background: #c668d8; box-shadow: 0 0 6px rgba(198, 104, 216, 0.6); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-link {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 4px;
}
.nav-link:hover { color: #fff; }
.subscribe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #0a0a10;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.subscribe:hover { transform: translateY(-1px); }
.subscribe svg { transition: transform 0.25s ease; }
.subscribe:hover svg { transform: translate(2px, -2px); }

/* Hero */
.hero {
  padding: 56px 24px 40px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 6.4vw, 88px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 24px;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
}
.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
  max-width: 560px;
  margin: 0 auto 28px;
}
.hero-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}
.hero-hint i {
  width: 6px; height: 6px;
  background: #e08a5a;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(224, 138, 90, 0.7);
  animation: pulseLive 2.2s ease-in-out infinite;
}
.theme-orchid .hero-hint i { background: #c668d8; box-shadow: 0 0 10px rgba(198, 104, 216, 0.75); }

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 28px;
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}
.filter.active {
  background: rgba(255, 255, 255, 0.95);
  color: #0a0a10;
  border-color: transparent;
}
.filter span {
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.5);
  padding: 2px 7px;
  border-radius: 999px;
}
.filter.active span {
  background: rgba(0, 0, 0, 0.08);
  color: rgba(10, 10, 16, 0.6);
}

/* Secondary category bar */
.cat-bar {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 28px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: max-content;
  margin-left: auto;
  margin-right: auto;
}
.cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  padding: 6px 11px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.cat:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.cat.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.cat span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
}
.cat.active span { color: rgba(255, 255, 255, 0.7); }
.cat-bar.hidden { display: none; }

/* Card glass treatment */
.card {
  background: linear-gradient(180deg, rgba(20, 20, 28, 0.72) 0%, rgba(10, 10, 16, 0.55) 100%);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-color: rgba(255, 255, 255, 0.08);
}
.card-meta {
  background: rgba(0, 0, 0, 0.32);
  border-top-color: rgba(255, 255, 255, 0.06);
}

/* Hide section header dividers — filter pills cover this now */
.section-header { opacity: 0.55; }

/* ============================================
   NEW COMPONENT DEMOS C 146 – C 165
   ============================================ */

/* C 146 — Social Share Group */
.demo-share {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: rgba(20,20,28,.7);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
}
.demo-share .sh-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  padding: 0 6px 0 4px;
}
.demo-share button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  color: rgba(255,255,255,.85);
  cursor: pointer;
  transition: transform .15s, background .15s, color .15s;
}
.demo-share button:hover { background: rgba(106,92,255,.18); color: #fff; transform: translateY(-1px); }

/* C 147 — Like Button */
.demo-like {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px;
  background: rgba(255,69,108,.12);
  border: 1px solid rgba(255,69,108,.35);
  border-radius: 999px;
  color: #ff456c;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: transform .15s, background .15s;
}
.demo-like:hover { transform: scale(1.04); background: rgba(255,69,108,.2); }
.demo-like[data-liked="true"] svg { animation: lkpop .35s ease; }
.demo-like .lk-count { font-variant-numeric: tabular-nums; }
@keyframes lkpop { 0%{transform:scale(1)} 50%{transform:scale(1.3)} 100%{transform:scale(1)} }

/* C 148 — Copy to Clipboard */
.demo-copy {
  display: inline-flex; align-items: center; gap: 10px;
  background: #0d0d14;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 6px 6px 6px 14px;
  font-family: var(--font-mono);
}
.demo-copy code {
  font-family: var(--font-mono); font-size: 12px; color: #c9b3ff;
  background: none;
}
.demo-copy .cp-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #f4f4f6;
  padding: 7px 12px;
  border-radius: 7px;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500;
  cursor: pointer;
}
.demo-copy .cp-btn:hover { background: rgba(255,255,255,.12); }

/* C 149 — Search with Filters */
.demo-searchf {
  display: grid; gap: 10px;
  width: 100%; max-width: 320px;
}
.demo-searchf .sf-row {
  display: flex; align-items: center; gap: 8px;
  background: #0d0d14;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 8px 10px;
  color: rgba(255,255,255,.55);
}
.demo-searchf input {
  flex: 1; background: none; border: none; outline: none;
  color: #f4f4f6;
  font-family: 'Inter', sans-serif; font-size: 13px;
}
.demo-searchf input::placeholder { color: rgba(255,255,255,.35); }
.demo-searchf .sf-clear {
  background: none; border: none; color: rgba(255,255,255,.5);
  cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px;
}
.demo-searchf .sf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-searchf .sf-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  font-family: 'Inter', sans-serif; font-size: 11px;
  color: rgba(255,255,255,.55);
}
.demo-searchf .sf-chip.active { background: rgba(106,92,255,.16); border-color: rgba(106,92,255,.4); color: #c9b3ff; }
.demo-searchf .sf-chip i { font-style: normal; opacity: 0.6; }

/* C 150 — Password Input */
.demo-password {
  display: grid; gap: 8px;
  width: 100%; max-width: 280px;
}
.demo-password .pw-row {
  display: flex; align-items: center;
  background: #0d0d14;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  overflow: hidden;
}
.demo-password input {
  flex: 1; background: none; border: none; outline: none;
  padding: 10px 12px;
  color: #f4f4f6;
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.05em;
}
.demo-password .pw-eye {
  background: none; border: none; color: rgba(255,255,255,.5);
  cursor: pointer; padding: 8px 12px;
}
.demo-password .pw-meter {
  height: 5px;
  background: rgba(255,255,255,.06);
  border-radius: 4px;
  overflow: hidden;
}
.demo-password .pw-fill {
  display: block; height: 100%;
  background: linear-gradient(90deg, #ff456c, #ffb544, #4ade80);
  border-radius: 4px;
}
.demo-password .pw-hint {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(74,222,128,.85);
}

/* C 151 — Time Picker */
.demo-timepicker { display: grid; gap: 8px; }
.demo-timepicker .tp-input {
  display: inline-flex; align-items: center; gap: 4px;
  background: #0d0d14;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: 'Fraunces', serif;
  font-weight: 500; font-size: 22px;
  color: #f4f4f6;
  letter-spacing: -0.02em;
}
.demo-timepicker .tp-h, .demo-timepicker .tp-m {
  padding: 2px 6px; border-radius: 6px;
  cursor: pointer; transition: background .15s;
}
.demo-timepicker .tp-h:hover, .demo-timepicker .tp-m:hover { background: rgba(255,255,255,.08); }
.demo-timepicker .tp-period {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px;
  color: rgba(255,255,255,.4);
  cursor: pointer;
}
.demo-timepicker .tp-period.active { background: rgba(106,92,255,.18); color: #c9b3ff; }
.demo-timepicker .tp-period:first-of-type { margin-left: 8px; }
.demo-timepicker .tp-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

/* C 152 — Recipe Card */
.demo-recipe {
  display: grid; gap: 0;
  width: 100%; max-width: 260px;
  background: #14141f;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}
.demo-recipe .rc-img {
  aspect-ratio: 16/9;
  background:
    radial-gradient(80% 80% at 50% 20%, #c98b5c, transparent 60%),
    linear-gradient(160deg, #8a5a3a, #3a2218);
}
.demo-recipe .rc-body { padding: 12px 14px; display: grid; gap: 6px; }
.demo-recipe .rc-meta {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.demo-recipe strong { color: #f4f4f6; font-size: 14px; font-weight: 600; }
.demo-recipe .rc-row { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.demo-recipe .rc-rating { color: #ffb544; font-size: 12px; font-weight: 500; }
.demo-recipe .rc-tag {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.7);
}

/* C 153 — Job Card */
.demo-job {
  display: grid; gap: 10px;
  width: 100%; max-width: 300px;
  padding: 14px;
  background: #14141f;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
}
.demo-job .jb-head { display: flex; align-items: center; gap: 10px; }
.demo-job .jb-logo {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6a5cff, #00e1ff);
}
.demo-job strong { color: #f4f4f6; font-size: 14px; font-weight: 600; display: block; }
.demo-job .jb-co {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,.5);
}
.demo-job .jb-row { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-job .jb-tag {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
}

/* C 154 — Album / Music Card */
.demo-album {
  display: grid; gap: 6px;
  width: 100%; max-width: 180px;
  font-family: 'Inter', sans-serif;
}
.demo-album .al-art {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 12px;
  background:
    radial-gradient(80% 80% at 30% 30%, #ff456c, transparent 60%),
    radial-gradient(80% 80% at 80% 80%, #6a5cff, transparent 60%),
    #1c1322;
  overflow: hidden;
}
.demo-album .al-play {
  position: absolute; bottom: 10px; right: 10px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: #0a0a10;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.demo-album strong { color: #f4f4f6; font-size: 14px; font-weight: 600; margin-top: 4px; }
.demo-album .al-meta {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,.5);
}

/* C 155 — Inline Validation Field */
.demo-validate {
  display: grid; gap: 4px;
  width: 100%; max-width: 280px;
  font-family: 'Inter', sans-serif;
}
.demo-validate label {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center;
  background: #0d0d14;
  border: 1px solid rgba(74,222,128,.4);
  border-radius: 10px;
  padding: 4px 12px;
  box-shadow: 0 0 0 3px rgba(74,222,128,.08);
}
.demo-validate label > span:first-child {
  display: none;
}
.demo-validate input {
  background: none; border: none; outline: none;
  padding: 8px 0;
  color: #f4f4f6;
  font-family: 'Inter', sans-serif; font-size: 14px;
}
.demo-validate .vl-icon {
  color: #4ade80; font-weight: 700; font-size: 14px;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(74,222,128,.16);
  border-radius: 50%;
}
.demo-validate small {
  color: rgba(74,222,128,.85);
  font-size: 11px;
}

/* C 156 — Skeleton Block */
.demo-skel2 {
  display: flex; gap: 12px;
  width: 100%; max-width: 280px;
  padding: 12px;
  background: rgba(20,20,28,.5);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
}
.demo-skel2 .sk2 {
  background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.1), rgba(255,255,255,.04));
  background-size: 200% 100%;
  animation: sk2shimmer 1.4s ease-in-out infinite;
  border-radius: 4px;
}
.demo-skel2 .sk2-img { width: 56px; height: 56px; border-radius: 8px; flex-shrink: 0; }
.demo-skel2 .sk2-stack { flex: 1; display: grid; gap: 7px; align-content: center; }
.demo-skel2 .sk2-l { height: 8px; border-radius: 4px; display: block; }
.demo-skel2 .w40 { width: 40%; }
.demo-skel2 .w50 { width: 50%; }
.demo-skel2 .w70 { width: 70%; }
.demo-skel2 .w85 { width: 85%; }
@keyframes sk2shimmer { to { background-position: -200% 0; } }

/* C 157 — Scroll Progress Header */
.demo-scrollhdr {
  width: 100%; max-width: 280px;
  background: rgba(20,20,28,.85);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}
.demo-scrollhdr .sh-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.demo-scrollhdr .sh-pill {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 500; font-size: 15px;
  color: #f4f4f6;
  letter-spacing: -0.01em;
}
.demo-scrollhdr .sh-link {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,.65);
}
.demo-scrollhdr .sh-progress {
  height: 2px;
  background: rgba(255,255,255,.04);
}
.demo-scrollhdr .sh-progress span {
  display: block;
  height: 100%;
  width: 62%;
  background: linear-gradient(90deg, #6a5cff, #00e1ff);
}
.demo-scrollhdr .sh-doc { padding: 12px 14px 14px; display: grid; gap: 7px; }
.demo-scrollhdr .sh-line {
  display: block;
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 3px;
}
.demo-scrollhdr .sh-line.w70 { width: 70%; }
.demo-scrollhdr .sh-line.w80 { width: 80%; }
.demo-scrollhdr .sh-line.w90 { width: 90%; }

/* C 158 — Anchor Jump Nav */
.demo-anchor {
  position: relative;
  display: inline-flex; gap: 4px;
  background: #0d0d14;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 4px;
  font-family: 'Inter', sans-serif;
}
.demo-anchor a {
  position: relative; z-index: 2;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 12px;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  transition: color .2s;
}
.demo-anchor a.active { color: #f4f4f6; }
.demo-anchor a:hover { color: #f4f4f6; }
.demo-anchor .ach-pill {
  position: absolute;
  top: 4px; bottom: 4px;
  left: calc(4px + 56px);
  width: 60px;
  background: rgba(106,92,255,.2);
  border: 1px solid rgba(106,92,255,.4);
  border-radius: 7px;
  z-index: 1;
  transition: left .25s cubic-bezier(.5,0,0,1);
}

/* C 159 — Stat Group */
.demo-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 0;
  width: 100%; max-width: 380px;
  background: #14141f;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 16px 8px;
  font-family: 'Inter', sans-serif;
}
.demo-stats > div {
  padding: 0 14px;
  border-right: 1px solid rgba(255,255,255,.06);
  text-align: center;
  display: grid; gap: 4px;
}
.demo-stats > div:last-child { border-right: none; }
.demo-stats .sg-num {
  font-family: 'Fraunces', serif;
  font-weight: 500; font-size: 20px;
  color: #f4f4f6;
  letter-spacing: -0.02em;
  display: block;
}
.demo-stats .sg-l {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

/* C 160 — Activity Feed v2 */
.demo-activity2 {
  display: grid; gap: 12px;
  width: 100%; max-width: 320px;
  padding: 14px;
  background: #14141f;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
}
.demo-activity2 .ac-item {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
}
.demo-activity2 .ac-av {
  width: 30px; height: 30px;
  border-radius: 50%;
}
.demo-activity2 .av-a { background: linear-gradient(135deg, #ff456c, #ffb544); }
.demo-activity2 .av-b { background: linear-gradient(135deg, #6a5cff, #00e1ff); }
.demo-activity2 .av-c { background: linear-gradient(135deg, #4ade80, #00e1ff); }
.demo-activity2 .ac-item > div { display: grid; gap: 2px; font-size: 12px; color: rgba(255,255,255,.8); }
.demo-activity2 strong { color: #f4f4f6; font-weight: 600; }
.demo-activity2 em { font-style: italic; color: #c9b3ff; }
.demo-activity2 small {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,.45);
}

/* C 161 — Status Dashboard */
.demo-status {
  display: grid; gap: 10px;
  width: 100%; max-width: 320px;
  padding: 14px;
  background: #14141f;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
}
.demo-status .st-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.demo-status strong { color: #f4f4f6; font-size: 13px; font-weight: 600; }
.demo-status .st-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #4ade80;
  padding: 3px 8px;
  background: rgba(74,222,128,.12);
  border-radius: 999px;
}
.demo-status .st-pill::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
}
.demo-status .st-row {
  display: grid; grid-template-columns: 70px 1fr 40px; gap: 10px; align-items: center;
}
.demo-status .st-name {
  font-size: 11px;
  color: rgba(255,255,255,.7);
}
.demo-status .st-bar {
  height: 5px;
  background: rgba(255,255,255,.06);
  border-radius: 3px;
  overflow: hidden;
}
.demo-status .st-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #4ade80, #00e1ff);
  border-radius: 3px;
}
.demo-status .st-bar.warn span { background: linear-gradient(90deg, #ffb544, #ff456c); }
.demo-status .st-pct {
  font-family: var(--font-mono); font-size: 10px;
  color: rgba(255,255,255,.6);
  text-align: right;
}

/* C 162 — Glow Border Card */
.demo-glowborder {
  position: relative;
  width: 100%; max-width: 240px;
  padding: 1.5px;
  background: linear-gradient(135deg, #6a5cff, #ff456c, #00e1ff, #6a5cff);
  background-size: 300% 300%;
  border-radius: 14px;
  animation: gbflow 6s ease infinite;
}
.demo-glowborder .gb-inner {
  display: grid; gap: 6px;
  padding: 18px 18px 16px;
  background: #14141f;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
}
.demo-glowborder .gb-eyebrow {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,.5);
}
.demo-glowborder strong { color: #f4f4f6; font-size: 14px; font-weight: 600; }
.demo-glowborder .gb-price {
  font-family: 'Fraunces', serif;
  font-weight: 500; font-size: 22px;
  color: #fff; letter-spacing: -0.02em;
}
@keyframes gbflow { 0%,100%{ background-position:0% 50% } 50%{ background-position:100% 50% } }

/* C 163 — Pricing Compact */
.demo-pricec {
  display: grid; gap: 10px;
  width: 100%; max-width: 220px;
  padding: 18px;
  background: #14141f;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
}
.demo-pricec .pc-head { display: flex; justify-content: space-between; align-items: center; }
.demo-pricec .pc-tier {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.demo-pricec .pc-badge {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 3px 8px;
  background: rgba(106,92,255,.16);
  border: 1px solid rgba(106,92,255,.4);
  border-radius: 999px;
  color: #c9b3ff;
}
.demo-pricec .pc-amount { display: flex; align-items: baseline; gap: 4px; }
.demo-pricec .pc-amount strong {
  font-family: 'Fraunces', serif;
  font-weight: 500; font-size: 36px;
  color: #fff; letter-spacing: -0.03em;
}
.demo-pricec .pc-amount span { font-size: 12px; color: rgba(255,255,255,.55); }
.demo-pricec .pc-tag { font-size: 12px; color: rgba(255,255,255,.65); margin: 0; }
.demo-pricec .pc-cta {
  width: 100%;
  background: #fff; color: #0a0a10;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 12px;
  cursor: pointer;
  margin-top: 4px;
}

/* C 164 — Toolbar */
.demo-toolbar {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 4px;
  background: rgba(20,20,28,.85);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
}
.demo-toolbar button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: rgba(255,255,255,.65);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.demo-toolbar button:hover { background: rgba(255,255,255,.06); color: #f4f4f6; }
.demo-toolbar button.active { background: rgba(106,92,255,.18); color: #c9b3ff; }
.demo-toolbar .tb-divider {
  width: 1px; height: 20px;
  background: rgba(255,255,255,.08);
  margin: 0 4px;
}

/* C 165 — Currency Input */
.demo-currency {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: #0d0d14;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
}
.demo-currency .cur-sym {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  color: rgba(255,255,255,.5);
}
.demo-currency input {
  background: none; border: none; outline: none;
  width: 100px;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  color: #f4f4f6;
  letter-spacing: -0.02em;
  text-align: right;
}
.demo-currency .cur-code {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,.5);
  padding-left: 8px;
  border-left: 1px solid rgba(255,255,255,.1);
}

/* ============================================
   NEW COMPONENT DEMOS C 166 – C 185
   ============================================ */

/* C 166 — Floating Action Button */
.demo-fab {
  position: relative;
  width: 110px; height: 130px;
}
.demo-fab .fab-main {
  position: absolute; right: 0; bottom: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6a5cff, #ff456c);
  color: #fff;
  border: none;
  font-size: 22px; font-weight: 300;
  cursor: pointer;
  box-shadow: 0 12px 28px -8px rgba(106,92,255,.6), 0 0 0 1px rgba(255,255,255,.1) inset;
  transition: transform .25s;
}
.demo-fab .fab-main:hover { transform: rotate(45deg); }
.demo-fab .fab-small {
  position: absolute;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(20,20,28,.95);
  border: 1px solid rgba(255,255,255,.12);
  color: #c9b3ff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  box-shadow: 0 8px 20px -4px rgba(0,0,0,.5);
}
.demo-fab .fab-a { right: 7px;  bottom: 64px; }
.demo-fab .fab-b { right: 32px; bottom: 95px; }
.demo-fab .fab-c { right: 64px; bottom: 90px; }

/* C 167 — Icon Button Group */
.demo-iconbtn {
  display: inline-flex;
  background: #0d0d14;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  overflow: hidden;
}
.demo-iconbtn button {
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.65);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.demo-iconbtn button:last-child { border-right: none; }
.demo-iconbtn button:hover { background: rgba(255,255,255,.06); color: #f4f4f6; }

/* C 168 — Toggle Button Group */
.demo-toggleg {
  display: inline-flex; gap: 6px;
  font-family: 'Inter', sans-serif;
}
.demo-toggleg button {
  padding: 8px 14px;
  background: rgba(20,20,28,.5);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: rgba(255,255,255,.65);
  font-family: inherit; font-size: 12px; font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.demo-toggleg button.active {
  background: rgba(106,92,255,.18);
  border-color: rgba(106,92,255,.5);
  color: #c9b3ff;
}

/* C 169 — Gradient Headline */
.demo-gradhead {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 38px;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-align: center;
  margin: 0;
  background: linear-gradient(135deg, #6a5cff 0%, #ff456c 50%, #00e1ff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradflow 6s ease infinite;
}
.demo-gradhead em { font-style: italic; }
@keyframes gradflow { 0%,100%{ background-position: 0% 50% } 50%{ background-position: 100% 50% } }

/* C 170 — Scramble Text */
.demo-scramble {
  text-align: center;
  display: grid; gap: 14px;
}
.demo-scramble .sc-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: rgba(106,92,255,.7);
}
.demo-scramble h2 {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #f4f4f6;
  margin: 0;
  position: relative;
}
.demo-scramble h2::after {
  content: '_';
  color: #c9b3ff;
  animation: sccaret 0.9s steps(2) infinite;
}
@keyframes sccaret { 50% { opacity: 0; } }

/* C 171 — Marquee Banner */
.demo-marquee {
  width: 100%;
  overflow: hidden;
  padding: 12px 0;
  background: rgba(20,20,28,.5);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.demo-marquee .mq-track {
  display: inline-flex;
  gap: 28px;
  animation: mqscroll 18s linear infinite;
  white-space: nowrap;
}
.demo-marquee .mq-track span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
@keyframes mqscroll { to { transform: translateX(-50%); } }

/* C 172 — Display Type */
.demo-display {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 64px;
  line-height: 0.86;
  letter-spacing: -0.06em;
  text-align: center;
  color: #f4f4f6;
  margin: 0;
}
.demo-display em {
  font-style: italic;
  background: linear-gradient(135deg, #c9b3ff, #ffb6d6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* C 173 — Drop Cap */
.demo-dropcap {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.8);
  max-width: 320px;
  margin: 0;
}
.demo-dropcap .dc-letter {
  float: left;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 64px;
  line-height: 0.86;
  margin: 2px 10px -4px 0;
  padding: 6px 12px 0;
  background: linear-gradient(160deg, rgba(106,92,255,.2), rgba(106,92,255,.05));
  border-radius: 6px;
  color: #c9b3ff;
  letter-spacing: -0.04em;
}

/* C 174 — OTP Input */
.demo-otp {
  display: inline-flex;
  gap: 8px;
}
.demo-otp .otp-box {
  width: 40px; height: 48px;
  border-radius: 10px;
  background: #0d0d14;
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  color: #f4f4f6;
  letter-spacing: -0.02em;
}
.demo-otp .otp-box.filled {
  background: rgba(106,92,255,.08);
  border-color: rgba(106,92,255,.35);
  color: #c9b3ff;
}
.demo-otp .otp-box.focus {
  border-color: rgba(106,92,255,.7);
  box-shadow: 0 0 0 3px rgba(106,92,255,.18);
  position: relative;
}
.demo-otp .otp-box.focus::after {
  content: '';
  width: 1.5px; height: 20px;
  background: #c9b3ff;
  animation: otpcaret 0.9s steps(2) infinite;
}
@keyframes otpcaret { 50% { opacity: 0; } }

/* C 175 — File Drop Zone */
.demo-dropzone {
  display: grid; place-items: center; gap: 6px;
  padding: 24px 36px;
  background: rgba(106,92,255,.06);
  border: 1.5px dashed rgba(106,92,255,.45);
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  text-align: center;
  min-width: 240px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.demo-dropzone:hover {
  background: rgba(106,92,255,.12);
  border-color: rgba(106,92,255,.7);
}
.demo-dropzone .dz-ic {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(106,92,255,.18);
  color: #c9b3ff;
  display: grid; place-items: center;
  font-size: 18px;
  margin-bottom: 4px;
}
.demo-dropzone strong { color: #f4f4f6; font-size: 13px; font-weight: 500; }
.demo-dropzone strong em { font-style: normal; color: #c9b3ff; text-decoration: underline; }
.demo-dropzone .dz-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

/* C 176 — Tag Input */
.demo-taginput {
  display: inline-flex; flex-wrap: wrap; align-items: center;
  gap: 6px;
  padding: 6px 10px;
  min-width: 280px;
  background: #0d0d14;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
}
.demo-taginput .tg-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px;
  background: rgba(106,92,255,.16);
  border: 1px solid rgba(106,92,255,.4);
  border-radius: 6px;
  font-size: 12px;
  color: #c9b3ff;
}
.demo-taginput .tg-chip i { font-style: normal; opacity: 0.6; cursor: pointer; }
.demo-taginput input {
  flex: 1;
  min-width: 100px;
  background: none; border: none; outline: none;
  color: #f4f4f6;
  font-family: inherit; font-size: 13px;
  padding: 4px 0;
}
.demo-taginput input::placeholder { color: rgba(255,255,255,.4); }

/* C 177 — Autocomplete */
.demo-auto {
  display: grid; gap: 4px;
  width: 100%; max-width: 260px;
  font-family: 'Inter', sans-serif;
}
.demo-auto input {
  background: #0d0d14;
  border: 1px solid rgba(106,92,255,.4);
  border-radius: 10px;
  padding: 10px 14px;
  color: #f4f4f6;
  font-family: inherit; font-size: 14px;
  outline: none;
  box-shadow: 0 0 0 3px rgba(106,92,255,.12);
}
.demo-auto .ac-list {
  background: #14141f;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 4px;
  overflow: hidden;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,.5);
}
.demo-auto .ac-item {
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.75);
  cursor: pointer;
}
.demo-auto .ac-item.active { background: rgba(106,92,255,.16); color: #f4f4f6; }
.demo-auto .ac-item strong { color: #c9b3ff; font-weight: 600; }

/* C 178 — Stat Card */
.demo-statc {
  display: grid; gap: 6px;
  width: 100%; max-width: 220px;
  padding: 18px;
  background: #14141f;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
}
.demo-statc .sc-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.demo-statc .sc-num {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 30px;
  color: #fff;
  letter-spacing: -0.03em;
}
.demo-statc .sc-delta {
  display: inline-block;
  font-size: 11px;
  color: rgba(74,222,128,.85);
}
.demo-statc .sc-delta.up { color: #4ade80; }
.demo-statc .sc-delta.down { color: #ff456c; }
.demo-statc .sc-spark {
  height: 28px;
  margin-top: 6px;
  background:
    linear-gradient(180deg, rgba(74,222,128,.18), transparent 80%),
    linear-gradient(90deg, transparent 0%, transparent 18%, #4ade80 18.1%, transparent 18.2%) 0 50% / 100% 1.5px no-repeat;
  position: relative;
}
.demo-statc .sc-spark::before {
  content: '';
  position: absolute; inset: auto 0 6px;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(74,222,128,0) 0%, rgba(74,222,128,1) 100%);
  clip-path: polygon(0 60%, 18% 70%, 28% 40%, 45% 55%, 55% 30%, 72% 45%, 82% 22%, 100% 0%);
}

/* C 179 — Profile Card */
.demo-profile {
  display: grid; gap: 6px; justify-items: center;
  padding: 20px 18px;
  width: 100%; max-width: 200px;
  background: #14141f;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  text-align: center;
  font-family: 'Inter', sans-serif;
}
.demo-profile .pf-av {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff456c, #6a5cff);
  margin-bottom: 6px;
  box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}
.demo-profile strong { color: #f4f4f6; font-size: 14px; font-weight: 600; }
.demo-profile .pf-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,.55);
}
.demo-profile .pf-row { display: flex; gap: 6px; margin-top: 10px; }
.demo-profile .pf-row button {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  cursor: pointer;
  font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
}
.demo-profile .pf-row button:hover { background: rgba(106,92,255,.18); color: #c9b3ff; }

/* C 180 — Event Card */
.demo-event {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 14px; align-items: center;
  padding: 12px 14px;
  width: 100%; max-width: 300px;
  background: #14141f;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
}
.demo-event .ev-date {
  display: grid; place-items: center;
  width: 50px; padding: 8px 0;
  background: rgba(106,92,255,.14);
  border: 1px solid rgba(106,92,255,.35);
  border-radius: 10px;
  text-align: center;
}
.demo-event .ev-mo {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.16em;
  color: #c9b3ff;
}
.demo-event .ev-d {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.demo-event .ev-body { display: grid; gap: 2px; }
.demo-event strong { color: #f4f4f6; font-size: 13px; font-weight: 600; }
.demo-event .ev-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,.55);
}
.demo-event .ev-rsvp {
  padding: 7px 12px;
  background: #fff; color: #0a0a10;
  border: none;
  border-radius: 8px;
  font-family: inherit; font-weight: 500; font-size: 11px;
  cursor: pointer;
}

/* C 181 — Empty State */
.demo-empty {
  display: grid; place-items: center; gap: 6px;
  padding: 18px 24px;
  font-family: 'Inter', sans-serif;
  text-align: center;
}
.demo-empty .es-art {
  position: relative;
  width: 64px; height: 64px;
  margin-bottom: 4px;
}
.demo-empty .es-circle {
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(50% 50% at 50% 50%, rgba(106,92,255,.3), transparent 70%);
  border: 1.5px dashed rgba(106,92,255,.4);
}
.demo-empty .es-line {
  position: absolute; top: 50%; left: 50%;
  width: 24px; height: 1.5px;
  background: rgba(106,92,255,.6);
  transform: translate(-50%, -50%) rotate(-30deg);
}
.demo-empty .es-line::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(106,92,255,.6);
  transform: rotate(60deg);
  transform-origin: center;
}
.demo-empty strong { color: #f4f4f6; font-size: 14px; font-weight: 600; }
.demo-empty p { color: rgba(255,255,255,.55); font-size: 12px; margin: 0; }
.demo-empty .es-cta {
  margin-top: 8px;
  padding: 8px 14px;
  background: #fff; color: #0a0a10;
  border: none; border-radius: 8px;
  font-family: inherit; font-weight: 500; font-size: 12px;
  cursor: pointer;
}

/* C 182 — Confirm Dialog */
.demo-confirm {
  display: grid; gap: 10px;
  width: 100%; max-width: 270px;
  padding: 16px;
  background: #14141f;
  border: 1px solid rgba(255,69,108,.3);
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 0 0 6px rgba(255,69,108,.06);
}
.demo-confirm .cf-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,69,108,.18);
  color: #ff456c;
  display: grid; place-items: center;
  font-size: 16px;
}
.demo-confirm .cf-body strong { color: #f4f4f6; font-size: 13px; font-weight: 600; display: block; }
.demo-confirm .cf-body p { color: rgba(255,255,255,.55); font-size: 11px; margin: 2px 0 0; }
.demo-confirm .cf-row { display: flex; gap: 6px; justify-content: flex-end; margin-top: 4px; }
.demo-confirm .cf-cancel {
  padding: 7px 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  color: #f4f4f6;
  font-family: inherit; font-size: 11px; font-weight: 500;
  cursor: pointer;
}
.demo-confirm .cf-go {
  padding: 7px 12px;
  background: #ff456c;
  border: none;
  border-radius: 7px;
  color: #fff;
  font-family: inherit; font-size: 11px; font-weight: 500;
  cursor: pointer;
}

/* C 183 — Sidebar Nav */
.demo-sidenav {
  display: grid; gap: 2px;
  width: 100%; max-width: 200px;
  padding: 8px;
  background: rgba(20,20,28,.7);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
}
.demo-sidenav .sn-item {
  display: grid; grid-template-columns: 22px 1fr;
  gap: 10px; align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  color: rgba(255,255,255,.65);
  font-size: 13px;
  cursor: pointer;
  transition: background .15s;
}
.demo-sidenav .sn-item:hover { background: rgba(255,255,255,.04); color: #f4f4f6; }
.demo-sidenav .sn-item.active {
  background: rgba(106,92,255,.18);
  color: #c9b3ff;
}
.demo-sidenav .sn-i {
  font-size: 14px;
  opacity: 0.8;
}
.demo-sidenav .sn-item.active .sn-i { color: #c9b3ff; opacity: 1; }

/* C 184 — Command Palette */
.demo-cmdk {
  display: grid;
  width: 100%; max-width: 320px;
  background: #14141f;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.6);
}
.demo-cmdk .cmdk-search {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.demo-cmdk .cmdk-icon {
  font-size: 14px;
  color: rgba(255,255,255,.5);
}
.demo-cmdk input {
  flex: 1;
  background: none; border: none; outline: none;
  color: #f4f4f6;
  font-family: inherit; font-size: 14px;
}
.demo-cmdk kbd {
  padding: 2px 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,.65);
}
.demo-cmdk .cmdk-list { padding: 6px; display: grid; gap: 2px; }
.demo-cmdk .cmdk-item {
  display: grid; grid-template-columns: 18px 1fr auto;
  gap: 10px; align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  color: rgba(255,255,255,.75);
  font-size: 13px;
}
.demo-cmdk .cmdk-item.active { background: rgba(106,92,255,.18); color: #f4f4f6; }
.demo-cmdk .cmdk-glyph { color: rgba(201,179,255,.85); font-size: 13px; }

/* C 185 — Underline Tabs */
.demo-utabs {
  position: relative;
  display: inline-flex; gap: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: 'Inter', sans-serif;
}
.demo-utabs a {
  position: relative;
  padding: 10px 18px;
  color: rgba(255,255,255,.5);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: color .2s;
}
.demo-utabs a:hover { color: rgba(255,255,255,.85); }
.demo-utabs a.active { color: #f4f4f6; }
.demo-utabs .utab-bar {
  position: absolute;
  bottom: -1px;
  left: 91px;
  width: 70px;
  height: 2px;
  background: linear-gradient(90deg, #6a5cff, #ff456c);
  border-radius: 2px;
  transition: left .3s cubic-bezier(.5,0,0,1);
}

/* ============================================
   PAGE SECTIONS (S 001 – S 015)
   ============================================ */

.grid-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 880px) { .grid-sections { grid-template-columns: 1fr; } }

.sec-card { padding: 0; overflow: hidden; }
.sec-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1100 / 619;
  overflow: hidden;
  background: linear-gradient(160deg, #0f0f17 0%, #08080c 100%);
  border-radius: 14px 14px 0 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
/* The thumb wraps the section at natural 1100×619; JS scales it to fit the stage width. */
.sec-thumb {
  position: absolute;
  top: 0; left: 0;
  width: 1100px;
  height: 619px;
  transform-origin: top left;
  transform: scale(0.5); /* JS overrides on resize via ResizeObserver */
  pointer-events: none;
}

/* Reset for sections so internal styles never inherit garbage */
.sec-thumb * { box-sizing: border-box; }
.sec-thumb h1, .sec-thumb h2, .sec-thumb h3, .sec-thumb h4, .sec-thumb p, .sec-thumb ul { margin: 0; padding: 0; }
.sec-thumb ul { list-style: none; }
.sec-thumb a { text-decoration: none; color: inherit; }

/* Common section primitives */
.sec-thumb .eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  display: block;
}
.sec-thumb h1, .sec-thumb h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  color: #f4f4f6;
  letter-spacing: -0.035em;
  line-height: 0.96;
}
.sec-thumb em { font-style: italic; color: #c9b3ff; }
.sec-thumb button {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  padding: 13px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform .2s;
}
.sec-thumb button.primary { background: #fff; color: #0a0a10; }
.sec-thumb button.ghost { background: transparent; color: #f4f4f6; border: 1px solid rgba(255,255,255,.18); }

/* S 001 — Centered Hero */
.sec-hero-centered {
  width: 100%; height: 100%;
  padding: 80px 60px;
  display: grid; place-content: center; gap: 20px;
  text-align: center;
  background: #08080c;
}
.sec-hero-centered .eyebrow { margin-bottom: 4px; }
.sec-hero-centered h1 { font-size: 80px; }
.sec-hero-centered p { color: rgba(255,255,255,.65); font-family: 'Inter', sans-serif; font-size: 17px; line-height: 1.5; max-width: 520px; margin: 0 auto; }
.sec-hero-centered .row { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }

/* S 002 — Split Hero */
.sec-hero-split {
  width: 100%; height: 100%;
  padding: 70px 60px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  background: #08080c;
}
.sec-hero-split .eyebrow {
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(106,92,255,.4); background: rgba(106,92,255,.16);
  color: #c9b3ff; display: inline-block; margin-bottom: 16px;
}
.sec-hero-split h1 { font-size: 70px; margin-bottom: 18px; }
.sec-hero-split p { color: rgba(255,255,255,.65); font-family: 'Inter', sans-serif; font-size: 17px; line-height: 1.5; margin-bottom: 22px; }
.sec-hero-split .art {
  width: 100%; aspect-ratio: 1/1; max-width: 360px; justify-self: center;
  border-radius: 18px;
  background:
    radial-gradient(80% 80% at 30% 30%, #ff456c, transparent 60%),
    radial-gradient(80% 80% at 80% 80%, #6a5cff, transparent 60%),
    radial-gradient(60% 60% at 50% 50%, #00e1ff66, transparent 70%),
    #1c1322;
}

/* S 003 — Mesh Hero */
.sec-hero-mesh {
  position: relative;
  width: 100%; height: 100%;
  padding: 80px 60px;
  display: grid; place-content: center; gap: 18px;
  text-align: center;
  overflow: hidden;
  background: #08080c;
}
.sec-hero-mesh .mesh-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 60% at 25% 30%, rgba(106,92,255,.5), transparent 60%),
    radial-gradient(60% 50% at 80% 25%, rgba(255,69,108,.45), transparent 60%),
    radial-gradient(50% 60% at 70% 80%, rgba(0,225,255,.35), transparent 65%),
    radial-gradient(40% 50% at 20% 80%, rgba(255,181,68,.3), transparent 60%);
  filter: blur(40px);
  z-index: 0;
}
.sec-hero-mesh .mesh-content { position: relative; z-index: 1; display: grid; gap: 16px; place-items: center; }
.sec-hero-mesh .eyebrow {
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,.08); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.9);
}
.sec-hero-mesh h1 { font-size: 84px; max-width: 800px; }

/* S 004 — Features */
.sec-features {
  width: 100%; height: 100%;
  padding: 70px 60px;
  display: grid; gap: 50px;
  background: #0a0a12;
}
.sec-features header { display: grid; gap: 14px; }
.sec-features header h2 { font-size: 56px; }
.sec-features .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sec-features .feat {
  padding: 28px 26px;
  background: rgba(20,20,28,.7);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  display: grid; gap: 12px;
}
.sec-features .ico {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(106,92,255,.3), rgba(0,225,255,.2));
  border: 1px solid rgba(106,92,255,.4);
  display: grid; place-items: center;
  font-size: 22px; color: #c9b3ff;
}
.sec-features .feat strong { color: #f4f4f6; font-family: 'Fraunces', serif; font-weight: 500; font-size: 24px; letter-spacing: -0.02em; }
.sec-features .feat p { color: rgba(255,255,255,.6); font-family: 'Inter', sans-serif; font-size: 15px; line-height: 1.5; }

/* S 005 — Bento */
.sec-bento {
  width: 100%; height: 100%;
  padding: 50px 60px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  background: #0a0a12;
}
.sec-bento .b {
  padding: 22px;
  background: linear-gradient(160deg, rgba(20,20,28,.85), rgba(10,10,16,.7));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  display: grid; gap: 8px; align-content: end;
  position: relative;
  overflow: hidden;
}
.sec-bento .b strong { color: #f4f4f6; font-family: 'Fraunces', serif; font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }
.sec-bento .b span { color: rgba(255,255,255,.55); font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.45; }
.sec-bento .b1 { grid-row: 1 / span 2; background: linear-gradient(160deg, rgba(106,92,255,.25), rgba(10,10,16,.7)); }
.sec-bento .b2 .halo { position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(50% 50% at 50% 50%, #ff456c66, transparent 70%); }
.sec-bento .b3 { background: linear-gradient(160deg, rgba(0,225,255,.18), rgba(10,10,16,.7)); }

/* S 006 — Pricing Table */
.sec-pricing {
  width: 100%; height: 100%;
  padding: 60px 60px;
  display: grid; gap: 40px;
  background: #0a0a12;
}
.sec-pricing header h2 { font-size: 52px; text-align: center; }
.sec-pricing .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sec-pricing .tier {
  position: relative;
  padding: 28px;
  background: rgba(20,20,28,.7);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  display: grid; gap: 14px;
}
.sec-pricing .tier.featured { border-color: rgba(106,92,255,.5); background: linear-gradient(180deg, rgba(106,92,255,.12), rgba(20,20,28,.7)); }
.sec-pricing .tier > span:first-child {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.sec-pricing .badge {
  position: absolute; top: 12px; right: 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 4px 9px;
  background: rgba(106,92,255,.25);
  border: 1px solid rgba(106,92,255,.5);
  border-radius: 999px;
  color: #c9b3ff;
}
.sec-pricing .tier strong { font-family: 'Fraunces', serif; font-weight: 500; font-size: 48px; color: #fff; letter-spacing: -0.03em; }
.sec-pricing .tier small { font-size: 14px; color: rgba(255,255,255,.55); font-weight: 400; }
.sec-pricing .tier ul { display: grid; gap: 6px; font-family: 'Inter', sans-serif; font-size: 14px; color: rgba(255,255,255,.7); }
.sec-pricing .tier ul li::before { content: '✓  '; color: #4ade80; }
.sec-pricing .tier button { margin-top: 4px; }

/* S 007 — FAQ */
.sec-faq {
  width: 100%; height: 100%;
  padding: 60px 60px;
  display: grid; gap: 36px;
  background: #0a0a12;
}
.sec-faq header { display: grid; gap: 10px; }
.sec-faq header h2 { font-size: 52px; }
.sec-faq .qs { display: grid; gap: 10px; max-width: 760px; }
.sec-faq .q {
  padding: 22px 24px;
  background: rgba(20,20,28,.7);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  display: grid; gap: 12px;
}
.sec-faq .q.open { border-color: rgba(106,92,255,.4); background: rgba(106,92,255,.06); }
.sec-faq .q-row { display: flex; justify-content: space-between; align-items: center; }
.sec-faq .q strong { color: #f4f4f6; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 17px; }
.sec-faq .q span { color: rgba(255,255,255,.6); font-size: 24px; }
.sec-faq .q p { color: rgba(255,255,255,.65); font-family: 'Inter', sans-serif; font-size: 14px; line-height: 1.55; }

/* S 008 — Testimonials */
.sec-testimonials {
  width: 100%; height: 100%;
  padding: 60px 60px;
  display: grid; gap: 38px;
  background: #0a0a12;
}
.sec-testimonials header h2 { font-size: 52px; text-align: center; }
.sec-testimonials .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sec-testimonials .t {
  padding: 22px;
  background: rgba(20,20,28,.7);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  display: grid; gap: 14px;
  position: relative;
}
.sec-testimonials .mark {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 64px;
  color: rgba(106,92,255,.4);
  line-height: 0.5; margin-bottom: 2px;
}
.sec-testimonials .t p { font-family: 'Fraunces', serif; font-style: italic; font-size: 17px; line-height: 1.5; color: #f4f4f6; letter-spacing: -0.01em; }
.sec-testimonials .who { display: flex; gap: 10px; align-items: center; }
.sec-testimonials .av { width: 34px; height: 34px; border-radius: 50%; }
.sec-testimonials .av1 { background: linear-gradient(135deg, #ff456c, #ffb544); }
.sec-testimonials .av2 { background: linear-gradient(135deg, #6a5cff, #00e1ff); }
.sec-testimonials .av3 { background: linear-gradient(135deg, #4ade80, #00e1ff); }
.sec-testimonials .who strong { display: block; color: #f4f4f6; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; }
.sec-testimonials .who small { color: rgba(255,255,255,.5); font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; }

/* S 009 — Stats Band */
.sec-stats {
  width: 100%; height: 100%;
  padding: 80px 60px;
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: center;
  background: #08080c;
}
.sec-stats > div { padding: 0 24px; border-right: 1px solid rgba(255,255,255,.08); display: grid; gap: 6px; text-align: center; }
.sec-stats > div:last-child { border-right: none; }
.sec-stats strong { font-family: 'Fraunces', serif; font-weight: 500; font-size: 56px; color: #fff; letter-spacing: -0.04em; }
.sec-stats span { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,.5); }

/* S 010 — Logo Cloud */
.sec-logos {
  width: 100%; height: 100%;
  padding: 80px 60px;
  display: grid; gap: 26px;
  background: #08080c;
  align-content: center;
}
.sec-logos p { text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.sec-logos .row { display: flex; justify-content: space-around; align-items: center; gap: 30px; flex-wrap: wrap; }
.sec-logos .row span { color: rgba(255,255,255,.8); font-size: 24px; }

/* S 011 — CTA Centered */
.sec-cta {
  position: relative;
  width: 100%; height: 100%;
  padding: 80px 60px;
  display: grid; place-content: center; gap: 18px;
  text-align: center;
  background: #08080c;
  overflow: hidden;
}
.sec-cta .glow {
  position: absolute; top: 50%; left: 50%;
  width: 70%; height: 80%;
  transform: translate(-50%, -50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(106,92,255,.32), transparent 70%);
  filter: blur(60px);
  z-index: 0;
}
.sec-cta > * { position: relative; z-index: 1; }
.sec-cta h2 { font-size: 68px; }
.sec-cta p { color: rgba(255,255,255,.7); font-family: 'Inter', sans-serif; font-size: 17px; }
.sec-cta .row { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }

/* S 012 — Footer 4-col */
.sec-footer {
  width: 100%; height: 100%;
  padding: 60px 60px 30px;
  display: grid; gap: 36px;
  background: #050507;
  align-content: center;
}
.sec-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.sec-footer .brand { font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; font-size: 28px; color: #f4f4f6; letter-spacing: -0.02em; margin-bottom: 12px; }
.sec-footer .brand-col p { color: rgba(255,255,255,.5); font-family: 'Inter', sans-serif; font-size: 14px; line-height: 1.5; max-width: 280px; }
.sec-footer h4 { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 14px; }
.sec-footer a { display: block; color: rgba(255,255,255,.75); font-family: 'Inter', sans-serif; font-size: 14px; padding: 4px 0; }
.sec-footer .bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.06); font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(255,255,255,.4); letter-spacing: 0.1em; }

/* S 013 — Footer Minimal */
.sec-footer-min {
  width: 100%; height: 100%;
  padding: 80px 60px;
  display: grid; gap: 28px;
  background: #050507;
  align-content: center;
  text-align: center;
}
.sec-footer-min .brand { font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; font-size: 36px; color: #f4f4f6; letter-spacing: -0.02em; }
.sec-footer-min nav { display: flex; justify-content: center; gap: 30px; }
.sec-footer-min nav a { color: rgba(255,255,255,.7); font-family: 'Inter', sans-serif; font-size: 14px; }
.sec-footer-min small { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; color: rgba(255,255,255,.35); }

/* S 014 — Newsletter Block */
.sec-newsletter {
  position: relative;
  width: 100%; height: 100%;
  padding: 70px 60px;
  display: grid; place-content: center; gap: 18px;
  text-align: center;
  background:
    radial-gradient(60% 60% at 50% 30%, rgba(106,92,255,.25), transparent 60%),
    radial-gradient(50% 50% at 80% 80%, rgba(255,69,108,.18), transparent 60%),
    #0a0a12;
  overflow: hidden;
}
.sec-newsletter .stars {
  font-family: 'JetBrains Mono', monospace; font-size: 18px;
  letter-spacing: 0.4em; color: rgba(255,255,255,.7);
}
.sec-newsletter h2 { font-size: 60px; }
.sec-newsletter p { color: rgba(255,255,255,.65); font-family: 'Inter', sans-serif; font-size: 16px; }
.sec-newsletter .form {
  display: flex; gap: 8px; justify-content: center;
  max-width: 440px; margin: 12px auto 0;
}
.sec-newsletter .form input {
  flex: 1;
  background: rgba(20,20,28,.7);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 13px 16px;
  color: #f4f4f6;
  font-family: 'Inter', sans-serif; font-size: 15px;
  outline: none;
}
.sec-newsletter .form button {
  background: #fff; color: #0a0a10;
  border: none; padding: 13px 22px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px;
  cursor: pointer;
}

/* S 015 — Process Steps */
.sec-process {
  width: 100%; height: 100%;
  padding: 60px 60px;
  display: grid; gap: 40px;
  background: #0a0a12;
}
.sec-process header { display: grid; gap: 10px; }
.sec-process header h2 { font-size: 52px; }
.sec-process .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sec-process .step {
  padding: 22px;
  background: rgba(20,20,28,.7);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  display: grid; gap: 8px;
}
.sec-process .n {
  font-family: 'Fraunces', serif; font-weight: 500; font-size: 38px; color: #c9b3ff; letter-spacing: -0.03em; line-height: 1;
}
.sec-process .step strong { color: #f4f4f6; font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 600; }
.sec-process .step p { color: rgba(255,255,255,.55); font-family: 'Inter', sans-serif; font-size: 14px; line-height: 1.5; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
