/* Encyclopédie visuelle — styles & effets (hors charte Educalia) */
:root {
  --bg: #0a0a0b;
  --panel: #121214;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --line: rgba(255, 255, 255, 0.1);
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --max: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #93c5fd;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 11, 0.85);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.top h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.top nav a {
  color: var(--muted);
}
.top nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.hero h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.note {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: #71717a;
}

.section {
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--line);
}

.section > .wrap > header {
  margin-bottom: 1.5rem;
}

.section h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.section header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card .stage {
  min-height: 160px;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.card .body {
  padding: 0.9rem 1rem 1.1rem;
  border-top: 1px solid var(--line);
}

.card .body h4 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.card .body p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.card .aka {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a78bfa;
}

footer.foot {
  padding: 2rem 0 3rem;
  text-align: center;
  color: #71717a;
  font-size: 0.85rem;
}

/* ========== DEMOS — STYLES ========== */

/* Glassmorphism */
.demo-glass {
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
}
.demo-glass .panel {
  width: 78%;
  padding: 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px) saturate(1.4);
  color: #fff;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Neumorphism */
.demo-neuro {
  background: #e0e5ec;
}
.demo-neuro .btn {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: #e0e5ec;
  box-shadow: 9px 9px 16px #a3b1c6, -9px -9px 16px #ffffff;
  display: grid;
  place-items: center;
  color: #6b7c93;
  font-weight: 700;
  font-size: 0.8rem;
}

/* Soft UI / Clay */
.demo-clay {
  background: #f0f4ff;
}
.demo-clay .blob {
  width: 110px;
  height: 90px;
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  background: linear-gradient(145deg, #c7d2fe, #818cf8);
  box-shadow:
    inset -6px -10px 18px rgba(255, 255, 255, 0.7),
    inset 8px 10px 20px rgba(67, 56, 202, 0.35),
    0 14px 28px rgba(99, 102, 241, 0.35);
}

/* Neubrutalism */
.demo-brutal {
  background: #fef08a;
}
.demo-brutal .box {
  background: #fff;
  border: 3px solid #000;
  box-shadow: 6px 6px 0 #000;
  padding: 0.85rem 1.1rem;
  font-weight: 800;
  color: #000;
  transform: rotate(-2deg);
}

/* Classic brutalism */
.demo-classic-brutal {
  background: #111;
}
.demo-classic-brutal .box {
  border: 2px solid #fff;
  padding: 0.75rem;
  font-family: "Courier New", monospace;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

/* Flat */
.demo-flat {
  background: #f8fafc;
}
.demo-flat .row {
  display: flex;
  gap: 0.5rem;
}
.demo-flat .sq {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}
.demo-flat .sq:nth-child(1) {
  background: #3b82f6;
}
.demo-flat .sq:nth-child(2) {
  background: #22c55e;
}
.demo-flat .sq:nth-child(3) {
  background: #f59e0b;
}

/* Material */
.demo-material {
  background: #eceff1;
}
.demo-material .cardish {
  width: 70%;
  background: #fff;
  border-radius: 4px;
  padding: 1rem;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px rgba(0, 0, 0, 0.2);
  color: #263238;
  font-size: 0.85rem;
  font-weight: 500;
}
.demo-material .fab {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e91e63;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

/* Skeuomorphism */
.demo-skeuo {
  background: #2c1810;
}
.demo-skeuo .knob {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f5d0a9, #8b5a2b 55%, #3e2723);
  box-shadow:
    inset 0 -8px 12px rgba(0, 0, 0, 0.45),
    inset 0 6px 10px rgba(255, 255, 255, 0.25),
    0 10px 20px rgba(0, 0, 0, 0.5);
  border: 3px solid #5d4037;
}

/* Dark / OLED */
.demo-oled {
  background: #000;
}
.demo-oled .txt {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
}

/* Cyberpunk / neon */
.demo-cyber {
  background: #0a0014;
}
.demo-cyber .neon {
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  text-shadow:
    0 0 8px #ff00ea,
    0 0 24px #ff00ea,
    0 0 40px #00f0ff;
  border: 2px solid #ff00ea;
  padding: 0.5rem 0.9rem;
  box-shadow: 0 0 16px #ff00ea, inset 0 0 12px rgba(0, 240, 255, 0.25);
}

/* Vaporwave / Y2K */
.demo-vapor {
  background: linear-gradient(180deg, #ff71ce, #01cdfe 40%, #b967ff);
}
.demo-vapor .grid-floor {
  position: absolute;
  inset: 40% 0 0;
  background:
    linear-gradient(transparent 0%, rgba(0, 0, 0, 0.35)),
    repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(255, 255, 255, 0.35) 19px),
    repeating-linear-gradient(0deg, transparent, transparent 18px, rgba(255, 255, 255, 0.25) 19px);
  transform: perspective(200px) rotateX(50deg);
  transform-origin: top;
}
.demo-vapor .sun {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(#ff6b6b, #ffe66d);
  position: relative;
  z-index: 1;
}

/* Memphis */
.demo-memphis {
  background: #fff5f7;
  background-image:
    radial-gradient(circle at 20% 30%, #ff6b6b 8px, transparent 9px),
    radial-gradient(circle at 80% 70%, #4ecdc4 10px, transparent 11px),
    repeating-linear-gradient(45deg, transparent, transparent 8px, #ffe66d 8px, #ffe66d 10px);
}
.demo-memphis .shape {
  width: 70px;
  height: 70px;
  background: #a29bfe;
  border: 4px solid #2d3436;
  transform: rotate(18deg);
  box-shadow: 8px 8px 0 #fd79a8;
}

/* Swiss / International */
.demo-swiss {
  background: #fff;
  display: grid !important;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  padding: 0 !important;
  min-height: 160px;
}
.demo-swiss .red {
  background: #e30613;
}
.demo-swiss .type {
  padding: 1rem;
  color: #000;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

/* Bauhaus */
.demo-bauhaus {
  background: #f5f0e6;
}
.demo-bauhaus .geo {
  position: relative;
  width: 100px;
  height: 100px;
}
.demo-bauhaus .c {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e30613;
  top: 0;
  left: 10px;
}
.demo-bauhaus .t {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 36px solid transparent;
  border-right: 36px solid transparent;
  border-bottom: 62px solid #0033a0;
  bottom: 0;
  right: 0;
}
.demo-bauhaus .s {
  position: absolute;
  width: 40px;
  height: 40px;
  background: #f4c430;
  bottom: 8px;
  left: 8px;
}

/* Minimalism */
.demo-mini {
  background: #fafafa;
}
.demo-mini .line {
  width: 40%;
  height: 2px;
  background: #111;
}

/* Maximalism */
.demo-maxi {
  background: repeating-conic-gradient(#ff0080 0 15deg, #00d4ff 0 30deg, #ffe600 0 45deg);
}
.demo-maxi .stamp {
  background: #000;
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 0.5rem 0.7rem;
  transform: rotate(-8deg);
  border: 3px dashed #fff;
}

/* Editorial / magazine */
.demo-edit {
  background: #f7f3eb;
  align-content: start !important;
  text-align: left;
}
.demo-edit .kicker {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9a3412;
  font-weight: 700;
}
.demo-edit .hed {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.15;
  color: #1c1917;
  margin: 0.4rem 0;
}
.demo-edit .dek {
  font-size: 0.75rem;
  color: #78716c;
  border-top: 1px solid #d6d3d1;
  padding-top: 0.4rem;
}

/* Isometric / 3D flat */
.demo-iso {
  background: #eef2ff;
}
.demo-iso .cube {
  width: 56px;
  height: 56px;
  background: #6366f1;
  transform: rotateX(55deg) rotateZ(45deg);
  box-shadow: 18px 18px 0 #4338ca, 18px 18px 0 2px #312e81;
  transform-style: preserve-3d;
}

/* Organic / blob */
.demo-organic {
  background: #ecfdf5;
}
.demo-organic .goo {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #34d399, #059669);
  border-radius: 60% 40% 50% 50% / 50% 55% 45% 50%;
  animation: goo 5s ease-in-out infinite;
}
@keyframes goo {
  50% {
    border-radius: 40% 60% 40% 60% / 55% 40% 60% 45%;
  }
}

/* Aurora / mesh */
.demo-aurora {
  background:
    radial-gradient(at 20% 30%, #c084fc 0, transparent 45%),
    radial-gradient(at 80% 20%, #22d3ee 0, transparent 40%),
    radial-gradient(at 50% 80%, #f472b6 0, transparent 45%),
    #0f172a;
  animation: aurora-bg 8s ease-in-out infinite alternate;
}
@keyframes aurora-bg {
  from {
    filter: hue-rotate(0deg);
  }
  to {
    filter: hue-rotate(25deg);
  }
}

/* Duotone */
.demo-duo {
  background: #111;
}
.demo-duo .img {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, #7c3aed, transparent 60%),
    linear-gradient(225deg, #f97316, transparent 55%),
    radial-gradient(circle at 40% 40%, #fda4af, #1e1b4b);
  mix-blend-mode: hard-light;
  filter: contrast(1.2) saturate(1.4);
}

/* Monochrome */
.demo-mono {
  background: #fff;
  filter: grayscale(1);
}
.demo-mono .bars {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 70px;
}
.demo-mono .bars i {
  display: block;
  width: 14px;
  background: #111;
  border-radius: 2px;
}
.demo-mono .bars i:nth-child(1) {
  height: 30%;
}
.demo-mono .bars i:nth-child(2) {
  height: 70%;
}
.demo-mono .bars i:nth-child(3) {
  height: 45%;
}
.demo-mono .bars i:nth-child(4) {
  height: 90%;
}

/* High contrast a11y */
.demo-hc {
  background: #000;
}
.demo-hc .btn {
  background: #fff;
  color: #000;
  font-weight: 800;
  padding: 0.65rem 1rem;
  border: 3px solid #fff;
  outline: 3px solid #000;
  outline-offset: 3px;
}

/* Outline / ghost wire */
.demo-wire {
  background: #0c0c0c;
}
.demo-wire .frame {
  width: 70%;
  height: 90px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Paper / cutout */
.demo-paper {
  background: #d4c4a8;
}
.demo-paper .sheet {
  width: 70%;
  background: #fffef8;
  padding: 1rem;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.15), 0 12px 24px rgba(0, 0, 0, 0.12);
  transform: rotate(-3deg);
  color: #44403c;
  font-family: Georgia, serif;
  font-size: 0.85rem;
}

/* Bento */
.demo-bento {
  background: #18181b;
  display: grid !important;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.45rem;
  padding: 0.75rem !important;
}
.demo-bento i {
  display: block;
  border-radius: 12px;
  background: #27272a;
}
.demo-bento i:first-child {
  grid-row: span 2;
  background: linear-gradient(160deg, #3f3f46, #18181b);
}

/* Dashboard dense */
.demo-dash {
  background: #0f172a;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  padding: 0.75rem !important;
  font-size: 0.65rem;
  color: #94a3b8;
}
.demo-dash div {
  background: #1e293b;
  border-radius: 8px;
  padding: 0.5rem;
}
.demo-dash strong {
  display: block;
  color: #e2e8f0;
  font-size: 0.95rem;
}

/* Retro terminal */
.demo-term {
  background: #001100;
  font-family: "Courier New", monospace;
  color: #33ff66;
  font-size: 0.78rem;
  text-align: left;
  justify-items: start;
}
.demo-term .cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: #33ff66;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Retro UI / Win95 */
.demo-win95 {
  background: #008080;
}
.demo-win95 .win {
  width: 80%;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: 1px 1px 0 #000;
  font-size: 0.72rem;
  color: #000;
}
.demo-win95 .title {
  background: #000080;
  color: #fff;
  padding: 0.2rem 0.4rem;
  font-weight: 700;
}
.demo-win95 .content {
  padding: 0.6rem;
}

/* Fluent / acrylic */
.demo-fluent {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Crect fill='%234f46e5' width='80' height='80'/%3E%3Ccircle fill='%2322d3ee' cx='20' cy='20' r='18'/%3E%3Ccircle fill='%23f472b6' cx='60' cy='55' r='22'/%3E%3C/svg%3E");
  background-size: cover;
}
.demo-fluent .acrylic {
  width: 75%;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(30px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #1e1b4b;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
}

/* Liquid glass (Apple-ish) */
.demo-liquid {
  background: linear-gradient(160deg, #1d4ed8, #7c3aed 50%, #db2777);
}
.demo-liquid .lg {
  width: 72%;
  padding: 1.1rem;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -8px 20px rgba(0, 0, 0, 0.15),
    0 20px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(20px);
  color: #fff;
  font-weight: 650;
  text-align: center;
}

/* ========== EFFECTS ========== */

.demo-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.demo-grain {
  background: linear-gradient(135deg, #312e81, #0f766e);
  color: #fff;
  font-weight: 600;
}

.demo-shadow-long {
  background: #fafafa;
}
.demo-shadow-long .box {
  width: 70px;
  height: 70px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 12px 24px 0 rgba(0, 0, 0, 0.85);
  border: 2px solid #111;
}

.demo-inner-shadow {
  background: #1e293b;
}
.demo-inner-shadow .well {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #0f172a;
  box-shadow: inset 0 8px 20px rgba(0, 0, 0, 0.7), inset 0 -4px 10px rgba(255, 255, 255, 0.05);
}

.demo-glow {
  background: #050505;
}
.demo-glow .orb {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #8b5cf6;
  box-shadow: 0 0 20px #8b5cf6, 0 0 60px #8b5cf6, 0 0 100px #6366f1;
}

.demo-blur-bg {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Crect fill='%23f43f5e' width='120' height='120'/%3E%3Ccircle fill='%233b82f6' cx='40' cy='40' r='35'/%3E%3Ccircle fill='%23eab308' cx='90' cy='80' r='30'/%3E%3C/svg%3E")
    center / cover;
}
.demo-blur-bg .frost {
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
}

.demo-gradient-border {
  background: #111;
}
.demo-gradient-border .gb {
  position: relative;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: #111;
  color: #fff;
  font-weight: 600;
  z-index: 0;
}
.demo-gradient-border .gb::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(120deg, #22d3ee, #a855f7, #f43f5e);
  z-index: -1;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 2px;
}

.demo-iridescent {
  background: #0a0a0a;
}
.demo-iridescent .foil {
  width: 100px;
  height: 60px;
  border-radius: 10px;
  background: linear-gradient(120deg, #ff0080, #7928ca, #2afadf, #ff0080);
  background-size: 300% 300%;
  animation: foil 4s linear infinite;
}
@keyframes foil {
  to {
    background-position: 100% 50%;
  }
}

.demo-scanlines {
  background: #111;
}
.demo-scanlines::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, 0.35) 2px 3px);
  pointer-events: none;
}
.demo-scanlines .txt {
  color: #4ade80;
  font-family: monospace;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.demo-chromatic {
  background: #000;
}
.demo-chromatic .glitch {
  font-weight: 900;
  font-size: 1.4rem;
  color: #fff;
  position: relative;
  text-shadow: -2px 0 #f0f, 2px 0 #0ff;
  animation: glitch 1.2s infinite linear alternate-reverse;
}
@keyframes glitch {
  0% {
    text-shadow: -2px 0 #f0f, 2px 0 #0ff;
  }
  50% {
    text-shadow: 2px 0 #f0f, -2px 0 #0ff;
    transform: translate(1px, -1px);
  }
  100% {
    text-shadow: -1px 0 #f0f, 1px 0 #0ff;
  }
}

.demo-parallax {
  background: linear-gradient(#1e3a8a, #0f172a);
}
.demo-parallax .layer {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.demo-parallax .l1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 15%;
  animation: floaty 6s ease-in-out infinite;
}
.demo-parallax .l2 {
  width: 40px;
  height: 40px;
  bottom: 20%;
  right: 20%;
  animation: floaty 4s ease-in-out 0.5s infinite;
}
@keyframes floaty {
  50% {
    transform: translateY(-12px);
  }
}

.demo-marquee-fx {
  background: #18181b;
  overflow: hidden;
}
.demo-marquee-fx .track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: mq 12s linear infinite;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: -0.02em;
}
@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}

.demo-hover-lift {
  background: #f4f4f5;
}
.demo-hover-lift .cardx {
  width: 70%;
  padding: 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
  color: #18181b;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}
.demo-hover-lift .cardx:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

.demo-ripple {
  background: #312e81;
}
.demo-ripple .btn {
  position: relative;
  overflow: hidden;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: #6366f1;
  color: #fff;
  font-weight: 650;
  border: 0;
  cursor: pointer;
}
.demo-ripple .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.45), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
}
.demo-ripple .btn:hover::after {
  opacity: 1;
}

.demo-skeleton {
  background: #fff;
}
.demo-skeleton .sk {
  width: 80%;
  display: grid;
  gap: 0.5rem;
}
.demo-skeleton i {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e4e4e7, #f4f4f5, #e4e4e7);
  background-size: 200% 100%;
  animation: sk 1.4s linear infinite;
}
.demo-skeleton i:nth-child(1) {
  width: 60%;
}
.demo-skeleton i:nth-child(3) {
  width: 40%;
}
@keyframes sk {
  to {
    background-position: -200% 0;
  }
}

.demo-morph {
  background: #0f172a;
}
.demo-morph .m {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #22d3ee, #a855f7);
  animation: morph 4s ease-in-out infinite;
}
@keyframes morph {
  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
}

.demo-stagger {
  background: #111;
}
.demo-stagger span {
  display: inline-block;
  margin: 0.2rem;
  padding: 0.35rem 0.65rem;
  background: #27272a;
  border-radius: 8px;
  font-size: 0.78rem;
  animation: pop 2.5s ease infinite;
}
.demo-stagger span:nth-child(2) {
  animation-delay: 0.15s;
}
.demo-stagger span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes pop {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(6px);
  }
  40%,
  60% {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo-scroll-hint {
  background: #09090b;
}
.demo-scroll-hint .chev {
  width: 18px;
  height: 18px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  animation: chev 1.4s infinite;
  opacity: 0.8;
}
@keyframes chev {
  0% {
    transform: rotate(45deg) translate(-4px, -4px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: rotate(45deg) translate(6px, 6px);
    opacity: 0;
  }
}

.demo-spotlight-fx {
  background: #09090b;
  --x: 50%;
  --y: 50%;
}
.demo-spotlight-fx::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--x) var(--y), rgba(99, 102, 241, 0.35), transparent 40%);
  pointer-events: none;
}
.demo-spotlight-fx span {
  position: relative;
  font-weight: 650;
}

.demo-kinetic {
  background: #fff;
  overflow: hidden;
}
.demo-kinetic .word {
  font-weight: 900;
  font-size: 1.6rem;
  color: #000;
  letter-spacing: -0.05em;
  animation: kinetic 3s ease-in-out infinite;
}
@keyframes kinetic {
  0%,
  100% {
    transform: skewX(0) scaleY(1);
  }
  40% {
    transform: skewX(-12deg) scaleY(1.15);
  }
  60% {
    transform: skewX(8deg) scaleY(0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .top nav {
    display: none;
  }
}
