.features {
  max-width: 72rem;
  margin-inline: auto;
  padding: clamp(4rem, 9vw, 7.5rem) clamp(1.25rem, 4vw, 3rem);
  font-family: system-ui, sans-serif;
  color: #17181a;
}

/* ---------- Header ---------- */

.features__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.features__eyebrow {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #f0efed;
  font-size: 0.8rem;
  color: rgba(23, 24, 26, 0.7);
}

.features__title {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.features__subtitle {
  font-size: 0.95rem;
  color: rgba(23, 24, 26, 0.6);
}

/* ---------- Grid ---------- */

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .features__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Card ---------- */

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.75rem;
  border-radius: 1rem;
  background: #f7f6f4;
}

.feature-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 16rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.feature-card__title {
  font-size: 0.95rem;
  font-weight: 500;
}


.feature-card__desc {
  max-width: 26rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(23, 24, 26, 0.6);
}

/* ---------- Visual: signal tracking (card 1) ---------- */

/* Rows loop upward forever (js/signal-loop.js). The .signal window
   stays fixed and clips; the track inside it is what slides, so rows
   exit through the top edge and enter through the bottom edge. */
.signal {
  width: min(100%, 22rem);
  overflow: hidden;
}

.signal__track {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.signal__row {
  flex-shrink: 0;
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  background: #ffffff;
  font-size: 0.82rem;
  color: rgba(23, 24, 26, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.45;
  transform: scale(0.96);
  transition: opacity 0.55s ease, transform 0.55s ease, color 0.55s ease;
}

.signal__row.is-near {
  opacity: 0.7;
  transform: scale(0.98);
}


.signal__row.is-center {
  opacity: 1;
  transform: none;
  color: #17181a;
}

/* ---------- Visual: benchmarks (card 2) ---------- */

/* Live bar chart: market bars in gray, "you" in near-black.
   Heights morph between datasets on a loop (js/bench-loop.js). */
.bench {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: min(100%, 20rem);
}

.bench__chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 10rem;
}

.bench__bar {
  width: 9%;
  height: 40%;
  border-radius: 0.35rem;
  background: #ffffff;
  transition: height 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.bench__bar--you {
  background: #17181a;
}

.bench__legend {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.bench__key {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: rgba(23, 24, 26, 0.55);
}

.bench__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #ffffff;
}

.bench__dot--you {
  background: #17181a;
}

/* ---------- Visual: integrations (card 3) ---------- */

.integrations {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: min(100%, 22rem);
}

.integrations__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  background: #ffffff;
  opacity: 0.6;
  transform: scale(0.97);
}

/* Middle row leads, like the center item in the signal list */
.integrations__row:nth-child(2) {
  opacity: 1;
  transform: scale(1.04);
}

.integrations__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  background: #f7f6f4;
}

.integrations__logo img {
  width: 1.05rem;
  height: 1.05rem;
}

.integrations__meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.integrations__name {
  font-size: 0.85rem;
}

.integrations__sub {
  font-size: 0.72rem;
  color: rgba(23, 24, 26, 0.45);
}

.integrations__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 5.6rem;
  height: 1.55rem;
  border: none;
  border-radius: 0.45rem;
  background: #f0efed;
  font-family: inherit;
  font-size: 0.75rem;
  color: rgba(23, 24, 26, 0.7);
  cursor: pointer;
}

.integrations__btn:disabled {
  cursor: default;
}

.integrations__btn-label,
.integrations__spinner {
  grid-area: 1 / 1;
}

.integrations__btn-label--idle {
  opacity: 1;
}

.integrations__btn-label--done {
  opacity: 0;
}

.integrations__spinner {
  width: 0.75rem;
  height: 0.75rem;
  opacity: 0;
  border: 2px solid rgba(23, 24, 26, 0.2);
  border-top-color: #17181a;
  border-radius: 50%;
}

.integrations__btn.is-connecting .integrations__btn-label--idle {
  opacity: 0;
}

.integrations__btn.is-connecting .integrations__spinner {
  opacity: 1;
  animation: integrations-spin 0.7s linear infinite;
}

.integrations__btn.is-connected {
  background: #17181a;
  color: #ffffff;
}

.integrations__btn.is-connected .integrations__btn-label--idle,
.integrations__btn.is-connected .integrations__spinner {
  opacity: 0;
}

.integrations__btn.is-connected .integrations__btn-label--done {
  opacity: 1;
}

/* Decorative Connect labels on Slack / Linear — not clickable */
.integrations__btn--static {
  cursor: default;
  pointer-events: none;
}

@keyframes integrations-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mini chat: Voxa reply bubble + typing input (js/ask-loop.js) */
.ask {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  width: min(100%, 22rem);
}

.ask__reply {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: #ffffff;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ask__reply.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ask__reply-mark {
  flex-shrink: 0;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.2rem;
}

.ask__reply-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #17181a;
}

.ask__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.6rem;
  padding: 0.45rem 0.45rem 0.45rem 1rem;
  border-radius: 0.65rem;
  background: #ffffff;
}

.ask__typed {
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
  color: #17181a;
  white-space: nowrap;
  overflow: hidden;
}

.ask__text:empty::before {
  content: "Ask Voxa anything…";
  color: rgba(23, 24, 26, 0.35);
}

.ask__caret {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 1px;
  vertical-align: -0.1em;
  background: #17181a;
  opacity: 0;
}

.ask__caret.is-on {
  opacity: 1;
  animation: ask-blink 1s steps(1) infinite;
}

.ask__send {
  --px: 2px;
  position: relative;
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.45rem;
  background: #17181a;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.ask__send.is-pulse {
  transform: scale(0.88);
}

.ask__chevron {
  position: absolute;
  top: calc(50% - 3.5 * var(--px));
  left: calc(50% - 2 * var(--px));
  width: var(--px);
  height: var(--px);
  color: #ffffff;
  background: currentColor;
  box-shadow:
    var(--px) var(--px),
    calc(2 * var(--px)) calc(2 * var(--px)),
    calc(3 * var(--px)) calc(3 * var(--px)),
    calc(2 * var(--px)) calc(4 * var(--px)),
    var(--px) calc(5 * var(--px)),
    0 calc(6 * var(--px));
}

@keyframes ask-blink {
  50% {
    opacity: 0;
  }
}

/* ---------- Scroll reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.features__grid .feature-card:nth-child(2) {
  transition-delay: 0.08s;
}

.features__grid .feature-card:nth-child(3) {
  transition-delay: 0.12s;
}

.features__grid .feature-card:nth-child(4) {
  transition-delay: 0.16s;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
