/* ═══════════════════════════════════════════════
   TravOps AI — styles.css
   ═══════════════════════════════════════════════ */

:root {
  --ink: #36255c;
  --ink-2: #1a1a23;
  --ink-3: #1a1a23;
  --paper: #ffffff;
  --paper-2: #f1f0ec;
  --violet: #7c5cff;
  --violet-hi: #a18cff;
  --violet-deep: #5b3df5;
  --lime: #c8f35b;
  --hot: #ff6b4a;
  --warm: #ffc24a;

  --t-dark: #ededf2;
  --t-dark-dim: rgba(237, 237, 242, 0.62);
  --t-light: #17171d;
  --t-light-dim: rgba(23, 23, 29, 0.64);

  --line-dark: rgba(255, 255, 255, 0.09);
  --line-light: rgba(15, 15, 20, 0.1);

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 10px;

  --font-d: "Geist Sans", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-b: "Geist Sans", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-m: "JetBrains Mono", monospace;

  --ease: cubic-bezier(0.22, 0.9, 0.28, 1);
  --wrap: 1160px;
}

/* ── reset ─────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
html.scroll-active {
  scrollbar-color: rgba(124, 92, 255, 0.45) transparent;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 99px;
}
html.scroll-active::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 255, 0.4);
}
html.scroll-active::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 92, 255, 0.65);
}
body {
  font-family: var(--font-b);
  background: #ffffff;
  color: var(--t-light);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: url();
}
img,
svg {
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  font: inherit;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}
::selection {
  background: var(--violet);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--violet-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}
.wrap-narrow {
  width: min(760px, calc(100% - 48px));
}

/* ── typography ────────────────────────── */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-d);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 {
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
}
h3 {
  font-size: 1.14rem;
  font-weight: 600;
}

.grad {
  background: linear-gradient(
    96deg,
    var(--violet-hi) 8%,
    var(--violet) 55%,
    var(--violet-deep)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.light .grad {
  background: linear-gradient(96deg, var(--violet-deep) 10%, var(--violet) 70%);
  -webkit-background-clip: text;
  background-clip: text;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--t-light-dim);
  max-width: 34em;
}
.body-copy {
  color: var(--t-light-dim);
  max-width: 38em;
  margin-top: 16px;
}
.body-copy.center {
  margin-inline: auto;
  text-align: center;
}
.light .body-copy {
  color: var(--t-light-dim);
}
.sub-head {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 10px;
  color: var(--violet-deep);
}

/* ── pill eyebrows ─────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-m);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-hi);
  border: 1px solid rgba(124, 92, 255, 0.35);
  background: rgba(124, 92, 255, 0.08);
  padding: 7px 14px;
  border-radius: 99px;
  margin-bottom: 22px;
}
.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 0 rgba(124, 92, 255, 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(124, 92, 255, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(124, 92, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(124, 92, 255, 0);
  }
}
.pill-light {
  color: var(--violet-deep);
  border-color: rgba(91, 61, 245, 0.3);
  background: rgba(124, 92, 255, 0.07);
}

/* ── buttons ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 13px 26px;
  border-radius: 14px;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.25s;
  will-change: transform;
}
.btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.3s var(--ease);
}
.btn:hover svg {
  transform: translateX(4px);
}
.btn-lg {
  padding: 16px 30px;
  font-size: 1rem;
}
.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
  border-radius: 11px;
}

/* cart-btn — book-demo button, concept from Uiverse.io, retinted to brand
   and widened from a fixed 140px to a flexible min-width so longer
   labels ("Book Your Free Demo") still fit. */
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 152px;
  height: 44px;
  padding: 0 26px 0 30px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    var(--violet-hi) 0%,
    var(--violet) 48%,
    var(--violet-deep) 100%
  );
  box-shadow: 0 10px 24px -8px rgba(124, 92, 255, 0.55);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.cart-btn:hover {
  box-shadow: 0 14px 30px -8px rgba(124, 92, 255, 0.7);
}
.cart-btn:active {
  transform: scale(0.96);
}
.cart-icon {
  position: absolute;
  left: -34px;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 2;
  transition: left 0.5s var(--ease);
}
.cart-icon svg {
  width: 15px;
  height: 15px;
}
.cart-btn:hover .cart-icon {
  left: 14px;
}
.cart-text {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.5s var(--ease);
}
.cart-btn:hover .cart-text {
  transform: translateX(14px);
}

.cart-btn.is-compact {
  min-width: 118px;
  height: 38px;
  padding: 0 20px 0 24px;
}
.cart-btn.is-compact .cart-text {
  font-size: 0.82rem;
}
.cart-btn.is-compact .cart-icon {
  left: -28px;
  width: 20px;
  height: 20px;
}
.cart-btn.is-compact .cart-icon svg {
  width: 12px;
  height: 12px;
}
.cart-btn.is-compact:hover .cart-icon {
  left: 10px;
}

.cart-btn.is-block {
  width: 100%;
}
.nav-mobile .cart-btn {
  width: 100%;
}
/* Mobile-only floating "Book a Demo" — hidden by default (desktop/tablet
   keep the navbar's own CTA); shown fixed bottom-right at ≤768px, see
   the mobile media query for the .fab-demo positioning. */
.cart-btn.fab-demo {
  display: none;
}

.btn-ghost {
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.03);
  color: var(--t-dark);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

/* bubble-btn — Explore Features, concept from Uiverse.io, retinted to brand */
.bubble-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 26px;
  border-radius: 12px;
  border: 1px solid var(--line-dark);
  color: var(--violet-deep);
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.04);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    transform 0.2s ease;
}
.bubble-btn:hover {
  background-color: var(--violet-deep);
  border-color: var(--violet-deep);
  color: #fff;
}
.bubble-btn:active {
  transform: scale(0.96);
}
.bubble-btn:before,
.bubble-btn:after {
  position: absolute;
  content: "";
  width: 150%;
  left: 50%;
  height: 100%;
  transform: translateX(-50%);
  z-index: -1;
  background-repeat: no-repeat;
}
.bubble-btn:hover:before {
  top: -70%;
  background-image:
    radial-gradient(circle, var(--violet-deep) 20%, transparent 20%),
    radial-gradient(
      circle,
      transparent 20%,
      var(--violet-deep) 20%,
      transparent 30%
    ),
    radial-gradient(circle, var(--violet-deep) 20%, transparent 20%),
    radial-gradient(circle, var(--violet-deep) 20%, transparent 20%),
    radial-gradient(
      circle,
      transparent 10%,
      var(--violet-deep) 15%,
      transparent 20%
    ),
    radial-gradient(circle, var(--violet-deep) 20%, transparent 20%),
    radial-gradient(circle, var(--violet-deep) 20%, transparent 20%),
    radial-gradient(circle, var(--violet-deep) 20%, transparent 20%),
    radial-gradient(circle, var(--violet-deep) 20%, transparent 20%);
  background-size:
    10% 10%,
    20% 20%,
    15% 15%,
    20% 20%,
    18% 18%,
    10% 10%,
    15% 15%,
    10% 10%,
    18% 18%;
  background-position: 50% 120%;
  animation: bubble-top 0.6s ease;
}
@keyframes bubble-top {
  0% {
    background-position:
      5% 90%,
      10% 90%,
      10% 90%,
      15% 90%,
      25% 90%,
      25% 90%,
      40% 90%,
      55% 90%,
      70% 90%;
  }
  50% {
    background-position:
      0% 80%,
      0% 20%,
      10% 40%,
      20% 0%,
      30% 30%,
      22% 50%,
      50% 50%,
      65% 20%,
      90% 30%;
  }
  100% {
    background-position:
      0% 70%,
      0% 10%,
      10% 30%,
      20% -10%,
      30% 20%,
      22% 40%,
      50% 40%,
      65% 10%,
      90% 20%;
    background-size:
      0% 0%,
      0% 0%,
      0% 0%,
      0% 0%,
      0% 0%,
      0% 0%;
  }
}
.bubble-btn:hover::after {
  bottom: -70%;
  background-image:
    radial-gradient(circle, var(--violet-deep) 20%, transparent 20%),
    radial-gradient(circle, var(--violet-deep) 20%, transparent 20%),
    radial-gradient(
      circle,
      transparent 10%,
      var(--violet-deep) 15%,
      transparent 20%
    ),
    radial-gradient(circle, var(--violet-deep) 20%, transparent 20%),
    radial-gradient(circle, var(--violet-deep) 20%, transparent 20%),
    radial-gradient(circle, var(--violet-deep) 20%, transparent 20%),
    radial-gradient(circle, var(--violet-deep) 20%, transparent 20%);
  background-size:
    15% 15%,
    20% 20%,
    18% 18%,
    20% 20%,
    15% 15%,
    20% 20%,
    18% 18%;
  background-position: 50% 0%;
  animation: bubble-bottom 0.6s ease;
}
@keyframes bubble-bottom {
  0% {
    background-position:
      10% -10%,
      30% 10%,
      55% -10%,
      70% -10%,
      85% -10%,
      70% -10%,
      70% 0%;
  }
  50% {
    background-position:
      0% 80%,
      20% 80%,
      45% 60%,
      60% 100%,
      75% 70%,
      95% 60%,
      105% 0%;
  }
  100% {
    background-position:
      0% 90%,
      20% 90%,
      45% 70%,
      60% 110%,
      75% 80%,
      95% 70%,
      110% 10%;
    background-size:
      0% 0%,
      0% 0%,
      0% 0%,
      0% 0%,
      0% 0%,
      0% 0%;
  }
}

.btn-outline {
  border: 1.5px solid rgba(91, 61, 245, 0.35);
  color: var(--violet-deep);
  justify-content: center;
}
.btn-outline:hover {
  background: rgba(124, 92, 255, 0.07);
  border-color: var(--violet);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-d);
  font-weight: 700;
  color: var(--t-light);
  margin-top: 26px;
}
.text-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}
.text-link:hover svg {
  transform: translateX(5px);
}

/* ── chips / dots / avatars ────────────── */
.chip {
  font-family: var(--font-m);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 99px;
  white-space: nowrap;
}
.chip-dark {
  background: rgba(255, 255, 255, 0.07);
  color: var(--t-light);
  border: 1px solid var(--line-dark);
}
.chip-hot {
  background: rgba(255, 107, 74, 0.14);
  color: #ff8a6e;
  border: 1px solid rgba(255, 107, 74, 0.3);
}
.chip-warm {
  background: rgba(255, 194, 74, 0.13);
  color: #ffce73;
  border: 1px solid rgba(255, 194, 74, 0.28);
}
.chip-cool {
  background: rgba(124, 92, 255, 0.13);
  color: var(--violet-hi);
  border: 1px solid rgba(124, 92, 255, 0.3);
}
.chip-lime {
  background: rgba(200, 243, 91, 0.12);
  color: var(--lime);
  border: 1px solid rgba(200, 243, 91, 0.3);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.dot-violet {
  background: var(--violet);
}
.dot-lime {
  background: var(--lime);
}
.dot-white {
  background: #fff;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--font-d);
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7c5cff, #5b3df5);
}
.av-2 {
  background: linear-gradient(135deg, #ff8a6e, #e85b3a);
}
.av-3 {
  background: linear-gradient(135deg, #43c9a8, #1e9c7d);
}
.av-4 {
  background: linear-gradient(135deg, #ffc24a, #e89b1f);
}

.tick {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(200, 243, 91, 0.12);
  color: var(--lime);
  border: 1px solid rgba(200, 243, 91, 0.3);
}
.tick svg {
  width: 16px;
  height: 16px;
}
.tick-sm {
  width: 26px;
  height: 26px;
}
.tick-sm svg {
  width: 13px;
  height: 13px;
}
.tick-violet {
  background: rgba(124, 92, 255, 0.1);
  color: var(--violet-deep);
  border-color: rgba(124, 92, 255, 0.3);
}

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition:
    background 0.4s,
    border-color 0.4s,
    backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line-light);
}
.nav-inner {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition:
    filter 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.logo:hover {
  filter: drop-shadow(0 0 14px rgba(124, 92, 255, 0.55));
  transform: translateY(-1px);
}
.logo-icon {
  height: 30px;
  width: auto;
}
.logo-img {
  height: 24px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}
.nav-indicator {
  display: none;
}
.nav-links a {
  position: relative;
  z-index: 1;
  padding: 9px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--t-light-dim);
  border-radius: 10px;
  transition:
    color 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet-hi), var(--violet));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover {
  color: var(--t-light);
  transform: translateY(-1px);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
.nav-links a.active {
  color: var(--t-light);
}
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}
.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--t-light);
  border-radius: 2px;
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s;
}
.nav-burger[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px 24px 24px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-light);
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}
.nav-mobile a {
  position: relative;
  padding: 12px 4px 12px 18px;
  font-weight: 500;
  color: var(--t-light-dim);
  border-left: 2px solid transparent;
  transition:
    color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    padding-left 0.3s var(--ease),
    background 0.3s var(--ease);
  border-radius: 0 8px 8px 0;
}
.nav-mobile a:hover {
  color: var(--t-dark);
  padding-left: 22px;
  background: rgba(124, 92, 255, 0.06);
}
.nav-mobile a.active {
  color: var(--t-light);
  border-left-color: var(--violet);
  background: rgba(124, 92, 255, 0.08);
}
.nav-mobile a.btn {
  margin-top: 10px;
  color: #fff;
  justify-content: center;
  border-left: 0;
  padding-left: 26px;
  border-radius: 14px;
}
.nav-mobile.open {
  display: flex;
}
@media (prefers-reduced-motion: no-preference) {
  .nav-mobile.open a {
    animation: mobile-link-in 0.45s var(--ease) backwards;
  }
  .nav-mobile.open a:nth-child(1) {
    animation-delay: 0.03s;
  }
  .nav-mobile.open a:nth-child(2) {
    animation-delay: 0.08s;
  }
  .nav-mobile.open a:nth-child(3) {
    animation-delay: 0.13s;
  }
  .nav-mobile.open a:nth-child(4) {
    animation-delay: 0.18s;
  }
  .nav-mobile.open a:nth-child(5) {
    animation-delay: 0.23s;
  }
  .nav-mobile.open a:nth-child(6) {
    animation-delay: 0.28s;
  }
  .nav-mobile.open a:nth-child(7) {
    animation-delay: 0.33s;
  }
}
@keyframes mobile-link-in {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 0;
  background: #ffffff;
}
.hero-glow {
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 700px;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 46% 42% at 38% 40%,
      rgba(124, 92, 255, 0.28),
      transparent 70%
    ),
    radial-gradient(
      ellipse 34% 34% at 68% 30%,
      rgba(91, 61, 245, 0.2),
      transparent 70%
    );
  filter: blur(10px);
  animation: glow-drift 14s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  from {
    transform: translateX(-52%) translateY(0);
  }
  to {
    transform: translateX(-46%) translateY(26px);
  }
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(
    ellipse 70% 60% at 50% 20%,
    #000 30%,
    transparent 75%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 70% 60% at 50% 20%,
    #000 30%,
    transparent 75%
  );
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 48px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.hero-copy h1 {
  margin: 0 0 22px;
}

/* floating cluster */
.hero-visual {
  position: relative;
  min-height: 460px;
}
.orbit-line {
  position: absolute;
  inset: 6% 2%;
  border: 1px dashed rgba(124, 92, 255, 0.25);
  border-radius: 38% 62% 55% 45% / 48% 42% 58% 52%;
  animation: orbit-morph 16s ease-in-out infinite alternate;
}
@keyframes orbit-morph {
  from {
    border-radius: 38% 62% 55% 45% / 48% 42% 58% 52%;
    transform: rotate(0deg);
  }
  to {
    border-radius: 55% 45% 40% 60% / 52% 58% 42% 48%;
    transform: rotate(5deg);
  }
}

.hv-card {
  position: absolute;
  background: #ffffff;
  border: 1px solid var(--line-light);
  border-radius: var(--r-md);
  box-shadow:
    0 24px 60px -18px rgba(23, 23, 29, 0.15),
    inset 0 1px 0 rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(8px);
}
.hv-main {
  top: 8%;
  left: 10%;
  width: min(340px, 82%);
  padding: 18px;
  z-index: 1;
}
.hv-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line-light);
}
.hv-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.88rem;
}
.hv-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.hv-row:last-child {
  border-bottom: 0;
}
.hv-row > div {
  flex: 1;
  line-height: 1.3;
}
.hv-row strong {
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
}
.hv-row small {
  font-size: 0.72rem;
  color: var(--t-light-dim);
}

.hv-sm {
  padding: 14px 16px;
  z-index: 3;
  box-shadow:
    0 24px 60px -14px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.hv-rates {
  top: 0;
  right: 2%;
  display: grid;
  gap: 5px;
}
.hv-rates small {
  font-family: var(--font-m);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t-light-dim);
}
.hv-rates strong {
  font-family: var(--font-m);
  font-size: 0.92rem;
  color: var(--lime);
}
.hv-rates .chip {
  justify-self: start;
}

.hv-toast {
  bottom: 10%;
  right: 0;
  display: flex;
  gap: 12px;
  align-items: center;
}
.hv-toast strong {
  font-size: 0.84rem;
  display: block;
}
.hv-toast small {
  font-size: 0.72rem;
  color: var(--t-light-dim);
}

.hv-tag {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-m);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 99px;
  background: #ffffff;
  border: 1px solid var(--line-light);
  box-shadow: 0 10px 26px -10px rgba(23, 23, 29, 0.18);
}
.t-1 {
  top: 2%;
  left: 0;
}
.t-2 {
  top: 47%;
  right: -2%;
}
.t-3 {
  bottom: 24%;
  left: 2%;
}
.t-4 {
  bottom: 2%;
  left: 30%;
}
.t-5 {
  top: 54%;
  left: -10%;
}

.float-a {
  animation: floaty 7s ease-in-out infinite;
}
.float-b {
  animation: floaty 8.5s ease-in-out 1.2s infinite;
}
.float-c {
  animation: floaty 9.5s ease-in-out 2.1s infinite;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* strip + marquee */
.hero-strip {
  position: relative;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.02);
}
.strip-label {
  flex: none;
  padding: 18px 28px;
  font-family: var(--font-m);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t-light);
  border-right: 1px solid var(--line-light);
  white-space: nowrap;
}
.marquee {
  overflow: hidden;
  contain: paint;
  flex: 1;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 38px;
  width: max-content;
  padding: 16px 0;
  animation: marquee 26s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track span {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(23, 23, 29, 0.7);
  white-space: nowrap;
}
.marquee-track i {
  font-style: normal;
  color: var(--violet);
  font-size: 0.7rem;
}
.marquee-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ═══════════ SECTIONS ═══════════ */
.section {
  padding: 60px 0;
  position: relative;
}
.section.tight-top {
  padding-top: 20px;
}
.section.light {
  background: var(--paper);
  color: var(--t-light);
}
.section.dark {
  background: #ffffff;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-head h2 {
  margin-top: 0;
}

/* ── Docked plane marker: parked at the "A" of Automation ── */
.auto-anchor {
  position: relative;
  color: var(--violet-deep);
}
.dock-plane {
  position: absolute;
  left: 50%;
  top: -0.62em;
  width: 0.85em;
  height: 0.85em;
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 5px rgba(23, 23, 29, 0.22));
  pointer-events: none;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split-copy h2 {
  margin-bottom: 4px;
}

/* pain list */
.pain-list {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}
.pain-list li {
  position: relative;
  padding-left: 32px;
  color: var(--t-light-dim);
  font-weight: 500;
}
.pain-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--hot);
  background: rgba(255, 107, 74, 0.1);
  border: 1px solid rgba(255, 107, 74, 0.25);
}

/* chaos card */
.chaos-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: 0 30px 70px -30px rgba(23, 23, 29, 0.25);
}
.chaos-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.95rem;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-light);
}
.chaos-title-ico {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(255, 107, 74, 0.1);
  color: var(--hot);
  border: 1px solid rgba(255, 107, 74, 0.25);
}
.chaos-title-ico svg {
  width: 14px;
  height: 14px;
}

.chaos-map {
  position: relative;
  height: 300px;
}
.chaos-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.chaos-lines .dash {
  stroke: rgba(91, 61, 245, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 5 6;
  animation: dash-flow 1.4s linear infinite;
}
@keyframes dash-flow {
  to {
    stroke-dashoffset: -22;
  }
}
.node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-m);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 6px 14px 6px 6px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid var(--line-light);
  color: var(--t-light-dim);
  white-space: nowrap;
  box-shadow: 0 8px 20px -14px rgba(23, 23, 29, 0.4);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.node:hover {
  transform: translate(-50%, -50%) translateY(-3px);
  box-shadow: 0 16px 30px -16px rgba(23, 23, 29, 0.45);
}
.node-ico {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  color: var(--t-light-dim);
  border: 1px solid var(--line-light);
}
.node-ico svg {
  width: 12px;
  height: 12px;
}

.node-violet {
  border-color: rgba(124, 92, 255, 0.3);
}
.node-violet .node-ico {
  background: rgba(124, 92, 255, 0.13);
  color: #7c5cff;
  border-color: rgba(124, 92, 255, 0.32);
}
.node-teal {
  border-color: rgba(30, 156, 125, 0.3);
}
.node-teal .node-ico {
  background: rgba(30, 156, 125, 0.13);
  color: #1e9c7d;
  border-color: rgba(30, 156, 125, 0.32);
}
.node-lime {
  border-color: rgba(143, 174, 46, 0.35);
}
.node-lime .node-ico {
  background: rgba(200, 243, 91, 0.28);
  color: #7a9a26;
  border-color: rgba(143, 174, 46, 0.4);
}
.node-hot {
  border-color: rgba(255, 107, 74, 0.32);
}
.node-hot .node-ico {
  background: rgba(255, 107, 74, 0.13);
  color: #ff6b4a;
  border-color: rgba(255, 107, 74, 0.32);
}
.node-warm {
  border-color: rgba(232, 151, 31, 0.35);
}
.node-warm .node-ico {
  background: rgba(255, 194, 74, 0.25);
  color: #e8971f;
  border-color: rgba(232, 151, 31, 0.4);
}
.node-lavender {
  border-color: rgba(132, 103, 232, 0.32);
}
.node-lavender .node-ico {
  background: rgba(161, 140, 255, 0.16);
  color: #8467e8;
  border-color: rgba(132, 103, 232, 0.35);
}

.n-center {
  left: 50%;
  top: 50%;
  padding: 8px 16px 8px 8px;
  background: var(--violet-deep);
  color: #fff;
  border-color: var(--violet-deep);
  font-weight: 600;
  box-shadow: 0 10px 26px -8px rgba(11, 11, 16, 0.5);
  animation: center-pulse 3s ease-in-out infinite;
}
.n-center .node-ico {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.n-center:hover {
  transform: translate(-50%, -50%) translateY(-3px);
}
@keyframes center-pulse {
  0%,
  100% {
    box-shadow: 0 10px 26px -8px rgba(11, 11, 16, 0.5);
  }
  50% {
    box-shadow: 0 10px 34px -6px rgba(124, 92, 255, 0.55);
  }
}
.n-1 {
  left: 17.5%;
  top: 20%;
}
.n-2 {
  left: 82.5%;
  top: 20%;
}
.n-3 {
  left: 12%;
  top: 56.6%;
}
.n-4 {
  left: 88%;
  top: 56.6%;
}
.n-5 {
  left: 27.5%;
  top: 87.3%;
}
.n-6 {
  left: 72.5%;
  top: 87.3%;
}
.chaos-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
  font-size: 0.86rem;
  color: var(--t-light-dim);
  white-space: nowrap;
}
.chaos-note .tick {
  flex: none;
}
.chaos-note a {
  color: var(--t-light);
  font-weight: 700;
  border-bottom: 1.5px solid rgba(23, 23, 29, 0.3);
}




/* ── transformation ────────────────────── */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.team-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  padding: 26px;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px -24px rgba(91, 61, 245, 0.28);
}
.team-card h3 {
  margin: 20px 0 8px;
}
.team-card p {
  font-size: 0.9rem;
  color: var(--t-light-dim);
}

.mini {
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line-light);
  box-shadow: 0 16px 38px -22px rgba(23, 23, 29, 0.3);
  padding: 16px;
  overflow: hidden;
  position: relative;
  display: grid;
  align-content: space-between;
  height: 224px;
  gap: 10px;
}
.mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--t-light);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-light);
}
.mini-pill {
  font-family: var(--font-m);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(124, 92, 255, 0.1);
  color: var(--violet-deep);
  border: 1px solid rgba(124, 92, 255, 0.22);
}

/* sales pipeline */
.mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--font-d);
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7c5cff, #5b3df5);
}
.mini-avatar-2 {
  background: linear-gradient(135deg, #ff8a6e, #e85b3a);
}
.mini-avatar-3 {
  background: linear-gradient(135deg, #43c9a8, #1e9c7d);
}
.mini-row b {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--t-light);
}
.mini-tag {
  font-style: normal;
  font-family: var(--font-m);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mini-tag-hot {
  color: #e8552f;
}
.mini-tag-warm {
  color: #c98006;
}
.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 30px;
  margin-top: 2px;
}
.mini-bars i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: rgba(124, 92, 255, 0.35);
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.9s var(--ease);
}
.mini-bars i.up {
  background: linear-gradient(180deg, var(--violet-hi), var(--violet-deep));
}
.in-view .mini-bars i {
  transform: scaleY(1);
}
.in-view .mini-bars i:nth-child(2) {
  transition-delay: 0.08s;
}
.in-view .mini-bars i:nth-child(3) {
  transition-delay: 0.16s;
}
.in-view .mini-bars i:nth-child(4) {
  transition-delay: 0.24s;
}
.in-view .mini-bars i:nth-child(5) {
  transition-delay: 0.32s;
}
.in-view .mini-bars i:nth-child(6) {
  transition-delay: 0.4s;
}

/* booking record */
.mini-kv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-m);
  font-size: 0.72rem;
}
.mini-kv small {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t-light-dim);
}
.mini-kv b {
  color: var(--t-light);
  font-weight: 600;
}
.mini-accent {
  color: var(--violet-deep);
}
.mini-track {
  height: 6px;
  border-radius: 99px;
  background: rgba(124, 92, 255, 0.12);
  overflow: hidden;
  margin-top: 2px;
}
.mini-track span {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet-hi), var(--violet-deep));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s var(--ease);
}
.in-view .mini-track span {
  transform: scaleX(1);
}
.mini-caption {
  color: var(--t-light-dim);
  font-size: 0.72rem;
}

/* profit dashboard */
.mini-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mini-tile {
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  gap: 2px;
}
.mini-tile small {
  font-family: var(--font-m);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mini-tile b {
  font-family: var(--font-d);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.15;
}
.mini-tile-violet {
  background: rgba(124, 92, 255, 0.1);
}
.mini-tile-violet small {
  color: var(--violet-deep);
}
.mini-tile-violet b {
  color: var(--violet-deep);
}
.mini-tile-lime {
  background: rgba(30, 156, 125, 0.1);
}
.mini-tile-lime small {
  color: #1e9c7d;
}
.mini-tile-lime b {
  color: #1e9c7d;
}
.mini-meters {
  display: grid;
  gap: 6px;
}
.meter {
  display: block;
  height: 5px;
  border-radius: 99px;
  width: var(--w);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s var(--ease);
}
.in-view .meter {
  transform: scaleX(1);
}
.meter-violet {
  background: var(--violet);
}
.meter-warm {
  background: var(--warm);
}
.meter-teal {
  background: #1e9c7d;
}

/* ── Wavy Timeline ─────────────────────── */
/* ── Scroll-locked AI journey ─────────────────────── */
#ai {
  padding-top: 80px;
  padding-bottom: 60px;
}
/* Make the AI section span the full viewport width */
#ai .wrap {
  width: 100%;
  max-width: 100%;
  padding-inline: 0;
}
.ai-scroll-outer {
  position: relative;
  height: 320vh; /* creates the scroll distance */
  margin-top: 0;
}
/* Pull "Ready to automate!" and the Modules heading closer together */
#modules .section-head {
  margin-bottom: 36px;
}
.ai-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  /* The 1200px-wide .wavy-timeline stage inside is clipped visually by
     overflow:hidden, but without paint containment mobile browsers can still
     size the page's viewport off its raw layout width, zooming the whole
     site out to fit it. contain:paint stops that leak. */
  contain: paint;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* White gradient shield — fades the top of the canvas so heading is always legible */
.ai-sticky::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 220px;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #ffffff 55%,
    rgba(255, 255, 255, 0.6) 80%,
    transparent 100%
  );
  z-index: 5;
  pointer-events: none;
}
.ai-section-head {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, calc(100% - 48px));
  margin-bottom: 0;
  z-index: 10;  /* above the gradient shield */
  text-align: center;
  padding-bottom: 28px;
}
.wavy-timeline {
  position: absolute;
  top: 0;
  left: 0;
  width: 1200px;
  height: 800px;
  transform-origin: 0 0;
}
/* Mobile-only flight path/plane — hidden by default, shown at <=720px */
.mobile-wavy-svg,
.mobile-plane-container {
  display: none;
}
.wavy-svg {
  position: absolute;
  inset: 0;
  width: 1200px;
  height: 800px;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.wavy-line {
  stroke: #7c5cff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 12 12;
  fill: none;
  animation: wavy-dash-flow 1.5s linear infinite;
  opacity: 0.85;
}
/* Stroke width is defined in the 1200×800 stage's own coordinate space, so
   it scales down along with everything else once the JS camera zooms out
   for narrow screens — bump it back up so the line stays visually
   prominent instead of thinning out to near-invisible. 640px matches the
   JS's own "isNarrow" camera-zoom threshold. */
@media (max-width: 640px) {
  .wavy-line {
    stroke-width: 9;
    stroke-dasharray: 18 16;
  }
}
@keyframes wavy-dash-flow {
  to {
    stroke-dashoffset: -18;
  }
}
.plane-svg {
  position: absolute;
  inset: 0;
  width: 1200px;
  height: 800px;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}
/* ── Cards: pixel-positioned on the 1200×800 stage ── */
.wavy-card {
  position: absolute;
  width: 140px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
  border: 1px solid rgba(124, 92, 255, 0.16);
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: 0 10px 28px rgba(91, 61, 245, 0.1);
  transition:
    opacity 0.55s ease,
    filter 0.55s ease,
    box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease);
  z-index: 2;
  /* position driven by --cx, --cy custom props */
  left: var(--cx);
  top: var(--cy);
  transform: translate(-50%, -50%);
  /* start hidden — JS reveals as plane approaches */
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
}
.wavy-card.revealed {
  opacity: 1;
  filter: none;
  pointer-events: auto;
}
.wavy-card.revealed:hover {
  transform: translate(-50%, -55%);
  box-shadow: 0 16px 40px rgba(124, 92, 255, 0.22);
  border-color: rgba(124, 92, 255, 0.4);
}

.pin-top {
  top: -6px;
  bottom: auto;
}
.pin-bottom {
  bottom: -6px;
  top: auto;
}

.card-pin {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #a1a1a6;
  border: 3px solid #ffffff;
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.1);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.wavy-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  width: 100%;
}
.wavy-card-icon {
  color: var(--violet-deep);
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.18),
    rgba(124, 92, 255, 0.06)
  );
}
.wavy-card-icon svg {
  width: 14px;
  height: 14px;
}
.wavy-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0;
  color: var(--t-light);
  line-height: 1.2;
}
/* Cursive finish — positioned at path endpoint (600,740) in 1200×800 stage */
.cursive-finish {
  position: absolute;
  left: 600px;
  top: 740px;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-family: "Comic Sans MS", cursive, sans-serif;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-style: italic;
  font-weight: 700;
  color: var(--violet-deep);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.cursive-finish.revealed {
  opacity: 1;
}
.finish-a {
  font-size: 1.35em;
  font-weight: 800;
  background: linear-gradient(96deg, var(--violet-deep) 10%, var(--violet) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.plane-icon {
  filter: drop-shadow(0 3px 8px rgba(23, 23, 29, 0.28));
}

/* ── modules ───────────────────────────── */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 30px;
  overflow: visible;
}
.mod {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  padding: 40px 58px 30px 58px;
  aspect-ratio: 1.25 / 1;
  min-height: 220px;
  min-width: 0; /* let grid columns shrink below content's min-content width instead of overflowing */
  box-sizing: border-box;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  z-index: 1;
  margin-right: -1px;
  margin-bottom: -1px;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    z-index 0.3s;
}
/* Overlap matching offset margins */
.mod:nth-child(4n) {
  margin-right: 0;
}
.mod:nth-child(n+9) {
  margin-bottom: 0;
}
.mod:hover {
  transform: scale(1.03) translateY(-6px);
  z-index: 10;
}
.puzzle-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
/* Two piece-shapes exist per module: the desktop one tessellates a 4-column
   grid, the mobile one a 3-column grid — only one is ever shown. */
.puzzle-bg-mobile {
  display: none;
}
.puzzle-path {
  fill: #ffffff;
  stroke: rgba(124, 92, 255, 0.1);
  stroke-width: 1.5px;
  transition:
    fill 0.35s ease,
    stroke 0.35s ease,
    filter 0.35s ease;
  filter: url(#puzzle-bevel) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.05));
}
.mod:hover .puzzle-path {
  fill: rgba(246, 243, 255, 0.98);
  stroke: rgba(124, 92, 255, 0.45);
  stroke-width: 2px;
  filter: url(#puzzle-bevel) drop-shadow(0 15px 32px rgba(124, 92, 255, 0.22));
}
.mod-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
}
.mod-ico {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: rgba(124, 92, 255, 0.06);
  color: var(--violet-hi);
  border: 1px solid rgba(124, 92, 255, 0.15);
  margin-bottom: 12px;
  transition:
    background 0.4s var(--ease),
    color 0.4s var(--ease),
    border-color 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.mod:hover .mod-ico {
  background: var(--violet-hi);
  color: #ffffff;
  border-color: var(--violet-hi);
  transform: translateY(-2px) scale(1.08);
}
.mod-svg-ico {
  width: 22px;
  height: 22px;
  transition: transform 0.4s var(--ease);
}
.mod:hover .mod-svg-ico {
  transform: rotate(5deg);
}
/* Vector stroke drawing animation on hover */
@keyframes strokeDraw {
  0% {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
  }
  100% {
    stroke-dasharray: 60;
    stroke-dashoffset: 0;
  }
}
.mod:hover .mod-svg-ico path,
.mod:hover .mod-svg-ico circle,
.mod:hover .mod-svg-ico rect {
  animation: strokeDraw 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.mod h3 {
  font-size: 1.14rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--t-light);
  line-height: 1.25;
  width: 100%;
  overflow-wrap: break-word;
}
.mod p {
  font-size: 0.9rem;
  color: var(--t-light-dim);
  line-height: 1.55;
  margin: 0;
  width: 100%;
  overflow-wrap: break-word;
}
@media (max-width: 1024px) {
  .mod-grid {
    /* minmax(0, 1fr), not plain 1fr — 1fr tracks default to
       minmax(auto, 1fr), which still respects each piece's content's
       min-content width at the TRACK level regardless of the item's own
       min-width, and was the actual cause of the grid overflowing the
       viewport (column 3 getting clipped). minmax(0, 1fr) removes that
       floor so the columns truly split evenly into the available width. */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 10px;
    overflow: visible;
  }
  .mod {
    padding: 14px 8px 8px 14px;
    height: auto !important;
    min-height: 130px;
    margin-right: -1px !important;
    margin-bottom: -1px !important;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
  }
  .mod-content {
    align-items: flex-start;
    text-align: left;
  }
  .mod h3 { font-size: 0.88rem; line-height: 1.2; margin-bottom: 6px; }
  /* Base .mod overlap resets (nth-child(4n)/(n+9)) assume the desktop
     4-column/3-row grid — re-zero the true last-column/last-row for this
     3-column/4-row layout instead (12 pieces either way). */
  .mod:nth-child(3n) {
    margin-right: 0 !important;
  }
  .mod:nth-child(n+10) {
    margin-bottom: 0 !important;
  }
  .mod p {
    font-size: 0.7rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .mod-ico {
    width: 26px;
    height: 26px;
    margin-bottom: 7px;
  }
  .mod-svg-ico {
    width: 16px;
    height: 16px;
  }
  .puzzle-bg-desktop {
    display: none;
  }
  .puzzle-bg-mobile {
    display: block;
  }
}

/* ── Integrations Bento Grid ─────────── */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.integration-card {
  background: var(--paper, #ffffff);
  border: 1px solid rgba(124, 92, 255, 0.15);
  border-radius: var(--r-lg, 24px);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.integration-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(124, 92, 255, 0.12);
  border-color: var(--violet-hi);
}

/* Bento layout: Column 1 and Column 3 span 2 rows */
.integration-card:nth-child(1),
.integration-card:nth-child(4) {
  grid-row: span 2;
}

.integration-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--t-light);
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.integration-card p {
  font-size: 0.92rem;
  color: var(--t-light-dim);
  line-height: 1.6;
  margin: 0;
}

.integration-note {
  text-align: center;
  margin-top: 40px;
  font-size: 0.95rem;
  color: var(--t-light-dim);
}

.integration-note .text-link {
  color: var(--t-light);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s;
}

.integration-note .text-link:hover {
  color: var(--violet-hi);
}

@media (max-width: 1024px) {
  .integration-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .integration-card:nth-child(1),
  .integration-card:nth-child(4) {
    grid-row: auto;
  }
  .integration-card {
    padding: 28px 24px;
  }
}

@media (max-width: 768px) {
  .integration-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .integration-card {
    padding: 24px 20px;
  }
}

/* ── duplicate-entry typing demo ─────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.dup-demo {
  margin-top: 40px;
}
.dup-card {
  max-width: 920px;
  margin-inline: auto;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 22px 48px -30px rgba(23, 23, 29, 0.26);
}
.dup-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-light);
}
.dup-bar-dots {
  display: inline-flex;
  gap: 6px;
  flex: none;
}
.dup-bar-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(23, 23, 29, 0.14);
}
.dup-bar-title {
  font-family: var(--font-m);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--t-light-dim);
}
.dup-replay {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line-light);
  background: var(--paper);
  color: var(--t-light-dim);
  cursor: pointer;
  transition:
    color 0.25s,
    border-color 0.25s,
    background 0.25s;
}
.dup-replay svg {
  width: 13px;
  height: 13px;
  transition: transform 0.4s var(--ease);
}
.dup-replay:hover {
  color: var(--violet-deep);
  border-color: rgba(124, 92, 255, 0.35);
  background: rgba(124, 92, 255, 0.06);
}
.dup-replay:hover svg {
  transform: rotate(-180deg);
}
.dup-page {
  padding: 24px 30px 28px;
  min-height: 60px;
}
.dup-text {
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(0.86rem, 0.55rem + 1vw, 1.05rem);
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--t-light);
  white-space: nowrap;
}
.dup-flag {
  position: relative;
  border-radius: 2px;
  transition: background-color 0.3s var(--ease);
}
.dup-flag.is-duplicate {
  background-color: rgba(255, 77, 79, 0.1);
  background-image:
    linear-gradient(
      45deg,
      transparent 65%,
      #ff4d4f 65%,
      #ff4d4f 72%,
      transparent 72%
    ),
    linear-gradient(
      135deg,
      transparent 28%,
      #ff4d4f 28%,
      #ff4d4f 35%,
      transparent 35%
    );
  background-size: 7px 5px;
  background-position: bottom left;
  background-repeat: repeat-x;
  background-origin: border-box;
  padding-bottom: 4px;
  animation: dup-shake 0.4s var(--ease);
}
@keyframes dup-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  75% {
    transform: translateX(2px);
  }
}
.dup-caret {
  display: inline-block;
  width: 2px;
  height: 1.12em;
  margin-left: 1px;
  background: var(--violet-deep);
  vertical-align: -0.18em;
}
.dup-caret.blink {
  animation: caret 1s steps(1) infinite;
}
@media (max-width: 600px) {
  .dup-text {
    white-space: normal;
    font-size: 1rem;
  }
  .dup-page {
    padding: 20px 20px 22px;
    min-height: 96px;
  }
}
.mod-note {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 0.94rem;
  color: var(--t-light-dim);
  padding: 18px 26px;
  border-radius: 99px;
  border: 1px dashed var(--line-light);
  width: fit-content;
  margin-inline: auto;
}

/* ── PNR terminal ──────────────────────── */
.pnr-caption {
  font-family: var(--font-m);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-deep);
  margin: 26px 0 18px;
}
.terminal {
  background: #1a1a2e;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 40px 90px -34px rgba(91, 61, 245, 0.25);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
}
.term-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.term-bar i:nth-child(1) {
  background: #ff5f57;
}
.term-bar i:nth-child(2) {
  background: #febc2e;
}
.term-bar i:nth-child(3) {
  background: #28c840;
}
.term-bar span {
  margin-left: 10px;
  font-family: var(--font-m);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--t-dark-dim);
}
.term-replay {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-m);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t-dark-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.term-replay svg {
  width: 12px;
  height: 12px;
  color: inherit;
  transition: transform 0.4s var(--ease);
}
.term-replay:hover {
  color: var(--t-dark);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.term-replay:hover svg {
  transform: rotate(-180deg);
}
.term-body {
  font-family: var(--font-m);
  font-size: 0.76rem;
  line-height: 1.75;
  color: #9be8b8;
  padding: 22px;
  height: 222px;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}
.term-body .caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--lime);
  vertical-align: -2px;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}

.term-result {
  border-top: 1px solid var(--line-dark);
  padding: 18px 22px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.term-result.show {
  opacity: 1;
  transform: none;
}
.tr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.tr-row small {
  font-family: var(--font-m);
  font-size: 0.66rem;
  color: var(--t-dark-dim);
}
.tr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.tr-grid small {
  display: block;
  font-family: var(--font-m);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t-dark-dim);
  margin-bottom: 2px;
}
.tr-grid b {
  font-family: var(--font-m);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--t-dark);
}

/* ── versus ────────────────────────────── */
.versus {
  margin-top: 34px;
  display: grid;
  gap: 12px;
}
.vs-row {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-light);
  background: #ffffff;
  opacity: 0.66;
  transition: opacity 0.3s;
}
.vs-row:hover {
  opacity: 0.9;
}
.vs-tag {
  font-family: var(--font-m);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t-light-dim);
}
.vs-row p {
  font-size: 0.88rem;
  color: var(--t-light-dim);
}
.vs-win {
  opacity: 1;
  background: linear-gradient(
    150deg,
    rgba(200, 243, 91, 0.16),
    rgba(200, 243, 91, 0.05)
  );
  border-color: rgba(200, 243, 91, 0.45);
}
.vs-win:hover {
  opacity: 1;
}
.vs-win .vs-tag {
  color: var(--lime);
}
.vs-win p {
  color: var(--t-light);
}
.light .vs-row {
  border-color: var(--line-light);
  background: #fff;
}
.light .vs-tag {
  color: var(--t-light-dim);
}
.light .vs-row p {
  color: var(--t-light-dim);
}
.light .vs-win {
  border-color: rgba(200, 243, 91, 0.5);
}
.light .vs-win p {
  color: var(--t-light);
}

.proof-list {
  display: grid;
  gap: 14px;
}
.proof-list li {
  position: relative;
  padding: 22px 24px 22px 58px;
  border: 1px solid var(--line-light);
  border-radius: var(--r-md);
  background: #ffffff;
  transition:
    border-color 0.3s,
    background 0.3s;
}
.proof-list li:hover {
  border-color: rgba(200, 243, 91, 0.35);
  background: rgba(200, 243, 91, 0.03);
}
.light .proof-list li {
  border-color: var(--line-light);
  background: #fff;
}
.light .proof-list li:hover {
  border-color: rgba(200, 243, 91, 0.5);
  background: rgba(200, 243, 91, 0.06);
}
.light .proof-list p {
  color: var(--t-light-dim);
}
.proof-list li::before {
  content: "✓";
  position: absolute;
  left: 22px;
  top: 24px;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--lime);
  background: rgba(200, 243, 91, 0.1);
  border: 1px solid rgba(200, 243, 91, 0.3);
}
.proof-list h4 {
  font-size: 0.98rem;
  margin-bottom: 3px;
}
.proof-list p {
  font-size: 0.86rem;
  color: var(--t-light-dim);
}

/* ── FAQ ───────────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(3, auto);
  align-items: start;
  gap: 20px;
  width: 100%;
}
.faq {
  display: block;
  width: 100%;
  border: 1px solid rgba(124, 92, 255, 0.09);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
  box-shadow: 0 2px 8px -2px rgba(91, 61, 245, 0.03);
  overflow: hidden;
  transition:
    border-color 0.3s,
    background 0.3s,
    box-shadow 0.3s;
}
.faq:hover {
  border-color: rgba(124, 92, 255, 0.22);
  box-shadow: 0 8px 20px -6px rgba(91, 61, 245, 0.06);
}
.faq[open],
.faq.is-open {
  border-color: rgba(124, 92, 255, 0.45);
  background: rgba(124, 92, 255, 0.03);
  box-shadow: 0 12px 32px -12px rgba(91, 61, 245, 0.1);
}
.faq-1, .faq-2, .faq-3, .faq-4, .faq-5, .faq-6 {
  grid-column: span 2 / span 2;
}
.faq-7, .faq-8 {
  grid-column: span 3 / span 3;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.45;
  white-space: nowrap;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq-plus {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
}
.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  background: var(--violet-hi);
  border-radius: 2px;
  transition: transform 0.35s var(--ease);
}
.faq-plus::before {
  inset: 7px 0;
}
.faq-plus::after {
  inset: 0 7px;
}
.faq[open] .faq-plus::after,
.faq.is-open .faq-plus::after {
  transform: rotate(90deg);
}
.faq p {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 24px 0;
  color: var(--t-light-dim);
  font-size: 0.92rem;
  line-height: 1.6;
  transition:
    max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    padding 0.38s ease;
}
.faq[open] p,
.faq.is-open p {
  max-height: 300px;
  opacity: 1;
  padding: 8px 24px 22px;
}
@media (max-width: 1024px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 16px;
  }
  .faq-1, .faq-2, .faq-3, .faq-4, .faq-5, .faq-6, .faq-7, .faq-8 {
    grid-column: span 1 / span 1 !important;
    grid-column-start: auto !important;
    grid-row-start: auto !important;
  }
  .faq summary {
    white-space: normal;
  }
}
@media (max-width: 768px) {
  .faq-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding-bottom: 20px;
  }
  .faq {
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(23, 23, 29, 0.08) !important;
  }
  .faq summary {
    font-size: 0.9rem;
    padding: 16px 20px;
    gap: 16px;
  }
  .faq p {
    padding: 0 20px 18px;
  }
}

/* ── final CTA ─────────────────────────── */
.cta-final {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 80px 0 70px;
  background:
    radial-gradient(
      ellipse 80% 90% at 50% 115%,
      rgba(124, 92, 255, 0.12),
      transparent 62%
    ),
    #ffffff;
  border-top: 1px solid var(--line-light);
}
.cta-glow {
  position: absolute;
  left: 50%;
  bottom: -320px;
  transform: translateX(-50%);
  width: 900px;
  height: 520px;
  pointer-events: none;
  background: radial-gradient(
    ellipse,
    rgba(124, 92, 255, 0.4),
    transparent 65%
  );
  filter: blur(30px);
}
.cta-path {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 220px;
  pointer-events: none;
  opacity: 0.5;
}
.dash-flight {
  stroke: rgba(161, 140, 255, 0.6);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 6 8;
  animation: dash-flow 1.8s linear infinite;
}
.cta-final h2 {
  max-width: 640px;
  margin: 0 auto 8px;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
}
.cta-final .btn {
  margin-top: 38px;
}
.cta-fine {
  margin-top: 22px;
  font-family: var(--font-m);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--t-light-dim);
}

/* ── footer ────────────────────────────── */
.footer {
  background: #f5f5f9;
  border-top: 1px solid var(--line-light);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand p {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--t-light-dim);
  max-width: 30em;
}

/* ── Social Media Buttons (Uiverse style) ── */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.Btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--btn-bg, #00acee);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition-duration: .5s;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.137);
  border: 2px solid var(--btn-border, #bbecff);
  text-decoration: none;
}

.Btn svg {
  fill: white;
  transition: transform 0.3s ease;
}

.Btn:hover svg {
  transform: scale(1.15);
}

.tooltip {
  position: absolute;
  top: -20px;
  opacity: 0;
  background-color: var(--btn-bg, #00acee);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition-duration: .2s;
  pointer-events: none;
  letter-spacing: 0.5px;
  font-size: 0.72rem;
  font-family: var(--font-m);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.tooltip::before {
  position: absolute;
  content: "";
  width: 10px;
  height: 10px;
  background-color: var(--btn-bg, #00acee);
  background-size: 1000%;
  background-position: center;
  transform: rotate(45deg);
  bottom: -20%;
  transition-duration: .3s;
}

.Btn:hover .tooltip {
  top: -45px;
  opacity: 1;
  transition-duration: .3s;
}

.Btn:hover {
  background-position: right;
  transition-duration: .5s;
  transform: translateY(-3px);
}

/* Individual Platform Colors */
.btn-twitter {
  --btn-bg: #000000;
  --btn-border: #444444;
}
.btn-facebook {
  --btn-bg: #1877F2;
  --btn-border: #a1cdff;
}
.btn-instagram {
  --btn-bg: #dc2743;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  --btn-border: #ffb8e4;
}
.btn-linkedin {
  --btn-bg: #0A66C2;
  --btn-border: #99cbff;
}
.btn-whatsapp {
  --btn-bg: #25D366;
  --btn-border: #b8fcd0;
}
.btn-youtube {
  --btn-bg: #FF0000;
  --btn-border: #ffb3b3;
}
.footer h5 {
  font-family: var(--font-m);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t-light-dim);
  margin-bottom: 18px;
}
.footer nav {
  display: grid;
  gap: 12px;
  align-content: start;
  justify-self: end;
  text-align: left;
}
.footer nav a {
  font-size: 0.9rem;
  color: var(--t-light-dim);
  transition: color 0.25s;
}
.footer nav a:hover {
  color: var(--t-light);
}
.footer-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line-light);
  font-size: 0.8rem;
  color: var(--t-light-dim);
}

/* ═══════════ DEMO / CONTACT MODAL ═══════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 5, 9, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.modal-overlay[hidden] {
  display: none;
}
.modal-overlay.open {
  opacity: 1;
}

.modal-card {
  position: relative;
  width: min(880px, 100%);
  max-height: 98vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  box-shadow: 0 60px 130px -40px rgba(23, 23, 29, 0.2);
  transform: translateY(26px) scale(0.98);
  transition: transform 0.45s var(--ease);
}
.modal-overlay.open .modal-card {
  transform: none;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--line-light);
  color: var(--t-light-dim);
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.35s var(--ease);
}
.modal-close svg {
  width: 14px;
  height: 14px;
}
.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--t-light);
  transform: rotate(90deg);
}

.modal-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
}

.modal-info {
  padding: 28px 30px;
  border-right: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.modal-info .logo-img {
  align-self: center;
  margin-bottom: 4px;
}
.modal-info h3 {
  margin: 10px 0 6px;
  text-align: center;
}
.modal-info > p {
  color: var(--t-light-dim);
  font-size: 0.9rem;
  margin-bottom: 16px;
  text-align: center;
}

.modal-contact-list {
  display: grid;
  gap: 12px;
  margin-top: auto;
  margin-bottom: auto;
  text-align: left;
}
.modal-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.modal-ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(124, 92, 255, 0.12);
  color: var(--violet-hi);
  border: 1px solid rgba(124, 92, 255, 0.3);
}
.modal-ico svg {
  width: 14px;
  height: 14px;
}
.modal-contact-list b {
  font-size: 0.86rem;
  display: block;
  margin-bottom: 2px;
}
.modal-contact-list small {
  font-size: 0.78rem;
  color: var(--t-light-dim);
  line-height: 1.45;
}

.modal-form {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-form h3 {
  margin-bottom: 4px;
}
.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  min-width: 0;
}
.field label {
  font-family: var(--font-m);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-light-dim);
}
.field input,
.field textarea {
  width: 100%;
  min-width: 0;
  font-family: var(--font-b);
  font-size: 0.88rem;
  color: var(--t-light);
  background: #f7f7fb;
  border: 1px solid var(--line-light);
  border-radius: 10px;
  padding: 8px 12px;
  transition:
    border-color 0.25s,
    background 0.25s;
}
.field textarea {
  resize: none;
  min-height: 64px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(23, 23, 29, 0.35);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet);
  background: rgba(124, 92, 255, 0.07);
}
.field.invalid input,
.field.invalid textarea {
  border-color: var(--hot);
}
.field-error {
  font-size: 0.72rem;
  color: var(--hot);
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    opacity 0.25s,
    height 0.25s;
}
.field.invalid .field-error {
  height: 1.4em;
  opacity: 1;
}

.country-select {
  position: relative;
  display: flex;
  align-items: center;
}
.country-flag {
  position: absolute;
  left: 12px;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.country-flag img {
  width: 20px;
  height: auto;
  border-radius: 2px;
  display: block;
}
.country-select input {
  width: 100%;
  transition: padding-left 0.2s;
}
.country-select.has-flag input {
  padding-left: 42px;
}
.country-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 5;
  max-height: 216px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--line-light);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 24px 50px -20px rgba(23, 23, 29, 0.18);
}
.country-options[hidden] {
  display: none;
}
.country-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--t-light-dim);
  cursor: pointer;
}
.country-option img {
  width: 18px;
  height: auto;
  border-radius: 2px;
  flex: none;
}
.country-option:hover,
.country-option.active {
  background: rgba(124, 92, 255, 0.1);
  color: var(--violet-deep);
}
.country-empty {
  padding: 10px;
  font-size: 0.8rem;
  color: var(--t-light-dim);
}

/* send-btn — modal submit, concept from Uiverse.io, retinted to brand */
.send-btn {
  position: relative;
  align-self: center;
  margin-top: 6px;
  display: flex;
  align-items: center;
  font-family: var(--font-d);
  font-size: 0.94rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--violet-hi) 0%,
    var(--violet) 48%,
    var(--violet-deep) 100%
  );
  padding: 0.7em 1em 0.7em 0.9em;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(124, 92, 255, 0.55);
  transition: all 0.2s;
}
.send-btn span {
  display: block;
  margin-left: 0.3em;
  transition: all 0.3s ease-in-out;
}
.send-btn svg {
  display: block;
  transform-origin: center center;
  transition: transform 0.3s ease-in-out;
}
.send-btn:hover .send-svg-wrapper {
  animation: send-fly 0.6s ease-in-out infinite alternate;
}
.send-btn:hover svg {
  transform: translateX(1.2em) rotate(45deg) scale(1.1);
}
.send-btn:hover span {
  transform: translateX(5em);
}
.send-btn:active {
  transform: scale(0.95);
}
@keyframes send-fly {
  from {
    transform: translateY(0.1em);
  }
  to {
    transform: translateY(-0.1em);
  }
}
.modal-status {
  font-size: 0.82rem;
  min-height: 1.2em;
}
.modal-status.success {
  color: var(--lime);
}
.modal-status.error {
  color: var(--hot);
}

@media (max-width: 760px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
  /* Contact panel takes up space that's better spent on the form itself on mobile */
  .modal-info {
    display: none;
  }
  .modal-form {
    padding: 32px 24px;
  }
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ═══════════ MOTION SYSTEM ═══════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease) calc(var(--d, 0) * 90ms),
    transform 0.8s var(--ease) calc(var(--d, 0) * 90ms);
}
.reveal.in-view {
  opacity: 1;
  transform: var(--stagger, none);
}

.reveal-load {
  opacity: 0;
  transform: translateY(24px);
  animation: load-in 0.9s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 130ms + 120ms);
}
@keyframes load-in {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1180px) {
  .nav-links {
    display: none;
  }
  .nav-burger {
    display: flex;
  }
  .nav-cta .cart-btn {
    display: none;
  }
}
@media (max-width: 1020px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  .cards-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
    gap: 52px;
  }
}
@media (max-width: 720px) {
  .section {
    padding: 50px 0;
  }
  .hero {
    padding-top: 130px;
  }
  .strip-label {
    padding: 14px 18px;
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
  }
  /* chaos map — compact + inward nodes, contained */
  .chaos-map {
    height: 240px !important;
    overflow: hidden; /* prevent node bleed */
  }
  .n-1 { left: 24% !important; top: 15% !important; }
  .n-2 { left: 76% !important; top: 15% !important; }
  .n-3 { left: 20% !important; top: 50% !important; }
  .n-4 { left: 80% !important; top: 50% !important; }
  .n-5 { left: 30% !important; top: 85% !important; }
  .n-6 { left: 70% !important; top: 85% !important; }
}
@media (max-width: 460px) {
  .hero-strip {
    flex-direction: column;
    align-items: stretch;
  }
  .strip-label {
    border-right: none;
    border-bottom: 1px solid var(--line-light);
    text-align: center;
    padding: 8px 12px;
  }
  .chaos-card {
    padding: 14px 10px;
  }
  .chaos-note {
    white-space: normal;
    font-size: 0.78rem;
  }
  /* node sizing for very small phones */
  .chaos-map {
    height: 210px !important;
    overflow: hidden;
  }
  /* pull side nodes further inward so they never clip */
  .n-1 { left: 22% !important; top: 14% !important; }
  .n-2 { left: 78% !important; top: 14% !important; }
  .n-3 { left: 18% !important; top: 50% !important; }
  .n-4 { left: 82% !important; top: 50% !important; }
  .n-5 { left: 28% !important; top: 86% !important; }
  .n-6 { left: 72% !important; top: 86% !important; }
  .node {
    font-size: 0.56rem;
    padding: 3px 8px 3px 3px;
    gap: 5px;
  }
  .node-ico {
    width: 16px;
    height: 16px;
  }
  .node-ico svg {
    width: 9px;
    height: 9px;
  }
  .hero-actions .btn {

    width: 100%;
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .reveal-load {
    opacity: 1;
    transform: none;
  }
  .mini-bars i {
    transform: scaleY(1);
  }
  .mini-track span,
  .meter {
    transform: scaleX(1);
  }
  .term-result {
    opacity: 1;
    transform: none;
  }
}

/* ── Quote Block (Reference Design) ── */
.quote-block {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.quote-watermark {
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-family: Georgia, serif;
  font-size: clamp(5rem, 10vw, 10rem);
  font-weight: 900;
  color: rgba(124, 92, 255, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.quote-icon {
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--violet);
  margin-bottom: -10px;
  user-select: none;
  z-index: 2;
  font-weight: bold;
}
.quote-block blockquote {
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--t-light);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
  z-index: 2;
}
.quote-block blockquote .grad {
  font-style: normal;
  font-weight: 700;
}

/* ── Lenis Smooth Scroll Overrides ── */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* ════════════════════════════════════════════════════
   COMPREHENSIVE RESPONSIVE PATCH
   Coverage: 1280px → 1024px → 768px → 480px → 360px
   ════════════════════════════════════════════════════ */

/* ── Fluid base typography ──────────────────────── */
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.45rem); }

/* Note: the puzzle-piece SVG art (.puzzle-path) in each .mod is hand-drawn
   to interlock in a 4-column grid — that grid stays 4-up at native desktop
   width. Below 1024px the jigsaw art no longer matches the reflowed grid,
   so it's swapped for a plain card grid (see breakpoints below). */

/* ── Large desktop (≤ 1280px) ───────────────────── */
@media (max-width: 1280px) {
  :root { --wrap: 1080px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; gap: 32px; }
}

/* ── Tablet landscape (≤ 1024px) ────────────────── */
@media (max-width: 1024px) {
  :root { --wrap: 960px; }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 40px;
  }
  .hero-copy { text-align: center; }
  .hero-actions { justify-content: center; }
  .text-link { margin-inline: auto; }
  /* Keep the orbit/floating-card look from desktop — card centred, dashed
     ring behind it, tags ringed around the edge — just scaled down. Tag
     pills are shrunk hard so they read as small labels, not full-width
     bars, which keeps any overlap onto the card light and readable.
     justify-items:center on the grid row is a second, independent centring
     guarantee alongside the auto margins below. */
  .hero-visual {
    position: relative;
    justify-self: center;
    left: auto;
    margin-inline: auto;
    width: min(480px, 100%);
    min-height: 480px;
  }
  .hv-main {
    left: 0;
    right: 0;
    margin-inline: auto;
    top: 10%;
    width: 72%;
    padding: 16px;
  }
  .hv-title { font-size: 0.82rem; }
  .hv-row { padding: 9px 4px; gap: 10px; }
  .hv-row strong { font-size: 0.8rem; }
  .hv-row small { font-size: 0.68rem; }
  .avatar { width: 30px; height: 30px; font-size: 0.72rem; }
  .hv-main .chip { font-size: 0.64rem; padding: 4px 9px; }

  /* Five clock positions around the card, matching the desktop reference:
     top-left, right-mid, left-mid, left-lower, bottom-centre. */
  .hv-tag { font-size: 0.52rem; padding: 5px 9px; gap: 5px; }
  .t-1 { top: 2%; left: 2%; right: auto; bottom: auto; }
  .t-2 { top: 42%; right: 0%; left: auto; bottom: auto; }
  .t-5 { top: 52%; left: 0%; right: auto; bottom: auto; }
  .t-3 { top: 66%; left: 4%; right: auto; bottom: auto; }
  .t-4 { bottom: 2%; left: 28%; top: auto; }

  .hv-toast { bottom: 8%; right: 0%; padding: 9px 11px; gap: 7px; }
  .hv-toast strong { font-size: 0.66rem; }
  .hv-toast small { font-size: 0.56rem; }

  /* Puzzle grid stays a real jigsaw at this width too (see the earlier
     max-width:1024px block) — just re-tune padding/sizing a touch tighter. */
  .mod-grid { gap: 0; padding: 8px; }
  .mod { padding: 16px 8px 8px 16px !important; min-height: 150px; }
  .mod h3 { font-size: 1rem; }
  .mod-ico { width: 34px; height: 34px; margin-bottom: 10px; }
  .mod-svg-ico { width: 16px; height: 16px; }

  /* Split layout */
  .split { grid-template-columns: 1fr; gap: 48px; }

  /* FAQ */
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-1, .faq-2, .faq-3, .faq-4, .faq-5, .faq-6, .faq-7, .faq-8 {
    grid-column: span 1 !important;
    grid-column-start: auto !important;
    grid-row-start: auto !important;
  }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-brand {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-brand .logo,
  .footer-brand p {
    margin-inline: auto;
  }
  .footer-socials { justify-content: center; }
  /* .footer-grid is single-column here, so .footer nav's desktop
     justify-self:end (aligning it under the grid's 2nd column) instead
     pins it to the right edge of the full-width row — centre it instead. */
  .footer nav {
    justify-self: center;
    text-align: center;
  }
}

/* ── Tablet portrait (≤ 768px) ──────────────────── */
@media (max-width: 768px) {
  /* Drop the navbar's burger menu + CTA entirely on mobile — logo becomes
     the only thing in the bar (centred), and "Book a Demo" moves out of
     the navbar into a fixed floating button (see .fab-demo below), always
     reachable without opening any menu. */
  .nav-cta { display: none; }
  .nav-mobile { display: none !important; }
  .nav-inner { justify-content: center; }
  .cart-btn.fab-demo {
    display: inline-flex;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 90;
    box-shadow: 0 14px 30px -8px rgba(23, 23, 29, 0.4);
  }

  .section { padding: 44px 0; }
  .hero { padding-top: 100px; }
  .hero-title-break { display: none; }
  .hero-inner { padding-bottom: 100px; }   /* gap between cards and strip */
  .hero-strip { margin-top: 28px; }         /* extra breathing room */

  .hero-visual { width: min(340px, 100%); min-height: 420px; }
  .hv-main { width: 74%; top: 10%; padding: 14px; }
  .hv-title { font-size: 0.78rem; }
  .hv-row { padding: 8px 4px; gap: 9px; }
  .hv-row strong { font-size: 0.76rem; }
  .hv-row small { font-size: 0.64rem; }
  .avatar { width: 27px; height: 27px; font-size: 0.68rem; }
  .hv-main .chip { font-size: 0.6rem; padding: 4px 8px; }

  .hv-tag { font-size: 0.48rem; padding: 4px 8px; }
  .t-4 { left: 22%; }

  .hv-toast { padding: 9px 11px; }
  .hv-toast strong { font-size: 0.7rem; }
  .hv-toast small { font-size: 0.6rem; }

  /* Puzzle grid, tighter for tablet portrait — gap stays 0, pieces must
     touch for the jigsaw tabs/notches to interlock correctly. */
  .mod-grid { padding: 8px; gap: 0; }
  .mod { padding: 12px 8px 6px 12px !important; min-height: 145px; }
  .mod h3 { font-size: 0.7rem; line-height: 1.2; margin-bottom: 5px; }
  .mod p {
    font-size: 0.58rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .mod-ico { width: 22px; height: 22px; border-radius: 8px; margin-bottom: 6px; }
  .mod-svg-ico { width: 11px; height: 11px; }

  /* AI / Plane section — fall back to stacked card list */
  /* Chaos map */
  .chaos-map { height: 220px !important; }
  .n-1 { left: 22% !important; top: 14% !important; }
  .n-2 { left: 78% !important; top: 14% !important; }
  .n-3 { left: 18% !important; top: 50% !important; }
  .n-4 { left: 82% !important; top: 50% !important; }
  .n-5 { left: 28% !important; top: 86% !important; }
  .n-6 { left: 72% !important; top: 86% !important; }
  .chaos-note { white-space: normal; font-size: 0.8rem; }

  /* Keep the "One Workflow. Every Feature." heading pinned right under the
     fixed nav (nav-inner height is 72px) instead of scrolling away — the
     first card only starts stacking once it's clear of this frozen header,
     and higher z-index keeps every card sliding in underneath it, never over. */
  #transformation .section-head {
    position: sticky;
    top: 72px;
    z-index: 4;
    background: var(--paper);
    padding-top: 10px;
    padding-bottom: 12px;
    margin-bottom: 20px;
  }

  /* Cards-3 → sticky stacking cards on mobile: each card pins in place as you
     scroll, and the next one slides up over it (opaque background + rising
     z-index), instead of just scrolling past. Offsets start below the
     frozen nav + heading block above. */
  .cards-3 {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    padding-bottom: 160px;
  }
  .cards-3 .team-card {
    position: sticky !important;
    background: #ffffff;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06), 0 20px 48px -10px rgba(23, 23, 29, 0.2);
  }
  .cards-3 .team-card:nth-child(1) {
    top: 260px !important;
    z-index: 1;
  }
  .cards-3 .team-card:nth-child(2) {
    top: 300px !important;
    z-index: 2;
  }
  .cards-3 .team-card:nth-child(3) {
    top: 340px !important;
    z-index: 3;
  }

  /* Strip */
  .hero-strip { flex-direction: column; align-items: stretch; }
  .strip-label {
    border-right: none;
    border-bottom: 1px solid var(--line-light);
    text-align: center;
    padding: 10px 16px;
  }

  /* FAQ */
  .faq-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  .faq summary { font-size: 0.9rem; padding: 16px 20px; }
  .faq p { padding: 0 20px 18px; }

  /* CTA */
  .cta-final { padding: 56px 0 48px; }

  /* Footer */
  .footer { padding: 40px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-navs { gap: 50px; }


  /* Modal — contact panel is dropped on mobile, form runs full-width, single column */
  /* svh (not vh) so mobile browser chrome can't inflate the card past the real visible area */
  .modal-card { max-height: 92svh; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-info { display: none; }
  .modal-form { padding: 24px 30px; gap: 10px; }
  /* Form heading is now the top-most element — keep it clear of the close button */
  .modal-form h3 { padding-right: 36px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
}

/* ── Mobile (≤ 480px) ───────────────────────────── */
@media (max-width: 480px) {
  h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 1.9rem); }

  .hero { padding-top: 88px; }
  .hero-visual { width: min(300px, 100%); min-height: 380px; }
  .hv-main { width: 78%; padding: 12px; }
  .hv-row { padding: 7px 4px; }
  .hv-row strong { font-size: 0.72rem; }
  .hv-row small { font-size: 0.6rem; }
  .avatar { width: 24px; height: 24px; font-size: 0.62rem; }
  .hv-tag { font-size: 0.44rem; padding: 4px 7px; }
  .hv-toast { padding: 8px 10px; }
  .hv-toast strong { font-size: 0.66rem; }
  .hv-toast small { font-size: 0.56rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Puzzle grid, compact for mobile — 3 columns, gap stays 0 for the jigsaw tabs/notches. */
  .mod-grid { padding: 6px; gap: 0; }
  .mod { padding: 10px 6px 5px 10px !important; min-height: 125px; }
  .mod h3 { font-size: 0.58rem; line-height: 1.15; margin-bottom: 5px; }
  /* Clamp to 2 lines with ellipsis — guarantees the description can never
     grow tall/wide enough to visually run into the next piece, whatever
     the exact text length. */
  .mod p {
    font-size: 0.5rem;
    line-height: 1.28;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .mod-ico { width: 20px; height: 20px; border-radius: 7px; margin-bottom: 5px; }
  .mod-svg-ico { width: 10px; height: 10px; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;          /* gentle gap between brand and link columns */
    padding-bottom: 24px;
  }
  .footer-navs { gap: 36px; }
  .footer-base { flex-direction: column; gap: 6px; text-align: center; }


  .hero-strip { flex-direction: column; }
  .hero-actions .btn { font-size: 0.9rem; }
}

/* ── Very small mobile (≤ 360px) ───────────────── */
@media (max-width: 360px) {
  h1 { font-size: 1.75rem; }

  .hero-visual { width: min(270px, 100%); min-height: 340px; }
  .hv-main { width: 84%; padding: 10px; top: 8%; }
  .hv-row { padding: 6px 4px; gap: 7px; }
  .hv-tag { font-size: 0.4rem; padding: 3px 6px; }
  .hv-toast { padding: 7px 9px; }

  /* Puzzle grid stays 3-per-row even at this width; shrink text/icons
     further and clamp the description to 2 lines so nothing can grow
     tall/wide enough to visually run into a neighbouring piece. */
  .mod-grid { padding: 5px; gap: 0; }
  .mod { padding: 9px 6px 4px 9px !important; min-height: 115px; }
  .mod h3 { font-size: 0.52rem; line-height: 1.1; margin-bottom: 4px; }
  .mod p {
    font-size: 0.44rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .mod-ico { width: 17px; height: 17px; border-radius: 6px; margin-bottom: 4px; }
  .mod-svg-ico { width: 9px; height: 9px; }

  .hero-actions { flex-direction: column; }
}

/* ── AI Plane — scroll animation ────────
   The plane is JS-driven at every screen size (mobile now shares the same
   pinned/animated journey as desktop). These rules size it correctly and
   have it use the full viewport as its canvas. */
.ai-sticky {
  height: 100svh; /* use small viewport height on mobile browsers */
  min-height: 520px;
}
/* Hardware-accelerate the moving plane for smoothness */
.plane-svg {
  will-change: transform;
  transition: transform 0.04s linear;
}
/* Revealed cards pop in smoothly */
.wavy-card {
  transition:
    opacity 0.5s ease,
    filter 0.5s ease,
    transform 0.4s cubic-bezier(0.22, 0.9, 0.28, 1);
}
.wavy-card.revealed { opacity: 1 !important; filter: none !important; }

/* ── Accessibility: keyboard focus on puzzle tiles ─ */
.mod:focus-within .puzzle-path {
  stroke: rgba(124, 92, 255, 0.55);
  stroke-width: 2px;
}

/* ── Touch screens: disable hover-only effects ──── */
@media (hover: none) and (pointer: coarse) {
  .mod:hover { transform: none; z-index: 1; }
  .mod:hover .puzzle-path {
    fill: #ffffff;
    stroke: rgba(124, 92, 255, 0.1);
    filter: url(#puzzle-bevel) drop-shadow(0 2px 5px rgba(0,0,0,0.05));
  }
  .btn:hover { transform: none; box-shadow: none; }
  .text-link:hover svg { transform: none; }
  .mod:hover .mod-ico { transform: none; background: rgba(124,92,255,0.06); }
}

/* ── Safe area insets (iPhone notch / home indicator) ── */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer-base {
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }
  .nav-inner {
    padding-left:  max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }
  .nav-mobile {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ── Hardware Acceleration & Fast Render Optimizations ── */
section, footer, .document-card {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}
img, svg {
  decoding: async;
}
