/* =========================================================================
   CortexCommerce — homepage styles
   Light & airy indigo base + electric cyan accent. Bold, alive, 2026.
   ========================================================================= */

:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-soft-2: #eef0f6;
  --card: #ffffff;
  --line: #e7e9f0;
  --line-soft: #eef0f4;

  /* Ink */
  --ink: #1e293b;
  --body: #475063;
  --muted: #8c9196;

  /* Brand indigo */
  --indigo-1: #6366f1;
  --indigo-2: #4338ca;
  --indigo-soft: #eef0ff;

  /* Accent (tweakable). Default: electric cyan, oklch-harmonized with indigo. */
  --accent: oklch(0.74 0.135 213);
  --accent-deep: oklch(0.62 0.13 221);
  --accent-soft: oklch(0.95 0.04 211);

  /* Gradient used everywhere */
  --grad: linear-gradient(135deg, var(--indigo-1), var(--indigo-2));
  --grad-bright: linear-gradient(120deg, var(--accent), var(--indigo-1) 70%);

  /* Motion (tweakable via [data-motion]) */
  --mo: 1; /* global motion multiplier */
  --reveal-y: 26px; /* how far reveal elements rise */
  --t-slow: 22s;
  --t-med: 14s;

  --shadow-sm: 0 1px 0 rgba(22, 29, 37, 0.04);
  --shadow-md: 0 18px 40px -24px rgba(30, 41, 59, 0.4);
  --shadow-lg: 0 34px 70px -30px rgba(30, 41, 59, 0.5);
  --shadow-glow: 0 24px 60px -22px rgba(67, 56, 202, 0.45);

  --maxw: 1140px;
  --radius: 18px;
}

[data-motion="calm"] {
  --mo: 0.45;
  --reveal-y: 16px;
}
[data-motion="lively"] {
  --mo: 1;
}
[data-motion="maximal"] {
  --mo: 1.5;
  --reveal-y: 34px;
}

/* Hero theme: dark variant flips the hero band to a deep indigo canvas */
[data-herotheme="dark"] {
  --hero-ink: #f8fafc;
  --hero-body: #c3c9e8;
  --hero-eyebrow: #a5b4fc;
}
[data-herotheme="light"] {
  --hero-ink: var(--ink);
  --hero-body: var(--body);
  --hero-eyebrow: var(--indigo-1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: var(--indigo-2);
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--indigo-1);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-bright);
}

/* =======================================================================
   Top nav
   ======================================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand .mark {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 6px 14px rgba(67, 56, 202, 0.3));
}
.brand .name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--ink);
}
.brand .name .g {
  color: var(--indigo-2);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a:not(.btn) {
  font-weight: 600;
  font-size: 15px;
  color: var(--body);
  position: relative;
  transition: color 0.2s;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: var(--grad-bright);
  border-radius: 2px;
  transition: width 0.26s ease;
}
.nav-links a:not(.btn):hover {
  color: var(--indigo-2);
}
.nav-links a:not(.btn):hover::after {
  width: 100%;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 11px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition:
    transform 0.18s ease,
    filter 0.2s,
    box-shadow 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
}
.btn-dark:hover {
  filter: brightness(1.15);
}
.btn-grad {
  background: var(--grad);
  color: #fff;
  padding: 14px 24px;
  font-size: 16px;
  box-shadow: var(--shadow-glow);
}
.btn-grad:hover {
  filter: brightness(1.06);
  box-shadow: 0 22px 46px -18px rgba(67, 56, 202, 0.6);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  padding: 14px 22px;
  font-size: 16px;
  border: 1px solid var(--line);
  font-weight: 600;
}
.btn-ghost:hover {
  border-color: var(--indigo-1);
  color: var(--indigo-2);
}
.btn .arrow {
  transition: transform 0.22s ease;
}
.btn:hover .arrow {
  transform: translateX(4px);
}

/* "Contact" in the nav is a button (opens the modal) styled like the links */
.nav-links .link-btn {
  font-size: 15px;
  font-weight: 600;
  color: var(--body);
  transition: color 0.2s;
}
.nav-links .link-btn:hover {
  color: var(--indigo-2);
  text-decoration: none;
}

/* Mobile menu toggle (hidden on desktop) */
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-burger svg {
  display: block;
}
.nav-burger .x {
  display: none;
}
.nav.open .nav-burger .x {
  display: block;
}
.nav.open .nav-burger .lines {
  display: none;
}

@media (max-width: 760px) {
  .nav-inner {
    padding: 12px 18px;
  }
  .nav-burger {
    display: inline-flex;
  }
  .nav-links {
    display: none;
  }
  .nav.open {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    box-shadow: 0 1px 0 var(--line-soft);
  }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
  }
  .nav.open .nav-links a:not(.btn),
  .nav.open .nav-links .link-btn {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 16px;
    text-align: left;
  }
  .nav.open .nav-links a:not(.btn):hover,
  .nav.open .nav-links .link-btn:hover {
    background: var(--bg-soft);
  }
  .nav.open .nav-links a:not(.btn)::after {
    display: none;
  }
  .nav.open .nav-links .btn {
    justify-content: center;
    margin-top: 4px;
  }
}

/* =======================================================================
   Hero
   ======================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 168px 0 110px;
  background:
    radial-gradient(
      1100px 640px at 88% -6%,
      color-mix(in oklab, var(--indigo-1) 16%, transparent),
      transparent 60%
    ),
    radial-gradient(
      820px 560px at -8% 116%,
      color-mix(in oklab, var(--accent) 14%, transparent),
      transparent 55%
    ),
    linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
  border-bottom: 1px solid var(--line-soft);
}
[data-herotheme="dark"] .hero {
  background:
    radial-gradient(1000px 620px at 84% -10%, rgba(99, 102, 241, 0.55), transparent 58%),
    radial-gradient(
      820px 560px at -6% 120%,
      color-mix(in oklab, var(--accent) 42%, transparent),
      transparent 55%
    ),
    linear-gradient(165deg, #1b1b46 0%, #14143a 55%, #101030 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Animated flowing mesh / aurora blobs behind the hero */
.hero-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.55;
  mix-blend-mode: multiply;
  animation: drift var(--t-slow) ease-in-out infinite alternate;
  animation-duration: calc(var(--t-slow) / var(--mo));
}
[data-herotheme="dark"] .blob {
  mix-blend-mode: screen;
  opacity: 0.5;
}
.blob.b1 {
  width: 520px;
  height: 520px;
  left: 52%;
  top: -140px;
  background: radial-gradient(circle at 30% 30%, var(--indigo-1), transparent 70%);
}
.blob.b2 {
  width: 460px;
  height: 460px;
  left: 64%;
  top: 120px;
  background: radial-gradient(circle at 50% 50%, var(--accent), transparent 70%);
  animation-delay: -6s;
  animation-duration: calc(var(--t-med) / var(--mo));
}
.blob.b3 {
  width: 380px;
  height: 380px;
  left: 40%;
  top: 220px;
  background: radial-gradient(circle at 50% 50%, var(--indigo-2), transparent 72%);
  animation-delay: -3s;
}
@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-40px, 30px, 0) scale(1.08);
  }
  100% {
    transform: translate3d(30px, -26px, 0) scale(0.96);
  }
}

/* Hero bg style variants (tweakable) */
[data-herobg="grid"] .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(
      to right,
      color-mix(in oklab, var(--indigo-1) 13%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      color-mix(in oklab, var(--indigo-1) 13%, transparent) 1px,
      transparent 1px
    );
  background-size: 44px 44px;
  mask-image: radial-gradient(900px 520px at 70% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 520px at 70% 20%, #000 0%, transparent 75%);
}
[data-herobg="minimal"] .blob {
  display: none;
}
[data-herobg="aurora"] .blob {
  filter: blur(70px);
  opacity: 0.6;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 56px;
  align-items: center;
}
.hero-grid > * {
  min-width: 0;
}
.hero-copy {
  max-width: 600px;
}
.hero h1 {
  font-size: clamp(40px, 5.2vw, 66px);
  line-height: 1.03;
  letter-spacing: -2px;
  font-weight: 800;
  margin: 18px 0 0;
  color: var(--hero-ink);
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--indigo-1), var(--accent-deep) 55%, var(--indigo-2));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer calc(8s / var(--mo)) ease-in-out infinite;
}
@keyframes shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.hero p.sub {
  font-size: 20px;
  color: var(--hero-body);
  margin: 22px 0 0;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.chip {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--body);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(6px);
}
[data-herotheme="dark"] .chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--hero-body);
}
.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 28%, transparent);
}

/* ---- Live AI typing demo card ---- */
.demo {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 22px 22px 24px;
  transform: translateZ(0);
}
.demo::after {
  /* soft accent ring */
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 23px;
  pointer-events: none;
  background: linear-gradient(
    140deg,
    color-mix(in oklab, var(--accent) 50%, transparent),
    transparent 40%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  opacity: 0.8;
}
.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.demo-dots {
  display: flex;
  gap: 7px;
}
.demo-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}
.demo-dots i:nth-child(1) {
  background: #ff5f57;
}
.demo-dots i:nth-child(2) {
  background: #febc2e;
}
.demo-dots i:nth-child(3) {
  background: #28c840;
}
.demo-live {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 5px 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.demo-live .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-deep);
  animation: pulse calc(1.6s / var(--mo)) ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
}

.demo-prod {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.demo-thumb {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  flex: 0 0 auto;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.demo-ptitle {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.demo-psub {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
}

.demo-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 4px 0 7px;
}
.demo-desc {
  font-size: 14.5px;
  color: #34405a;
  line-height: 1.55;
  min-height: 92px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px 14px;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--indigo-1);
  margin-left: 1px;
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.demo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  min-height: 30px;
}
.tag {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--indigo-2);
  background: var(--indigo-soft);
  border: 1px solid color-mix(in oklab, var(--indigo-1) 22%, transparent);
  padding: 5px 11px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.tag.in {
  opacity: 1;
  transform: none;
}

.demo-conf {
  margin-top: 16px;
}
.demo-conf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--body);
  margin-bottom: 7px;
}
.demo-conf-row .val {
  color: #1a7f4b;
  font-weight: 800;
}
.meter {
  height: 8px;
  border-radius: 99px;
  background: var(--bg-soft-2);
  overflow: hidden;
}
.meter > i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), #1a7f4b);
  transition: width 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* floating accent badge on the demo */
.demo-badge {
  position: absolute;
  right: -16px;
  bottom: 34px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  animation: floaty calc(5s / var(--mo)) ease-in-out infinite;
}
.demo-badge .ic {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent-deep);
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero {
    padding: 140px 0 80px;
  }
  .demo-badge {
    right: 8px;
  }
}
@media (max-width: 560px) {
  .wrap {
    padding: 0 20px;
  }
  .hero {
    padding: 118px 0 64px;
  }
  .hero h1 {
    letter-spacing: -1.2px;
  }
  .hero p.sub {
    font-size: 17.5px;
  }
  section.block {
    padding: 64px 0;
  }
  .sec-head {
    margin-bottom: 36px;
  }
  .demo {
    padding: 16px 14px 18px;
  }
  .demo-badge {
    bottom: 14px;
    padding: 8px 12px;
    font-size: 12px;
  }
  .ticker-inner {
    padding: 38px 0;
  }
  .cta-band {
    padding: 40px 22px;
  }
  .btn-grad,
  .btn-ghost {
    padding: 13px 18px;
    font-size: 15px;
  }
}

/* Product photos in thumbnails */
.pimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.demo-thumb,
.bx-th,
.sc-prod .th {
  overflow: hidden;
}
.bx-th {
  padding: 0;
}

/* Rotating hero scenes — grid-stacked so the card auto-sizes to the tallest
   scene at ANY viewport width (absolute positioning would clip on mobile).
   minmax(0,1fr) + min-width:0 stop wide content from inflating the track
   beyond the card. */
.demo-scenes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.demo-scene {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
  pointer-events: none;
}
.demo-scene.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Schema scene — JSON-LD code block */
.code-block {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.75;
  color: #34405a;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 13px 15px;
  min-height: 158px;
  white-space: pre;
  overflow-x: auto;
  margin: 0;
}
@media (max-width: 560px) {
  .code-block {
    font-size: 11px;
  }
}
.code-block .ln {
  display: block;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.code-block .ln.in {
  opacity: 1;
  transform: none;
}
.code-block .k {
  color: var(--indigo-2);
}
.code-block .s {
  color: #1a7f4b;
}
.code-block .n {
  color: var(--accent-deep);
}
.code-block .p {
  color: var(--muted);
}
.schema-valid {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 800;
  color: #1a7f4b;
  background: #e7f7ee;
  padding: 8px 13px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.35s,
    transform 0.35s;
}
.schema-valid.in {
  opacity: 1;
  transform: none;
}
.schema-valid .ck {
  display: inline-flex;
}

/* Persona scene — signals + match ring */
.match-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex: 0 0 auto;
  margin-left: auto;
  position: relative;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-deep);
  background: conic-gradient(var(--accent) var(--p, 0%), var(--bg-soft-2) 0);
}
.match-ring::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--card);
}
.match-ring span {
  position: relative;
  z-index: 1;
}
.signals {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.signal {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 10px 13px;
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.signal.in {
  opacity: 1;
  transform: none;
}
.signal .sdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
}

/* --- Ranked AI answer (shared: home hero scene 2 + home band + schema page) --- */
.rk-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rk-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: var(--bg-soft);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s,
    transform 0.35s;
}
.rk-row.in {
  opacity: 1;
  transform: none;
}
.rk-row .pos {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-soft-2);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.rk-row .nm {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rk-row .pr {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.rk-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bg-soft-2);
  color: var(--muted);
  white-space: nowrap;
}
.rk-row.you {
  background: #e7f7ee;
  border-color: color-mix(in oklab, #1a7f4b 35%, var(--line));
}
.rk-row.you .pos {
  background: #1a7f4b;
  color: #fff;
}
.rk-row.you .nm {
  color: var(--ink);
  font-weight: 700;
}
.rk-row.you .rk-badge {
  background: #1a7f4b;
  color: #fff;
}

/* Score chip (hero scene 2 footer) */
.score-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--indigo-2);
  background: var(--indigo-soft);
  border: 1px solid color-mix(in oklab, var(--indigo-1) 24%, transparent);
  padding: 7px 13px;
  border-radius: 999px;
}
.score-chip .v {
  font-variant-numeric: tabular-nums;
}

/* =======================================================================
   Live ticker band
   ======================================================================= */
.ticker {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ticker::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 300px at 12% -40%, rgba(99, 102, 241, 0.5), transparent 60%),
    radial-gradient(
      600px 320px at 92% 140%,
      color-mix(in oklab, var(--accent) 60%, transparent),
      transparent 60%
    );
  opacity: 0.8;
}
.ticker-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: 46px 0;
}
.stat {
  text-align: left;
}
.stat .num {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1;
  background: linear-gradient(120deg, #fff, color-mix(in oklab, var(--accent) 75%, #fff));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .lbl {
  font-size: 14px;
  color: #c3c9e8;
  margin-top: 9px;
  font-weight: 500;
}
.stat .tag-live {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #7ef2d8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.stat .tag-live .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ef2d8;
  animation: pulse calc(1.6s / var(--mo)) infinite;
}
@media (max-width: 760px) {
  .ticker-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 18px;
  }
}

/* =======================================================================
   Sections
   ======================================================================= */
section.block {
  padding: 100px 0;
  position: relative;
}
section.alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.sec-head {
  max-width: 680px;
  margin-bottom: 48px;
}
.sec-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -1.2px;
  margin: 14px 0 0;
  line-height: 1.06;
}
.sec-head p {
  font-size: 18.5px;
  color: var(--body);
  margin: 16px 0 0;
}

/* Product suite — two apps since CortexSchema folded into CortexGuard (ADR-031). */
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 880px;
  margin-inline: auto;
}
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 26px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.3s,
    border-color 0.3s;
}
.product::before {
  /* top accent wash on hover */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.product:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in oklab, var(--indigo-1) 30%, var(--line));
}
.product:hover::before {
  transform: scaleX(1);
}
.product.soon {
  background: var(--bg-soft);
  border-style: dashed;
}
.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.ic-lg {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-glow);
}
.ic-lg.muted {
  background: #c7cbd6;
  box-shadow: none;
}
.status {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--bg-soft-2);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.status.live {
  color: #1a7f4b;
  background: #e7f7ee;
}
.status.live .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a7f4b;
  animation: pulse calc(1.6s / var(--mo)) infinite;
}
.product h3 {
  font-size: 21px;
  margin: 0 0 9px;
  letter-spacing: -0.4px;
}
.product p {
  font-size: 15.5px;
  color: var(--body);
  margin: 0;
}
.product .more {
  margin-top: auto;
  padding-top: 20px;
  font-weight: 700;
  font-size: 15px;
  color: var(--indigo-2);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.product .more .arrow {
  transition: transform 0.22s;
}
.product:hover .more .arrow {
  transform: translateX(4px);
}
@media (max-width: 900px) {
  .products {
    grid-template-columns: 1fr;
  }
}

/* In-action band */
.band {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 52px;
  align-items: center;
}
.band > * {
  min-width: 0;
}
.band .shot-wrap {
  position: relative;
}
.shot {
  width: 100%;
  /* height attribute on the <img> must not act as a fixed height when CSS
     sizes the width — keeps the 16:9 slides from stretching. */
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.shot-glow {
  position: absolute;
  inset: 10% -6% -14% 6%;
  z-index: -1;
  border-radius: 40px;
  filter: blur(40px);
  background: var(--grad-bright);
  opacity: 0.25;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 22px 0 30px;
}
.checklist li {
  position: relative;
  padding: 8px 0 8px 34px;
  font-size: 16px;
  color: var(--ink);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e7f7ee
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12.5l4 4 10-10' stroke='%231a7f4b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
@media (max-width: 900px) {
  .band {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Why grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  margin-bottom: 16px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-glow);
}
.feature h3 {
  font-size: 19px;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}
.feature p {
  font-size: 15.5px;
  color: var(--body);
  margin: 0;
}
@media (max-width: 760px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 64px 56px;
  color: #fff;
  background: linear-gradient(
    140deg,
    #2b2d77,
    #4338ca 55%,
    color-mix(in oklab, var(--accent-deep) 80%, #4338ca)
  );
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px 300px at 86% -20%,
    color-mix(in oklab, var(--accent) 70%, transparent),
    transparent 60%
  );
  opacity: 0.7;
}
.cta-band .inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
}
.cta-band h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -1px;
  margin: 0;
  line-height: 1.08;
}
.cta-band p {
  font-size: 18px;
  color: #d7daf5;
  margin: 16px 0 28px;
}
.cta-band .btn-grad {
  background: #fff;
  color: var(--indigo-2);
}
.cta-band .btn-grad:hover {
  background: #fff;
  filter: brightness(0.98);
}
.cta-band .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
@media (max-width: 760px) {
  .cta-band {
    padding: 44px 28px;
  }
}

/* Footer */
footer {
  padding: 54px 0 70px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 14px;
}
footer .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
footer .links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
footer .links a {
  color: var(--body);
  font-weight: 600;
}
footer .links a:hover {
  color: var(--indigo-2);
}

/* =======================================================================
   Section status pill + flipped band
   ======================================================================= */
.sec-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 9px 15px;
  border-radius: 999px;
  margin-top: 26px;
}
.sec-status.live {
  color: #1a7f4b;
  background: #e7f7ee;
}
.sec-status.dev {
  color: var(--indigo-2);
  background: var(--indigo-soft);
}
.sec-status .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse calc(1.6s / var(--mo)) infinite;
}
.band.flip {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}
@media (max-width: 900px) {
  .band.flip {
    grid-template-columns: 1fr;
  }
  .band.flip .cv-stage {
    order: -1;
  }
}

/* =======================================================================
   Animated creatives (per-product in-action windows)
   ======================================================================= */
.cv-stage {
  position: relative;
}
.cv-glow {
  position: absolute;
  inset: 8% -5% -12% 5%;
  z-index: -1;
  border-radius: 40px;
  filter: blur(44px);
  background: var(--grad-bright);
  opacity: 0.22;
}
.cv-win {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cv-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-soft);
}
.cv-bar i.d {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}
.cv-bar i.d:nth-child(1) {
  background: #ff5f57;
}
.cv-bar i.d:nth-child(2) {
  background: #febc2e;
}
.cv-bar i.d:nth-child(3) {
  background: #28c840;
}
.cv-bar .ttl {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  margin-left: 8px;
  letter-spacing: 0.2px;
}
.cv-bar .live {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 5px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cv-bar .live .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-deep);
  animation: pulse calc(1.6s / var(--mo)) infinite;
}
.cv-body {
  padding: 18px 18px 20px;
}

/* --- Creative 1: batch catalog enrichment --- */
.bx-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.bx-head .t {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.bx-head .p {
  font-size: 13px;
  font-weight: 800;
  color: var(--indigo-2);
  font-variant-numeric: tabular-nums;
}
.bx-bar {
  height: 7px;
  border-radius: 99px;
  background: var(--bg-soft-2);
  overflow: hidden;
  margin-bottom: 16px;
}
.bx-bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--grad-bright);
  transition: width 0.5s ease;
}
.bx-rows {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.bx-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: var(--card);
  transition:
    border-color 0.3s,
    background 0.3s,
    box-shadow 0.3s;
}
.bx-row.active {
  border-color: color-mix(in oklab, var(--indigo-1) 45%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--indigo-1) 12%, transparent);
}
.bx-row.done {
  background: color-mix(in oklab, #1a7f4b 5%, var(--card));
}
.bx-th {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: 0 0 auto;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
}
.bx-th.g2 {
  background: linear-gradient(135deg, var(--accent), var(--indigo-1));
}
.bx-th.g3 {
  background: linear-gradient(135deg, var(--indigo-2), #312e81);
}
.bx-meta {
  flex: 1;
  min-width: 0;
}
.bx-tt {
  /* block (prototype had inline): stacks the title over the SKU and makes
     the ellipsis effective, matching every other product-row treatment. */
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bx-sk {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}
.bx-pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  color: var(--muted);
  background: var(--bg-soft-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    color 0.3s,
    background 0.3s;
}
.bx-pill.go {
  color: #1a7f4b;
  background: #e7f7ee;
}
.bx-pill .ck {
  width: 13px;
  height: 13px;
  opacity: 0;
  transform: scale(0.4);
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.bx-pill.go .ck {
  opacity: 1;
  transform: none;
}

/* --- Creative 2: CortexGuard visibility scan (sc-* / rk-* components) --- */
.sc-search {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 15px;
  background: var(--bg-soft);
}
.sc-search .mag {
  color: var(--muted);
  flex: 0 0 auto;
}
.sc-q {
  font-size: 14.5px;
  color: var(--ink);
  min-height: 1.2em;
}
.sc-q .ccaret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--indigo-1);
  margin-left: 1px;
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
.sc-think {
  display: flex;
  gap: 5px;
  padding: 16px 2px 4px;
}
.sc-think i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--indigo-1);
  opacity: 0.4;
  animation: scdot calc(1.1s / var(--mo)) infinite;
}
.sc-think i:nth-child(2) {
  animation-delay: 0.15s;
}
.sc-think i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes scdot {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}
.sc-ans {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s,
    transform 0.5s;
}
.sc-ans.in {
  opacity: 1;
  transform: none;
}
.sc-ans .lead {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent-deep);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sc-ans .lead .sp {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
}
.sc-prod {
  display: flex;
  gap: 13px;
  align-items: center;
}
.sc-prod .th {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--grad);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.sc-prod .nm {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}
.sc-prod .meta {
  font-size: 12.5px;
  color: var(--body);
  margin-top: 3px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.sc-stars {
  color: #f5a623;
  letter-spacing: 1.5px;
  font-size: 12px;
}
.sc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}
.sc-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--indigo-2);
  background: var(--indigo-soft);
  border: 1px solid color-mix(in oklab, var(--indigo-1) 22%, transparent);
  padding: 4px 10px;
  border-radius: 7px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s,
    transform 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sc-badge.in {
  opacity: 1;
  transform: none;
}
.sc-badge .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  opacity: 0.8;
}
.sc-assist {
  display: flex;
  gap: 8px;
  margin-top: 15px;
  flex-wrap: wrap;
}
.sc-chip {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--body);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.sc-chip .d {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- Creative 3: CortexPersona "For You" --- */
.pf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  gap: 12px;
}
.pf-head .t {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pf-head .t .spark {
  color: var(--accent-deep);
}
.pf-chip {
  font-size: 12px;
  font-weight: 700;
  color: var(--indigo-2);
  background: var(--indigo-soft);
  border: 1px solid color-mix(in oklab, var(--indigo-1) 24%, transparent);
  padding: 6px 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: background 0.3s;
}
.pf-chip .av {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--grad);
  flex: 0 0 auto;
}
.pf-chip .lbl {
  transition: opacity 0.3s;
}
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  transition: opacity 0.45s ease;
}
.pf-grid > * {
  min-width: 0;
}
.pf-tile {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.pf-thumb {
  height: 62px;
  background: linear-gradient(135deg, var(--c1, #dfe2f3), var(--c2, #c7cbe6));
  position: relative;
}
.pf-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent 60%);
}
.pf-cap {
  padding: 8px 10px 9px;
}
.pf-cap .nm {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-cap .pr {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.pf-tile.top {
  border-color: color-mix(in oklab, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 35%, transparent);
}
.pf-match {
  position: absolute;
  top: 7px;
  right: 7px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  background: var(--accent-deep);
  padding: 3px 8px;
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.pf-tile.top .pf-match {
  opacity: 1;
  transform: none;
}

/* =======================================================================
   Scroll reveal
   ======================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-y));
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.d1 {
  transition-delay: 0.08s;
}
.reveal.d2 {
  transition-delay: 0.16s;
}
.reveal.d3 {
  transition-delay: 0.24s;
}
.reveal.d4 {
  transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .blob,
  .demo-badge,
  .hero h1 .grad,
  .pulse {
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* =======================================================================
   Inline link-style buttons (footer "Contact", FAQ "Get in touch")
   ======================================================================= */
.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--indigo-2);
  font-weight: 600;
  cursor: pointer;
}
.link-btn:hover {
  text-decoration: underline;
}
footer .links .link-btn {
  color: var(--body);
}
footer .links .link-btn:hover {
  color: var(--indigo-2);
  text-decoration: none;
}

/* =======================================================================
   Contact modal (shared across home + product pages, posts to /api/contact)
   ======================================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 60;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: var(--card);
  border-radius: var(--radius);
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.5);
  padding: 28px;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.modal h2 {
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.4px;
}
.modal .sub {
  color: var(--body);
  font-size: 15px;
  margin: 6px 0 18px;
}
.modal-close {
  flex: 0 0 auto;
  border: none;
  background: var(--bg-soft-2);
  color: var(--body);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover {
  background: var(--line);
}
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--body);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid #d8dbe5;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 16px; /* 16px avoids iOS auto-zoom on focus */
  font-family: inherit;
  color: var(--ink);
  background: var(--card);
  -webkit-appearance: none;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--indigo-1);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--indigo-1) 15%, transparent);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
/* Honeypot — hidden from humans, tempting to bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.btn-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 22px;
  border-radius: 12px;
}
.btn-submit:hover {
  filter: brightness(1.05);
}
.btn-submit:disabled {
  opacity: 0.6;
  cursor: default;
}
.form-note {
  font-size: 14px;
  margin: 12px 0 0;
  display: none;
}
.form-note.show {
  display: block;
}
.form-note.ok {
  color: #1a7f4b;
}
.form-note.err {
  color: #c0392b;
}
