/* Coldii.net redesign R2 — "trippy but tidy": deep dark aurora, neon rainbow accents, glowing compartments */
:root {
  --bg: #07070d;
  --card: rgba(20, 20, 36, 0.72);
  --card-solid: #141422;
  --ink: #f5f3ff;
  --ink-soft: #d7d2f2;
  --muted: #a19bc6;
  --line: rgba(255, 255, 255, 0.09);
  --magenta: #ff2fb3;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --amber: #f2b705;
  --rainbow: linear-gradient(100deg, #ff2fb3, #8b5cf6 38%, #22d3ee 72%, #a3e635 105%);
  --radius: 20px;
  --font-ui: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Syne", "Figtree", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: rgba(255, 47, 179, 0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0a13; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--magenta), var(--violet), var(--cyan)); border-radius: 8px; }

/* ---------- aurora background ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--bg); }
.aurora i {
  position: absolute;
  width: 62vmax; height: 62vmax;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: drift 28s ease-in-out infinite alternate;
  will-change: transform;
}
.aurora .a1 { background: radial-gradient(circle at center, rgba(255, 47, 179, 0.55), transparent 65%); top: -20vmax; left: -14vmax; }
.aurora .a2 { background: radial-gradient(circle at center, rgba(139, 92, 246, 0.5), transparent 65%); top: 24vh; right: -18vmax; animation-delay: -9s; }
.aurora .a3 { background: radial-gradient(circle at center, rgba(34, 211, 238, 0.36), transparent 65%); bottom: -22vmax; left: 20vw; animation-delay: -17s; }
.aurora .a4 { background: radial-gradient(circle at center, rgba(242, 183, 5, 0.16), transparent 65%); top: 46vh; left: 42vw; width: 44vmax; height: 44vmax; animation-delay: -5s; }
.aurora::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 14%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1px 1px at 22% 68%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(2px 2px at 35% 8%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 48% 38%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 61% 82%, rgba(255,255,255,.65), transparent 60%),
    radial-gradient(1px 1px at 73% 18%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(2px 2px at 84% 55%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 93% 30%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 15% 88%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 55% 5%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 90% 90%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(2px 2px at 28% 45%, rgba(255,255,255,.4), transparent 60%);
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(6vmax, -4vmax) scale(1.12); } }
@keyframes twinkle { from { opacity: 0.55; } to { opacity: 1; } }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 100;
  height: 3px; width: calc(var(--scroll, 0) * 100%);
  background: var(--rainbow);
  box-shadow: 0 0 14px rgba(255, 47, 179, 0.8);
  pointer-events: none;
}

/* ---------- top nav ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 7, 13, 0.66);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.top.is-stuck { border-bottom-color: var(--line); background: rgba(7, 7, 13, 0.86); }
.top-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800;
  letter-spacing: 0.12em; font-size: 15px; text-decoration: none;
  color: var(--ink);
}
.logo-mark {
  width: 26px; height: 26px; border-radius: 8px; flex: none; position: relative;
  background: linear-gradient(135deg, var(--magenta), var(--violet));
  box-shadow: 0 0 16px rgba(255, 47, 179, 0.65);
}
.logo-mark::after {
  content: "";
  position: absolute; inset: 7px 5px 5px 9px;
  border-top: 3px solid #fff; border-right: 3px solid #fff;
  transform: rotate(45deg) skew(12deg, 12deg);
  transform-origin: center;
}
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: 14.5px;
  color: var(--muted); padding: 8px 12px; border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease, text-shadow 0.18s ease;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); text-shadow: 0 0 12px rgba(34, 211, 238, 0.8); }
.top-actions { display: flex; gap: 10px; }

/* ---------- pills & buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  font-weight: 700; font-size: 14.5px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: translateY(0); }
.pill-lg { padding: 14px 28px; font-size: 15.5px; }
.pill-dark {
  background: linear-gradient(135deg, var(--magenta), var(--violet));
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(255, 47, 179, 0.65);
}
.pill-dark:hover { filter: brightness(1.12); box-shadow: 0 14px 36px -8px rgba(255, 47, 179, 0.85); }
.pill-light {
  background: rgba(255, 255, 255, 0.06); color: var(--ink);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.pill-light:hover { border-color: rgba(34, 211, 238, 0.7); box-shadow: 0 0 20px rgba(34, 211, 238, 0.25); }
.pill-outline { background: transparent; color: var(--ink-soft); border-color: rgba(255, 255, 255, 0.18); }
.pill-outline:hover { border-color: var(--amber); color: #fff; box-shadow: 0 0 18px rgba(242, 183, 5, 0.3); }

/* generic buttons (JS-rendered, e.g. downloads page + plugin group CTA) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 999px;
  font-weight: 700; font-size: 14.5px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--magenta), var(--violet));
  color: #fff; box-shadow: 0 10px 26px -10px rgba(255, 47, 179, 0.7);
}
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.05); color: var(--muted);
  border-color: var(--line);
}
.btn-ghost.is-disabled { cursor: default; opacity: 0.75; }
.btn-ghost.is-disabled:hover { transform: none; }

/* ---------- hero ---------- */
.fold { padding: 84px 24px 8px; position: relative; }
.hero { max-width: 780px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.4);
  padding: 8px 18px; border-radius: 999px; margin: 0 0 24px;
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.18), inset 0 0 12px rgba(34, 211, 238, 0.06);
  text-shadow: 0 0 14px rgba(34, 211, 238, 0.6);
}
.wordmark {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(64px, 13vw, 128px);
  letter-spacing: 0.05em; margin: 0 0 12px; line-height: 1;
  background: linear-gradient(100deg, #ffd166 0%, var(--magenta) 28%, var(--violet) 52%, var(--cyan) 76%, #ffd166 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s linear infinite;
  filter: drop-shadow(0 0 30px rgba(255, 47, 179, 0.35));
}
@keyframes sheen { to { background-position: 220% center; } }
.hero-line { font-size: 20px; font-weight: 600; color: var(--ink-soft); margin: 0 0 14px; }
.hero-blurb { max-width: 580px; margin: 0 auto 32px; color: var(--muted); font-size: 16.5px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.hero-quick {
  display: flex; gap: 6px 20px; justify-content: center; align-items: center; flex-wrap: wrap;
  font-size: 14px; color: var(--muted);
}
.hero-quick-label {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px;
  background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-quick a {
  color: var(--ink-soft); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: color 0.16s ease, border-color 0.16s ease, text-shadow 0.16s ease;
}
.hero-quick a:hover { color: #fff; border-bottom-color: var(--magenta); text-shadow: 0 0 12px rgba(255, 47, 179, 0.7); }

/* hero youtube reel */
.hero-reel { margin: 36px auto 8px; max-width: 660px; text-align: left; }
.hero-reel[hidden] { display: none; }
.hero-reel-shell {
  border-radius: var(--radius);
  padding: 10px;
  background: linear-gradient(#0d0d18, #0d0d18) padding-box,
              linear-gradient(135deg, var(--magenta), var(--violet), var(--cyan)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 44px rgba(139, 92, 246, 0.28);
}
.hero-reel-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.hero-reel-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero-reel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 6px 0; }
.hero-reel-meta { margin: 0; font-size: 14px; color: var(--muted); }
.hero-reel-meta #hero-reel-channel { font-weight: 700; color: var(--ink); }
.hero-reel-sep { margin: 0 6px; }
.hero-reel-nav { display: flex; align-items: center; gap: 8px; position: relative; }
.hero-reel-step-label {
  position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%);
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
  background: #0d0d18; color: #fff; border: 1px solid var(--line);
  padding: 6px 10px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity 0.18s ease;
}
.hero-reel-nav.is-labeled .hero-reel-step-label { opacity: 1; }
.hero-reel-step {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05); color: var(--ink);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.hero-reel-step:hover { border-color: var(--cyan); transform: translateY(-1px); box-shadow: 0 0 14px rgba(34, 211, 238, 0.35); }
.hero-reel-arrow { font-size: 16px; line-height: 1; }
.hero-reel.is-switching .hero-reel-frame { opacity: 0.35; transition: opacity 0.28s ease; }
.hero-reel .hero-reel-frame { transition: opacity 0.3s ease; }

/* ---------- sections ---------- */
.section { max-width: 1080px; margin: 0 auto; padding: 64px 24px 8px; position: relative; }
.section-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; }
.section-num {
  font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: 0.06em;
  background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-color: rgba(255, 255, 255, 0.04);
  padding: 8px 13px; border-radius: 12px; flex: none; margin-top: 2px;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.25);
}
/* keep gradient text working over the chip bg: paint text via nested trick */
.section-num { -webkit-text-fill-color: transparent; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 4.6vw, 42px); letter-spacing: -0.01em;
  margin: 0 0 6px; color: #fff;
  text-shadow: 0 0 28px rgba(139, 92, 246, 0.45);
}
.section-head p { margin: 0; color: var(--muted); font-size: 16px; max-width: 580px; }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool-card, .oasis-card {
  --ac1: var(--magenta); --ac2: var(--violet);
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(165deg, rgba(26, 26, 46, 0.88), rgba(11, 11, 20, 0.88));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-decoration: none;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px -20px rgba(0, 0, 0, 0.8);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  min-height: 190px;
  overflow: hidden;
}
.tool-card:nth-child(1) { --ac1: var(--cyan); --ac2: #4f8cff; }
.tool-card:nth-child(2) { --ac1: var(--magenta); --ac2: var(--violet); }
.tool-card:nth-child(3) { --ac1: var(--violet); --ac2: var(--cyan); }
.tool-card::before, .oasis-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--ac1), var(--ac2));
  opacity: 0.9;
  box-shadow: 0 0 16px var(--ac1);
}
.tool-card::after, .oasis-card::after {
  content: ""; position: absolute; inset: -40%;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--ac1) 22%, transparent), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.tool-card:hover, .oasis-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: color-mix(in srgb, var(--ac1) 55%, transparent);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.9), 0 0 34px color-mix(in srgb, var(--ac1) 30%, transparent);
}
.tool-card:hover::after, .oasis-card:hover::after { opacity: 1; }
.tool-card strong, .oasis-card strong { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.tool-desc { color: var(--muted); font-size: 14.5px; }
.chip {
  align-self: flex-start;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ac1, var(--amber));
  background: color-mix(in srgb, var(--ac1, var(--amber)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ac1, var(--amber)) 45%, transparent);
  padding: 5px 12px; border-radius: 999px;
  text-shadow: 0 0 12px color-mix(in srgb, var(--ac1, var(--amber)) 60%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--ac1, var(--amber)) 18%, transparent);
}
.card-go {
  position: absolute; top: 22px; right: 22px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.tool-card:hover .card-go, .oasis-card:hover .card-go, .artist-row:hover .card-go {
  background: linear-gradient(135deg, var(--ac1, var(--magenta)), var(--ac2, var(--violet)));
  border-color: transparent; color: #fff;
  transform: translateX(3px);
  box-shadow: 0 0 18px color-mix(in srgb, var(--ac1, var(--magenta)) 55%, transparent);
}
.oasis-card { max-width: 600px; --ac1: var(--amber); --ac2: var(--magenta); }

/* ---------- music ---------- */
.music-card {
  background: linear-gradient(#101018, #101018) padding-box,
              linear-gradient(135deg, rgba(255,47,179,.55), rgba(139,92,246,.55), rgba(34,211,238,.55)) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: 0 0 44px rgba(255, 47, 179, 0.16), 0 22px 50px -22px rgba(0, 0, 0, 0.9);
  padding: 28px;
  display: flex; flex-direction: column; gap: 24px;
}
.music-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.artist-row {
  --ac1: var(--magenta); --ac2: var(--violet);
  position: relative;
  display: flex; align-items: center; gap: 18px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.artist-row:hover {
  border-color: rgba(255, 47, 179, 0.5); transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(255, 47, 179, 0.22);
}
.artist-row img {
  width: 72px; height: 72px; border-radius: 14px; object-fit: cover; flex: none;
  box-shadow: 0 0 22px rgba(255, 47, 179, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.artist-meta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.artist-meta strong { font-size: 19px; color: #fff; }

/* ---------- plugins (JS-rendered) ---------- */
.plugin-rail { display: grid; gap: 16px; }
.plugin-group {
  --ac1: var(--violet); --ac2: var(--cyan);
  position: relative; overflow: hidden;
  display: block;
  background: linear-gradient(165deg, rgba(26, 26, 46, 0.88), rgba(11, 11, 20, 0.88));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px -20px rgba(0, 0, 0, 0.8);
  padding: 28px; text-decoration: none;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}
.plugin-group::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--ac1), var(--ac2));
  box-shadow: 0 0 16px var(--ac1);
}
.plugin-group:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.9), 0 0 34px rgba(139, 92, 246, 0.28);
}
.plugin-group-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.plugin-thumb {
  display: flex; flex-direction: column; gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px; padding: 10px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.plugin-thumb:hover { border-color: rgba(34, 211, 238, 0.5); box-shadow: 0 0 18px rgba(34, 211, 238, 0.18); }
.plugin-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.plugin-thumb-fallback {
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  background: rgba(242, 183, 5, 0.1);
  border: 1px dashed rgba(242, 183, 5, 0.4);
  border-radius: 8px; font-weight: 700; font-size: 13px; text-align: center; padding: 8px;
  color: var(--amber);
}
.plugin-thumb-name { font-size: 13px; font-weight: 700; text-align: center; color: var(--ink-soft); }
.plugin-group-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.plugin-group-copy { display: flex; flex-direction: column; gap: 4px; }
.plugin-group-copy strong { font-size: 19px; color: #fff; }
.plugin-group-copy span { color: var(--muted); font-size: 14.5px; }
.fineprint { color: var(--muted); font-size: 14px; margin: 18px 0 0; }
.fineprint a { color: var(--ink-soft); font-weight: 600; }
.fineprint a:hover { color: #fff; }

/* downloads-page plugin cards (rendered by main.js when #download-rail exists) */
.plugin {
  background: linear-gradient(165deg, rgba(26, 26, 46, 0.88), rgba(11, 11, 20, 0.88));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 18px 44px -20px rgba(0, 0, 0, 0.8);
}
.plugin strong { font-size: 18px; color: #fff; }
.plugin p { margin: 0; color: var(--muted); font-size: 14.5px; }
.plugin-preview { width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.plugin-tag {
  align-self: flex-start;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber); background: rgba(242, 183, 5, 0.1);
  border: 1px solid rgba(242, 183, 5, 0.4);
  padding: 5px 12px; border-radius: 999px;
}

/* ---------- connect (JS-rendered) ---------- */
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.world, .world-half {
  background: linear-gradient(165deg, rgba(26, 26, 46, 0.82), rgba(11, 11, 20, 0.82));
  border: 1px solid var(--line);
  border-radius: 18px; padding: 20px 22px;
  text-decoration: none;
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.85);
  display: flex; flex-direction: column; gap: 6px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}
.world:hover, .world-half:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.9), 0 0 26px rgba(34, 211, 238, 0.2);
}
.world strong, .world-half strong { font-size: 17px; color: #fff; }
.world > span:last-child, .world-half > span:last-child { color: var(--muted); font-size: 13.5px; }
.world-kicker {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--rainbow); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.world-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.world-split .world-half { border: 0; box-shadow: none; border-radius: 0; background: transparent; backdrop-filter: none; }
.world-split .world-half + .world-half { border-left: 1px solid var(--line); }
.world-split .world-half:hover { transform: none; background: rgba(255, 255, 255, 0.04); box-shadow: none; }
.connect-cta { margin-top: 26px; text-align: center; }

/* ---------- footer ---------- */
.foot {
  max-width: 1080px; margin: 72px auto 0; padding: 26px 24px 44px;
  display: flex; align-items: center; gap: 18px;
  color: var(--muted); font-size: 14px;
  position: relative;
}
.foot::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,47,179,.5), rgba(139,92,246,.5), rgba(34,211,238,.5), transparent);
}
.foot-visits {
  background: rgba(255, 47, 179, 0.08);
  border: 1px solid rgba(255, 47, 179, 0.4);
  padding: 6px 14px; border-radius: 999px;
  font-weight: 600; font-size: 13px; color: #ffb3dd;
  box-shadow: 0 0 16px rgba(255, 47, 179, 0.18);
}
.foot-visits[hidden] { display: none; }
.foot-mark {
  margin-left: auto; font-weight: 700; letter-spacing: 0.12em; font-size: 12.5px; text-transform: uppercase;
  background: var(--rainbow); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  filter: blur(6px);
  transition: opacity 0.6s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}
.reveal.is-in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .aurora i, .aurora::after, .wordmark { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr 1fr; }
  .plugin-group-thumbs { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .top-inner { gap: 14px; }
  .fold { padding-top: 64px; }
}
@media (max-width: 560px) {
  .link-grid { grid-template-columns: 1fr; }
  .top-actions .pill-outline { display: none; }
  .hero-actions .pill { flex: 1 1 auto; }
}

/* ---------- Pocket feature section ---------- */
.pocket-section { position: relative; }
.pocket-banner {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: clamp(30px, 6vw, 60px);
  margin-bottom: 34px;
  text-align: center;
  background: linear-gradient(140deg, rgba(30, 14, 46, 0.9), rgba(12, 22, 44, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.25), inset 0 0 80px rgba(255, 47, 179, 0.08);
}
.pocket-banner::before {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 28px;
  padding: 2px;
  background: var(--rainbow);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.9;
  pointer-events: none;
}
.pocket-banner-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(40vmax 22vmax at 20% 10%, rgba(255, 47, 179, 0.22), transparent 65%),
    radial-gradient(40vmax 24vmax at 85% 90%, rgba(34, 211, 238, 0.18), transparent 65%);
  animation: pocket-pulse 6s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes pocket-pulse {
  from { opacity: 0.6; transform: scale(1); }
  to { opacity: 1; transform: scale(1.08); }
}
.pocket-banner > * { position: relative; z-index: 1; }
.pocket-eyebrow { color: var(--cyan); }
.pocket-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 8vw, 68px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
  color: #fff;
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.55);
}
.pocket-grad {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pocket-blurb {
  max-width: 560px;
  margin: 0 auto 26px;
  color: var(--ink-soft);
  font-size: 16px;
}
.pocket-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.pocket-cta {
  box-shadow: 0 0 28px rgba(255, 47, 179, 0.45);
  transition: box-shadow 0.25s, transform 0.25s;
}
.pocket-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 44px rgba(255, 47, 179, 0.7);
}
.pocket-play {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--rainbow);
  color: #0b0b14;
  font-size: 11px;
  margin-right: 4px;
  animation: play-bob 2.4s ease-in-out infinite;
}
@keyframes play-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.pocket-card {
  --ac1: var(--magenta); --ac2: var(--cyan);
  text-align: left;
  transition: transform 0.25s, box-shadow 0.25s;
}
.pocket-card:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 14px 44px rgba(255, 47, 179, 0.25);
}
.pocket-card .chip {
  background: linear-gradient(100deg, rgba(255, 47, 179, 0.25), rgba(34, 211, 238, 0.25));
  border: 1px solid rgba(255, 47, 179, 0.4);
}
.pocket-card-icon {
  font-size: 40px;
  display: block;
  margin: 10px 0 6px;
  filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.6));
}
.pocket-card[data-demo-slot] strong { letter-spacing: 0; }
@media (max-width: 560px) {
  .pocket-banner { padding: 28px 20px; }
  .pocket-cta-row .pill { width: 100%; justify-content: center; }
}

/* wordmark must never clip on narrow phones */
@media (max-width: 560px) {
  .wordmark { font-size: clamp(48px, 15.5vw, 64px); letter-spacing: 0.015em; }
}

.pocket-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin: 10px 0 8px;
  border: 1px solid rgba(139, 92, 246, 0.35);
}
