/* ============================================================
   The -osaurus Family — prehistoric jungle × glassmorphism
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --bg0: #0a0c11;
  --bg1: #12151d;
  --ink: #eef0f6;
  --muted: #a9afc0;
  --faint: #6b7183;
  --rim: rgba(255, 255, 255, 0.13);
  --lava: #ff6b35;

  --c-link1: #8b6cff;  --c-link2: #5b3fd6;
  --c-scale1: #19cbb6; --c-scale2: #0a9184;
  --c-search1: #5b8cff;--c-search2: #2f5ed9;
  --c-slash1: #ffc247; --c-slash2: #e8890c;
  --coral: #ff8a5c;

  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --easeout: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg0);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(139, 108, 255, 0.45); }
:focus-visible { outline: 2px solid var(--c-link1); outline-offset: 3px; border-radius: 6px; }
section { scroll-margin-top: 84px; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--c-link1); color: #fff; padding: 10px 18px;
  border-radius: 10px; font-weight: 600; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- glass ---------- */
.glass {
  background: linear-gradient(160deg, rgba(255,255,255,0.085), rgba(255,255,255,0.028));
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  border: 1px solid var(--rim);
  border-radius: 20px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

/* ============================================================
   FIXED JUNGLE SCENE
   ============================================================ */
.scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(85% 52% at 78% 84%, rgba(255, 92, 40, 0.14), transparent 58%),
    radial-gradient(90% 60% at 18% 100%, rgba(28, 44, 37, 0.5), transparent 65%),
    linear-gradient(180deg, #07080d 0%, #0a0c13 40%, #120e17 74%, #141014 100%);
}
.stars {
  position: absolute; inset: 0 0 30% 0; opacity: 0.5;
  background-image:
    radial-gradient(1px 1px at 22% 28%, rgba(255,255,255,0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 68% 14%, rgba(255,255,255,0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 42% 46%, rgba(255,255,255,0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 38%, rgba(255,255,255,0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 62%, rgba(255,255,255,0.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 72%, rgba(255,255,255,0.3) 50%, transparent 51%);
  background-size: 340px 340px, 420px 420px, 500px 500px, 380px 380px, 460px 460px, 540px 540px;
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.38; } to { opacity: 0.6; } }

.par { position: absolute; left: -4%; right: -4%; bottom: -3%; will-change: transform; }
.par svg { width: 100%; height: auto; }
.layer-mountains { bottom: 12%; opacity: 0.95; }
.layer-palms { bottom: 2%; opacity: 0.98; }
.layer-ferns { bottom: -2%; }

.volcano-halo { animation: halo 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}
.crater, .lava { animation: lavaflick 3.2s ease-in-out infinite; }
@keyframes lavaflick {
  0%, 100% { opacity: 0.85; } 40% { opacity: 0.55; } 60% { opacity: 1; }
}
.smoke { transform-box: fill-box; transform-origin: center; animation: smoke 8s linear infinite; }
.smoke.s2 { animation-delay: -2.7s; animation-duration: 9s; }
.smoke.s3 { animation-delay: -5.2s; animation-duration: 7.2s; }
@keyframes smoke {
  0%   { transform: translate(0, 0) scale(0.5); opacity: 0; }
  12%  { opacity: 0.22; }
  70%  { opacity: 0.1; }
  100% { transform: translate(-26px, -150px) scale(2.6); opacity: 0; }
}

/* embers & spores drifting up */
.embers i {
  position: absolute; bottom: -10px; width: 5px; height: 5px; border-radius: 50%;
  background: #ffab54; filter: blur(0.5px); opacity: 0;
  animation: ember 11s linear infinite;
}
.embers i:nth-child(1) { left: 12%; animation-delay: 0s;   animation-duration: 13s; }
.embers i:nth-child(2) { left: 28%; animation-delay: 3s;   background: #7ee8d2; animation-duration: 15s; }
.embers i:nth-child(3) { left: 44%; animation-delay: 6s;   animation-duration: 12s; width: 4px; height: 4px; }
.embers i:nth-child(4) { left: 58%; animation-delay: 1.5s; background: #ffd06e; animation-duration: 16s; }
.embers i:nth-child(5) { left: 71%; animation-delay: 8s;   animation-duration: 12.5s; }
.embers i:nth-child(6) { left: 82%; animation-delay: 4.5s; background: #7ee8d2; animation-duration: 14s; width: 4px; height: 4px; }
.embers i:nth-child(7) { left: 90%; animation-delay: 10s;  animation-duration: 13.5s; }
.embers i:nth-child(8) { left: 6%;  animation-delay: 12s;  background: #ffd06e; animation-duration: 15.5s; }
@keyframes ember {
  0%   { transform: translate(0, 0) scale(0.8); opacity: 0; }
  8%   { opacity: 0.55; }
  60%  { opacity: 0.35; }
  100% { transform: translate(34px, -78vh) scale(1.2); opacity: 0; }
}

.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.42) 100%);
}

/* meteor */
#meteor-layer { position: absolute; inset: 0; }
.meteor {
  position: absolute; width: 230px; height: 2px; border-radius: 2px;
  /* bright head on the left = leading edge; tail fades out behind */
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.9));
  transform: rotate(-28deg);
  animation: meteor 1.5s ease-in forwards;
}
/* travel vector (-72, +38) ≈ 152° matches the head direction of rotate(-28deg) */
@keyframes meteor {
  0%   { opacity: 0; transform: translate3d(0, 0, 0) rotate(-28deg); }
  6%   { opacity: 1; }
  100% { opacity: 0; transform: translate3d(-72vmin, 38vmin, 0) rotate(-28deg); }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 100; display: flex; align-items: center; gap: 22px;
  padding: 9px 12px 9px 18px; border-radius: 999px; max-width: min(94vw, 900px);
  /* darker tint than .glass so the pill stays readable over light content (JotForm) */
  background: linear-gradient(160deg, rgba(14, 17, 25, 0.78), rgba(14, 17, 25, 0.58));
}
.nav-brand {
  display: flex; align-items: center; gap: 9px; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.02em; white-space: nowrap;
}
.brand-mark { font-size: 19px; transform: scaleX(-1); display: inline-block; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  display: flex; align-items: center; gap: 7px; text-decoration: none;
  font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 7px 11px; border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-link   { background: var(--c-link1);   box-shadow: 0 0 8px var(--c-link1); }
.dot-scale  { background: var(--c-scale1);  box-shadow: 0 0 8px var(--c-scale1); }
.dot-search { background: var(--c-search1); box-shadow: 0 0 8px var(--c-search1); }
.dot-slash  { background: var(--c-slash1);  box-shadow: 0 0 8px var(--c-slash1); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15.5px;
  padding: 13px 26px; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.3s var(--spring), box-shadow 0.3s, background 0.2s, border-color 0.2s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px) scale(1.05); }
.btn:active { transform: translateY(1px) scale(0.95, 0.9); transition-duration: 0.08s; }
.btn-sm { padding: 8px 15px; font-size: 13px; gap: 7px; }
.btn-primary {
  background: linear-gradient(135deg, #f4f5f9, #d9dce8);
  color: #10131c; box-shadow: 0 10px 30px rgba(240, 242, 250, 0.18);
}
.btn-primary:hover { box-shadow: 0 16px 38px rgba(240, 242, 250, 0.28); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.05); color: var(--ink);
  border-color: var(--rim); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-accent {
  background: linear-gradient(135deg, var(--a1), var(--a2));
  color: var(--btn-ink, #fff);
  box-shadow: 0 10px 28px var(--aglow);
}
.btn-accent:hover { box-shadow: 0 16px 38px var(--aglow); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 120px 20px 90px; position: relative;
}
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 10.5vw, 8rem); line-height: 1.02;
  letter-spacing: -0.015em; margin-bottom: 26px;
  text-shadow: 0 12px 60px rgba(139, 108, 255, 0.25);
}
.hero-title .word { display: inline-block; white-space: nowrap; margin: 0 0.13em; }
.hero-title .st { display: inline-block; will-change: transform, opacity; }
.hero-title.split .st { opacity: 0; }
.hero-title.play .st {
  animation: stomp 0.5s cubic-bezier(0.22, 0.9, 0.3, 1.05) both;
  animation-delay: calc(var(--i) * 52ms);
}
@keyframes stomp {
  0%   { opacity: 0; transform: translateY(-1.1em) scale(1.1, 1.5); }
  52%  { opacity: 1; transform: translateY(0.09em) scale(1.18, 0.7); }
  74%  { transform: translateY(-0.05em) scale(0.93, 1.12); }
  100% { opacity: 1; transform: none; }
}
.hero.quake { animation: quake 0.5s linear both; }
@keyframes quake {
  0%, 100% { transform: none; }
  12% { transform: translate(-7px, 4px) rotate(-0.35deg); }
  26% { transform: translate(6px, -5px) rotate(0.35deg); }
  42% { transform: translate(-5px, 3px) rotate(-0.2deg); }
  58% { transform: translate(4px, -3px) rotate(0.2deg); }
  74% { transform: translate(-2px, 2px); }
  88% { transform: translate(1px, -1px); }
}
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); margin-bottom: 38px; }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 52px; }

.herd-row { display: flex; gap: 18px; justify-content: center; }
.herd-tile {
  display: block; border-radius: 17px;
  animation: bob 5.5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.6s);
  transition: transform 0.35s var(--spring), filter 0.3s;
}
.herd-tile:nth-child(1) { --i: 0; } .herd-tile:nth-child(2) { --i: 1; }
.herd-tile:nth-child(3) { --i: 2; } .herd-tile:nth-child(4) { --i: 3; }
.herd-tile img { width: 62px; height: 62px; border-radius: 17px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45); }
.herd-tile:hover { transform: translateY(-8px) rotate(-4deg) scale(1.08); filter: brightness(1.1); }
@keyframes bob {
  0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); }
}

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--faint);
}
.scroll-chev { font-size: 20px; animation: chev 1.8s ease-in-out infinite; }
.scroll-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; }
@keyframes chev { 0%, 100% { transform: translateY(0); opacity: 0.6; } 50% { transform: translateY(7px); opacity: 1; } }

/* ============================================================
   PLUGIN SECTIONS
   ============================================================ */
.plugin { min-height: 100svh; display: flex; align-items: center; padding: 90px 24px; position: relative; }
.plugin::before {
  content: ""; position: absolute; inset: 6% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(58% 52% at 50% 50%, var(--aglow), transparent 70%);
  opacity: 0.14;
}
.plugin-link   { --a1: var(--c-link1);   --a2: var(--c-link2);   --aglow: rgba(139, 108, 255, 0.4); }
.plugin-scale  { --a1: var(--c-scale1);  --a2: var(--c-scale2);  --aglow: rgba(25, 203, 182, 0.35); --btn-ink: #032420; }
.plugin-search { --a1: var(--c-search1); --a2: var(--c-search2); --aglow: rgba(91, 140, 255, 0.4); }
.plugin-slash  { --a1: var(--c-slash1);  --a2: var(--c-slash2);  --aglow: rgba(255, 194, 71, 0.35); --btn-ink: #2a1500; }

.plugin-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 5vw, 80px); align-items: center;
  width: 100%; max-width: 1180px; margin: 0 auto;
}
.plugin-grid.flip .plugin-info { order: 2; }
.plugin-grid.flip .plugin-demo { order: 1; }

.plugin-head { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.plugin-logo { display: block; flex: none; animation: bob 6s ease-in-out infinite; }
.plugin-logo svg { width: 92px; height: 92px; filter: drop-shadow(0 14px 30px var(--aglow)); }
.plugin-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.1rem, 4.2vw, 3.1rem); line-height: 1; letter-spacing: -0.01em;
}
.plugin-role {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--a1); margin-top: 7px;
}
.plugin-tagline {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 2.9vw, 2.15rem); line-height: 1.15; margin-bottom: 16px;
  background: linear-gradient(100deg, var(--ink) 25%, var(--a1) 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.plugin-desc { color: var(--muted); font-size: 16.5px; max-width: 48ch; margin-bottom: 30px; }
.plugin-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* dino mascot life */
.dino-eye { transform-box: fill-box; transform-origin: center; animation: blink 4.8s infinite; }
.plugin-logo:nth-of-type(1) .dino-eye { animation-delay: 0.9s; }
@keyframes blink {
  0%, 91%, 96%, 100% { transform: scaleY(1); }
  93.5% { transform: scaleY(0.08); }
}
.dino-tail { transform-box: fill-box; transform-origin: 96% 40%; }
.plugin-head:hover .dino-tail, .plugin-logo:hover .dino-tail { animation: wag 0.55s ease-in-out infinite; }
@keyframes wag {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(11deg); }
  70% { transform: rotate(-7deg); }
}
.plugin-head:hover .plugin-logo { animation-play-state: paused; }
.plugin-head:hover .plugin-logo svg { transform: rotate(-3deg) scale(1.04); transition: transform 0.35s var(--spring); }
.plugin-logo svg { transition: transform 0.35s var(--spring); }
.lk-nodes { animation: nodesPulse 3.4s ease-in-out infinite; }
@keyframes nodesPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.72; } }

/* NEW! badge */
.new-badge {
  position: relative; display: inline-block; vertical-align: 0.55em;
  font-family: var(--font-body); font-weight: 800; font-size: 0.34em;
  letter-spacing: 0.1em; padding: 0.32em 0.7em; margin-left: 0.35em;
  background: linear-gradient(135deg, var(--c-slash1), var(--c-slash2));
  color: #2a1500; border-radius: 999px; transform: rotate(-5deg);
  animation: newpulse 2.8s ease-in-out infinite;
  box-shadow: 0 6px 18px rgba(255, 194, 71, 0.4);
}
@keyframes newpulse {
  0%, 100% { transform: rotate(-5deg) scale(1); }
  50% { transform: rotate(-2deg) scale(1.09); }
}
.spark {
  position: absolute; width: 8px; height: 8px; background: #ffedc2;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: sparkle 2.8s ease-in-out infinite;
}
.spark.s1 { top: -9px; right: -7px; }
.spark.s2 { bottom: -8px; left: -8px; animation-delay: 0.7s; width: 6px; height: 6px; }
.spark.s3 { top: -10px; left: 22%; animation-delay: 1.4s; width: 5px; height: 5px; }
.spark.s4 { bottom: -10px; right: 24%; animation-delay: 2.1s; width: 6px; height: 6px; }
@keyframes sparkle {
  0%, 100% { transform: scale(0) rotate(0deg); opacity: 0; }
  50% { transform: scale(1.25) rotate(90deg); opacity: 1; }
}

/* ============================================================
   DEMO WINDOWS (shared)
   ============================================================ */
.plugin-demo { position: relative; }
.win { overflow: hidden; }
.win-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.win-bar [class^="dot-"] { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.win-title { margin-left: 9px; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.win-body { padding: 22px 20px 26px; }

.editor { font-family: var(--font-mono); font-size: 13.5px; line-height: 2.1; min-height: 150px; }
.ed-line { white-space: nowrap; overflow: hidden; }
.ed-line.dim { color: var(--faint); }
.ln {
  display: inline-block; width: 30px; color: var(--faint); opacity: 0.55;
  user-select: none; font-size: 11px;
}
.caret {
  display: inline-block; width: 2px; height: 1.2em; margin-left: 1px;
  background: var(--a1, #fff); vertical-align: text-bottom;
  animation: caretblink 1.1s steps(1) infinite;
}
@keyframes caretblink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
.demo-caption {
  margin-top: 16px; text-align: center; font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.06em; color: var(--faint);
}

/* 3D tilt */
.tilt {
  transform: perspective(950px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.16s ease-out;
  will-change: transform;
}
.tilt.tilt-reset { transition: transform 0.6s var(--spring); }

/* ============================================================
   LINKOSAURUS DEMO
   ============================================================ */
.wl { color: var(--a1); font-weight: 600; display: inline-block; }
.wl .br { color: var(--a2); font-weight: 400; opacity: 0.95; }
.pop { animation: pop 0.4s var(--spring) both; }
@keyframes pop {
  0% { transform: scale(0.55); } 62% { transform: scale(1.22); } 100% { transform: scale(1); }
}
.url-typing { color: var(--faint); }
.mdlink { color: var(--a1); font-weight: 600; display: inline-block; }
.mdlink .paren {
  color: var(--faint); font-weight: 400;
  /* the real target URL stays in the DOM; just collapse it visually */
  display: inline-block; max-width: 11ch; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom;
}

/* ============================================================
   SCALOSAURUS DEMO
   ============================================================ */
.scale-stage { position: relative; padding: 30px 24px 62px; height: 380px; overflow: hidden; }
.col-guide {
  position: absolute; top: 18px; bottom: 58px;
  left: calc(24px + (100% - 48px) * 0.6);
  border-left: 2px dashed rgba(255, 255, 255, 0.22);
  transition: border-color 0.2s, filter 0.2s;
}
.col-guide .guide-label {
  position: absolute; top: -6px; left: 9px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint);
}
.col-guide.snap {
  border-color: var(--a1);
  filter: drop-shadow(0 0 8px var(--aglow));
}
.col-guide.snap .guide-label { color: var(--a1); }
.img-mock {
  position: relative; width: 60%; border-radius: 10px;
  outline: 2px solid color-mix(in srgb, var(--a1) 75%, transparent);
  outline-offset: 2px; will-change: width;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}
.img-mock .img-art { width: 100%; height: auto; border-radius: 10px; }
.handle {
  position: absolute; width: 11px; height: 11px; border-radius: 50%;
  background: var(--a1);
  box-shadow: 0 0 0 3px rgba(10, 12, 17, 0.8), 0 0 12px var(--aglow);
}
.h-tl { top: -7px; left: -7px; } .h-tr { top: -7px; right: -7px; }
.h-bl { bottom: -7px; left: -7px; }
.h-br { bottom: -8px; right: -8px; width: 15px; height: 15px; animation: handlepulse 1.6s ease-in-out infinite; }
@keyframes handlepulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(10, 12, 17, 0.8), 0 0 10px var(--aglow); }
  50% { box-shadow: 0 0 0 3px rgba(10, 12, 17, 0.8), 0 0 22px var(--aglow), 0 0 0 7px color-mix(in srgb, var(--a1) 22%, transparent); }
}
.size-chip {
  position: absolute; left: 24px; bottom: 16px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--muted);
  background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 7px 12px; border-radius: 9px;
}
.size-chip b { color: var(--a1); font-weight: 600; display: inline-block; min-width: 3ch; text-align: right; }
.size-chip.bump { animation: pop 0.35s var(--spring); }

/* ============================================================
   SEARCHOSAURUS DEMO
   ============================================================ */
.spot { padding: 16px; }
.spot-bar {
  display: flex; align-items: center; gap: 11px;
  background: rgba(0, 0, 0, 0.38); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px; padding: 13px 15px; font-size: 15.5px;
}
.spot-bar svg { color: var(--a1); flex: none; }
.spot-q { font-weight: 500; min-height: 1.4em; }
.spot-bar kbd {
  margin-left: auto; font-family: var(--font-mono); font-size: 10.5px;
  color: var(--faint); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px; padding: 2px 7px;
}
.spot-filters { display: flex; gap: 7px; margin: 13px 2px 11px; }
.chip {
  font-size: 11.5px; font-weight: 500; padding: 4px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13); color: var(--muted);
  display: inline-flex; align-items: center; gap: 5px;
}
.chip b {
  font-family: var(--font-mono); font-weight: 600; font-size: 10px;
  color: var(--a1); border: 1px solid color-mix(in srgb, var(--a1) 45%, transparent);
  border-radius: 4px; padding: 0 4px; line-height: 1.5;
}
.spot-results { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.hit {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 12px;
  border: 1px solid transparent; background: rgba(255, 255, 255, 0.035);
}
.spot.live .hit { opacity: 0; transform: translateY(12px) scale(0.98); }
.spot.live .hit.show {
  opacity: 1; transform: none;
  transition: opacity 0.45s var(--easeout), transform 0.45s var(--easeout);
}
.hit-ic { font-size: 17px; flex: none; }
.hit-main { display: flex; flex-direction: column; min-width: 0; }
.hit-main b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hit-main small { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hit mark { background: color-mix(in srgb, var(--a1) 38%, transparent); color: #fff; border-radius: 3px; padding: 0 3px; }
.badge {
  margin-left: auto; flex: none; font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 3px 9px;
}
.badge-top {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--a1), var(--a2));
}
.hit.top {
  border-color: color-mix(in srgb, var(--a1) 55%, transparent);
  background: linear-gradient(100deg, color-mix(in srgb, var(--a1) 17%, transparent), rgba(255, 255, 255, 0.03));
}
.hit.top.show { animation: topGlow 2.6s ease-in-out infinite 0.5s; }
@keyframes topGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
  50% { box-shadow: 0 0 24px var(--aglow); }
}

/* ============================================================
   SLASHOSAURUS DEMO
   ============================================================ */
.slash-editor { position: relative; min-height: 424px; }
.slash-menu {
  position: absolute; left: 46px; top: 74px; width: min(320px, 82%);
  padding: 7px; border-radius: 15px; z-index: 3;
  opacity: 0; transform: translateY(8px) scale(0.94); transform-origin: top left;
  pointer-events: none;
  transition: opacity 0.22s var(--easeout), transform 0.26s var(--spring);
}
.slash-menu.open { opacity: 1; transform: none; }
.slash-menu ul { list-style: none; position: relative; }
.sm-pill {
  position: absolute; left: 0; right: 0; z-index: 0;
  top: var(--pt, 0px); height: var(--ph, 44px);
  background: color-mix(in srgb, var(--a1) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--a1) 45%, transparent);
  border-radius: 11px;
  transition: top 0.3s var(--spring), background 0.15s;
}
.slash-menu.pick .sm-pill { background: color-mix(in srgb, var(--a1) 34%, transparent); }
.slash-menu li {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 11px;
  padding: 8px 11px; font-size: 13px; line-height: 1.35;
}
.slash-menu li.sm-group {
  padding: 7px 11px 3px; font-family: var(--font-mono); font-size: 9.5px;
  font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint);
}
.sm-ic {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); border-radius: 9px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; color: var(--muted);
}
/* Obsidian default callout colors: tip = cyan, warning = orange */
.sm-ic.co-tip { color: #2dd6d2; background: rgba(45, 214, 210, 0.13); }
.sm-ic.co-warn { color: #ffb020; background: rgba(255, 176, 32, 0.13); }
.sm-txt { display: flex; flex-direction: column; min-width: 0; }
.sm-txt b { font-size: 13px; font-weight: 600; }
.sm-txt small { font-size: 11px; color: var(--faint); }
.sm-prev { margin-left: auto; flex: none; }
.prev-h1 { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.prev-table { display: grid; grid-template-columns: repeat(3, 11px); gap: 2px; }
.prev-table i { height: 7px; background: rgba(255, 255, 255, 0.18); border-radius: 2px; }
.prev-table i:nth-child(-n+3) { background: rgba(255, 255, 255, 0.34); }
.prev-code {
  font-family: var(--font-mono); font-size: 10px; color: #7ee8d2;
  background: rgba(0, 0, 0, 0.5); padding: 3px 7px; border-radius: 6px;
}
.prev-co { width: 36px; height: 19px; border-radius: 5px; position: relative; }
.prev-co::after {
  content: ""; position: absolute; left: 6px; top: 7px; right: 12px; height: 3px;
  border-radius: 2px; background: rgba(255, 255, 255, 0.35);
}
.prev-co-tip { background: rgba(45, 214, 210, 0.22); border: 1px solid rgba(45, 214, 210, 0.55); }
.prev-co-warn { background: rgba(255, 176, 32, 0.22); border: 1px solid rgba(255, 176, 32, 0.55); }

.callout-out { margin: 12px 0 0 32px; }
.callout {
  border-radius: 11px; padding: 11px 14px; max-width: 430px;
  border: 1px solid; font-family: var(--font-body);
}
.callout-tip { background: rgba(45, 214, 210, 0.09); border-color: rgba(45, 214, 210, 0.42); }
.co-head {
  display: flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 13px; color: #2dd6d2; margin-bottom: 3px;
}
.co-head svg { stroke: currentColor; }
.co-body { font-size: 13px; color: #d7f7f5; line-height: 1.5; display: block; }
.slash-editor.live .callout-out { opacity: 0; transform: scale(0.85); transform-origin: top left; }
.slash-editor.live .callout-out.show {
  opacity: 1; transform: none;
  transition: opacity 0.3s var(--easeout), transform 0.42s var(--spring);
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto { padding: 130px 24px; max-width: 1180px; margin: 0 auto; }
.section-title {
  font-family: var(--font-display); font-weight: 800; text-align: center;
  font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -0.01em; margin-bottom: 56px;
}
.manifesto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mani-card { padding: 36px 30px; text-align: center; }
.mani-ic {
  display: inline-grid; place-items: center; width: 58px; height: 58px;
  border-radius: 17px; margin-bottom: 20px;
}
.ic-clean   { color: var(--c-link1);   background: rgba(139, 108, 255, 0.13); box-shadow: 0 0 26px rgba(139, 108, 255, 0.22); }
.ic-offline { color: var(--c-scale1);  background: rgba(25, 203, 182, 0.12);  box-shadow: 0 0 26px rgba(25, 203, 182, 0.2); }
.ic-open    { color: var(--c-slash1);  background: rgba(255, 194, 71, 0.12);  box-shadow: 0 0 26px rgba(255, 194, 71, 0.2); }
.mani-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; margin-bottom: 8px; }
.mani-card p { color: var(--muted); font-size: 14.5px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: 60px 24px 130px; max-width: 860px; margin: 0 auto; }
.contact .section-title { margin-bottom: 16px; }
.contact-sub { text-align: center; color: var(--muted); max-width: 56ch; margin: 0 auto 44px; }
.form-shell { padding: clamp(14px, 3vw, 30px); border-radius: 26px; overflow: hidden; }
.form-shell iframe { border-radius: 16px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 54px 24px 120px; text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(5, 6, 10, 0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.foot-line { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.foot-line a { color: var(--ink); font-weight: 600; text-decoration-color: rgba(255, 255, 255, 0.3); }
.foot-repos { display: flex; gap: 10px 26px; justify-content: center; flex-wrap: wrap; }
.foot-repos a {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--muted);
  text-decoration: none; padding: 5px 4px; transition: color 0.2s;
}
.foot-repos a:hover { color: var(--ink); }

/* ============================================================
   DINO WALKER
   ============================================================ */
.walker-strip { position: fixed; left: 0; right: 0; bottom: 0; height: 70px; z-index: 60; pointer-events: none; }
.walker { position: absolute; bottom: 0; left: 0; will-change: transform; }
.walker svg { overflow: visible; }
.walker .flipwrap { transition: transform 0.25s; }
.walker.face-left svg { transform: scaleX(-1); }
.w-leg { transform-box: fill-box; transform-origin: 50% 8%; }
.walker.walking .w-leg1 { animation: step 0.34s ease-in-out infinite; }
.walker.walking .w-leg2 { animation: step 0.34s ease-in-out infinite; animation-delay: 0.17s; }
@keyframes step {
  0%, 100% { transform: rotate(20deg) translateY(-2px); }
  50% { transform: rotate(-20deg) translateY(0); }
}
.w-head { transform-box: fill-box; transform-origin: 20% 80%; }
.walker.walking .w-head { animation: headbob 0.68s ease-in-out infinite; }
@keyframes headbob { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(4deg); } }
.w-tail { transform-box: fill-box; transform-origin: 95% 50%; }
.walker.walking .w-tail { animation: wag 0.68s ease-in-out infinite; }
.w-eye { animation: blink 4.2s infinite; transform-box: fill-box; transform-origin: center; }

.fp {
  position: absolute; bottom: 6px; opacity: 0.55;
  animation: fpfade 2.4s ease-out forwards;
}
@keyframes fpfade { from { opacity: 0.55; } to { opacity: 0; } }

/* ============================================================
   REVEAL & DUST
   ============================================================ */
html.js .reveal {
  opacity: 0; transform: translateY(34px) scale(0.985);
  transition: opacity 0.75s var(--easeout), transform 0.75s var(--easeout);
  transition-delay: var(--rd, 0ms);
}
html.js .reveal.in { opacity: 1; transform: none; }
html.reduced .reveal { opacity: 1 !important; transform: none !important; }
[data-dust] { position: relative; }
.hero-title { position: relative; }
.slashkey { color: var(--a1); font-weight: 700; display: inline-block; }

.dust {
  position: absolute; border-radius: 50%;
  width: var(--s, 6px); height: var(--s, 6px);
  background: var(--dc, #cbb896); pointer-events: none; z-index: 5;
  animation: dust 0.85s ease-out forwards;
}
@keyframes dust {
  0% { opacity: 0.75; transform: translate(0, 0) scale(0.5); }
  100% { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, -30px)) scale(1.5); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  .plugin-grid { grid-template-columns: 1fr; gap: 44px; }
  .plugin-grid.flip .plugin-info { order: 1; }
  .plugin-grid.flip .plugin-demo { order: 2; }
  .plugin { min-height: 0; padding: 80px 22px; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .glass { backdrop-filter: blur(9px) saturate(1.25); -webkit-backdrop-filter: blur(9px) saturate(1.25); }
  .nav { gap: 10px; top: 10px; }
  .hero { padding: 105px 16px 80px; }
  .hero-eyebrow { font-size: 10.5px; letter-spacing: 0.12em; }
  .hero-cta { gap: 11px; }
  .btn { padding: 12px 20px; font-size: 14.5px; }
  .herd-tile img { width: 50px; height: 50px; border-radius: 14px; }
  .plugin-head { gap: 15px; }
  .plugin-logo svg { width: 72px; height: 72px; }
  .editor { font-size: 11.5px; }
  .ln { width: 22px; }
  /* let fake-editor lines wrap like a real mobile editor, with a hanging indent */
  .ed-line { white-space: normal; overflow: visible; padding-left: 26px; text-indent: -26px; line-height: 1.9; }
  .ed-line .ln { text-indent: 0; }
  .callout-out { margin-left: 12px; }
  .slash-editor { min-height: 448px; }
  .win-body { padding: 16px 13px 20px; }
  .scale-stage { padding: 24px 16px 58px; height: 250px; }
  .col-guide { left: calc(16px + (100% - 32px) * 0.6); }
  .col-guide .guide-label { left: auto; right: 9px; }
  .size-chip { left: 16px; font-size: 11px; }
  .slash-menu { left: 30px; width: min(290px, 88%); }
  .callout-out { margin-left: 20px; }
  .spot-bar { font-size: 14px; }
  .hit-main small { max-width: 46vw; }
  .manifesto-grid { grid-template-columns: 1fr; }
  .manifesto { padding: 90px 20px; }
  .embers i:nth-child(n+5) { display: none; }
  .walker svg { width: 56px; height: 38px; }
  .walker-strip { height: 52px; }
  .footer { padding-bottom: 96px; }
}

@media (max-width: 400px) {
  .plugin-name { font-size: 1.8rem; }
  .plugin-tagline { font-size: 1.35rem; }
  .hero-sub { font-size: 0.98rem; }
  .spot-bar { font-size: 13px; padding: 11px 12px; }
  .spot { padding: 11px; }
  .hit { padding: 9px 10px; gap: 9px; }
  .badge { padding: 3px 6px; letter-spacing: 0.06em; }
  .foot-repos { gap: 8px 18px; }
}

/* ============================================================
   REDUCED MOTION — decoration off, content fully usable
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  .hero-title.split .st { opacity: 1; }
  .embers, .stars, #meteor-layer, .smoke-set, .walker-strip, .scroll-hint, .volcano-halo { display: none; }
  .spot.live .hit { opacity: 1; transform: none; }
  .slash-editor.live .callout-out { opacity: 1; transform: none; }
  .tilt { transform: none; }
}
