/* Bavis — bavis.top
   Shared stylesheet for the marketing site. */

:root {
  --text: #16162e;
  --text-2: #5f6081;
  --canvas: #ffffff;
  --soft: #f7f7fd;
  --surface-2: #eeeefa;
  --border: #e4e4f2;
  --border-strong: #d3d3ea;

  --indigo: #5b5bf5;
  --indigo-ink: #4141d8;
  --indigo-soft: #ecebff;
  --violet: #9333ea;
  --violet-soft: #f6e9ff;
  --teal: #0d9f9f;
  --teal-soft: #ddf6f4;
  --amber: #e08700;
  --amber-soft: #fff0d6;
  --rose: #ef4267;
  --rose-soft: #ffe6eb;
  --emerald: #10a37f;
  --emerald-soft: #ddf6ec;

  --dark: #0f0f24;
  --dark-surface: #191933;
  --dark-raised: #26264a;

  --grad-brand: linear-gradient(100deg, #5b5bf5 0%, #9333ea 48%, #ef4267 100%);
  --grad-cool: linear-gradient(120deg, #5b5bf5 0%, #0d9f9f 100%);
  --grad-warm: linear-gradient(120deg, #ef4267 0%, #e08700 100%);

  --maxw: 1120px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(22, 22, 46, 0.05), 0 6px 20px rgba(22, 22, 46, 0.06);
  --shadow-lift: 0 18px 40px -18px rgba(70, 60, 190, 0.35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    Helvetica, Arial, "Noto Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 16px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 16px;
  font-weight: 640;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.05;
}

h2 {
  font-size: clamp(28px, 3.4vw, 42px);
}

h3 {
  font-size: 19px;
  line-height: 1.35;
}

h4 {
  font-size: 16px;
}

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection {
  background: #ddddff;
}

/* ---------- motion primitives ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}

.js [data-reveal="left"] {
  transform: translateX(-24px);
}

.js [data-reveal="right"] {
  transform: translateX(24px);
}

.js [data-reveal="zoom"] {
  transform: scale(0.96);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes driftA {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(40px, -30px, 0) scale(1.08);
  }
}

@keyframes driftB {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-50px, 30px, 0) scale(1.12);
  }
}

@keyframes gradientPan {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 163, 127, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 163, 127, 0);
  }
}

@keyframes caretBlink {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes barGrow {
  from {
    transform: scaleY(0.2);
  }
  to {
    transform: scaleY(1);
  }
}

/* ---------- layout ---------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section--tight {
  padding: 64px 0;
}

.section--soft {
  background: var(--soft);
}

.section--tint {
  background: linear-gradient(180deg, #ffffff 0%, #f4f2ff 55%, #fdf1f4 100%);
}

.section--dark {
  background: radial-gradient(
      760px 380px at 82% 8%,
      rgba(147, 51, 234, 0.28) 0%,
      rgba(15, 15, 36, 0) 70%
    ),
    radial-gradient(
      620px 340px at 6% 92%,
      rgba(13, 159, 159, 0.24) 0%,
      rgba(15, 15, 36, 0) 70%
    ),
    var(--dark);
  color: #fff;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 680;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--indigo);
  margin: 0 0 16px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-brand);
}

.eyebrow--violet {
  color: var(--violet);
}

.eyebrow--teal {
  color: var(--teal);
}

.eyebrow--rose {
  color: var(--rose);
}

.eyebrow--amber {
  color: #b26a00;
}

.section--dark .eyebrow {
  color: #b4a6ff;
}

.gradient-text {
  background: linear-gradient(100deg, #5b5bf5, #9333ea, #ef4267, #5b5bf5);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientPan 9s linear infinite;
}

.lead {
  font-size: 18px;
  color: var(--text-2);
  max-width: 60ch;
}

.section--dark .lead,
.section--dark .muted {
  color: rgba(255, 255, 255, 0.68);
}

.muted {
  color: var(--text-2);
}

.small {
  font-size: 14px;
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 580;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--grad-brand);
  background-size: 180% 100%;
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(91, 91, 245, 0.85);
}

.btn--primary:hover {
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -14px rgba(147, 51, 234, 0.9);
}

.btn--ghost {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  transform: translateY(-1px);
}

.btn--quiet {
  background: transparent;
  color: var(--text);
  padding: 11px 12px;
}

.btn--quiet:hover {
  color: var(--indigo);
}

.section--dark .btn--ghost,
.cta .btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.section--dark .btn--ghost:hover,
.cta .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--indigo);
  font-weight: 580;
  font-size: 15px;
  transition: gap 0.2s ease, color 0.2s ease;
}

.textlink:hover {
  color: var(--violet);
  gap: 10px;
}

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.header.is-scrolled {
  box-shadow: 0 8px 24px -20px rgba(22, 22, 46, 0.6);
  background: rgba(255, 255, 255, 0.94);
}

.header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 680;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand:hover svg {
  transform: rotate(-8deg) scale(1.05);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
}

.nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-2);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 580;
}

.header-panel {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before {
  position: absolute;
  top: -5px;
}

.nav-toggle span::after {
  position: absolute;
  top: 5px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 84px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f5ff 60%, #fdf2f6 100%);
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}

.blob--1 {
  width: 460px;
  height: 460px;
  top: -170px;
  left: -110px;
  background: radial-gradient(circle, #7c7cff 0%, rgba(124, 124, 255, 0) 70%);
  animation: driftA 17s ease-in-out infinite;
}

.blob--2 {
  width: 420px;
  height: 420px;
  top: 40px;
  right: -120px;
  background: radial-gradient(circle, #f472b6 0%, rgba(244, 114, 182, 0) 70%);
  animation: driftB 21s ease-in-out infinite;
}

.blob--3 {
  width: 380px;
  height: 380px;
  bottom: -180px;
  left: 42%;
  background: radial-gradient(circle, #2dd4bf 0%, rgba(45, 212, 191, 0) 70%);
  animation: driftA 24s ease-in-out infinite reverse;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(36px, 3.9vw, 52px);
  text-wrap: balance;
}

.hero .lead {
  font-size: 19px;
  margin-bottom: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 22px;
}

.badge strong {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad-brand);
  padding: 3px 9px;
  border-radius: 999px;
}

.hero-visual {
  position: relative;
  animation: floatY 8s ease-in-out infinite;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: #fff;
  box-shadow: 0 30px 60px -30px rgba(60, 40, 160, 0.45);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    rgba(91, 91, 245, 0.16) 0%,
    rgba(239, 66, 103, 0.12) 100%
  );
  mix-blend-mode: multiply;
}

.float-pill {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 560;
  white-space: nowrap;
}

.float-pill--a {
  top: 26px;
  left: -28px;
  animation: floatY 6.5s ease-in-out infinite;
}

.float-pill--b {
  bottom: 28px;
  right: -22px;
  animation: floatY 7.5s ease-in-out infinite reverse;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulseDot 2.4s ease-out infinite;
}

.dot--indigo {
  background: var(--indigo);
}

/* prompt composer */

.composer {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 44px -28px rgba(60, 40, 160, 0.5);
  max-width: 560px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.composer:focus-within {
  border-color: #bdbdff;
  box-shadow: 0 24px 50px -26px rgba(91, 91, 245, 0.6);
}

.composer::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: var(--grad-brand);
  background-size: 220% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  animation: gradientPan 6s linear infinite;
  pointer-events: none;
}

.composer:focus-within::before {
  opacity: 1;
}

.composer label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 8px;
}

.composer-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.composer textarea {
  flex: 1;
  min-height: 68px;
  resize: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: transparent;
  padding: 0;
}

.composer textarea::placeholder {
  color: #9d9db8;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 15px;
  vertical-align: -2px;
  background: var(--indigo);
  animation: caretBlink 1.1s step-end infinite;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  color: var(--text-2);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease,
    background-color 0.2s ease;
}

.chip:hover {
  transform: translateY(-2px);
  border-color: var(--indigo);
  color: var(--indigo);
  background: var(--indigo-soft);
}

.chip--violet:hover {
  border-color: var(--violet);
  color: var(--violet);
  background: var(--violet-soft);
}

.chip--teal:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-soft);
}

.chip--amber:hover {
  border-color: var(--amber);
  color: #a96500;
  background: var(--amber-soft);
}

.chip--rose:hover {
  border-color: var(--rose);
  color: var(--rose);
  background: var(--rose-soft);
}

.hero-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-2);
}

/* ---------- marquee ---------- */

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 56px;
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 620;
  letter-spacing: 0.01em;
  color: #8b8aa8;
  white-space: nowrap;
}

.marquee-track span::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--grad-cool);
  opacity: 0.55;
  transform: rotate(45deg);
}

.marquee-track span:nth-child(3n)::before {
  background: var(--grad-warm);
}

.marquee-track span:nth-child(3n + 2)::before {
  background: var(--grad-brand);
}

/* ---------- generic grids & cards ---------- */

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.22s ease, transform 0.22s ease,
    box-shadow 0.22s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover {
  border-color: #cfcfe8;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.card:hover::before {
  transform: scaleX(1);
}

.card p:last-child {
  margin-bottom: 0;
}

.card .muted {
  font-size: 15px;
}

.section--dark .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

.section--dark .card:hover {
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: none;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--indigo-soft);
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.25s ease;
}

.card:hover .icon {
  transform: translateY(-2px) rotate(-4deg);
}

.icon svg {
  width: 21px;
  height: 21px;
}

.icon--violet {
  background: var(--violet-soft);
  color: var(--violet);
}

.icon--teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.icon--amber {
  background: var(--amber-soft);
  color: #b26a00;
}

.icon--rose {
  background: var(--rose-soft);
  color: var(--rose);
}

.icon--emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.section--dark .icon {
  background: rgba(180, 166, 255, 0.16);
  color: #c4b6ff;
}

/* ---------- split ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: center;
}

.split--reverse .split-media {
  order: -1;
}

.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 50px -30px rgba(60, 40, 160, 0.4);
}

.split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    140deg,
    rgba(91, 91, 245, 0.14) 0%,
    rgba(13, 159, 159, 0.12) 100%
  );
  mix-blend-mode: multiply;
}

.split-media--warm::after {
  background: linear-gradient(
    140deg,
    rgba(239, 66, 103, 0.16) 0%,
    rgba(224, 135, 0, 0.12) 100%
  );
}

.section--dark .split-media {
  border-color: rgba(255, 255, 255, 0.16);
}

.split-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

/* ---------- steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.steps li:last-child {
  border-bottom: 1px solid var(--border);
}

.steps .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 680;
  color: #fff;
  background: var(--grad-brand);
  margin-top: 2px;
}

.steps li:nth-child(2) .step-num {
  background: var(--grad-cool);
}

.steps li:nth-child(3) .step-num {
  background: var(--grad-warm);
}

.steps h3 {
  margin-bottom: 6px;
}

.steps p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

/* ---------- case cards ---------- */

.case {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.22s ease, transform 0.22s ease,
    box-shadow 0.22s ease;
}

.case:hover {
  border-color: #cfcfe8;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.case-figure {
  position: relative;
  overflow: hidden;
}

.case-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    rgba(91, 91, 245, 0.18) 0%,
    rgba(239, 66, 103, 0.12) 100%
  );
  mix-blend-mode: multiply;
}

.case img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.case:hover img {
  transform: scale(1.05);
}

.case-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 640;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--indigo-soft);
  color: var(--indigo-ink);
}

.tag--teal {
  background: var(--teal-soft);
  color: #0a7d7d;
}

.tag--rose {
  background: var(--rose-soft);
  color: #c62a4c;
}

.tag--amber {
  background: var(--amber-soft);
  color: #a96500;
}

.tag--violet {
  background: var(--violet-soft);
  color: #7a24c4;
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.metric-value {
  font-size: 22px;
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.2;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric-label {
  font-size: 13px;
  color: var(--text-2);
}

/* ---------- stats ---------- */

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

.stat-value {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 6px;
  background: var(--grad-brand);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientPan 11s linear infinite;
}

.stat-label {
  font-size: 14px;
  color: var(--text-2);
}

.section--dark .stat-label {
  color: rgba(255, 255, 255, 0.68);
}

/* ---------- quote ---------- */

.quote {
  position: relative;
  margin: 0;
  padding: 44px;
  background: linear-gradient(135deg, #f3f2ff 0%, #ffeef4 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.quote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--grad-brand);
}

.quote p {
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.45;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.quote footer {
  font-size: 14px;
  color: var(--text-2);
}

/* ---------- pricing ---------- */

.plan {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: #cfcfe8;
}

.plan--featured {
  position: relative;
  border-color: transparent;
  background: linear-gradient(#fff, #fff) padding-box,
    var(--grad-brand) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 24px 50px -30px rgba(91, 91, 245, 0.7);
}

.plan-badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 660;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff;
  margin-bottom: 14px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 8px 0 4px;
}

.plan-price strong {
  font-size: 42px;
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1;
}

.plan ul {
  list-style: none;
  margin: 24px 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 15px;
}

.plan li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--text-2);
}

.plan li svg {
  width: 16px;
  height: 16px;
  margin-top: 5px;
  color: var(--emerald);
  flex: none;
}

.plan .btn {
  margin-top: auto;
  width: 100%;
}

/* ---------- checklist ---------- */

.checklist {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.checklist li {
  position: relative;
  padding-left: 26px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grad-brand);
}

/* ---------- table ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 15px;
}

th,
td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 640;
  background: linear-gradient(90deg, #f4f3ff 0%, #fdf1f5 100%);
  font-size: 14px;
}

tbody tr {
  transition: background-color 0.2s ease;
}

tbody tr:hover {
  background: #faf9ff;
}

tbody tr:last-child td {
  border-bottom: none;
}

td.muted {
  color: var(--text-2);
}

/* ---------- faq ---------- */

.faq {
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-weight: 580;
  position: relative;
  transition: color 0.2s ease;
}

.faq summary:hover {
  color: var(--indigo);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 17px;
  font-size: 20px;
  color: var(--indigo);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq p {
  margin: 0 0 20px;
  color: var(--text-2);
  max-width: 68ch;
}

/* ---------- page hero (subpages) ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 60px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f4ff 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: -220px;
  right: -100px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  background: radial-gradient(circle, #9f7cff 0%, rgba(159, 124, 255, 0) 70%);
}

.page-hero--warm::before {
  background: radial-gradient(circle, #ff8fab 0%, rgba(255, 143, 171, 0) 70%);
}

.page-hero--teal::before {
  background: radial-gradient(circle, #5eead4 0%, rgba(94, 234, 212, 0) 70%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  max-width: 20ch;
}

.page-hero .lead {
  margin-bottom: 0;
}

/* ---------- cta band ---------- */

.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #201a4d 0%, #3a2170 45%, #7a2050 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.cta::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -80px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, #f472b6 0%, rgba(244, 114, 182, 0) 70%);
  filter: blur(50px);
  opacity: 0.55;
  animation: driftB 19s ease-in-out infinite;
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta > div:first-child {
  flex: 1 1 auto;
}

.cta .btn-row {
  flex: 0 0 auto;
}

.cta h2 {
  margin-bottom: 8px;
}

.cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- footer ---------- */

.footer {
  background: linear-gradient(180deg, #f8f7ff 0%, #f4f2fb 100%);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}

.footer h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 14px;
  font-weight: 680;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 15px;
}

.footer ul a {
  color: var(--text-2);
  transition: color 0.2s ease;
}

.footer ul a:hover {
  color: var(--indigo);
}

.footer-brand p {
  max-width: 34ch;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-2);
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 64px 0 60px;
  }

  .hero-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .split--reverse .split-media {
    order: 0;
  }

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

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

  .cta {
    grid-template-columns: minmax(0, 1fr);
    padding: 48px 32px;
  }

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

  .nav-toggle {
    display: inline-flex;
  }

  .header-panel {
    display: none;
  }

  .header.is-open .header-panel {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow);
  }

  .header.is-open .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
  }

  .header.is-open .nav a {
    padding: 12px 0;
  }

  .header.is-open .nav a::after {
    left: 0;
    right: auto;
    width: 24px;
    bottom: 8px;
  }

  .header.is-open .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 4px 0 0;
  }

  .header.is-open .header-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .float-pill--a {
    left: 8px;
  }

  .float-pill--b {
    right: 8px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

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

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

  .composer-row {
    flex-direction: column;
    align-items: stretch;
  }

  .composer .btn {
    width: 100%;
  }

  .quote {
    padding: 28px 24px;
  }

  .cta {
    padding: 40px 24px;
  }

  .float-pill {
    display: none;
  }

  .hero-visual {
    animation: none;
  }

  .marquee-track {
    gap: 36px;
    animation-duration: 24s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
