/* Landing, lower half — part 2: demos carousel, FAQ, CTA banner, footer.
   Imported by landing-bottom.css. */

/* ── Demos: testimonial-style cards in a snap carousel ─────────────────── */
.demo { padding-top: var(--section); }
.demo-viewport { --side: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.demo-track {
  list-style: none; margin: 0; padding: 0 var(--side); display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--side);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.demo-track::-webkit-scrollbar { display: none; }
.demo-track:focus-visible { outline-offset: -2px; }
.demo-card {
  flex: 0 0 min(530px, calc(100vw - 2 * var(--gutter) - 56px)); scroll-snap-align: start;
  display: flex; flex-direction: column; min-height: 460px; padding: 32px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--text);
  transition: border-color 0.2s ease;
}
.demo-card:hover { border-color: var(--line-strong); }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.demo-logo { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.demo-logo-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--text); color: var(--text); }
.demo-logo-ic svg { width: 24px; height: 24px; }
.demo-quote { color: #a3a9c3; }
.demo-text { flex: 1; margin-top: 40px; font-size: 20px; line-height: 1.4; letter-spacing: -0.01em; }
.demo-foot { margin-top: 40px; display: flex; align-items: center; gap: 16px; }
.demo-avatar {
  width: 80px; height: 80px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(140deg, var(--accent-soft), var(--bg-soft) 70%); color: var(--accent-text);
}
.demo-avatar svg { width: 32px; height: 32px; }
.demo-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.demo-who b { font-size: 20px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.demo-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); }
.demo-link svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.demo-link:hover { color: var(--text); }
.demo-link:hover svg { transform: translateX(3px); }
.demo-nav { margin-top: 24px; display: flex; justify-content: center; gap: 8px; }
.demo-arrow {
  width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--bg-soft); color: var(--text); cursor: pointer; transition: background 0.2s ease, opacity 0.2s ease;
}
.demo-arrow:hover:not([disabled]) { background: var(--surface-3); }
.demo-arrow[disabled] { opacity: 0.45; cursor: default; }

/* ── FAQ: minimal accordion ───────────────────────────────────────────── */
.faq { padding-top: var(--section); }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 64px; align-items: start; }
.faq-head { position: sticky; top: 110px; }
.faq-head .bt-sub { margin: 16px 0 32px; max-width: 420px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
/* Open/close is animated in bottom-behavior.js (initFaq) so it is smooth in every
   browser, Safari included; .is-open flips at the start of the animation. */
.faq-a { overflow: hidden; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0;
  list-style: none; cursor: pointer; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; color: var(--text);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover .faq-plus { background: var(--surface-3); }
.faq-plus {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--bg-soft); color: var(--text); transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease;
}
.faq-item.is-open .faq-plus,
.faq-list:not(.is-js) .faq-item[open] .faq-plus { transform: rotate(45deg); background: var(--invert-bg); color: var(--invert-text); }
.faq-a p { padding: 0 64px 28px 0; font-size: 18px; line-height: 1.45; color: var(--text-2); }

/* ── CTA banner: violet night, automation graph with travelling pulses ── */
.cta { padding: var(--section) 0; }
.cta-box {
  position: relative; overflow: hidden; isolation: isolate; min-height: 498px; padding: 48px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  border-radius: var(--radius-lg); color: #fff;
  background:
    radial-gradient(40% 70% at 100% 100%, rgba(255, 154, 82, 0.35), transparent 70%),
    radial-gradient(55% 80% at 62% 50%, rgba(91, 70, 240, 0.45), transparent 70%),
    linear-gradient(120deg, #07061a 0%, #110c3a 50%, #1c1258 100%);
}
.cta-box::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.5px) 0 0 / 22px 22px;
  -webkit-mask: radial-gradient(60% 90% at 65% 50%, #000, transparent 75%);
  mask: radial-gradient(60% 90% at 65% 50%, #000, transparent 75%);
}
.cta-art { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 62%; padding: 32px 40px 32px 0; box-sizing: border-box; }
.cta-flow { display: block; width: 100%; height: 100%; overflow: visible; }
.cta-orbit { fill: none; stroke: rgba(177, 155, 255, 0.16); stroke-dasharray: 2 6; }
.cta-orbit--2 { stroke: rgba(177, 155, 255, 0.09); }
.cta-wire { fill: none; stroke: rgba(177, 155, 255, 0.35); stroke-width: 1.4; stroke-dasharray: 4 5; animation: ctaDash 1.6s linear infinite; }
@keyframes ctaDash { to { stroke-dashoffset: -18; } }
.cta-pulse { fill: #fff; filter: drop-shadow(0 0 6px #b19bff); }
.cta-ring { fill: none; stroke: #8b7bff; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ctaRing 2.8s ease-out infinite; }
@keyframes ctaRing { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.7); opacity: 0; } }
.cta-hub-ic { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.cta-chip { fill: rgba(22, 16, 64, 0.82); stroke: rgba(177, 155, 255, 0.4); }
.cta-chip-dot--in { fill: #8b7bff; }
.cta-chip-dot--out { fill: #ff9a52; }
.cta-chip-t { fill: #fff; font: 500 15px/1 var(--font, inherit); letter-spacing: -0.01em; }
.cta-chip-g { animation: ctaFloat 6s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes ctaFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .cta-pulse { display: none; }
  .cta-wire, .cta-ring, .cta-chip-g { animation: none; }
}
.cta-copy { max-width: 660px; }
.cta-title { font-size: 64px; line-height: 1; letter-spacing: -1.5px; color: #fff; }
.cta-sub { margin-top: 20px; max-width: 470px; font-size: 18px; line-height: 1.4; color: rgba(255, 255, 255, 0.78); }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-soon { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, 0.6); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.ftr { background: var(--ink); color: #fff; padding: 110px 0 44px; }
.ftr-grid { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr; gap: 40px; }
.ftr-h { padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.16); font-size: 20px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; color: #fff; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.ftr a { font-size: 14px; font-weight: 500; line-height: 1.35; color: #fff; transition: opacity 0.2s ease; }
.ftr a:hover { opacity: 0.7; }
.ftr-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.ftr-sub { display: block; margin-bottom: 12px; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.5); }
.ftr-contact .ftr-sub { margin-bottom: 4px; }
/* "Message us" buttons land here: a short glow shows where the channels are. */
.ftr-contact { scroll-margin-top: 40vh; border-radius: 12px; outline: none; }
.ftr-contact.is-flash { animation: ftrFlash 1.8s ease; }
@keyframes ftrFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 123, 255, 0); background: transparent; }
  20%, 60% { box-shadow: 0 0 0 12px rgba(139, 123, 255, 0.18); background: rgba(139, 123, 255, 0.18); }
}
.ftr-tg { display: flex; flex-direction: column; gap: 6px; }
.ftr-soon { display: block; font-size: 14px; font-weight: 500; }
.ftr-note { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, 0.55); }
.ftr-arrow { display: inline-flex; align-items: center; gap: 6px; }
.ftr-arrow svg { width: 14px; height: 14px; }
.ftr-mid {
  margin-top: 80px; padding: 40px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16); border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.ftr-tagline { max-width: 560px; font-size: 20px; line-height: 1.35; color: rgba(255, 255, 255, 0.8); }
.ftr a.btn { font-size: 18px; }
.ftr a.btn:hover { opacity: 1; }
.ftr-bottom { padding-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.ftr .ftr-logo { color: #fff; font-size: 24px; font-weight: 600; }
.ftr-rights { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.ftr .ftr-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ftr-legal a { font-size: 13px; font-weight: 600; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1440px) {
  .cta-copy { max-width: 46%; }
  .cta-title { font-size: clamp(44px, 4.2vw, 64px); }
  .cta-art { width: 56%; }
}
@media (max-width: 1024px) {
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .faq-head { position: static; }
  .cta-title { font-size: 48px; }
  /* Tablet and below: the graph moves under the copy instead of behind it. */
  .cta-box { min-height: 0; gap: 0; }
  .cta-copy { max-width: 660px; }
  .cta-art { position: relative; z-index: 0; inset: auto; width: 100%; max-width: 680px; height: auto; padding: 0; margin: 16px auto; order: 1; }
  .cta-flow { height: auto; }
  .cta-actions { order: 2; }
  .ftr ul a { display: inline-block; padding: 6px 0; }
  .ftr ul { gap: 4px; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .ftr-col--wide { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .demo-card { min-height: 380px; padding: 24px; }
  .demo-text { margin-top: 28px; font-size: 18px; }
  .demo-avatar { width: 64px; height: 64px; }
  .demo-who b { font-size: 18px; }
  .faq-q { font-size: 18px; padding: 22px 0; }
  .faq-a p { padding-right: 0; font-size: 16px; }
  .faq-head .btn { width: 100%; }
  .cta-box { min-height: 0; padding: 32px 24px 24px; gap: 0; }
  .cta-title { font-size: 34px; letter-spacing: -0.5px; }
  .cta-sub { font-size: 16px; }
  .cta-art { width: auto; margin: 8px -16px; }
  .cta-btns { flex-direction: column; }
  .cta-btns .btn { width: 100%; }
  .ftr { padding-top: 56px; }
  .ftr-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ftr-col:not(.ftr-col--wide) > ul:not(.ftr-contact) { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .ftr-split { gap: 16px; }
  .ftr-mid { margin-top: 48px; flex-direction: column; align-items: stretch; }
  .ftr-mid .btn { width: 100%; }
  .ftr-bottom { flex-direction: column; align-items: flex-start; }
}
