/* ============================================================
   Canvas UI — landing
   Display: Unbounded (variable) · Body: Space Grotesk (variable)
   Code: JetBrains Mono (variable)
   ============================================================ */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #04060c;
  --bg-2: #070b14;
  --surface: #0a0f1a;
  --surface-2: #0d1422;
  --line: rgba(140, 170, 235, 0.12);
  --line-strong: rgba(150, 185, 255, 0.22);
  --text: #e9effb;
  --text-dim: #94a0b8;
  --text-faint: #5c6579;
  --blue: #2e6bff;
  --blue-soft: #4f86ff;
  --cyan: #38e1ff;
  --cyan-dim: #19b8d8;
  --magenta: #ff3ea5;
  --magenta-soft: #ff6ec1;
  --white-hot: #f4f8ff;
  --font-display: "Unbounded", "Space Grotesk", sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --radius: 14px;
  --container: 1380px;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(56, 225, 255, 0.28); color: var(--white-hot); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
canvas { display: block; }

/* ---------- ambient layers ---------- */

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.noise-overlay {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-5%, -2%); }
  80% { transform: translate(4%, 4%); }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(2, 4, 9, 0.55) 100%),
    linear-gradient(180deg, rgba(2, 4, 9, 0.4), transparent 12%, transparent 88%, rgba(2, 4, 9, 0.6));
}

main, header, footer { position: relative; z-index: 2; }

.container {
  width: min(var(--container), 100% - 64px);
  margin-inline: auto;
}

/* ---------- nav ---------- */

.nav {
  position: relative;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(4, 6, 12, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 225, 255, 0.5) 30%, rgba(255, 62, 165, 0.4) 70%, transparent);
  opacity: 0.6;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand-mark {
  width: 30px;
  height: 30px;
  position: relative;
  filter: drop-shadow(0 0 8px rgba(56, 225, 255, 0.55));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.brand:hover .brand-mark { transform: rotate(90deg); }
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--white-hot);
}
.brand-word em { font-style: normal; color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 7px 12px;
  border-radius: 8px;
  position: relative;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--white-hot); background: rgba(120, 160, 255, 0.08); }
.nav-links a.domain {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}
.nav-links a.domain:hover { color: var(--cyan); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.stars-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px 6px 10px;
  background: rgba(13, 20, 34, 0.6);
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.stars-chip:hover {
  border-color: rgba(255, 214, 90, 0.45);
  color: var(--text);
  box-shadow: 0 0 18px rgba(255, 214, 90, 0.12);
}
.stars-chip .star { color: #ffd65a; font-size: 12px; }
.stars-chip .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: #43e97b;
  box-shadow: 0 0 8px #43e97b;
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.72); }
}
.stars-chip .count { min-width: 44px; text-align: right; transition: transform 0.2s; display: inline-block; }
.stars-chip .count.bump { transform: translateY(-3px); color: #ffd65a; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #031018;
  background: linear-gradient(180deg, #6ff0ff, var(--cyan) 55%, #18b9dd);
  border-radius: 9px;
  padding: 9px 18px;
  box-shadow: 0 0 0 1px rgba(56, 225, 255, 0.5) inset, 0 4px 22px rgba(56, 225, 255, 0.32), 0 1px 0 rgba(255,255,255,0.5) inset;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s, filter 0.2s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 0 0 1px rgba(56, 225, 255, 0.7) inset, 0 6px 30px rgba(56, 225, 255, 0.5), 0 1px 0 rgba(255,255,255,0.6) inset;
}
.btn-primary .arr { transition: transform 0.25s; }
.btn-primary:hover .arr { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 9px 16px;
  background: rgba(13, 20, 34, 0.5);
  transition: border-color 0.25s, background 0.25s, transform 0.2s, box-shadow 0.25s;
}
.btn-ghost:hover {
  border-color: rgba(255, 62, 165, 0.55);
  background: rgba(255, 62, 165, 0.07);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(255, 62, 165, 0.18);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 52px 0 44px;
  overflow: hidden;
}
#hero-shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta-soft);
  border: 1px solid rgba(255, 62, 165, 0.4);
  border-radius: 999px;
  padding: 7px 15px;
  background: rgba(255, 62, 165, 0.07);
  box-shadow: 0 0 24px rgba(255, 62, 165, 0.22), 0 0 0 4px rgba(255, 62, 165, 0.05);
  animation: badge-glow 3.2s ease-in-out infinite;
}
@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 22px rgba(255, 62, 165, 0.2), 0 0 0 4px rgba(255, 62, 165, 0.05); }
  50% { box-shadow: 0 0 34px rgba(255, 62, 165, 0.42), 0 0 0 6px rgba(255, 62, 165, 0.08); }
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 10px var(--magenta);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.hero h1 {
  margin-top: 26px;
  font-family: var(--font-display);
  line-height: 1.04;
  position: relative;
}
.h1-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(56, 225, 255, 0.6);
  margin-bottom: 16px;
}
.h1-line {
  display: block;
  font-weight: 800;
  font-size: clamp(40px, 4.35vw, 62px);
  letter-spacing: -0.01em;
  color: var(--white-hot);
  text-shadow: 0 0 42px rgba(80, 140, 255, 0.35);
}
.h1-line.outline {
  font-weight: 600;
  font-size: clamp(27px, 2.9vw, 42px);
  margin-top: 8px;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cyan);
  text-shadow: 0 0 30px rgba(56, 225, 255, 0.3);
  letter-spacing: 0.01em;
}
.h1-line .hot { color: var(--magenta); text-shadow: 0 0 26px rgba(255, 62, 165, 0.65); -webkit-text-stroke: 0; }

.h1-shimmer {
  position: absolute;
  inset: -10px;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: overlay;
}
.h1-shimmer::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 34%;
  left: -45%;
  background: linear-gradient(105deg, transparent, rgba(190, 240, 255, 0.55) 50%, transparent);
  transform: skewX(-18deg);
  animation: shimmer 6.5s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 55% { left: -45%; }
  85%, 100% { left: 130%; }
}

.hero-sub {
  margin-top: 22px;
  max-width: 560px;
  font-size: 16.5px;
  color: var(--text-dim);
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-sub .mono-bit {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cyan);
}

.install-chip {
  margin-top: 26px;
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.9), rgba(9, 14, 25, 0.9));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 12px 34px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.install-chip:hover {
  border-color: rgba(56, 225, 255, 0.45);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 12px 40px rgba(0,0,0,0.55), 0 0 26px rgba(56, 225, 255, 0.14);
}
.install-chip .term-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 4px 0 14px;
}
.install-chip .term-dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(140, 160, 200, 0.28);
}
.install-chip code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: #cfe6ff;
  padding: 13px 16px;
  white-space: nowrap;
}
.install-chip code .ps1 { color: var(--magenta); }
.install-chip code .pkg { color: var(--cyan); }
.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  border-left: 1px solid var(--line);
  padding: 0 15px;
  transition: color 0.2s, background 0.2s;
}
.copy-btn:hover { color: var(--cyan); background: rgba(56, 225, 255, 0.06); }
.copy-btn.copied { color: #43e97b; }

.fw-pills {
  margin-top: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.fw-pills .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-right: 4px;
}
.fw-pill {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  background: rgba(13, 20, 34, 0.5);
  transition: color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.fw-pill:hover {
  color: var(--white-hot);
  border-color: rgba(56, 225, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(56, 225, 255, 0.16);
}

/* hero demo panel */
.hero-demo {
  position: relative;
  perspective: 1400px;
}
.demo-frame {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15, 22, 38, 0.85), rgba(8, 12, 22, 0.92));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.09) inset,
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(46, 107, 255, 0.16);
  transform: rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
  overflow: hidden;
}
.hero-demo:hover .demo-frame {
  transform: rotateY(-1.5deg) rotateX(0.5deg) translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.12) inset,
    0 36px 90px rgba(0,0,0,0.65),
    0 0 90px rgba(56, 225, 255, 0.24);
}
.demo-frame::before {
  content: "";
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 230, 255, 0.75), transparent);
  z-index: 3;
}
.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 22, 0.6);
  position: relative;
  z-index: 2;
}
.demo-titlebar .dots { display: flex; gap: 6px; }
.demo-titlebar .dots i { width: 9px; height: 9px; border-radius: 50%; }
.demo-titlebar .dots i:nth-child(1) { background: #ff5f57; }
.demo-titlebar .dots i:nth-child(2) { background: #febc2e; }
.demo-titlebar .dots i:nth-child(3) { background: #28c840; }
.demo-titlebar .fname {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
}
.demo-titlebar .live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #43e97b;
}
.demo-titlebar .live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #43e97b;
  box-shadow: 0 0 8px #43e97b;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
.demo-canvas-wrap {
  position: relative;
  height: 320px;
}
.demo-canvas-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  position: relative;
  z-index: 2;
  background: rgba(8, 12, 22, 0.6);
}
.demo-caption .hint { color: var(--cyan-dim); }
.demo-caption .hint b { color: var(--cyan); font-weight: 600; }

.demo-float-chip {
  position: absolute;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  background: rgba(8, 13, 24, 0.85);
  border-radius: 8px;
  padding: 7px 11px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  animation: float-chip 5.5s ease-in-out infinite;
}
.demo-float-chip.tl { top: -16px; left: -22px; }
.demo-float-chip.br { bottom: -14px; right: -18px; animation-delay: -2.7s; }
.demo-float-chip .k { color: var(--magenta); }
.demo-float-chip .v { color: var(--cyan); }
@keyframes float-chip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---------- ticker ---------- */

.ticker {
  border-block: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.55);
  overflow: hidden;
  position: relative;
}
.ticker::before, .ticker::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 46s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 10px 11px 10px 11px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.ticker-track span i {
  font-style: normal;
  color: var(--cyan-dim);
  font-size: 8px;
}
.ticker-track span:hover { color: var(--cyan); }

/* ---------- catalogue ---------- */

.catalogue { padding: 64px 0 30px; }

.cat-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.cat-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3vw, 44px);
  margin-top: 14px;
  color: var(--white-hot);
  letter-spacing: -0.01em;
}
.cat-head h2 .count {
  color: var(--magenta);
  text-shadow: 0 0 26px rgba(255, 62, 165, 0.55);
  font-variant-numeric: tabular-nums;
}
.cat-head h2 .tail { color: var(--text-faint); font-weight: 500; }
.cat-desc {
  margin-top: 14px;
  max-width: 640px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.cat-desc code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--cyan);
  background: rgba(56, 225, 255, 0.08);
  border: 1px solid rgba(56, 225, 255, 0.2);
  border-radius: 5px;
  padding: 1.5px 6px;
}
.cat-desc .fb { color: var(--text-faint); font-size: 13px; }

.registry-note {
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(15, 22, 38, 0.7), rgba(9, 13, 23, 0.7));
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 14px 40px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}
.registry-note::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 62, 165, 0.6), transparent);
}
.registry-note .rn-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--magenta-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.registry-note .rn-body {
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
}
.registry-note .rn-cmd {
  margin-top: 11px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 8, 15, 0.8);
  overflow: hidden;
}
.registry-note .rn-cmd code {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #cfe6ff;
  padding: 9px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.registry-note .rn-cmd code .ps1 { color: var(--magenta); }
.registry-note .rn-cmd .copy-btn { padding: 9px 12px; border-left: 1px solid var(--line); }

/* ---------- card grid ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.fx-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.88), rgba(8, 12, 21, 0.94));
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s, box-shadow 0.35s;
  --accent: var(--cyan);
  --accent-glow: rgba(56, 225, 255, 0.22);
}
.fx-card[data-accent="blue"] { --accent: var(--blue-soft); --accent-glow: rgba(79, 134, 255, 0.26); }
.fx-card[data-accent="magenta"] { --accent: var(--magenta); --accent-glow: rgba(255, 62, 165, 0.24); }

.fx-card::before {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(190, 225, 255, 0.5), transparent);
  opacity: 0.5;
  transition: opacity 0.3s;
  z-index: 3;
}
.fx-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(190, 235, 255, 0.09) 46%, rgba(190, 235, 255, 0.16) 50%, rgba(190, 235, 255, 0.09) 54%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 2;
}
.fx-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 34px var(--accent-glow), 0 1px 0 rgba(255,255,255,0.1) inset;
}
.fx-card:hover::before { opacity: 1; }
.fx-card:hover::after { transform: translateX(120%); }

.fx-preview {
  position: relative;
  height: 174px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(46, 107, 255, 0.07), transparent 70%),
    #070b13;
}
.fx-preview canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.fx-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  position: relative;
  z-index: 3;
}
.fx-idx {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  transition: color 0.3s;
}
.fx-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  transition: color 0.3s, text-shadow 0.3s;
  white-space: nowrap;
}
.fx-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}
.fx-card:hover .fx-idx { color: var(--accent); }
.fx-card:hover .fx-name { color: var(--white-hot); text-shadow: 0 0 14px var(--accent-glow); }
.fx-card:hover .fx-tag {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ---------- CTA band ---------- */

.cta-band {
  margin: 46px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 30px 36px;
  display: flex;
  align-items: center;
  gap: 30px;
  background:
    radial-gradient(70% 130% at 12% 0%, rgba(46, 107, 255, 0.16), transparent 60%),
    radial-gradient(60% 130% at 88% 100%, rgba(255, 62, 165, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(13, 19, 33, 0.9), rgba(8, 12, 21, 0.92));
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: 0; left: 6%; right: 6%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 220, 255, 0.7), transparent);
}
.cta-copy { flex: 1; }
.cta-copy h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 1.9vw, 27px);
  color: var(--white-hot);
  letter-spacing: -0.01em;
}
.cta-copy h3 span { color: var(--cyan); }
.cta-copy p { margin-top: 6px; font-size: 13.5px; color: var(--text-dim); }
.cta-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* ---------- footer ---------- */

.footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 9, 17, 0.4), rgba(4, 6, 12, 0.9));
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 225, 255, 0.45) 35%, rgba(255, 62, 165, 0.4) 65%, transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.6fr 1fr;
  gap: 36px;
  padding: 44px 0 34px;
}
.footer .wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--white-hot);
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer .wordmark em { font-style: normal; color: var(--cyan); }
.footer .tagline { margin-top: 10px; font-size: 13px; color: var(--text-dim); max-width: 280px; }
.footer .live-line {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer .live-line i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer ul a {
  font-size: 13.5px;
  color: var(--text-dim);
  transition: color 0.2s, padding-left 0.25s;
}
.footer ul a:hover { color: var(--cyan); padding-left: 5px; }
.footer .license {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px 16px;
  background: rgba(10, 15, 26, 0.6);
}
.footer .license .lic-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #7ee787;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer .license p {
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
}
.footer .license a { color: var(--cyan); border-bottom: 1px dotted rgba(56, 225, 255, 0.4); transition: color 0.2s; }
.footer .license a:hover { color: var(--white-hot); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}
.footer-bottom .made b { color: var(--text-dim); font-weight: 500; }
.footer-bottom .made a { color: var(--magenta-soft); }
.footer-bottom .made a:hover { color: var(--magenta); }

/* ---------- reveals ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */

@media (max-width: 1240px) {
  .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .cat-head { grid-template-columns: 1fr; align-items: start; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .h1-shimmer::before, .noise-overlay,
  .hero-badge, .hero-badge .dot, .stars-chip .pulse,
  .demo-float-chip, .demo-titlebar .live i, .footer .live-line i {
    animation: none !important;
  }
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
