:root {
  color-scheme: light;
  --bg: #eef2ff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --ink: #1f2937;
  --muted: #64748b;
  --line: rgba(99, 102, 241, 0.18);
  --brand: #4f46e5;
  --brand-2: #f97316;
  --shadow: 0 18px 45px rgba(79, 70, 229, 0.12);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(249, 115, 22, 0.16), transparent 32rem),
    radial-gradient(circle at 90% 5%, rgba(79, 70, 229, 0.18), transparent 36rem),
    linear-gradient(135deg, #f8fafc 0%, var(--bg) 100%);
  color: var(--ink);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.84);
  backdrop-filter: blur(18px) saturate(130%);
}

.brand {
  min-width: max-content;
}

h1 {
  margin: 0;
  font-size: clamp(0.96rem, 1.92vw, 1.6rem);
  letter-spacing: 0;
  line-height: 1;
}

.subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: clamp(0.544rem, 0.8vw, 0.704rem);
  line-height: 1.25;
  white-space: nowrap;
}

.search-wrap {
  position: relative;
  width: min(460px, 100%);
}

.search-wrap svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

#search {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font: inherit;
  padding: 0 18px 0 46px;
  outline: none;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

#search:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.16);
}

main {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 22px;
  padding: 22px clamp(18px, 4vw, 44px) 44px;
}

.sidebar {
  position: sticky;
  top: 96px;
  height: calc(100vh - 118px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.sidebar-head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
}

.sidebar-head strong {
  display: block;
  font-size: 0.95rem;
}

.sidebar-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.style-list {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.list-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  padding: 8px 10px;
  transition: background 180ms ease, transform 180ms ease;
}

.list-item:hover,
.list-item:focus-visible {
  background: rgba(79, 70, 229, 0.08);
  outline: none;
}

.list-item.is-active {
  background: #312e81;
  color: white;
}

.list-index {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(79, 70, 229, 0.12);
  color: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.list-item.is-active .list-index {
  background: rgba(255, 255, 255, 0.18);
}

.list-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 650;
}

.gallery {
  min-width: 0;
}

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.gallery-head h2 {
  margin: 0;
  font-size: clamp(1.16rem, 2.4vw, 1.92rem);
  letter-spacing: 0;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.filter-chip {
  min-height: 34px;
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #312e81;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 7px 12px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  border-color: rgba(79, 70, 229, 0.36);
  background: rgba(79, 70, 229, 0.08);
  outline: none;
}

.filter-chip.is-active {
  border-color: #312e81;
  background: #312e81;
  color: #fff;
}

.count-pill {
  min-width: max-content;
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 9px 13px;
  color: #312e81;
  font-size: 0.85rem;
  font-weight: 750;
}

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

.card {
  display: flex;
  min-width: 0;
  min-height: 376px;
  flex-direction: column;
  border: 1px solid rgba(79, 70, 229, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

.card-body {
  display: grid;
  flex: 1;
  grid-template-rows: 58px 52px 28px 34px;
  row-gap: 10px;
  padding: 14px;
}

.card-title {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 58px;
}

.number {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #312e81;
  color: white;
  font-weight: 800;
  font-size: 0.86rem;
}

.card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.best-for {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.preview {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  isolation: isolate;
}

.preview::before,
.preview::after {
  content: "";
  position: absolute;
  inset: auto;
  z-index: -1;
}

.mini-ui {
  position: absolute;
  inset: 18px;
  display: grid;
  align-content: end;
  gap: 10px;
  color: inherit;
}

.bar {
  width: 68%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.bar.small { width: 44%; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.chip {
  width: 34px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.tag {
  align-self: flex-start;
  justify-self: flex-start;
  border-radius: 999px;
  border: 1px solid rgba(79, 70, 229, 0.16);
  background: rgba(79, 70, 229, 0.08);
  color: #312e81;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.empty {
  display: none;
  border: 1px dashed rgba(79, 70, 229, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  padding: 34px;
  text-align: center;
  color: var(--muted);
}

.empty.is-visible { display: block; }

.minimal { background: #fff; }
.minimal::before { inset: 22px; border: 2px solid #111827; }
.minimal .bar { background: #111827; border-radius: 0; }

.neumorphism { background: #e8eef6; }
.neumorphism .mini-ui { inset: 24px; border-radius: 26px; padding: 22px; background: #e8eef6; box-shadow: 12px 12px 24px #c6ccd4, -12px -12px 24px #fff; }
.neumorphism .bar { background: #e8eef6; box-shadow: inset 5px 5px 10px #c6ccd4, inset -5px -5px 10px #fff; }

.glass { background: radial-gradient(circle at 20% 20%, #00ffff, transparent 35%), radial-gradient(circle at 80% 10%, #ff1493, transparent 35%), linear-gradient(135deg, #25155f, #0080ff); }
.glass .mini-ui { border: 1px solid rgba(255,255,255,.36); border-radius: 22px; padding: 20px; background: rgba(255,255,255,.18); backdrop-filter: blur(14px); }

.brutal { background: repeating-linear-gradient(90deg, #fff 0 28px, #ffff00 28px 56px); border: 3px solid #000; }
.brutal .mini-ui { inset: 20px; padding: 14px; background: #ff0000; border: 4px solid #000; transform: rotate(-2deg); }
.brutal .bar, .flat .bar { border-radius: 0; background: #000; }

.hyperreal { background: radial-gradient(circle at 34% 22%, #ffd700, transparent 18%), linear-gradient(145deg, #001f3f, #228b22 58%, #800020); }
.hyperreal::before { inset: 36px 40px; width: 100px; height: 100px; border-radius: 50%; background: linear-gradient(145deg, #fff7cc, #b78800); box-shadow: 24px 28px 48px rgba(0,0,0,.45), inset -14px -18px 25px rgba(0,0,0,.24); }

.vibrant { background: linear-gradient(135deg, #39ff14 0 34%, #bf00ff 34% 66%, #ff1493 66%); }
.vibrant::before { inset: 18px auto auto 18px; width: 72px; height: 72px; background: #00ffff; transform: rotate(12deg); }

.oled { background: #000; color: #fff; }
.oled .mini-ui { border: 1px solid #39ff14; padding: 18px; box-shadow: 0 0 24px rgba(57,255,20,.32); }
.oled .bar { background: #39ff14; box-shadow: 0 0 14px #39ff14; }

.accessible { background: #fff; }
.accessible .mini-ui { outline: 5px solid #000; outline-offset: -5px; padding: 22px; color: #000; }
.accessible .bar { background: #000; height: 16px; }

.clay { background: #fdf2f8; }
.clay::before { inset: 30px auto auto 34px; width: 100px; height: 86px; border: 4px solid #2b2b2b; border-radius: 30px; background: linear-gradient(145deg, #fdbcb4, #e6e6fa); box-shadow: 9px 10px 0 #2b2b2b; }

.aurora, .mesh { background: radial-gradient(circle at 20% 70%, #00ffff, transparent 32%), radial-gradient(circle at 80% 25%, #ff1493, transparent 30%), radial-gradient(circle at 40% 10%, #ffff00, transparent 24%), #121063; }

.retro, .cyber, .rgb { background: #111126; }
.retro::before, .cyber::before, .rgb::before { inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.11) 0 1px, transparent 1px 6px); }
.retro .bar, .cyber .bar, .rgb .bar { background: #00ffff; box-shadow: 0 0 14px #00ffff; }

.flat { background: linear-gradient(90deg, #ef4444 0 25%, #f59e0b 25% 50%, #22c55e 50% 75%, #3b82f6 75%); }

.skeuo { background: linear-gradient(135deg, #6b3f1d, #d4a574 45%, #543016); }
.skeuo .mini-ui { border-radius: 20px; padding: 20px; background: linear-gradient(145deg, #8b5a2b, #3d2412); box-shadow: inset 0 2px 10px rgba(255,255,255,.28), 0 22px 28px rgba(0,0,0,.36); }

.liquid { background: linear-gradient(135deg, #00ffff, #ff00ff 45%, #ffff00); }
.liquid::before { inset: 26px; border-radius: 40% 60% 35% 65%; background: rgba(255,255,255,.28); backdrop-filter: blur(14px) saturate(180%); box-shadow: inset 0 0 28px rgba(255,255,255,.62); }

.motion { background: #111827; }
.motion::before { inset: 28px auto auto 24px; width: 145px; height: 28px; border-radius: 999px; background: linear-gradient(90deg, #22c55e, #3b82f6, #f97316); transform: skewX(-18deg); box-shadow: 38px 46px 0 rgba(59,130,246,.45), 76px 92px 0 rgba(249,115,22,.45); }

.micro { background: #f8fafc; }
.micro::before { inset: 48px 60px; border-radius: 999px; background: #22c55e; box-shadow: 0 0 0 12px rgba(34,197,94,.15), 0 0 0 28px rgba(34,197,94,.08); }

.inclusive { background: linear-gradient(135deg, #fff, #e0f2fe); }
.inclusive .mini-ui { border-left: 10px solid #2563eb; padding-left: 18px; }
.inclusive .bar { background: #111827; height: 15px; }

.zero { background: #f7f7fb; }
.zero::before { inset: 50px 82px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 14px rgba(79,70,229,.08), 0 0 0 28px rgba(79,70,229,.04), 0 20px 48px rgba(79,70,229,.18); }

.soft { background: linear-gradient(145deg, #eef2ff, #fff); }
.soft .mini-ui { border-radius: 22px; padding: 20px; background: #fff; box-shadow: 0 18px 34px rgba(79,70,229,.15); }

.neobrutal { background: #fef08a; }
.neobrutal .mini-ui { background: #f0abfc; border: 3px solid #111; box-shadow: 8px 8px 0 #111; padding: 18px; }

.bento, .bento2 { background: #f5f5f7; }
.bento::before, .bento2::before { inset: 18px; background: linear-gradient(90deg, #fff 0 48%, transparent 48%), linear-gradient(#fff 0 45%, transparent 45%); border-radius: 22px; box-shadow: 94px 0 0 #fff, 0 88px 0 #fff, 94px 88px 0 #fff; }

.y2k { background: linear-gradient(135deg, #c0c0ff, #ff9ecd, #d8ff00); }
.y2k::before { inset: 26px; border-radius: 50%; border: 6px dotted #fff; box-shadow: 0 0 0 12px rgba(255,255,255,.25); }

.organic, .bio { background: #e8f5e9; }
.organic::before, .bio::before { inset: 28px; border-radius: 48% 52% 61% 39%; background: linear-gradient(135deg, #98d8a8, #00ff41, #00ffff); filter: blur(.2px); }

.ai { background: #0f172a; }
.ai::before { inset: 30px; background: radial-gradient(circle at 25% 35%, #8b5cf6 0 6px, transparent 7px), radial-gradient(circle at 70% 24%, #22d3ee 0 6px, transparent 7px), radial-gradient(circle at 52% 72%, #f97316 0 6px, transparent 7px); border: 1px solid rgba(34,211,238,.35); border-radius: 22px; box-shadow: 0 0 28px rgba(34,211,238,.22); }

.memphis { background: #fff7ed; }
.memphis::before { inset: 20px; background: radial-gradient(circle at 20% 20%, #ff006e 0 14px, transparent 15px), linear-gradient(45deg, transparent 45%, #000 45% 55%, transparent 55%), radial-gradient(circle at 78% 70%, #00ffff 0 22px, transparent 23px), #ffff00; border: 3px solid #111; }

.vapor { background: linear-gradient(180deg, #2b1055, #ff10f0); }
.vapor::before { inset: auto 0 0; height: 80px; background: repeating-linear-gradient(90deg, transparent 0 26px, rgba(0,255,255,.5) 27px 28px), repeating-linear-gradient(0deg, transparent 0 16px, rgba(0,255,255,.5) 17px 18px); transform: perspective(160px) rotateX(48deg); transform-origin: bottom; }

.layer { background: #f8fafc; }
.layer::before { inset: 36px 52px 42px 28px; border-radius: 18px; background: #fff; box-shadow: 24px 18px 0 rgba(99,102,241,.22), 48px 36px 0 rgba(249,115,22,.24), 0 22px 38px rgba(15,23,42,.16); }

.exmin { background: #fff; }
.exmin::before { inset: 58px 28px auto; height: 8px; background: #111; box-shadow: 0 24px 0 #111; }

.type { background: #111; color: #fff; }
.type::before { content: "Aa"; inset: 18px auto auto 20px; color: #fff; font-size: 86px; font-weight: 900; line-height: 1; }

.parallax { background: linear-gradient(#dbeafe, #bfdbfe); }
.parallax::before { inset: auto -20px 0; height: 90px; background: linear-gradient(135deg, transparent 0 38%, #1e3a8a 39% 60%, transparent 61%), linear-gradient(45deg, transparent 0 35%, #3b82f6 36% 58%, transparent 59%); }

.swiss2 { background: #fff; }
.swiss2::before { inset: 18px; background: linear-gradient(90deg, #111 0 12px, transparent 12px), linear-gradient(#111 0 12px, transparent 12px); background-size: 46px 46px; }
.swiss2 .bar { background: #e11d48; border-radius: 0; }

.hud { background: #020617; }
.hud::before { inset: 18px; border: 1px solid rgba(0,255,255,.62); background: linear-gradient(90deg, rgba(0,255,255,.08) 1px, transparent 1px), linear-gradient(rgba(0,255,255,.08) 1px, transparent 1px); background-size: 18px 18px; box-shadow: 0 0 18px rgba(0,255,255,.28); }

.pixel { background: #1f2937; image-rendering: pixelated; }
.pixel::before { inset: 38px; background: #facc15; box-shadow: 12px 0 0 #facc15, 24px 0 0 #ef4444, 36px 0 0 #ef4444, 0 12px 0 #22c55e, 12px 12px 0 #111827, 24px 12px 0 #22c55e, 36px 12px 0 #22c55e, 0 24px 0 #3b82f6, 12px 24px 0 #3b82f6, 24px 24px 0 #111827, 36px 24px 0 #3b82f6; width: 12px; height: 12px; }

.spatial { background: radial-gradient(circle at 45% 20%, #fff, transparent 24%), linear-gradient(135deg, #dbeafe, #c4b5fd); }
.spatial .mini-ui { border-radius: 28px; padding: 20px; background: rgba(255,255,255,.28); backdrop-filter: blur(24px) saturate(180%); box-shadow: 0 20px 44px rgba(79,70,229,.18); }

.eink { background: #fdfbf7; }
.eink::before { inset: 0; background-image: radial-gradient(#1a1a1a 0.6px, transparent 0.7px); background-size: 7px 7px; opacity: .12; }
.eink .bar { background: #1a1a1a; border-radius: 0; }

.chaos { background: #00ff00; }
.chaos::before { inset: 20px; background: #ff00ff; border: 4px solid #0000ff; transform: rotate(-8deg); box-shadow: 34px 42px 0 #ffff00, -12px 88px 0 #000; }

.raw { background: #fafaf8; }
.raw::before { inset: 26px; border: 3px solid #1a1a1a; border-radius: 43% 57% 48% 52%; transform: rotate(-2deg); background: repeating-linear-gradient(-8deg, transparent 0 12px, rgba(74,74,74,.16) 13px 15px); }

.tactile { background: #eef2ff; }
.tactile::before { inset: 44px 54px; border-radius: 34px; background: linear-gradient(145deg, #fff, #ff9ecd 44%, #87ceeb); box-shadow: inset -10px -10px 18px rgba(0,0,0,.18), 0 20px 30px rgba(79,70,229,.22); }

.nature { background: #f5f0e1; }
.nature::before { inset: 28px; border-radius: 32% 68% 43% 57%; background: linear-gradient(135deg, #c67b5c, #d4c4a8, #6b7b3c); }

.cursor { background: #111827; }
.cursor::before { inset: 44px auto auto 52px; width: 74px; height: 74px; border-radius: 50%; background: #fff; mix-blend-mode: difference; box-shadow: 44px 34px 0 rgba(255,255,255,.35), 82px 68px 0 rgba(255,255,255,.18); }

.voice { background: #fafafa; }
.voice::before { inset: 70px 22px; height: 58px; background: repeating-linear-gradient(90deg, #6b8faf 0 6px, transparent 6px 14px); border-radius: 999px; box-shadow: 0 0 0 16px rgba(155,143,187,.12); }

.product3d { background: linear-gradient(145deg, #fff, #e8e8e8); }
.product3d::before { inset: 42px 72px; border-radius: 28px 28px 44px 44px; background: linear-gradient(145deg, #fff, #c0c0c0); box-shadow: 0 28px 36px rgba(0,0,0,.22), inset -12px -10px 18px rgba(0,0,0,.16); transform: rotateY(18deg) rotateX(10deg); }

.editorial { background: #fff; }
.editorial::before { inset: 18px; background: linear-gradient(90deg, #111 0 42%, transparent 42% 47%, #111 47% 49%, transparent 49%), linear-gradient(#111 0 18%, transparent 18% 25%, #111 25% 28%, transparent 28%); }

.film { background: #f5e6c8; }
.film::before { inset: 0; background: radial-gradient(circle at 22% 16%, rgba(255,150,80,.55), transparent 28%), repeating-linear-gradient(90deg, rgba(26,26,26,.18) 0 3px, transparent 3px 20px); filter: sepia(.25) saturate(.85); }

.bauhaus { background: #f0f0f0; }
.bauhaus::before { inset: 18px; background: repeating-linear-gradient(0deg, #d02020 0 18px, #1040c0 18px 36px, #f0c020 36px 54px); border: 4px solid #121212; }

.minimal-mono { background: #fff; }
.minimal-mono::before { inset: 0; background: #000; }
.minimal-mono .bar { background: #000; border-radius: 0; }

.hero-centric { background: linear-gradient(135deg, #4f46e5, #0ea5e9); }
.hero-centric::before { inset: 30px 26px auto; height: 72px; border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: 0 52px 0 rgba(255,255,255,.28); }

.conversion { background: #fff; }
.conversion::before { inset: 28px 34px; border-radius: 18px; background: linear-gradient(90deg, #2563eb 0 58%, #ef4444 58%); box-shadow: 0 58px 0 #fee2e2, 0 84px 0 #dbeafe; }

.feature-showcase { background: #eef2ff; }
.feature-showcase::before { inset: 20px; border-radius: 20px; background: radial-gradient(circle at 28% 28%, #6366f1 0 18px, transparent 19px), radial-gradient(circle at 72% 28%, #22d3ee 0 18px, transparent 19px), radial-gradient(circle at 50% 72%, #f59e0b 0 18px, transparent 19px); border: 1px solid rgba(99,102,241,.28); }

.minimal-direct { background: #fff; }
.minimal-direct::before { inset: 52px 34px auto; height: 12px; background: #111; box-shadow: 0 30px 0 #d1d5db, 0 70px 0 #4f46e5; }

.social-proof { background: #f8fafc; }
.social-proof::before { inset: 28px; border-radius: 18px; background: linear-gradient(#fff 0 56%, transparent 56%), radial-gradient(circle at 16% 78%, #22c55e 0 16px, transparent 17px), radial-gradient(circle at 50% 78%, #1d4ed8 0 16px, transparent 17px), radial-gradient(circle at 84% 78%, #22c55e 0 16px, transparent 17px); box-shadow: 0 18px 34px rgba(15,23,42,.12); }

.product-demo { background: #0f172a; }
.product-demo::before { inset: 24px; border-radius: 18px; background: linear-gradient(90deg, rgba(14,165,233,.34) 0 56%, rgba(168,85,247,.42) 56%), linear-gradient(#22c55e 0 0); background-size: auto, 78px 10px; background-position: center, 34px 122px; background-repeat: no-repeat; border: 1px solid rgba(255,255,255,.2); }

.trust-authority { background: #f8fafc; }
.trust-authority::before { inset: 26px 34px; border-radius: 20px; background: linear-gradient(135deg, #1e3a8a 0 52%, #d4af37 52%); box-shadow: 0 0 0 10px rgba(30,58,138,.08); }

.storytelling { background: linear-gradient(180deg, #7c2d12, #f97316 48%, #fde68a); }
.storytelling::before { inset: 26px 38px; border-radius: 45% 55% 36% 64%; background: rgba(255,255,255,.34); box-shadow: 42px 46px 0 rgba(255,255,255,.22); }

.data-dense { background: #f5f5f5; }
.data-dense::before { inset: 18px; background: linear-gradient(#fff 0 0), linear-gradient(#22c55e 0 0), linear-gradient(#3b82f6 0 0), linear-gradient(#ef4444 0 0); background-size: 74px 44px, 54px 84px, 54px 124px, 54px 64px; background-position: 0 0, 0 72px, 72px 72px, 144px 72px; background-repeat: no-repeat; border: 1px solid #d1d5db; }

.heatmap { background: #fff; }
.heatmap::before { inset: 24px; background: linear-gradient(90deg, #0080ff, #fff, #ff0000); mask-image: repeating-linear-gradient(90deg, #000 0 24px, transparent 24px 30px), repeating-linear-gradient(0deg, #000 0 24px, transparent 24px 30px); }

.executive { background: #f8fafc; }
.executive::before { inset: 28px 24px; border-radius: 18px; background: linear-gradient(#1e40af 0 38%, transparent 38%), linear-gradient(90deg, #22c55e 0 30%, #f59e0b 30% 60%, #ef4444 60%); box-shadow: 0 70px 0 rgba(30,64,175,.12); }

.realtime { background: #020617; }
.realtime::before { inset: 34px 22px; height: 96px; background: linear-gradient(90deg, transparent 0 12%, #22c55e 12% 16%, transparent 16% 30%, #22c55e 30% 36%, transparent 36% 54%, #f59e0b 54% 60%, transparent 60% 78%, #ef4444 78% 84%, transparent 84%); border-top: 1px solid rgba(34,197,94,.4); border-bottom: 1px solid rgba(34,197,94,.4); box-shadow: 0 0 24px rgba(34,197,94,.22); }

.drilldown { background: #f8fafc; }
.drilldown::before { inset: 26px 34px; background: linear-gradient(#4f46e5 0 0), linear-gradient(#93c5fd 0 0), linear-gradient(#bfdbfe 0 0), linear-gradient(#dbeafe 0 0); background-size: 90px 18px, 132px 18px, 106px 18px, 70px 18px; background-position: 0 0, 28px 44px, 56px 88px, 84px 132px; background-repeat: no-repeat; }

.comparison { background: #fff; }
.comparison::before { inset: 30px; background: linear-gradient(90deg, #2563eb 0 44%, transparent 44%), linear-gradient(90deg, #f97316 0 62%, transparent 62%), linear-gradient(90deg, #22c55e 0 76%, transparent 76%); background-size: 100% 28px; background-position: 0 0, 0 50px, 0 100px; background-repeat: no-repeat; border-left: 3px solid #111827; }

.predictive { background: #eef2ff; }
.predictive::before { inset: 28px 20px; background: linear-gradient(135deg, transparent 0 28%, rgba(139,92,246,.24) 28% 58%, transparent 58%), repeating-linear-gradient(90deg, transparent 0 24px, rgba(99,102,241,.16) 25px 26px); border-bottom: 4px dashed #8b5cf6; transform: skewY(-8deg); }

.behavior { background: #f8fafc; }
.behavior::before { inset: 24px 30px; clip-path: polygon(0 0, 100% 0, 82% 28%, 18% 28%, 30% 56%, 70% 56%, 58% 84%, 42% 84%); background: linear-gradient(#22c55e, #3b82f6, #ef4444); }

.financial { background: #f8fafc; }
.financial::before { inset: 28px; border-radius: 18px; background: linear-gradient(90deg, #22c55e 0 38%, #ef4444 38% 62%, #003366 62%); box-shadow: inset 0 -52px 0 rgba(255,255,255,.7), 0 18px 32px rgba(0,51,102,.16); }

.sales-intel { background: #fff7ed; }
.sales-intel::before { inset: 24px 28px; background: linear-gradient(#22c55e 0 0), linear-gradient(#3b82f6 0 0), linear-gradient(#f97316 0 0), linear-gradient(#ffd700 0 0); background-size: 42px 112px, 42px 82px, 42px 58px, 42px 132px; background-position: 0 30px, 58px 60px, 116px 84px, 174px 10px; background-repeat: no-repeat; border-bottom: 3px solid #111827; }

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

@media (max-width: 980px) {
  main {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: auto;
    height: 250px;
  }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .brand { min-width: 0; }

  .subtitle { font-size: min(0.56rem, 1.44vw); }

  .gallery-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid { grid-template-columns: 1fr; }

  .card { min-height: 352px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.send-btn {
  align-self: end;
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--brand);
  border-radius: 10px;
  background: transparent;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 200ms, color 200ms;
  font-family: inherit;
}
.send-btn:hover {
  background: var(--brand);
  color: #fff;
}

.footer {
  padding: 0 clamp(18px, 4vw, 44px) 28px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.toast {
  position: fixed;
  right: clamp(18px, 4vw, 44px);
  bottom: 24px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 36px));
  border: 1px solid rgba(49, 46, 129, 0.18);
  border-radius: 12px;
  background: #312e81;
  color: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0;
  padding: 12px 14px;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-error {
  background: #991b1b;
}

/* 2026-05-09: dedicated flat design previews */
.flat-muted { background: #f8fafc; }
.flat-muted::before { inset: 22px; border-radius: 16px; background: linear-gradient(#ffffff 0 42%, #eef2f7 42% 100%); border: 1px solid #d8e0ea; box-shadow: none; }
.flat-muted::after { inset: 44px 42px auto; height: 16px; background: #64748b; box-shadow: 0 34px 0 #cbd5e1, 0 68px 0 #e2e8f0; }
.flat-muted .bar { background: #475569; border-radius: 4px; }

.flat-pastel { background: linear-gradient(90deg, #fff7fb 0 50%, #fff8f1 50%); }
.flat-pastel::before { inset: 24px; border-radius: 0; background: linear-gradient(90deg, #f9a8d4 0 34%, #a7d8f0 34% 67%, #f2b8a0 67%); opacity: .72; }
.flat-pastel .mini-ui { inset: 36px 30px; padding: 16px; background: rgba(255,255,255,.72); border: 1px solid rgba(122,102,112,.18); }
.flat-pastel .bar { background: #3b2530; border-radius: 0; }

.flat-bento { background: #f6f8f5; }
.flat-bento::before { inset: 18px; border-radius: 18px; background: linear-gradient(90deg, #ffffff 0 48%, transparent 48% 52%, #eef3ed 52%), linear-gradient(#ffffff 0 46%, transparent 46% 54%, #dde7dd 54%); border: 1px solid #d9e2d9; }
.flat-bento::after { inset: 48px 34px auto; height: 54px; width: 68px; background: #5f6f64; box-shadow: 92px 0 0 #8a9a8b, 46px 74px 0 #0f766e; }
.flat-bento .bar { background: #1f2a22; border-radius: 3px; }

.flat-icon { background: #f3fcf8; }
.flat-icon::before { inset: 32px auto auto 30px; width: 48px; height: 48px; border-radius: 14px; background: #0ca678; box-shadow: 64px 0 0 #1c7ed6, 128px 0 0 #63e6be, 0 70px 0 #eaf7f2, 64px 70px 0 #c3fae8, 128px 70px 0 #0b3d2e; }
.flat-icon .bar { background: #0b3d2e; border-radius: 5px; }

.flat-civic { background: #ffffff; }
.flat-civic::before { inset: 24px; border-radius: 0; background: linear-gradient(#475569 0 18%, #f1f5f9 18% 44%, #ffffff 44%); border: 2px solid #cbd5e1; }
.flat-civic::after { inset: auto 34px 34px; height: 34px; background: #2563eb; box-shadow: 0 -52px 0 #eef2f7, 0 -96px 0 #e2e8f0; }
.flat-civic .bar, .flat-mobile .bar { background: #111827; border-radius: 0; }

.flat-mobile { background: linear-gradient(180deg, #3b82f6 0 38%, #ffffff 38% 70%, #f3f4f6 70%); }
.flat-mobile::before { inset: 26px auto auto 28px; width: 58px; height: 58px; border-radius: 16px; background: #10b981; box-shadow: 78px 0 0 #f59e0b, 39px 78px 0 #dbeafe; }
