/* /features hero — Linear-style ambient module wall. Scoped. Do not load on /. */

.ft-hero {
  position: relative;
  overflow: hidden;
  padding: 8px 0 56px;
  background: var(--bv-cream);
}
.ft-wall {
  position: relative;
  height: min(58vh, 560px);
  margin: 0 auto;
  max-width: 1400px;
}
.ft-wall__field {
  position: absolute;
  inset: -8% -12%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 58%, transparent 94%);
  mask-image:
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 58%, transparent 94%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.ft-wall::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 36% 34% at 50% 42%, rgba(255,255,255,0.42), transparent 62%),
    radial-gradient(ellipse 70% 72% at 50% 46%, transparent 28%, color-mix(in srgb, var(--bv-cream) 72%, transparent) 78%, var(--bv-cream) 100%);
  pointer-events: none;
  z-index: 3;
}
.ft-wall__row {
  overflow: hidden;
  transform: scale(var(--sc, 1));
  padding-inline-start: calc(var(--off, 0) * 36px);
}
.ft-wall__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: ft-marquee var(--dur, 80s) linear infinite;
}
.ft-wall__row.is-rev .ft-wall__track {
  animation-name: ft-marquee-rev;
}
.ft-wall__seq {
  display: flex;
  gap: 18px;
  padding-right: 18px;
}
.ft-tile {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 0;
  background: var(--c, #4FA0EA);
  box-shadow:
    0 4px 14px color-mix(in srgb, var(--c, #4FA0EA) 35%, transparent),
    0 0 0 4px color-mix(in srgb, var(--c, #4FA0EA) 14%, transparent);
  color: #fff;
  font-size: 18px;
  position: relative;
}
.ft-tile--a { opacity: 0.34; }
.ft-tile--b { opacity: 0.22; }
.ft-tile--c { opacity: 0.14; }
.ft-tile:hover {
  opacity: 0.78;
  z-index: 2;
}
.ft-tile:hover::after {
  content: attr(data-name);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.86);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--bv-font);
  pointer-events: none;
}
.ft-wall__core {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 4;
  width: 118px;
  height: 118px;
  margin: -59px 0 0 -59px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow:
    0 22px 50px rgba(17, 24, 39, 0.14),
    0 0 0 10px rgba(255, 255, 255, 0.55);
}
.ft-wall__core img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}
.ft-hero__copy {
  position: relative;
  z-index: 5;
  text-align: center;
  padding-top: 8px;
}
.ft-hero__copy h1 {
  margin: 0 auto;
  max-width: 14em;
  font-size: clamp(2.15rem, 4.4vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
}
.ft-hero__copy h1 em {
  font-style: normal;
  background: var(--bv-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ft-hero__copy p {
  margin: 16px auto 0;
  max-width: 34em;
  color: var(--bv-muted);
  font-size: 17px;
  line-height: 1.6;
}
.ft-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

@keyframes ft-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes ft-marquee-rev {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@media (max-width: 900px) {
  .ft-wall { height: min(48vh, 420px); }
  .ft-tile, .ft-tile { width: 48px; height: 48px; flex-basis: 48px; font-size: 15px; border-radius: 14px; }
  .ft-wall__core { width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 22px; }
  .ft-wall__core img { width: 56px; height: 56px; }
  .ft-wall__field { gap: 14px; }
}
@media (max-width: 640px) {
  .ft-wall { height: 340px; }
  .ft-wall__row:nth-child(1),
  .ft-wall__row:nth-child(6) { display: none; }
  .ft-tile { width: 42px; height: 42px; flex-basis: 42px; }
  .ft-hero { padding-bottom: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .ft-wall__track { animation: none; transform: none; }
}

/* Feature cards — forms/list header: brand square on the same row as the name */
.bv-tile__head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin: 0 0 10px;
}
.bv-tile__head h3 { margin: 0; }
.bv-tile__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--c, #4FA0EA) 0%, var(--c2, var(--c, #2E8DB6)) 100%);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow:
    0 4px 14px color-mix(in srgb, var(--c, #4FA0EA) 35%, transparent),
    0 0 0 4px color-mix(in srgb, var(--c, #4FA0EA) 14%, transparent);
}
.bv-tile__mark i { line-height: 1; }

/* Connected graph — copy left, visual right */
.ft-connect-section { padding-block: clamp(56px, 7vw, 80px); }
.ft-connect {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(280px, 1.15fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.ft-connect h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
}
.ft-connect > div > p.bv-reveal {
  margin: 12px 0 0;
  color: var(--bv-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 28em;
}
.ft-mesh {
  --r: 148px;
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  margin: 0 auto;
}
.ft-mesh__hub {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow:
    0 18px 40px rgba(17, 24, 39, 0.1),
    0 0 0 10px rgba(255, 255, 255, 0.7);
}
.ft-mesh__hub::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 36px;
  border: 1px solid color-mix(in srgb, #4FA0EA 22%, transparent);
  animation: ft-hub-ring 3.6s ease-out infinite;
  pointer-events: none;
}
.ft-mesh__hub img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}
.ft-mesh__hub b {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ft-mesh__spoke,
.ft-mesh__pulse {
  --ang: calc((360deg / var(--n)) * var(--i) - 180deg);
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: var(--r);
  margin-left: -1px;
  transform: rotate(var(--ang));
  transform-origin: 50% 0;
  pointer-events: none;
}
.ft-mesh__spoke {
  z-index: 1;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--c) 42%, transparent),
    color-mix(in srgb, var(--c) 8%, transparent) 72%,
    transparent
  );
  opacity: 0.55;
}
.ft-mesh__pulse {
  z-index: 2;
  background: none;
}
.ft-mesh__pulse::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52px;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent);
  animation: ft-travel 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.36s);
}
.ft-mesh__node {
  --ang: calc((360deg / var(--n)) * var(--i));
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 88px;
  margin: -36px 0 0 -44px;
  display: grid;
  justify-items: center;
  gap: 8px;
  transform: rotate(var(--ang)) translateY(calc(var(--r) * -1)) rotate(calc(var(--ang) * -1));
}
.ft-mesh__mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--c) 0%, var(--c2, var(--c)) 100%);
  box-shadow:
    0 4px 14px color-mix(in srgb, var(--c) 35%, transparent),
    0 0 0 4px color-mix(in srgb, var(--c) 14%, transparent);
  animation: ft-node-live calc(var(--n) * 1s) ease-in-out infinite;
  animation-delay: calc(var(--i) * 1s);
}
.ft-mesh__node b {
  font-size: 11px;
  font-weight: 600;
  color: var(--bv-muted);
  letter-spacing: -0.01em;
  text-align: center;
}
.ft-mesh__caption {
  position: relative;
  min-height: 2.8em;
  max-width: 28em;
  margin: 18px 0 0;
  text-align: left;
  color: var(--bv-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}
.ft-mesh__caption span {
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
  animation: ft-caption 16s ease-in-out infinite;
  animation-delay: calc(var(--i) * 4s);
}
.bv-tile-grid--solo { grid-template-columns: minmax(0, 360px); }

@keyframes ft-travel {
  0% { top: 48px; opacity: 0; transform: scale(0.6); }
  12% { opacity: 1; transform: scale(1); }
  82% { opacity: 1; }
  100% { top: calc(var(--r) - 8px); opacity: 0; transform: scale(0.7); }
}
@keyframes ft-hub-ring {
  0% { opacity: 0.7; transform: scale(0.92); }
  100% { opacity: 0; transform: scale(1.12); }
}
@keyframes ft-node-live {
  0%, 14%, 100% { transform: scale(1); }
  7% { transform: scale(1.08); }
}
@keyframes ft-caption {
  0%, 4% { opacity: 0; transform: translateY(6px); }
  8%, 20% { opacity: 1; transform: none; }
  24%, 100% { opacity: 0; transform: translateY(-4px); }
}

@media (max-width: 860px) {
  .ft-connect { grid-template-columns: 1fr; }
  .ft-mesh { --r: 136px; width: min(100%, 360px); }
  .ft-mesh__hub { width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 22px; }
  .ft-mesh__hub img { width: 32px; height: 32px; }
  .ft-mesh__hub b { font-size: 9px; }
  .ft-mesh__mark { width: 40px; height: 40px; border-radius: 10px; font-size: 0.95rem; }
  .ft-mesh__node { width: 72px; margin: -30px 0 0 -36px; }
}
@media (prefers-reduced-motion: reduce) {
  .ft-mesh__pulse,
  .ft-mesh__hub::after { display: none; }
  .ft-mesh__mark,
  .ft-mesh__caption span { animation: none; }
  .ft-mesh__caption span { position: static; opacity: 1; }
  .ft-mesh__caption span + span { display: none; }
}
