/* BluePainter marketing site — design system v2
   Midnight ink ground · electric cobalt → cyan → violet "paint" gradient · grain, glass and light.
   Motion rules: animate transform / opacity only; every effect is off under prefers-reduced-motion. */

/* Metric-matched fallbacks so the web fonts swap in without moving the layout. */
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("Helvetica Neue"); size-adjust: 101%; ascent-override: 93%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Bricolage Fallback"; src: local("Arial Black"), local("Arial"); size-adjust: 96%; ascent-override: 96%; descent-override: 26%; line-gap-override: 0%; }
@font-face { font-family: "Geist Mono Fallback"; src: local("Menlo"), local("Consolas"), local("Courier New"); size-adjust: 98%; ascent-override: 95%; descent-override: 28%; line-gap-override: 0%; }

:root {
  /* colour */
  --bg: #05070f;
  --bg-elevated: #0b1120;
  --bg-raised: #111a2e;
  --text: #eef2fb;
  --muted: #9aa6bf;
  --faint: #7d889f;
  --paint: #2f6bff;
  --paint-bright: #6b95ff;
  --paint-soft: rgba(47, 107, 255, 0.16);
  --cyan: #19c8e6;
  --violet: #8b6bff;
  --primary: var(--paint);
  --primary-hover: #1f55e0;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --grad: linear-gradient(120deg, #4f86ff 0%, #19c8e6 48%, #8b6bff 100%);
  --grad-text: linear-gradient(100deg, #ffffff 0%, #bcd0ff 35%, #7fe3f5 65%, #b7a2ff 100%);
  /* type */
  --font: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Bricolage Fallback", "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", "Geist Mono Fallback", ui-monospace, "SF Mono", Menlo, monospace;
  /* space + shape */
  --max: 1160px;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* depth */
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --glow: 0 0 0 1px rgba(107, 149, 255, 0.25), 0 24px 80px -20px rgba(47, 107, 255, 0.55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { max-width: 100%; }

/* ---------- Atmosphere: aurora + grid + grain (all fixed, compositor-only) ---------- */
.atmos { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; }
.atmos .blob {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.atmos .b1 { top: -30vmax; right: -14vmax; background: radial-gradient(circle, rgba(47, 107, 255, 0.85), transparent 62%); animation: drift1 26s ease-in-out infinite alternate; }
.atmos .b2 { top: 18vmax; left: -26vmax; background: radial-gradient(circle, rgba(139, 107, 255, 0.55), transparent 62%); animation: drift2 32s ease-in-out infinite alternate; }
.atmos .b3 { bottom: -34vmax; right: 6vmax; background: radial-gradient(circle, rgba(25, 200, 230, 0.4), transparent 62%); animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(-9vmax, 7vmax, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(10vmax, -6vmax, 0) scale(1.18); } }
@keyframes drift3 { to { transform: translate3d(-12vmax, -8vmax, 0) scale(1.1); } }
.atmos .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 80%);
}
.atmos .grain {
  position: absolute;
  inset: -50%;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll progress hairline (scroll-driven; hidden where unsupported) */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); display: none; }
@supports (animation-timeline: scroll()) {
  .progress { display: block; animation: grow linear both; animation-timeline: scroll(root block); }
  @keyframes grow { to { transform: scaleX(1); } }
}

::selection { background: var(--paint); color: #fff; }

a { color: #a9c3ff; text-decoration: none; transition: color 0.2s; }
a:hover { color: #e1ebff; }
:focus-visible { outline: 2px solid var(--paint-bright); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.1; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.018em; }
p { text-wrap: pretty; }
code, pre, kbd { font-family: var(--mono); }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shimmer 8s ease-in-out infinite alternate; }
@keyframes shimmer { to { background-position: 100% 0; } }

/* ---------- Header: floating glass pill ---------- */
.site-header { position: sticky; top: 0; z-index: 70; padding: 14px 16px 0; pointer-events: none; view-transition-name: site-header; }
.site-header-inner {
  pointer-events: auto;
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 10px 8px 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 15, 30, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 10px 40px -16px rgba(0, 0, 0, 0.8);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.4s var(--ease);
  position: relative;
}
.site-header.is-scrolled .site-header-inner { background: rgba(8, 12, 24, 0.82); border-color: var(--border-strong); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 18px 50px -14px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(47, 107, 255, 0.08); }
.site-header.is-hidden .site-header-inner { transform: translateY(-130%); }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: #fff !important; letter-spacing: -0.03em; line-height: 1; }
.logo svg { width: 26px; height: 26px; flex: none; transition: transform 0.5s var(--ease-spring); }
.logo:hover svg { transform: rotate(-12deg) scale(1.1); }
.logo .l-blue { color: var(--cyan); }
.logo .l-paint { color: #dfe7f7; }
.nav { display: flex; gap: 2px; flex: 1; justify-content: center; position: relative; }
.nav a { position: relative; z-index: 1; color: var(--muted); padding: 8px 13px; border-radius: 999px; font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav-glow { position: absolute; top: 0; left: 0; height: 100%; width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: 999px; background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07) inset; opacity: 0; transition: transform 0.35s var(--ease), width 0.35s var(--ease), opacity 0.2s; pointer-events: none; }
.nav-glow.on { opacity: 1; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.header-actions .btn { padding: 9px 16px; border-radius: 999px; font-size: 0.86rem; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.05); color: var(--text); cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.35s var(--ease), opacity 0.2s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Buttons: sheen, glow, magnetic ---------- */
.btn {
  --tx: 0px; --ty: 0px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  color: #fff;
  white-space: nowrap;
  translate: var(--tx) var(--ty);
  transition: transform 0.3s var(--ease), background-position 0.5s var(--ease), box-shadow 0.3s, border-color 0.2s, background-color 0.2s, translate 0.25s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(120deg, #3f7bff 0%, #2f6bff 40%, #6d4dff 100%);
  background-size: 180% 100%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 10px 30px -6px rgba(47, 107, 255, 0.6);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn-primary:hover { color: #fff; background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 16px 44px -6px rgba(47, 107, 255, 0.85), 0 0 0 4px rgba(47, 107, 255, 0.14); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--border-strong); color: var(--text); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.32); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 15px 26px; font-size: 1rem; border-radius: 14px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn .arr { display: inline-block; transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Layout primitives ---------- */
main { min-height: 60vh; }
.section { max-width: var(--max); margin: 0 auto; padding: 88px 24px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--paint-bright);
  margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 620px; line-height: 1.65; }
.muted { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Cards: glass, cursor spotlight on the border and the fill, subtle tilt */
.card, .tile {
  --mx: 50%; --my: 0%;
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s, transform 0.5s var(--ease), translate 0.4s var(--ease), box-shadow 0.4s, background 0.3s;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  will-change: transform;
}
.card::before, .tile::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(280px circle at var(--mx) var(--my), rgba(107, 149, 255, 0.95), rgba(25, 200, 230, 0.45) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
  z-index: 1;
}
.card::after, .tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(47, 107, 255, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
  z-index: -1;
}
a.card:hover, .tile:hover, .card:focus-within { color: inherit; }
a.card:hover::before, a.card:hover::after, .tile:hover::before, .tile:hover::after, .card:focus-within::before { opacity: 1; }
a.card:hover, .tile:hover { translate: 0 -4px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 36px 80px -34px rgba(47, 107, 255, 0.6); }
.card h2, .card h3 { margin-top: 0; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card label { display: block; margin-bottom: 6px; margin-top: 16px; font-size: 0.9rem; font-weight: 500; color: var(--text); }
.card label:first-of-type { margin-top: 0; }
.card input, .card select, .card textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(5, 8, 18, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card input:focus, .card select:focus, .card textarea:focus { outline: none; border-color: var(--paint-bright); box-shadow: 0 0 0 4px var(--paint-soft); }
.card textarea { min-height: 100px; resize: vertical; }
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--paint-soft);
  border: 1px solid rgba(107, 149, 255, 0.32);
  color: #b4cbff;
  margin-bottom: 14px;
}

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--border); padding: 56px 24px 28px; margin-top: 72px; background: linear-gradient(180deg, transparent, rgba(47, 107, 255, 0.06)); }
.site-footer::before { content: ""; position: absolute; left: 50%; top: -1px; width: min(720px, 80%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--paint-bright), var(--cyan), transparent); }
.site-footer-inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.site-footer strong { font-family: var(--display); font-size: 1.1rem; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 0.9rem; }
.footer-links a { color: var(--muted); width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color 0.2s, background-size 0.35s var(--ease); }
.footer-links a:hover { color: #fff; background-size: 100% 1px; }
.footer-word { position: relative; z-index: 0; max-width: var(--max); margin: 36px auto 0; font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 15vw, 11rem); line-height: 0.8; letter-spacing: -0.06em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09); user-select: none; white-space: nowrap; overflow: hidden; background: linear-gradient(180deg, rgba(107, 149, 255, 0.28), transparent 75%); -webkit-background-clip: text; background-clip: text; }
input[type="email"], input[type="text"], textarea, select { font: inherit; }
.copyright { position: relative; z-index: 1; max-width: var(--max); margin: 28px auto 0; font-size: 0.8rem; color: var(--faint); }

/* ---------- Content pages ---------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { color: #c9d2e3; }
.prose a { text-decoration: underline; text-decoration-color: rgba(107, 149, 255, 0.4); text-underline-offset: 3px; }
.prose code { background: rgba(255, 255, 255, 0.07); padding: 2px 6px; border-radius: 6px; font-size: 0.88em; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; transition: border-color 0.3s; }
.faq-item:hover { border-bottom-color: rgba(107, 149, 255, 0.4); }
.faq-item h3 { margin: 0 0 8px; font-size: 1.08rem; }
.faq-item p { margin: 0; color: var(--muted); }

.tool-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.tool-panel label { display: block; margin: 12px 0 6px; font-size: 0.85rem; color: var(--muted); }
.tool-panel input, .tool-panel textarea, .tool-panel select { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); color: var(--text); font: inherit; transition: border-color 0.2s, box-shadow 0.2s; }
.tool-panel input:focus, .tool-panel textarea:focus, .tool-panel select:focus { outline: none; border-color: var(--paint-bright); box-shadow: 0 0 0 4px var(--paint-soft); }
.tool-panel textarea { min-height: 160px; font-family: var(--mono); font-size: 0.85rem; }
.result-box { background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; min-height: 200px; }
.score-big { font-family: var(--display); font-size: 2.8rem; font-weight: 800; letter-spacing: -0.03em; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.bad { color: var(--bad); }
.form-status { font-size: 0.85rem; margin: 10px 0 0; }
.email-gate { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

.share-card { max-width: 480px; margin: 40px auto; background: linear-gradient(145deg, #0c1220, #1b3a9c); border: 1px solid rgba(147, 197, 253, 0.3); border-radius: 22px; padding: 40px; text-align: center; box-shadow: 0 24px 80px rgba(47, 107, 255, 0.25); }
.share-card .score { font-family: var(--display); font-size: 4.2rem; font-weight: 800; color: #fff; letter-spacing: -0.04em; }
.share-stats { display: flex; justify-content: center; gap: 24px; margin: 24px 0; }
.share-stats div { text-align: center; }
.share-stats strong { display: block; font-size: 1.4rem; }

/* ---------- Motion: scroll reveal in AND out ---------- */
/* Entrance: class toggled by IntersectionObserver (staggered via --d). Uses opacity + translate/scale only. */
/* :where() keeps the hidden/shown values at zero specificity so component hovers (e.g. card lift) still win;
   .done drops the reveal transition once it has played so hover transitions are the component's own. */
:where(.js [data-reveal]) { opacity: 0; translate: 0 28px; scale: 0.985; }
:where(.js [data-reveal].is-in) { opacity: 1; translate: 0 0; scale: 1; }
.js [data-reveal]:not(.done) { transition: opacity 0.8s var(--ease) var(--d, 0ms), translate 0.9s var(--ease) var(--d, 0ms), scale 0.9s var(--ease) var(--d, 0ms); }
[data-parallax] { translate: var(--px, 0px) calc(var(--py, 0px) + var(--pyy, 0px)); will-change: translate; }
/* Exit: where scroll-driven animations exist, elements ease out as they leave the top of the viewport. */
@supports (animation-timeline: view()) {
  .js [data-reveal].is-in:not(.no-out) { animation: rv-out linear forwards; animation-timeline: view(); animation-range: exit 15% exit 100%; }
  @keyframes rv-out { to { opacity: 0.12; translate: 0 -34px; scale: 0.97; } }
}
/* Headline word reveal */
.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.js .split .w > span { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--ease) calc(var(--i, 0) * 55ms + var(--d, 0ms)); }
.js .split.is-in .w > span { transform: none; }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }
.marquee-track span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.035); font-family: var(--mono); font-size: 0.8rem; color: #b3bfd6; white-space: nowrap; transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.3s var(--ease); }
.marquee-track span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.marquee-track span:hover { color: #fff; border-color: rgba(107, 149, 255, 0.5); background: var(--paint-soft); transform: translateY(-2px); }

/* ---------- Page transitions (View Transitions API, cross-document) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.5s var(--ease) 0.06s both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px) scale(0.995); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
::view-transition-group(site-header) { animation-duration: 0s; }

@media (max-width: 900px) {
  .site-header { padding: 10px 12px 0; }
  .site-header-inner { padding: 7px 8px 7px 16px; border-radius: 26px; gap: 12px; justify-content: space-between; }
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid var(--border-strong);
    background: rgba(8, 12, 24, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.25s, transform 0.4s var(--ease), visibility 0s 0.4s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.25s, transform 0.4s var(--ease), visibility 0s; }
  .nav a { padding: 13px 14px; font-size: 1rem; border-radius: 14px; }
  .nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.07); }
  .nav-glow { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .header-actions .btn-ghost { display: none; }
  .grid-2, .grid-3, .tool-panel, .site-footer-inner { grid-template-columns: 1fr; }
  .section { padding: 60px 20px; }
}

@media (hover: none) {
  .card, .tile { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  :where(.js [data-reveal]) { opacity: 1; translate: none; scale: none; }
  .js [data-reveal], .js .split .w > span { animation: none !important; }
  .js .split .w > span { transform: none; }
  .atmos .blob { animation: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee-track span[aria-hidden="true"] { display: none; }
  .card, .tile { transform: none; }
  .progress { display: none !important; }
  @view-transition { navigation: none; }
}

/* ---------- Utilities and page furniture ---------- */
/* Honeypot field: off-screen for people, still present for naive bots. */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-stack label { display: block; margin: 14px 0 6px; font-size: 0.85rem; color: var(--muted); }
.form-stack label:first-child { margin-top: 0; }
.form-stack input:not([type="hidden"]), .form-stack textarea, .form-stack select { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--border); background: rgba(5, 8, 18, 0.55); color: var(--text); font: inherit; transition: border-color 0.2s, box-shadow 0.2s; }
.form-stack select option { background: #0b1220; color: #e8edf7; }
.form-stack textarea { min-height: 120px; resize: vertical; }
.form-stack input:focus, .form-stack textarea:focus, .form-stack select:focus { outline: none; border-color: var(--paint-bright); box-shadow: 0 0 0 4px var(--paint-soft); }

.page-head { max-width: 760px; }
.page-head h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); letter-spacing: -0.04em; line-height: 1.02; }
.stack-lg { margin-top: 40px; }
.stack-xl { margin-top: 64px; }
.card-link { display: flex; flex-direction: column; align-items: flex-start; color: inherit; }
.card-link .go { margin-top: auto; padding-top: 14px; font-size: 0.86rem; font-weight: 600; color: var(--paint-bright); transition: transform 0.3s var(--ease); }
.card-link:hover .go { transform: translateX(5px); }
.card ul { padding-left: 1.15em; }
.card .btn { margin-top: 8px; }
.code-block { margin: 16px 0; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #070b16; color: #b9c5dc; font-size: 0.84rem; line-height: 1.7; overflow-x: auto; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset; }
.prose .code-block code, .result-box code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: 0.92rem; }
.prose th, .prose td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); color: #c9d2e3; }
.prose th { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.prose pre { overflow-x: auto; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #070b16; font-size: 0.84rem; }
.prose pre code { background: none; padding: 0; }
.prose h1 { overflow-wrap: anywhere; }
.result-box { overflow-wrap: anywhere; }
.result-box ul { padding-left: 1.15em; margin: 12px 0 0; }
.copyright a { color: inherit; }
.copyright a:hover { color: #fff; }

/* Guides index */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 28px; }
.filter-bar input[type="search"] { flex: 1 1 220px; min-width: 0; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); color: var(--text); font: inherit; transition: border-color 0.2s, box-shadow 0.2s; }
.filter-bar input[type="search"]:focus { outline: none; border-color: var(--paint-bright); box-shadow: 0 0 0 4px var(--paint-soft); }
.chip { font: inherit; font-family: var(--mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); color: var(--muted); cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.3s var(--ease); }
.chip:hover { color: #fff; border-color: var(--border-strong); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--paint-soft); border-color: rgba(107, 149, 255, 0.55); color: #d6e1ff; }
.chip span { color: var(--faint); margin-left: 4px; }
.guide-group { margin-top: 56px; }
.guide-group > h2 { margin: 0 0 6px; }
.guide-group > p { margin: 0 0 20px; max-width: 640px; }
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.guide-list .card { padding: 18px 20px; }
.guide-list .card h3 { font-size: 1.02rem; margin: 0 0 6px; }
.guide-list .card p { margin: 0; font-size: 0.88rem; }
[data-guides] [hidden] { display: none !important; }

.share-card .eyebrow { justify-content: center; color: #93c5fd; }
.share-card .eyebrow::before { display: none; }
.share-card .actions { justify-content: center; }
.share-note { text-align: center; font-size: 0.85rem; max-width: 480px; margin: 0 auto; }

.notfound { text-align: center; padding-top: 96px; }
.notfound .eyebrow, .notfound .actions { justify-content: center; }
.notfound .lead { margin-left: auto; margin-right: auto; }
.notfound-code { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 22vw, 11rem); line-height: 0.9; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 2px var(--paint); margin: 0 0 12px; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0; animation: shimmer 6s ease-in-out infinite alternate; background-size: 200% 100%; }

/* Pricing / download helpers */
.plan { display: flex; flex-direction: column; }
.plan .price { font-family: var(--display); font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.plan-hot { border-color: rgba(107, 149, 255, 0.55) !important; background: linear-gradient(180deg, rgba(47, 107, 255, 0.16), rgba(255, 255, 255, 0.02)) !important; box-shadow: var(--glow) !important; }

@media (max-width: 520px) {
  .share-card { padding: 28px 18px; margin: 16px auto; }
  .share-card .score { font-size: 3.4rem; }
  .share-stats { gap: 12px; }
  .share-stats div { flex: 1 1 0; min-width: 0; font-size: 0.82rem; }
  .actions .btn-lg { flex: 1 1 100%; }
  .card { padding: 20px; }
}

/* Skip link + logo sizing */
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #fff; color: #0b1220 !important; font-weight: 600; transition: top 0.2s; }
.skip:focus { top: 14px; }
.logo svg { width: 15px; height: 30px; }

/* Pricing */
.pricing-grid { margin-top: 48px; align-items: stretch; }
.price-wrap { margin: 16px 0; }
.price-note { font-size: 0.875rem; margin-top: 6px; }
.ticks { margin: 22px 0 26px; padding: 0 !important; list-style: none; }
.ticks li { position: relative; margin: 10px 0; padding-left: 28px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--paint-soft); color: var(--paint-bright); font-size: 0.66rem; font-weight: 800; }
.ticks strong { color: #fff; }
.ticks code { background: rgba(255, 255, 255, 0.1); padding: 2px 6px; border-radius: 5px; font-size: 0.8em; }
.badge-hot { background: var(--grad) !important; color: #05070f !important; border-color: transparent !important; }
.plan .btn { align-self: stretch; }
.plan .badge { align-self: flex-start; }
