/* Neo-brutal Gen-Z look: cream cards with hard black shadows, acid accents,
   chunky display type, a shifting mesh, grain, and playful motion.
   Motion is switched off for people who ask for reduced motion. */

:root {
  /* Light theme: warm white page, white panels, ink text. Accents stay bright and get black outlines. */
  --ink: #f7f6ff;
  --ink-2: #ffffff;
  --cream: #fff4dc;
  --black: #0a0a0f;
  --lime: #c6ff3d;
  --pink: #ff4fa3;
  --violet: #8b6bff;
  --cyan: #3de8ff;
  --yellow: #ffe14d;
  --text: #15122b;
  --muted: #4a4568;
  --line: 3px solid var(--black);
  --shadow: 8px 8px 0 var(--black);
  --shadow-sm: 4px 4px 0 var(--black);
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

/* Grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.5'/></svg>");
  opacity: .07;
  pointer-events: none;
  z-index: 200;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--lime);
  color: var(--black);
  padding: 8px 12px;
  border: var(--line);
  z-index: 300;
  font-weight: 700;
}
.skip-link:focus { left: 8px; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.wrap.narrow { max-width: 780px; }

/* Type */
.display {
  font: 900 clamp(2.4rem, 7.2vw, 5.6rem)/0.98 var(--display);
  letter-spacing: -0.04em;
  margin: 22px 0 22px;
  text-transform: uppercase;
}
.display .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.display .line > span {
  display: inline-block;
  animation: rise-up 0.9s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--d) * 0.12s);
}
.display mark {
  background: var(--lime);
  color: var(--black);
  padding: 0 0.12em;
  transform: rotate(-1.5deg);
  display: inline-block;
  box-shadow: 6px 6px 0 var(--black);
  border: var(--line);
}

.title {
  font: 800 clamp(1.9rem, 4.4vw, 3.2rem)/1.05 var(--display);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 14px;
  max-width: 900px;
}
.hl-violet { color: var(--violet); }

.kicker {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  background: var(--cyan);
  color: var(--black);
  padding: 4px 10px;
  border: var(--line);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  transform: rotate(-1deg);
}

.sub { color: var(--muted); max-width: 640px; font-size: 1.08rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 620px; margin: 0 0 26px; }
.fine { color: var(--muted); font-size: 0.92rem; margin: 0; }
.optional { color: var(--muted); font-weight: 400; }

/* Stickers */
.sticker {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 14px;
  border: var(--line);
  box-shadow: var(--shadow-sm);
  transform: rotate(-2deg);
  color: var(--black);
  margin: 0;
}
.sticker-pink { background: var(--pink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: var(--line);
  border-radius: 14px;
  background: var(--cream);
  color: var(--black);
  font: 700 1rem var(--body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--black); }
.btn:active { transform: translate(6px, 6px); box-shadow: 2px 2px 0 var(--black); }
.btn-lime { background: var(--lime); }
.btn-ghost { background: var(--ink-2); color: var(--text); border-color: var(--text); box-shadow: 8px 8px 0 var(--violet); }
.btn-ghost:hover { box-shadow: 11px 11px 0 var(--violet); }
.btn-sm { padding: 10px 16px; font-size: 0.92rem; box-shadow: var(--shadow-sm); }
.btn-sm:hover { box-shadow: 6px 6px 0 var(--black); }
.btn-big { font-size: 1.1rem; padding: 16px 30px; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: var(--shadow); }

.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 26px; }

.proof-row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-weight: 500;
}
.proof-row li::before { content: "\2726  "; color: var(--lime); }

/* Mesh background */
.mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40% 40% at 20% 20%, rgba(255, 79, 163, 0.55), transparent 70%),
    radial-gradient(40% 40% at 80% 30%, rgba(61, 232, 255, 0.45), transparent 70%),
    radial-gradient(45% 45% at 60% 90%, rgba(198, 255, 61, 0.35), transparent 70%),
    radial-gradient(35% 35% at 10% 85%, rgba(139, 107, 255, 0.6), transparent 70%);
  filter: blur(40px) saturate(1.2);
  animation: mesh-shift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(10, 10, 15, 0.1);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  flex-wrap: wrap;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--pink);
  color: var(--black);
  border: var(--line);
  border-radius: 10px;
  font: 900 1.1rem var(--display);
  box-shadow: var(--shadow-sm);
  transform: rotate(-6deg);
}
.logo-text { font: 900 1.02rem var(--display); letter-spacing: -0.02em; }
.slash { color: #c2185b; }
.links { display: flex; gap: 22px; }

/* Menu button: only shown on small screens, where the links collapse into it */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--ink-2);
  color: var(--text);
  border: var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  font: 700 0.9rem var(--body);
  cursor: pointer;
}
.menu-bars {
  width: 16px;
  height: 12px;
  background:
    linear-gradient(var(--text), var(--text)) top / 100% 2px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 100% 2px no-repeat,
    linear-gradient(var(--text), var(--text)) bottom / 100% 2px no-repeat;
}
.menu-toggle[aria-expanded="true"] .menu-bars {
  background:
    linear-gradient(45deg, transparent 45%, var(--lime) 45%, var(--lime) 55%, transparent 55%) center / 100% 100% no-repeat,
    linear-gradient(-45deg, transparent 45%, var(--lime) 45%, var(--lime) 55%, transparent 55%) center / 100% 100% no-repeat;
}
.links a { text-decoration: none; font-weight: 700; color: var(--muted); }
.links a:hover { color: var(--text); text-decoration: underline wavy var(--pink); text-underline-offset: 6px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 90px;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-art {
  position: relative;
  height: 430px;
}
.ring {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 320px;
  height: 320px;
  animation: spin 22s linear infinite;
}
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring text {
  font: 700 13px var(--body);
  fill: var(--text);
  letter-spacing: 1px;
}
.orb {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 32% 28%, #ffd1ea, var(--pink) 45%, #8b1f5a);
  border: var(--line);
  box-shadow: 10px 10px 0 var(--black), 0 0 90px rgba(255, 79, 163, 0.55);
  font: 900 2.4rem var(--display);
  color: var(--black);
  animation: wobble 6s ease-in-out infinite;
}
.float-chip {
  position: absolute;
  padding: 10px 16px;
  background: var(--cream);
  color: var(--black);
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  white-space: nowrap;
}
.f1 { left: 2%; top: 8%; background: var(--lime); transform: rotate(-6deg); animation: bob 5s ease-in-out infinite; }
.f2 { right: 4%; top: 2%; background: var(--cyan); transform: rotate(5deg); animation: bob 6s ease-in-out infinite -1s; }
.f3 { left: -2%; top: 52%; background: var(--yellow); transform: rotate(3deg); animation: bob 5.5s ease-in-out infinite -2s; }
.f4 { right: -2%; top: 58%; background: var(--violet); color: var(--text); border-color: var(--text); transform: rotate(-4deg); animation: bob 6.5s ease-in-out infinite -3s; }
.f5 { left: 2%; bottom: 14%; background: var(--cream); transform: rotate(-2deg); animation: bob 5s ease-in-out infinite -1.5s; }
.f6 { right: 0; bottom: 2%; background: var(--pink); transform: rotate(4deg); animation: bob 6s ease-in-out infinite -2.5s; }

/* Ticker */
.ticker {
  overflow: hidden;
  background: var(--lime);
  color: var(--black);
  border-block: var(--line);
  transform: rotate(-1.2deg);
  margin: 10px 0;
}
.ticker-track {
  display: flex;
  gap: 40px;
  width: max-content;
  padding: 14px 0;
  font: 800 1.05rem var(--display);
  text-transform: uppercase;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}
.ticker-track span::after { content: "\2726"; margin-left: 40px; }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* Sections */
.section { padding: 76px 0; position: relative; }
.section-alt { background: var(--ink-2); border-block: 2px solid rgba(10, 10, 15, 0.08); }

.cards { display: grid; gap: 26px; margin-top: 42px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  background: var(--cream);
  color: var(--black);
  border: var(--line);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card h3 {
  font: 800 1.2rem/1.2 var(--display);
  letter-spacing: -0.02em;
  margin: 10px 0 10px;
  text-transform: uppercase;
}
.card p { margin: 0; color: #3b3650; }
.card-num {
  display: inline-block;
  font: 900 0.9rem var(--display);
  background: var(--black);
  color: var(--lime);
  padding: 4px 10px;
  border-radius: 8px;
}
.card.tilt:hover { transform: rotate(-1.2deg) translate(-4px, -4px); box-shadow: 12px 12px 0 var(--black); }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 42px;
}
.bento .big { grid-column: span 2; background: var(--lime); }

.tag {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 12px;
  border: var(--line);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tag-done { background: var(--lime); }
.tag-next { background: var(--cyan); }
.post-card { display: block; text-decoration: none; }
.tag-later { background: var(--yellow); }

/* Levels */
.levels {
  list-style: none;
  padding: 0;
  margin: 42px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.level {
  background: var(--ink);
  border: var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 8px 8px 0 var(--pink);
  color: var(--text);
}
.level h3 { font: 800 1.05rem/1.25 var(--display); text-transform: uppercase; margin: 14px 0 8px; }
.level p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.level-badge {
  display: inline-block;
  font: 900 0.8rem var(--display);
  text-transform: uppercase;
  padding: 6px 12px;
  border: var(--line);
  border-radius: 8px;
  color: var(--black);
}
.level-badge.done { background: var(--lime); }
.level-badge.next { background: var(--cyan); }
.level-badge.later { background: var(--yellow); }

/* Industries */
.tags { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.tags span {
  padding: 12px 18px;
  background: var(--cream);
  color: var(--black);
  border: var(--line);
  border-radius: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, background 0.15s ease;
}
.tags span:nth-child(3n+1) { transform: rotate(-2deg); }
.tags span:nth-child(3n+2) { transform: rotate(1.5deg); }
.tags span:nth-child(3n) { transform: rotate(-0.5deg); }
.tags span:hover { background: var(--pink); transform: rotate(0) scale(1.05); }

/* Pricing */
.price-card {
  padding: 46px;
  border: var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  box-shadow: 12px 12px 0 var(--black);
  color: var(--black);
}
.price-card .kicker { background: var(--black); color: var(--lime); border-color: var(--black); }
.price-card .title { color: var(--black); }
.price-card p { max-width: 640px; font-size: 1.08rem; }

/* FAQ */
details {
  background: var(--cream);
  color: var(--black);
  border: var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 4px 22px;
  margin-bottom: 18px;
}
summary {
  cursor: pointer;
  font: 700 1.08rem var(--body);
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: var(--line);
  border-radius: 10px;
  background: var(--lime);
  font: 900 1.3rem var(--display);
  transition: transform 0.2s ease;
}
details[open] summary::after { content: "\2212"; background: var(--pink); }
details p { color: #3b3650; padding: 0 0 18px; margin: 0; }

/* Form */
.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
  padding: 32px;
  background: var(--cream);
  color: var(--black);
  border: var(--line);
  border-radius: 28px;
  box-shadow: 12px 12px 0 var(--lime);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field input:not([type="checkbox"]),
.field select,
.field textarea {
  font: 500 1rem var(--body);
  color: var(--black);
  background: #fff;
  border: var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  min-height: 50px;
  transition: box-shadow 0.15s ease;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px var(--cyan), 4px 4px 0 var(--black);
}
.field input:user-invalid { background: #ffe1e1; }
.check { flex-direction: row; align-items: flex-start; gap: 14px; }
.check input { margin-top: 4px; width: 22px; height: 22px; accent-color: var(--pink); }
.check label { font-weight: 500; font-size: 0.95rem; }
.check a { color: var(--black); font-weight: 700; }
.actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 18px; }
.status { margin: 0; font-weight: 700; color: var(--black); }
.status.ok { color: #0c6b2d; }
.status.err { color: #b3123f; }

/* Honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.footer {
  background: var(--ink-2);
  border-top: var(--line);
  padding: 60px 0 40px;
  overflow: hidden;
}
.giant {
  font: 900 clamp(2rem, 8.6vw, 8.5rem)/0.9 var(--display);
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 2px var(--violet);
  margin: 0 0 30px;
  white-space: nowrap;
}
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.foot-row nav { display: flex; gap: 20px; }
.foot-row nav a { color: var(--muted); font-weight: 700; text-decoration: none; }
.foot-row nav a:hover { color: var(--lime); }

/* Cursor glow (fine pointers only; main.js adds the element) */
.cursor-glow {
  position: fixed;
  width: 340px;
  height: 340px;
  left: 0;
  top: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 255, 61, 0.22), transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  display: none;
}
.has-fine-pointer .cursor-glow { display: block; }

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Rise on load (hero copy) */
.rise {
  opacity: 0;
  animation: rise-in 0.8s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: calc(var(--d) * 0.12s + 0.2s);
}

/* 3D depth: the hero scene tilts toward the pointer (set by main.js), and the orb floats forward */
.hero-art {
  perspective: 900px;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.2s ease-out;
}
.orb { translate: 0 0 70px; }

.heart-sticker {
  position: absolute;
  right: -4%;
  bottom: 12%;
  translate: 0 0 90px;
  background: var(--pink);
  color: var(--black);
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.9rem;
  transform: rotate(6deg);
  white-space: nowrap;
}
.heart {
  display: inline-block;
  color: var(--black);
  animation: heartbeat 1.6s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.3); }
  30% { transform: scale(1); }
  45% { transform: scale(1.18); }
}

/* 3D scene: a WebGL canvas that replaces the CSS orb and ring once it loads (main.js adds .is-3d) */
.scene3d {
  position: absolute;
  inset: -40px;
  z-index: 1;
  pointer-events: none;
}
.scene3d canvas { width: 100%; height: 100%; display: block; }
.hero-art.is-3d .orb,
.hero-art.is-3d .ring { display: none; }

/* Touch screens get the flat layout: no tilt */
@media (hover: none), (pointer: coarse) {
  .hero-art { transform: none; }
}


/* Floating module names sit above the 3D scene */
.float-chip { z-index: 2; }

/* AI agents and automation */
.tag-agents { background: var(--pink); }
.level-badge.agents { background: var(--pink); }
.flows-title { margin-top: 48px; }
.flows { display: grid; gap: 14px; margin-top: 16px; }
.flow { background: var(--cream); color: var(--black); border: var(--line); border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow-sm); font-weight: 500; }
.flow span { display: inline-block; background: var(--lime); border: 2px solid var(--black); border-radius: 8px; padding: 2px 8px; margin: 0 6px; font-weight: 700; }

/* Request dialog (opened from any "Book a demo" or "Request a free trial" button) */
dialog.request-modal {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  border: var(--line);
  border-radius: 24px;
  background: var(--cream);
  color: var(--black);
  box-shadow: 12px 12px 0 var(--lime);
}
dialog.request-modal::backdrop { background: rgba(5, 4, 15, 0.72); }
dialog.request-modal .modal-form { display: block; margin: 0; padding: 26px; background: none; border: 0; box-shadow: none; }
dialog.request-modal .modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
dialog.request-modal .modal-title { font: 800 1.2rem var(--display); text-transform: uppercase; margin: 0; color: var(--black); }
dialog.request-modal .modal-close { font: 900 1.6rem var(--display); background: var(--pink); border: var(--line); border-radius: 10px; width: 40px; height: 40px; cursor: pointer; color: var(--black); }
dialog.request-modal .modal-copy { color: #3b3650; margin: 10px 0 16px; }
dialog.request-modal .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
dialog.request-modal .field.check { flex-direction: row; gap: 10px; align-items: flex-start; }
dialog.request-modal label { font-weight: 700; font-size: 0.95rem; }
dialog.request-modal input:not([type=checkbox]), dialog.request-modal select { font: inherit; padding: 11px; border: var(--line); border-radius: 12px; background: #fff; color: var(--black); }
dialog.request-modal .field.check label { font-weight: 500; }
dialog.request-modal .modal-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
dialog.request-modal .modal-actions .btn { border: var(--line); border-radius: 14px; background: var(--lime); font-weight: 700; color: var(--black); padding: 12px 20px; cursor: pointer; box-shadow: var(--shadow); }
dialog.request-modal .modal-status { margin: 0; color: var(--black); font-weight: 700; }
dialog.request-modal .modal-status.ok { color: #0c6b2d; }
dialog.request-modal .modal-status.err { color: #b3123f; }
/* Bot crew: small animated characters that stand for the agents and automations */
.bot { width: 84px; height: 84px; display: block; margin-bottom: 8px; animation: botbob 3s ease-in-out infinite; }
.bot .eye { transform-box: fill-box; transform-origin: center; animation: blink 4s infinite; }
.card:hover .bot { animation: botwave 0.6s ease-in-out 2; }
@keyframes botbob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes botwave { 0%, 100% { rotate: 0deg; } 25% { rotate: -8deg; } 75% { rotate: 8deg; } }

/* Bot widgets on the homepage */
.bot-widgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 32px; }
.bot-widget { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; background: var(--cream); color: var(--black); border: var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); text-decoration: none; transition: transform 0.2s ease; }
.bot-widget:hover { transform: translate(-3px, -3px) rotate(-1deg); box-shadow: 11px 11px 0 var(--black); }
.bot-widget .bot { width: 70px; height: 70px; margin-bottom: 6px; }
.bot-widget strong { font: 800 1rem var(--display); text-transform: uppercase; }
.bot-widget > span:last-child { color: #2a2540; font-weight: 500; }
.widget-status { display: inline-flex; align-items: center; gap: 6px; background: var(--pink); border: 2px solid var(--black); border-radius: 999px; padding: 2px 10px; font-size: 0.75rem; font-weight: 700; color: var(--black); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); border: 1px solid var(--black); animation: pulse 2s infinite; }
@media (max-width: 900px) { .bot-widgets { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .bot-widgets { grid-template-columns: 1fr; } }

/* Keyframes */
@keyframes rise-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes mesh-shift {
  from { transform: translate3d(-3%, -2%, 0) rotate(0deg); }
  to { transform: translate3d(3%, 2%, 0) rotate(6deg); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wobble {
  0%, 100% { transform: translate(-50%, -50%) rotate(-3deg); }
  50% { transform: translate(-50%, -54%) rotate(3deg); }
}
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Responsive */
.menu-cta { display: none; }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 380px; max-width: 520px; margin: 0 auto; width: 100%; }
  .cards-4, .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .levels { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .big { grid-column: span 2; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar { position: sticky; top: 0; }
  .nav { gap: 10px 12px; min-height: 0; padding: 12px 0; }
  .logo-text { font-size: 0.92rem; }
  .logo-mark { width: 34px; height: 34px; font-size: 1rem; }
  .topbar .btn-sm { padding: 9px 12px; font-size: 0.82rem; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 6px;
    padding: 6px 0 4px;
  }
  .links.is-open { display: flex; }
  .links a {
    padding: 12px 14px;
    border: var(--line);
    border-radius: 12px;
    background: var(--cream);
    color: var(--black);
    box-shadow: var(--shadow-sm);
  }
  .hero { padding: 40px 0 60px; }
  .hero-art { height: 320px; }
  .ring { width: 280px; height: 280px; }
  .orb { width: 140px; height: 140px; font-size: 1.8rem; }
  .f2, .f6 { display: none; }
  .cards-4, .cards-3, .levels, .bento { grid-template-columns: 1fr; }
  .bento .big { grid-column: auto; }
  .section { padding: 70px 0; }
  .lead-form { grid-template-columns: 1fr; padding: 22px; }
  .price-card { padding: 28px; }
  .giant { -webkit-text-stroke-width: 1.5px; }
}

@media (max-width: 480px) {
  :root {
    --shadow: 5px 5px 0 var(--black);
    --shadow-sm: 3px 3px 0 var(--black);
  }
  .wrap { padding: 0 12px; }
  .nav { gap: 8px 10px; }
  .nav > .btn-sm { display: none; }
  .links.is-open .menu-cta { display: block; background: var(--lime); font-weight: 800; text-align: center; }
  .card, .lead-form, .price-card, .cta-band, dialog.request-modal {
    box-shadow: 6px 6px 0 var(--black);
  }
  .lead-form { padding: 18px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .rise { opacity: 1; transform: none; }
  .display .line > span { transform: none; }
  .cursor-glow { display: none !important; }
}

/* Form errors: the message sits under the field, and the field is marked for assistive tech */
.field-error { color: #ffb3c7; font-weight: 700; margin-top: 6px; font-size: 0.9rem; }
[aria-invalid="true"] { outline: 3px solid var(--pink); outline-offset: 2px; }

/* Contrast fixes: form labels on the cream form card, and the violet floating chip */
.lead-form label, .lead-form .optional { color: var(--black); }
.lead-form .optional { color: #4a4560; font-weight: 400; }
.f4 { color: #0a0a0f; }

/* Dark theme. Follows the visitor's system setting unless they pick one with the toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #0d0b1f;
    --ink-2: #16122e;
    --text: #f7f5ff;
    --muted: #d4cfee;
    --black: #0a0a0f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #0d0b1f;
  --ink-2: #16122e;
  --text: #f7f5ff;
  --muted: #d4cfee;
  color-scheme: dark;
}
:root[data-theme="dark"] .lead-form label, :root[data-theme="dark"] .lead-form .optional { color: var(--black); }
:root[data-theme="dark"] .slash { color: #ff8cc0; }
:root[data-theme="dark"] main h2 { background: linear-gradient(transparent 60%, rgba(198, 255, 61, 0.45) 60%); }
:root[data-theme="dark"] .footer-line a { color: var(--text); }
:root[data-theme="dark"] .bot-card, :root[data-theme="dark"] .bot-card p, :root[data-theme="dark"] .bot-card li { color: var(--black); }
:root[data-theme="dark"] .bot-card .guard { color: var(--text); }
:root[data-theme="dark"] .activity-feed { background: var(--ink-2); }
:root[data-theme="dark"] .feed-row { color: var(--text); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) main h2 { background: linear-gradient(transparent 60%, rgba(198, 255, 61, 0.45) 60%); }
  :root:not([data-theme="light"]) .slash { color: #ff8cc0; }
  :root:not([data-theme="light"]) .footer-line a { color: var(--text); }
  :root:not([data-theme="light"]) .bot-card, :root:not([data-theme="light"]) .bot-card p, :root:not([data-theme="light"]) .bot-card li { color: var(--black); }
  :root:not([data-theme="light"]) .bot-card .guard { color: var(--text); }
  :root:not([data-theme="light"]) .activity-feed { background: var(--ink-2); }
  :root:not([data-theme="light"]) .feed-row { color: var(--text); }
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border: var(--line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--black);
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.theme-toggle:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* Homepage grids: levels, industries, cases and project cards */
.level-grid, .industry-grid, .plan-grid { display: grid; gap: 22px; margin-top: 32px; }
.level-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.industry-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plan-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.level-card, .industry-card, .plan-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--cream); color: var(--black);
  border: var(--line); border-radius: 22px; padding: 22px;
  box-shadow: var(--shadow);
}
.level-card h3, .industry-card h3, .plan-card h2 { font: 800 1.05rem var(--display); text-transform: uppercase; margin: 0; }
.level-card p, .industry-card p, .plan-card p { margin: 0; color: #2a2540; }
.level-card .feature-list { color: #2a2540; padding-left: 20px; margin: 4px 0 0; }
.level-num { font: 900 0.9rem var(--display); background: var(--black); color: var(--lime); border-radius: 8px; padding: 3px 9px; align-self: flex-start; }
.industry-card { text-decoration: none; transition: transform 0.2s ease; }
.industry-card:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--black); }
.industry-card .more { font-weight: 700; color: var(--black); text-decoration: underline; text-decoration-color: var(--pink); }
.card-link { text-decoration: none; display: block; }
.card-link .more { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--black); text-decoration: underline; text-decoration-color: var(--pink); }
.plan-card { position: relative; }
.plan-featured { background: var(--lime); }
.plan-tagline { font-weight: 700; }
.plan-price { font: 900 2rem var(--display); margin: 6px 0 0 !important; color: var(--black) !important; }
.plan-price span { font: 500 0.95rem var(--body); }
.plan-setup { font-weight: 700; color: var(--black) !important; }
.plan-card .note { color: #2a2540; }
.plan-card .btn { margin-top: auto; align-self: flex-start; }
.theme-toggle { margin-left: 4px; }

/* Hero chips sit above the 3D stack and stay readable */
.float-chip { font-size: 1rem; z-index: 3; }
.hero-art .scene3d { z-index: 0; }

/* ==========================================================================
   EXHAUSTIVE & INTERACTIVE UI ENHANCEMENTS (AEO / SEO / GEO CAPABLE)
   ========================================================================== */

/* 1. Interactive Studio Explorer */
.studio-explorer {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.studio-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.studio-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--ink-2);
  color: var(--text);
  border: var(--line);
  border-radius: 12px;
  font: 700 0.92rem var(--body);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, background 0.12s ease;
}
.studio-tab-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--black);
}
.studio-tab-btn.is-active {
  background: var(--lime);
  color: var(--black);
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--black);
}
.studio-tab-btn .badge-num {
  font: 900 0.75rem var(--display);
  background: var(--black);
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
}
.studio-tab-btn.is-active .badge-num {
  background: var(--black);
  color: var(--lime);
}
.studio-panel {
  background: var(--cream);
  color: var(--black);
  border: var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 860px) {
  .studio-panel { grid-template-columns: 1fr; }
}
.studio-panel-info h3 {
  font: 900 1.6rem/1.1 var(--display);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.studio-panel-info p {
  color: #2a2540;
  font-size: 1.05rem;
  margin: 0 0 16px;
}
.studio-panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.studio-tag {
  background: #fff;
  border: 2px solid var(--black);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--black);
}
.studio-preview-card {
  background: #0d0b1f;
  color: #fff;
  border: var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 6px 6px 0 var(--cyan);
  font-family: monospace;
  font-size: 0.88rem;
}
.studio-preview-card .card-head {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #332d56;
  padding-bottom: 10px;
  margin-bottom: 12px;
  color: var(--cyan);
  font-weight: 700;
}
.studio-preview-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #bfbad9;
}
.studio-preview-card li strong { color: var(--lime); }
.studio-preview-card .bot-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #231b47;
  color: var(--yellow);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--yellow);
}

/* 2. Interactive Live Ledger & Bot Simulation Sandbox */
.ledger-terminal {
  background: #0d0b1f;
  color: #fff4dc;
  border: var(--line);
  border-radius: 24px;
  box-shadow: 12px 12px 0 var(--black);
  overflow: hidden;
  margin-top: 32px;
}
.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #171333;
  padding: 12px 18px;
  border-bottom: 2px solid #2d2657;
}
.terminal-dots {
  display: flex;
  gap: 8px;
}
.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid #000;
}
.terminal-dot.red { background: #ff4f4f; }
.terminal-dot.yellow { background: #ffe14d; }
.terminal-dot.green { background: #c6ff3d; }
.terminal-title {
  font: 700 0.88rem monospace;
  color: var(--cyan);
}
.terminal-token {
  font: 600 0.78rem monospace;
  background: #251e4e;
  color: #c6ff3d;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #3b3273;
}
.terminal-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) {
  .terminal-body { grid-template-columns: 1fr; }
}
.sim-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.sim-scenario-btn {
  background: #231c4b;
  color: #fff;
  border: 1.5px solid #3f3477;
  padding: 6px 12px;
  border-radius: 8px;
  font: 600 0.82rem var(--body);
  cursor: pointer;
  transition: all 0.12s ease;
}
.sim-scenario-btn:hover {
  background: #362c6e;
  border-color: var(--cyan);
}
.sim-scenario-btn.is-active {
  background: var(--lime);
  color: #000;
  border-color: #000;
  font-weight: 700;
}
.sim-table {
  width: 100%;
  border-collapse: collapse;
  font-family: monospace;
  font-size: 0.88rem;
  background: #14102e;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2e2659;
}
.sim-table th, .sim-table td {
  padding: 10px 12px;
  text-align: left;
}
.sim-table th {
  background: #1e1845;
  color: var(--cyan);
  border-bottom: 2px solid #2e2659;
}
.sim-table td.num {
  text-align: right;
  font-weight: 700;
}
.sim-table td.dr { color: #3de8ff; }
.sim-table td.cr { color: #c6ff3d; }
.sim-table tfoot td {
  border-top: 2px solid #3f3477;
  font-weight: 700;
  color: var(--yellow);
}
.sim-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.sim-act-btn {
  padding: 8px 14px;
  border: 2px solid #000;
  border-radius: 8px;
  font: 700 0.85rem var(--body);
  cursor: pointer;
  background: var(--cyan);
  color: #000;
  box-shadow: 3px 3px 0 #000;
  transition: transform 0.1s ease;
}
.sim-act-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #000; }
.sim-act-btn.btn-reverse { background: var(--pink); }

.terminal-log-pane {
  background: #14102e;
  border: 1px solid #2e2659;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: monospace;
  font-size: 0.85rem;
}
.log-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #2d2459;
}
.log-row .log-time { color: #8e87b7; font-size: 0.78rem; }
.log-row .log-bot { color: var(--yellow); font-weight: 700; }
.log-row .log-msg { color: #e6e2ff; }
.log-row .log-hash { color: var(--cyan); font-size: 0.76rem; word-break: break-all; }

/* 3. Interactive ROI & Savings Calculator */
.roi-calculator {
  background: var(--cream);
  color: var(--black);
  border: var(--line);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 860px) {
  .roi-calculator { grid-template-columns: 1fr; }
}
.roi-inputs {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.roi-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.roi-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.roi-val-badge {
  background: var(--lime);
  color: #000;
  border: 2px solid #000;
  border-radius: 6px;
  padding: 2px 8px;
  font: 900 0.95rem var(--display);
}
.roi-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  background: #fff;
  border: 2px solid #000;
  border-radius: 6px;
  outline: none;
}
.roi-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--pink);
  border: 2px solid #000;
  cursor: pointer;
  box-shadow: 2px 2px 0 #000;
}
.roi-range::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--pink);
  border: 2px solid #000;
  cursor: pointer;
  box-shadow: 2px 2px 0 #000;
}
.roi-outputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}
.roi-stat-card {
  background: #fff;
  border: var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.roi-stat-card.featured {
  background: var(--lime);
}
.roi-stat-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2b2545;
}
.roi-stat-num {
  font: 900 1.8rem var(--display);
  color: #000;
}

/* 4. Competitive Matrix Table */
.matrix-wrapper {
  overflow-x: auto;
  margin-top: 32px;
  border: var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  background: #fff;
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.96rem;
}
.matrix-table th, .matrix-table td {
  padding: 16px 20px;
  border-bottom: 2px solid #0a0a0f;
  border-right: 2px solid #0a0a0f;
}
.matrix-table th:last-child, .matrix-table td:last-child {
  border-right: none;
}
.matrix-table tr:last-child td {
  border-bottom: none;
}
.matrix-table th {
  background: #0a0a0f;
  color: #fff;
  font: 800 1rem var(--display);
  text-transform: uppercase;
}
.matrix-table th.col-qavril {
  background: var(--lime);
  color: #000;
}
.matrix-table td.col-qavril {
  background: color-mix(in srgb, var(--lime) 15%, #fff);
  font-weight: 700;
}
.matrix-check { color: #0c6b2d; font-size: 1.2rem; font-weight: 900; }
.matrix-cross { color: #b3123f; font-size: 1.2rem; font-weight: 900; }

/* 5. Interactive FAQ Category Filters & Live Search */
.faq-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}
.faq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.faq-cat-btn {
  padding: 8px 14px;
  border: var(--line);
  border-radius: 10px;
  background: var(--ink-2);
  color: var(--text);
  font: 700 0.88rem var(--body);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.12s ease;
}
.faq-cat-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--black);
}
.faq-cat-btn.is-active {
  background: var(--pink);
  color: var(--black);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--black);
}
.faq-search-box {
  position: relative;
  min-width: 240px;
  flex: 1;
  max-width: 320px;
}
.faq-search-input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border: var(--line);
  border-radius: 12px;
  font: 500 0.95rem var(--body);
  background: #fff;
  color: #000;
  box-shadow: var(--shadow-sm);
}
.faq-search-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--cyan), 4px 4px 0 var(--black);
}
.faq-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.9rem;
  color: #666;
}

/* 6. AEO & GEO Structured Answer Block */
.aeo-card {
  background: var(--cream);
  color: var(--black);
  border: var(--line);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow);
  margin-top: 32px;
}
.aeo-card h3 {
  font: 800 1.25rem var(--display);
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--black);
}
.aeo-card .aeo-answer {
  font-size: 1.05rem;
  line-height: 1.5;
  color: #2b2540;
  margin: 0 0 16px;
  background: #fff;
  border-left: 6px solid var(--violet);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
}
.aeo-card .aeo-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.aeo-meta-item {
  background: #fff;
  border: 2px solid #000;
  border-radius: 10px;
  padding: 10px 14px;
}
.aeo-meta-item strong { display: block; font-size: 0.8rem; text-transform: uppercase; color: var(--muted); }
.aeo-meta-item span { font-weight: 700; color: #000; font-size: 0.98rem; }

/* Dark mode overrides for new widgets */
:root:not([data-theme="light"]) .studio-panel {
  background: var(--ink-2);
  color: var(--text);
  box-shadow: 8px 8px 0 var(--black);
}
:root:not([data-theme="light"]) .studio-panel-info p { color: #d0cce5; }
:root:not([data-theme="light"]) .studio-tag { background: #1a1638; color: #fff; border-color: #3b3270; box-shadow: 2px 2px 0 #000; }
:root:not([data-theme="light"]) .roi-calculator { background: var(--ink-2); color: var(--text); }
:root:not([data-theme="light"]) .roi-stat-card { background: #1a1638; border-color: #3b3270; }
:root:not([data-theme="light"]) .roi-stat-card.featured { background: var(--lime); color: #000; }
:root:not([data-theme="light"]) .roi-stat-card.featured .roi-stat-title { color: #000; }
:root:not([data-theme="light"]) .roi-stat-title { color: #bfbad9; }
:root:not([data-theme="light"]) .roi-stat-num { color: #fff; }
:root:not([data-theme="light"]) .matrix-wrapper { background: var(--ink-2); border-color: var(--black); }
:root:not([data-theme="light"]) .matrix-table td { color: var(--text); border-color: #312b59; }
:root:not([data-theme="light"]) .matrix-table th { border-color: #312b59; }
:root:not([data-theme="light"]) .matrix-table td.col-qavril { background: rgba(198, 255, 61, 0.15); color: #c6ff3d; }
:root:not([data-theme="light"]) .aeo-card { background: var(--ink-2); color: var(--text); }
:root:not([data-theme="light"]) .aeo-card h3 { color: var(--text); }
:root:not([data-theme="light"]) .aeo-card .aeo-answer { background: #151031; color: #e6e2ff; border-left-color: var(--cyan); }
:root:not([data-theme="light"]) .aeo-meta-item { background: #151031; border-color: #362e66; }
:root:not([data-theme="light"]) .aeo-meta-item span { color: #fff; }

/* Time-back calculator. Chart colours are validated for both themes (orange vs violet). */
.roi-section { background: radial-gradient(1200px 400px at 80% 0%, rgba(198, 255, 61, 0.18), transparent 70%); }
.roi {
  --viz-surface: #ffffff; --viz-text: #0a0a0f; --viz-muted: #52514e; --viz-grid: rgba(10, 10, 15, 0.1);
  --series-before: #eb6834; --series-after: #6250d6;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; margin-top: 28px;
}
.roi-inputs, .roi-figure { background: var(--viz-surface); color: var(--viz-text); border: var(--line); box-shadow: var(--shadow); padding: 22px; }
.roi-inputs fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.roi-inputs legend { font-weight: 700; margin-bottom: 10px; }
.roi-inputs label { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--viz-grid); font-size: 0.95rem; }
.roi-inputs input { width: 84px; padding: 8px 10px; border: 2px solid var(--black); font: inherit; font-weight: 700; text-align: right; background: #fff; color: #0a0a0f; }
.roi-inputs .fine { color: var(--viz-muted); }
.roi-results { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.roi-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.roi-stat { background: var(--yellow); color: #0a0a0f; border: var(--line); box-shadow: var(--shadow-sm); padding: 14px; display: flex; flex-direction: column; }
.roi-stat-hot { background: var(--lime); }
.roi-num { font-family: "Unbounded", sans-serif; font-weight: 800; font-size: clamp(1.2rem, 2.2vw, 1.9rem); line-height: 1.1; white-space: nowrap; }
.roi-cap { font-size: 0.85rem; font-weight: 600; }
.roi-figure { position: relative; }
.roi-title { font-weight: 700; margin: 0 0 6px; }
.roi-legend { list-style: none; display: flex; gap: 18px; padding: 0; margin: 0 0 10px; font-size: 0.85rem; color: var(--viz-muted); }
.roi-legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sw-before { background: var(--series-before); }
.sw-after { background: var(--series-after); }
.roi-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.roi-grid { stroke: var(--viz-grid); stroke-width: 1; }
.roi-label { font-size: 13px; font-weight: 600; fill: var(--viz-text); }
.roi-value { font-size: 12px; fill: var(--viz-muted); }
.bar-before { fill: var(--series-before); }
.bar-after { fill: var(--series-after); }
.roi-bar .hit { fill: transparent; }
.roi-bar:hover path { opacity: 0.85; }
.roi-tip { position: absolute; pointer-events: none; background: #0a0a0f; color: #fff; padding: 6px 10px; font-size: 0.82rem; border-radius: 4px; max-width: 220px; }
.roi-table-wrap { margin-top: 10px; font-size: 0.9rem; }
.roi-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.roi-table th, .roi-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--viz-grid); }
.roi-results .btn { align-self: flex-start; }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .roi { --viz-surface: #16122e; --viz-text: #f7f5ff; --viz-muted: #c9c3ea; --viz-grid: rgba(255, 255, 255, 0.14); --series-before: #d95926; --series-after: #9085e9; }
}
:root[data-theme="dark"] .roi { --viz-surface: #16122e; --viz-text: #f7f5ff; --viz-muted: #c9c3ea; --viz-grid: rgba(255, 255, 255, 0.14); --series-before: #d95926; --series-after: #9085e9; }
:root[data-theme="dark"] .roi-inputs, :root[data-theme="dark"] .roi-figure { border-color: #f7f5ff; }

/* Versus block. */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: var(--line); box-shadow: var(--shadow); margin-top: 28px; }
.versus-col { padding: 26px; }
.versus-col h3 { margin-top: 0; }
.versus-col ul { list-style: none; padding: 0; margin: 0 0 18px; }
.versus-col li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px dashed rgba(10, 10, 15, 0.15); font-weight: 600; }
.versus-old { background: #ece9f7; color: #4a4568; }
.versus-old li::before { content: "✕"; position: absolute; left: 6px; color: #c23a3a; font-weight: 800; }
.versus-old li { text-decoration: line-through; text-decoration-color: rgba(194, 58, 58, 0.5); }
.versus-new { background: var(--lime); color: #0a0a0f; border-left: var(--line); }
.versus-new li::before { content: "✓"; position: absolute; left: 6px; font-weight: 800; }

/* Go-live plan steps. */
.golive { list-style: none; counter-reset: step; padding: 0; margin: 28px 0; display: grid; gap: 16px; }
.golive li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 6px 18px; align-items: center; background: #fff; color: #0a0a0f; border: var(--line); box-shadow: var(--shadow-sm); padding: 16px 18px; }
.golive li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-family: "Unbounded", sans-serif; font-size: 1.6rem; background: var(--lime); border: 2px solid #0a0a0f; text-align: center; padding: 8px 0; }
.golive strong { font-size: 1.1rem; }

@media (max-width: 860px) {
  .roi { grid-template-columns: 1fr; }
  .versus { grid-template-columns: 1fr; }
  .versus-new { border-left: 0; border-top: var(--line); }
}
@media (max-width: 520px) {
  .roi-stats { grid-template-columns: 1fr; }
  .roi-inputs input { width: 70px; }
}
.roi-toggle { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--viz-text); text-decoration: underline; cursor: pointer; }
.hero .display { font-size: clamp(2.2rem, 4.6vw, 4.2rem); }

@media (max-width: 520px) { .hero .display { font-size: clamp(1.9rem, 9vw, 2.6rem); } }

/* Sign-up and sign-in pages. */
.account-page { max-width: 1120px; margin: 0 auto; padding: 48px 16px 72px; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.account-pitch h1 { font: 900 clamp(2rem, 4vw, 3.2rem)/1.02 var(--display); text-transform: uppercase; letter-spacing: -0.03em; margin: 16px 0; }
.account-form { grid-template-columns: 1fr 1fr; }
.account-form .full { grid-column: 1 / -1; }
.account-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.account-form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.account-form [aria-invalid="true"] { border-color: #c23a3a; box-shadow: 0 0 0 3px rgba(194, 58, 58, 0.25); }
.account-form .status.err { color: #b42318; font-weight: 600; }
.account-ready { background: var(--lime); color: #0a0a0f; border: var(--line); box-shadow: var(--shadow); padding: 28px; }
.account-ready h2 { margin-top: 0; }
@media (max-width: 860px) { .account-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .account-form { grid-template-columns: 1fr; } }

/* Signed-in app dashboard. */
.app-body { background: var(--ink); }
.app-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 24px; border-bottom: 3px solid var(--black); background: var(--ink-2); position: sticky; top: 0; z-index: 20; }
.app-who { display: flex; align-items: center; gap: 10px; }
.app-workspace { font-weight: 700; background: var(--yellow); color: #0a0a0f; border: 2px solid #0a0a0f; padding: 4px 10px; }
.app-workspace:empty { display: none; }
.app-main { max-width: 1240px; margin: 0 auto; padding: 28px 16px 64px; }
.app-gate { max-width: 640px; margin: 40px auto; }
.app-hello h1 { font: 900 clamp(1.8rem, 3.6vw, 2.8rem)/1.05 var(--display); text-transform: uppercase; margin: 8px 0; }
.app-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
.kpi { background: #fff; color: #0a0a0f; border: var(--line); box-shadow: var(--shadow-sm); padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kpi-lime { background: var(--lime); }
.kpi-yellow { background: var(--yellow); }
.kpi-label { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.kpi-num { font-family: "Unbounded", sans-serif; font-weight: 800; font-size: clamp(1.1rem, 2vw, 1.6rem); overflow-wrap: anywhere; }
.app-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; }
.app-card {
  --viz-surface: #ffffff; --viz-text: #0a0a0f; --viz-muted: #52514e; --viz-grid: rgba(10, 10, 15, 0.1);
  --series-before: #eb6834; --series-after: #6250d6;
  background: var(--viz-surface); color: var(--viz-text); border: var(--line); box-shadow: var(--shadow-sm); padding: 20px; position: relative; min-width: 0;
}
.app-card h2 { margin: 0 0 12px; font-size: 1.15rem; }
.app-card .fine { color: var(--viz-muted); }
.trend-chart svg { width: 100%; height: auto; display: block; }
.quick-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.quick-tabs button { font: inherit; font-weight: 700; padding: 8px 12px; border: 2px solid #0a0a0f; background: #fff; color: #0a0a0f; cursor: pointer; }
.quick-tabs button[aria-selected="true"] { background: var(--lime); box-shadow: 3px 3px 0 #0a0a0f; }
.quick-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-form .full { grid-column: 1 / -1; }
.quick-form input, .quick-form select { padding: 10px; border: 2px solid #0a0a0f; font: inherit; background: #fff; color: #0a0a0f; }
.quick-form .field[hidden] { display: none; }
.status.ok { color: #1a7f37; font-weight: 700; }
.status.err { color: #b42318; font-weight: 600; }
.recent-list { list-style: none; padding: 0; margin: 0; }
.recent-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--viz-grid); }
.recent-list li div { display: flex; flex-direction: column; min-width: 0; }
.recent-amount { font-weight: 700; white-space: nowrap; }
.accounts-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.accounts-table th, .accounts-table td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--viz-grid); }
.accounts-table .num, .accounts-table th.num { text-align: right; white-space: nowrap; }
.bot-mini { list-style: none; padding: 0; margin: 10px 0 16px; display: grid; gap: 8px; }
.bot-mini li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 2px dashed var(--viz-grid); }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .app-card { --viz-surface: #16122e; --viz-text: #f7f5ff; --viz-muted: #c9c3ea; --viz-grid: rgba(255, 255, 255, 0.14); --series-before: #d95926; --series-after: #9085e9; border-color: #f7f5ff; }
}
:root[data-theme="dark"] .app-card { --viz-surface: #16122e; --viz-text: #f7f5ff; --viz-muted: #c9c3ea; --viz-grid: rgba(255, 255, 255, 0.14); --series-before: #d95926; --series-after: #9085e9; border-color: #f7f5ff; }
@media (max-width: 960px) { .app-grid { grid-template-columns: 1fr; } .app-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .app-kpis { grid-template-columns: 1fr; } .quick-form { grid-template-columns: 1fr; } .app-top { padding: 12px 16px; } .app-workspace { display: none; } }
.gate-title { font: 900 clamp(1.8rem, 3.6vw, 2.6rem)/1.05 var(--display); text-transform: uppercase; }

/* Dashboard 3D city and motion. */
.app-hello { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.app-city { display: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .app-hello { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 24px; }
  .app-hello > div:last-child { grid-row: 1; grid-column: 1; }
  .app-city { display: block; grid-column: 2; position: relative; height: 300px; border: var(--line); box-shadow: var(--shadow); overflow: hidden;
    background: radial-gradient(120% 90% at 70% 10%, rgba(139, 107, 255, 0.35), transparent 60%), radial-gradient(90% 80% at 10% 100%, rgba(198, 255, 61, 0.22), transparent 60%), #0d0b1f; }
  .app-city[hidden] { display: none; }
  .app-city canvas { width: 100%; height: 100%; display: block; touch-action: none; }
  .app-city-hint { position: absolute; left: 12px; bottom: 8px; margin: 0; font-size: 0.78rem; color: #c9c3ea; pointer-events: none; opacity: 0; transition: opacity 0.6s; }
  .app-city.is-live .app-city-hint { opacity: 1; }
}
.kpi { transition: transform 0.18s ease, box-shadow 0.18s ease; will-change: transform; }
.kpi:hover { box-shadow: 8px 8px 0 var(--black); }
@keyframes kpi-bump { 0% { box-shadow: 4px 4px 0 var(--black); } 40% { box-shadow: 0 0 0 6px var(--lime), 4px 4px 0 var(--black); } 100% { box-shadow: 4px 4px 0 var(--black); } }
.kpi-bump { animation: kpi-bump 0.7s ease-out; }
@media (prefers-reduced-motion: reduce) { .kpi { transition: none; } .kpi-bump { animation: none; } }

/* Compact dashboard layout: twelve columns, cards packed with no gaps. */
.app-main { padding-top: 18px; }
.app-hello h1 { margin: 4px 0; }
.app-kpis { margin: 16px 0; }
.app-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 16px; align-items: start; }
.app-trend { grid-column: span 7; }
.app-quick { grid-column: span 5; }
.app-crew { grid-column: span 12; }
.app-recent { grid-column: span 5; }
.app-accounts { grid-column: span 7; }
.app-card { padding: 16px; }
.trend-chart svg { max-height: 220px; }
.recent-list { max-height: 420px; overflow: auto; }
.accounts-table td, .accounts-table th { padding: 5px 6px; }
@media (min-width: 1100px) { .accounts-table tbody { columns: 1; } }
.quick-tabs button { padding: 7px 10px; font-size: 0.9rem; }

/* Bot crew panel. */
.crew-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.crew-head h2 { margin: 0; }
.crew-live { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; }
.crew-live .pulse { width: 9px; height: 9px; border-radius: 50%; background: #1a7f37; box-shadow: 0 0 0 0 rgba(26, 127, 55, 0.6); animation: crew-pulse 1.8s infinite; display: inline-block; }
@keyframes crew-pulse { 70% { box-shadow: 0 0 0 8px rgba(26, 127, 55, 0); } 100% { box-shadow: 0 0 0 0 rgba(26, 127, 55, 0); } }
.crew-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.crew-card { border: 2px solid var(--viz-text); border-top: 6px solid var(--bot); padding: 12px; display: flex; flex-direction: column; gap: 6px; background: var(--viz-surface); }
.crew-card-head { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; }
.crew-card-head div { display: flex; flex-direction: column; line-height: 1.2; }
.crew-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--bot); color: #0a0a0f; display: grid; place-items: center; font-weight: 800; border: 2px solid #0a0a0f; }
.crew-state { font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border: 2px solid currentColor; white-space: nowrap; }
.crew-good .crew-state { color: #1a7f37; }
.crew-watch .crew-state { color: #9a6700; }
.crew-act .crew-state { color: #b42318; }
.crew-idle .crew-state { color: var(--viz-muted); }
.crew-found { margin: 4px 0 0; font-weight: 700; }
.crew-next { margin: 0; color: var(--viz-muted); font-size: 0.92rem; }
.crew-forecast { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.crew-forecast span { border: 1px dashed var(--viz-grid); padding: 6px; display: flex; flex-direction: column; }
.crew-forecast small { color: var(--viz-muted); }
.crew-draft { margin: 4px 0; padding: 8px 10px; border-left: 4px solid var(--bot); background: rgba(127, 127, 127, 0.08); font-size: 0.9rem; }
.crew-card .btn-sm { align-self: flex-start; }
.crew-changed { animation: crew-flash 1.2s ease-out; }
@keyframes crew-flash { 0% { box-shadow: 0 0 0 4px var(--bot); transform: translateY(-3px); } 100% { box-shadow: none; transform: none; } }
:root[data-theme="dark"] .crew-good .crew-state { color: #6fdd8b; }
:root[data-theme="dark"] .crew-watch .crew-state { color: #f2c94c; }
:root[data-theme="dark"] .crew-act .crew-state { color: #ff8b80; }
@media (prefers-reduced-motion: reduce) { .crew-changed, .crew-live .pulse { animation: none; } }
@media (max-width: 1100px) { .crew-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .app-trend, .app-quick, .app-recent, .app-accounts { grid-column: span 12; } }
@media (max-width: 620px) { .crew-grid { grid-template-columns: 1fr; } }
