/* footer.css — site footer (connect CTA + link card), fx- namespaced + self-contained. */
.fx-footer{
  --ink:#1d1d1f; --ink-2:#6e6e73; --bg:#ffffff; --accent:#0071e3;
  --ease:cubic-bezier(0.16,1,0.3,1);
}
.fx-footer, .fx-footer *, .fx-footer *::before, .fx-footer *::after{ box-sizing:border-box; }
.fx-footer :where(ul,ol,li,p,h1,h2,h3,h4,h5,h6,figure,address){ margin:0; padding:0; list-style:none; font-style:normal; }
.fx-footer :where(a){ text-decoration:none; color:inherit; }

/* ═══════════ FOOTER · "connect" ═══════════
   White frame (the page background) holding two rounded cards:
   · .fx-footer-cta   — white photo card: headline + store badges left,
                     the hands photo (footerbg.webp) right
   · .fx-footer-links — deep-blue glass: four link columns + brand card,
                     then the legal / social row.
   Two slow-drifting glows sit behind the cards so the glass has something
   to blur. ═══════════ */
.fx-footer {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(18px, 2.4vw, 28px) clamp(14px, 2.4vw, 28px) clamp(22px, 3vw, 36px);
  color: rgba(255, 255, 255, .8);
  background: var(--bg, #fff);
  --glass: rgba(255, 255, 255, .08);
  --glass-line: rgba(255, 255, 255, .16);
  --glass-hi: rgba(255, 255, 255, .14);
}
.fx-footer-frame {
  width: min(1280px, 100%); margin: 0 auto;
  display: grid; gap: clamp(14px, 1.8vw, 22px);
}

/* drifting glows behind the glass */
.fx-footer-glow {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  filter: blur(70px); opacity: .55;
  animation: footer-drift 16s ease-in-out infinite alternate;
}
.fx-footer-glow--a { width: 46vw; height: 46vw; left: -10vw; bottom: -8vw; background: radial-gradient(circle, #bcd6ff 0%, rgba(188, 214, 255, 0) 68%); }
.fx-footer-glow--b { width: 38vw; height: 38vw; right: -8vw; top: 30%; background: radial-gradient(circle, #d6ecff 0%, rgba(214, 236, 255, 0) 68%); animation-delay: -8s; animation-duration: 20s; }
@keyframes footer-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6vw, -5vw) scale(1.12); }
}

/* ════════ CTA card · the photo ════════
   footerbg.webp covers the whole card; a white veil (::before) dims it — heavy
   behind the copy on the left, fading out over the hands on the right. */
.fx-footer-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center;
  min-height: clamp(340px, 38vw, 540px);
  border-radius: clamp(22px, 2.4vw, 30px);
  background: #f7f8fc url("../images/homepage-images/footerbg.webp") center 58% / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 30px 70px rgba(10, 35, 90, .22), inset 0 1px 0 #fff;
}
/* the dim */
.fx-footer-cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(247, 248, 252, .9) 0%, rgba(247, 248, 252, .78) 32%, rgba(247, 248, 252, .34) 52%, rgba(247, 248, 252, .05) 70%, rgba(247, 248, 252, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, .28) 100%);
}

.fx-footer-cta-copy {
  position: relative; z-index: 2;
  padding: clamp(36px, 4.6vw, 64px) clamp(24px, 3vw, 48px) clamp(36px, 4.6vw, 64px) clamp(28px, 4vw, 64px);
}
.fx-footer-cta-title {
  display: grid;
  font-size: clamp(2.2rem, 4.3vw, 4rem); font-weight: 600; line-height: 1.02;
  letter-spacing: -.028em; color: var(--ink, #1d1d1f);
}
.fx-footer-cta-title .fx-l2 {
  font-weight: 400;
  background: linear-gradient(100deg, #1d4ed8 0%, #2f80ee 45%, #aacdf8 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.fx-footer-cta-sub {
  max-width: 34em; margin-top: clamp(14px, 1.6vw, 20px);
  font-size: clamp(.95rem, 1.1vw, 1.08rem); line-height: 1.55;
  color: var(--ink-2, #6e6e73);
}

/* store badges — blue pills, the site's primary-button language */
.fx-footer-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 2.6vw, 34px); }
.fx-footer-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 14px; border-radius: 14px;
  background: var(--accent, #0071e3); color: #fff;
  box-shadow: 0 8px 24px rgba(0, 113, 227, .3);
  transition: transform .35s var(--ease), box-shadow .35s ease, background .3s ease;
}
.fx-footer-badge:hover { transform: translateY(-3px); background: #0a7dff; box-shadow: 0 14px 32px rgba(0, 113, 227, .4); }
.fx-footer-badge:active { transform: scale(.97); }
.fx-footer-badge img { width: 24px; height: 24px; object-fit: contain; }
.fx-footer-badge img.fx-is-apple { filter: brightness(0) invert(1); }
.fx-footer-badge span { display: flex; flex-direction: column; line-height: 1.08; font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; color: #fff; }
.fx-footer-badge small { font-size: .62rem; font-weight: 500; letter-spacing: .02em; color: rgba(255, 255, 255, .82); }

/* the photo side — empty, just holds the column open */
.fx-footer-art { position: relative; z-index: 1; align-self: stretch; min-height: 300px; }

/* ════════ link card (glass) ════════ */
.fx-footer-links {
  position: relative; isolation: isolate;
  border-radius: clamp(22px, 2.4vw, 30px);
  background:
    radial-gradient(80% 60% at 100% 100%, rgba(90, 176, 255, .28) 0%, rgba(90, 176, 255, 0) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, 0) 40%),
    linear-gradient(168deg, #0e3f9f 0%, #0a2d78 55%, #06204f 100%);
  border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
  backdrop-filter: saturate(160%) blur(22px);
  box-shadow: 0 30px 70px rgba(10, 35, 90, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
  padding: clamp(30px, 3.6vw, 52px) clamp(22px, 3.4vw, 52px) clamp(18px, 2vw, 26px);
}
.fx-footer-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(240px, 1.35fr);
  gap: 36px clamp(20px, 2.6vw, 40px);
}
.fx-footer h4 {
  color: #fff; font-size: 1.02rem; font-weight: 600; letter-spacing: -.012em;
  margin-bottom: 16px;
}
.fx-footer-col a {
  position: relative; display: block; width: fit-content;
  font-size: .92rem; font-weight: 500; line-height: 1.35;
  color: rgba(255, 255, 255, .72); padding: 5px 0;
  transition: color .25s ease, transform .35s var(--ease);
}
.fx-footer-col a::after {
  content: ""; position: absolute; left: 0; bottom: 3px; height: 1px; width: 100%;
  background: #fff; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.fx-footer-col a:hover { color: #fff; transform: translateX(3px); }
.fx-footer-col a:hover::after { transform: scaleX(1); }
.fx-footer-col b { color: #fff; font-weight: 700; }
.fx-footer-col .fx-footer-all { margin-top: 6px; color: #9fd0ff; font-weight: 600; }
.fx-footer-col .fx-footer-all span { display: inline-block; transition: transform .35s var(--ease); }
.fx-footer-col .fx-footer-all:hover { color: #fff; }
.fx-footer-col .fx-footer-all:hover span { transform: translateX(4px); }

/* brand card — the small glass card on the right */
.fx-footer-brand {
  align-self: start;
  border-radius: 18px; padding: 18px 20px 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .07) 100%);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 16px 40px rgba(2, 16, 52, .3), inset 0 1px 0 rgba(255, 255, 255, .4);
  font-size: .86rem; line-height: 1.5; color: rgba(255, 255, 255, .78);
  transition: transform .45s var(--ease), box-shadow .45s ease, border-color .3s ease;
}
.fx-footer-brand:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .4); box-shadow: 0 24px 50px rgba(2, 16, 52, .38), inset 0 1px 0 rgba(255, 255, 255, .5); }
.fx-footer-brand-head { display: flex; align-items: center; gap: 12px; }
.fx-footer-brand-head > img {
  width: 40px; height: 40px; border-radius: 12px; object-fit: contain; padding: 6px;
  background: #fff; box-shadow: 0 6px 16px rgba(2, 16, 52, .3);
}
.fx-footer-brand-head div { display: grid; line-height: 1.2; }
.fx-footer-brand-head strong { color: #fff; font-size: .95rem; font-weight: 600; }
.fx-footer-brand-head span { font-size: .78rem; color: rgba(255, 255, 255, .6); }
.fx-footer-brand-x {
  margin-left: auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  transition: background .3s, border-color .3s, transform .3s;
}
.fx-footer-brand-x:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .5); transform: translateY(-2px); }
.fx-footer-brand-x img, .fx-footer-socials img { width: 14px; height: 14px; object-fit: contain; }
.fx-footer-brand p { margin: 14px 0 0; }
.fx-footer-brand address {
  font-style: normal; display: grid; gap: 4px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14);
}
.fx-footer-brand address a { color: #fff; font-weight: 500; width: fit-content; transition: color .25s ease; }
.fx-footer-brand address a:hover { color: #9fd0ff; }

/* legal / social row */
.fx-footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap;
  margin-top: clamp(28px, 3vw, 44px); padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .84rem; color: rgba(255, 255, 255, .72);
}
.fx-footer-legal { display: flex; align-items: center; gap: 8px 26px; flex-wrap: wrap; }
.fx-footer-legal p { margin: 0; display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.fx-footer-legal p img { width: 20px; height: 20px; object-fit: contain; border-radius: 6px; background: #fff; padding: 2px; }
.fx-footer-legal a { color: rgba(255, 255, 255, .72); transition: color .25s ease; }
.fx-footer-legal a:hover { color: #fff; }
.fx-footer-socials { display: flex; gap: 8px; }
.fx-footer-socials a {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  transition: background .3s, border-color .3s, transform .35s var(--ease);
}
.fx-footer-socials a:hover { background: rgba(255, 255, 255, .24); border-color: rgba(255, 255, 255, .55); transform: translateY(-3px); }

/* fine-print · centered last line */
.fx-footer-fineprint {
  margin: 16px 0 0; text-align: center;
  font-size: .74rem; letter-spacing: .01em; color: rgba(255, 255, 255, .5);
}
.fx-footer-fineprint a { color: rgba(255, 255, 255, .62); transition: color .25s ease; }
.fx-footer-fineprint a:hover { color: #fff; }

/* ════════ responsive ════════ */
@media (max-width: 1100px) {
  /* three columns: the two long lists span two rows, Resources + Integrations stack in the third,
     the brand card goes full width underneath */
  .fx-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
  .fx-footer-col:nth-child(1), .fx-footer-col:nth-child(2) { grid-row: 1 / 3; }
  .fx-footer-col:nth-child(3) { grid-column: 3; grid-row: 1; }
  .fx-footer-col:nth-child(4) { grid-column: 3; grid-row: 2; }
  .fx-footer-brand { grid-column: 1 / -1; grid-row: 3; max-width: 620px; }
}
@media (max-width: 860px) {
  .fx-footer-cta { grid-template-columns: 1fr; min-height: 0; }
  .fx-footer-cta-copy { padding: 40px 28px 8px; text-align: center; }
  .fx-footer-cta-sub { margin-inline: auto; }
  .fx-footer-badges { justify-content: center; }
  /* stacked: the photo sits as a full-width band along the bottom of the card, under the copy */
  .fx-footer-cta { background-size: 100% auto; background-position: center bottom; }
  .fx-footer-cta::before {
    background: linear-gradient(180deg, rgba(247, 248, 252, .5) 0%, rgba(247, 248, 252, .5) 40%, rgba(247, 248, 252, 0) 60%);
  }
  .fx-footer-art { min-height: 56vw; }
  .fx-footer-bottom { justify-content: center; text-align: center; }
  .fx-footer-legal { justify-content: center; }
}
@media (max-width: 680px) {
  .fx-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-footer-col:nth-child(1), .fx-footer-col:nth-child(2) { grid-row: auto; }
  .fx-footer-col:nth-child(3), .fx-footer-col:nth-child(4) { grid-column: auto; grid-row: auto; }
  .fx-footer-brand { grid-row: auto; max-width: none; }
}
@media (max-width: 560px) {
  .fx-footer { padding: 12px 10px 18px; }
  .fx-footer-frame { gap: 12px; }
  .fx-footer-cta, .fx-footer-links { border-radius: 20px; }
  .fx-footer-cta-copy { padding: 34px 20px 4px; }
  .fx-footer-cta-title { font-size: 2rem; }
  .fx-footer-cta-sub { font-size: .92rem; }
  .fx-footer-badges { gap: 10px; }
  .fx-footer-badge { padding: 8px 14px 8px 12px; }
  .fx-footer-badge span { font-size: .92rem; }
  .fx-footer-art { min-height: 58vw; }
  .fx-footer-links { padding: 28px 20px 16px; }
  .fx-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .fx-footer h4 { font-size: .95rem; margin-bottom: 12px; }
  .fx-footer-col a { font-size: .86rem; padding: 4px 0; }
  .fx-footer-brand { padding: 16px; }
  .fx-footer-legal { gap: 6px 18px; }
  .fx-footer-legal p { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-footer-glow { animation: none; }
}
