/* ==========================================================================
   Features Detail Page  (Figma 5469:4509 · mobile 5499:13784)
   ========================================================================== */

/* Hero background spans the header + hero (Figma "Content Container" 1440×550) */
.page-features {
  background-image: linear-gradient(-43.65deg, #fefefe 54.04%, #fef5f6 70.31%, #fefafa 89%);
  background-size: 100% 550px;
  background-repeat: no-repeat;
}

/* ---------- Shared section heading bits ---------- */
.sec-head { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.sec-head > p { font-size: 16px; line-height: 24px; color: var(--c-text); }
.sec-title { font-size: 48px; line-height: 56px; font-weight: 600; color: var(--c-heading); text-align: center; }
.sec-eyebrow {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 6px 16px; border-radius: 1000px;
  background: linear-gradient(180.14deg, rgba(243, 41, 41, 0.13) 24.27%, rgba(243, 41, 41, 0) 99.51%);
  font-size: 14px; line-height: 20px; font-weight: 600; color: var(--c-primary); white-space: nowrap;
}
.sec-eyebrow img { width: 16px; height: 24px; object-fit: cover; }
.sec-eyebrow span { text-box: trim-both cap alphabetic; }

/* ---------- Hero (5469:4514) ---------- */
.fhero__inner { display: flex; align-items: center; gap: 40px; min-height: 460px; }
.fhero__content { width: 645px; flex: none; display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.fhero__title { font-size: 64px; line-height: 72px; font-weight: 600; color: var(--c-heading); }
.fhero__lead { font-size: 18px; line-height: 26px; color: var(--c-text); }
.fhero__actions { display: flex; gap: 24px; }
.fhero__btn { width: 192px; padding-inline: 24px; }
.fhero__btn--ghost { width: 199px; border-color: var(--c-text); box-shadow: none; }
.fhero__media { position: relative; width: 595px; height: 460px; flex: none; margin-left: auto; }
.fhero__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fhero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 82.28%, rgba(255, 255, 255, 0.51) 88.22%, #fff 98.26%);
}

/* ---------- Feature overview grid (5469:4527) ---------- */
.fgrid-sec { background: #f9f9f9; padding-block: 100px; }
.fgrid-sec .container { display: flex; flex-direction: column; align-items: center; gap: 80px; }
.fgrid { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px 16px; width: 100%; }
.fgrid__card {
  position: relative;
  width: calc((100% - 80px) / 6);
  height: 116px;
  display: flex; flex-direction: column; align-items: center;
  padding: 56px 16px 16px;
  background: var(--c-white);
  border: 1px solid var(--c-stroke);
  border-radius: 24px;
}
.fgrid__icon {
  position: absolute; top: -33px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 100px;
  background: #ffe4eb; border: 4px solid #f9f9f9;
  filter: drop-shadow(0 20px 14px rgba(0, 0, 0, 0.08));
}
.fgrid__icon img { width: 32px; height: 32px; }
.fgrid__icon--lg img { width: 36px; height: 36px; }
.fgrid__title { font-size: 18px; line-height: 26px; font-weight: 500; color: var(--c-heading); text-align: center; }

/* ---------- Feature details with tabs (5469:4718) ---------- */
.fdetail-sec { background: var(--c-white); padding-block: 100px; }
.fdetail-sec .container { display: flex; flex-direction: column; align-items: center; gap: 48px; }
.fdetail-wrap { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.ftabs { display: flex; justify-content: center; gap: 16px; width: 100%; }
.ftabs__tab {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 18px; flex: none;
  border: 1px solid var(--c-stroke); border-radius: 100px;
  background: linear-gradient(180deg, #fff 0%, #f2f2f2 100%);
  font-size: 16px; line-height: 24px; font-weight: 600; color: var(--c-text); white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.ftabs__tab span { text-box: trim-both cap alphabetic; }
.ftabs__tab img { width: 24px; height: 24px; }
.ftabs__tab:hover { border-color: var(--c-primary); }
.ftabs__tab.is-active { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white); }
.ftabs__tab.is-active img { filter: brightness(0) invert(1); }
.ftabs__tab.is-active::after {
  content: ""; position: absolute; left: 50%; top: 47px; transform: translateX(-50%);
  width: 25px; height: 21px;
  background: url("/assets/icons/features-tab-pointer.svg") center / contain no-repeat;
}
.fdetail-panels { width: 100%; }
.fdetail {
  width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 40px;
  padding: 40px 60px;
  background: var(--c-white);
  border: 1px solid var(--c-stroke);
  border-radius: 24px;
}
.fdetail[hidden] { display: none; }
.fdetail__head { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.fdetail__title { font-size: 32px; line-height: 40px; font-weight: 600; color: var(--c-heading); }
.fdetail__head p { font-size: 16px; line-height: 24px; color: var(--c-text); }
.fdetail__cols { display: flex; justify-content: space-between; width: 100%; gap: 24px; }
.fdetail__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.fdetail__col--right { flex: 0 1 543px; }
.fdetail__item { display: flex; align-items: center; gap: 24px; text-box: normal; }
.fdetail__icon {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 64px; height: 64px; border-radius: 100px; background: #ffe4eb;
}
.fdetail__icon img { width: 32px; height: 32px; }
.fdetail__text { flex: 1 1 0; min-width: 0; min-height: 70px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.fdetail__item-title { font-size: 20px; line-height: 28px; font-weight: 500; color: var(--c-heading); }
.fdetail__text p { font-size: 16px; line-height: 24px; color: var(--c-text); }

/* ---------- Use cases (5469:4810) ---------- */
.fuse-sec { background: #f9f9f9; padding-block: 100px; }
.fuse-sec .container { display: flex; flex-direction: column; align-items: center; gap: 48px; }
.fuse { display: flex; align-items: flex-start; gap: 40px; width: 100%; }
.fuse__card {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 32px;
  padding: 24px;
  background: var(--c-white);
  border: 1px solid var(--c-stroke);
  border-radius: 24px;
}
.fuse__head {
  position: relative;
  display: flex; align-items: center; gap: 32px; padding-bottom: 16px;
}
.fuse__head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(243, 41, 41, 0) 0%, rgba(243, 41, 41, 0.45) 50%, rgba(243, 41, 41, 0) 100%);
}
.fuse__title { font-size: 22px; line-height: 30px; font-weight: 600; color: var(--c-heading); }
.fuse__list { display: flex; flex-direction: column; gap: 24px; }
.fuse__list li { display: flex; align-items: flex-start; gap: 12px; text-box: normal; }
.fuse__list img { width: 24px; height: 24px; flex: none; }
.fuse__list span { font-size: 18px; line-height: 26px; color: var(--c-text); text-box: trim-both cap alphabetic; padding-top: 6px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .fhero__content { width: auto; flex: 1 1 0; }
  .fhero__title { font-size: 52px; line-height: 60px; }
  .fhero__media { width: 46%; height: auto; aspect-ratio: 595 / 460; flex: none; }
  .fgrid__card { width: calc((100% - 48px) / 4); }
  .ftabs { flex-wrap: wrap; row-gap: 32px; }
  .fdetail { padding: 40px; }
  .fdetail__col--right { flex: 1 1 0; }
  .fuse { gap: 24px; }
  .fuse__list span { font-size: 16px; line-height: 24px; padding-top: 6px; }
}

@media (max-width: 1024px) {
  .page-features { background-size: 100% 900px; }
  .fhero__inner { flex-direction: column; align-items: center; text-align: center; padding-top: 40px; gap: 24px; }
  .fhero__content { align-items: center; }
  .fhero__actions { justify-content: center; }
  .fhero__media { width: 100%; max-width: 595px; margin: 0 auto; }
  .fgrid__card { width: calc((100% - 32px) / 3); }
  .fdetail__cols { flex-direction: column; gap: 24px; }
  .fuse { flex-direction: column; align-items: stretch; }
}

@media (max-width: 768px) {
  .page-features { background-size: 100% 644px; }
  .sec-head { gap: 24px; }
  .sec-title { font-size: 32px; line-height: 40px; }

  /* Hero (5499:13788) */
  .fhero__inner { padding-top: 40px; gap: 40px; min-height: 0; }
  .fhero__content { gap: 24px; width: 100%; }
  .fhero__title { font-size: 40px; line-height: 48px; }
  .fhero__lead { font-size: 18px; line-height: 26px; }
  .fhero__actions { gap: 24px; width: 100%; }
  .fhero__btn, .fhero__btn--ghost { flex: 1 1 0; width: auto; min-width: 0; padding-inline: 12px; }
  .fhero__media { aspect-ratio: 398 / 270; max-width: none; }

  /* Overview grid (5499:14778) */
  .fgrid-sec { padding-block: 40px 48px; }
  .fgrid-sec .container { gap: 72px; }
  .fgrid { gap: 48px 16px; }
  .fgrid__card { width: calc((100% - 16px) / 2); }

  /* Details (5499:14981) */
  .fdetail-sec { padding-block: 48px; }
  .fdetail-sec .container { gap: 32px; }
  .fdetail-wrap { gap: 32px; }
  .ftabs {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 28px; margin-bottom: -28px;
    scrollbar-width: none;
  }
  .ftabs::-webkit-scrollbar { display: none; }
  .fdetail { padding: 24px 16px; gap: 24px; }
  .fdetail__title { font-size: 22px; line-height: 30px; }
  .fdetail__cols, .fdetail__col { gap: 16px; }
  .fdetail__item { align-items: center; gap: 16px; }
  .fdetail__text { gap: 12px; min-height: 64px; }

  /* Use cases (5499:15226) */
  .fuse-sec { padding-block: 48px; }
  .fuse-sec .container { gap: 32px; }
  .fuse { gap: 24px; }
  .fuse__card { padding: 24px 16px; gap: 24px; }
  .fuse__list { gap: 20px; }
  .fuse__list span { font-size: 16px; line-height: 24px; padding-top: 5px; }
}

/* Advanced features — dark band so they stand out from the basic list */
.fadv { padding: 100px 0; background: radial-gradient(1200px 500px at 85% 0%, rgba(243, 41, 41, .28), transparent 60%), #0b1220; color: #fff; }
.fadv__head { margin-bottom: 48px; }
.fadv__head .sec-title, .fadv__head p { color: #fff; }
.fadv__head p { opacity: .8; }
.fadv__eyebrow { background: rgba(255, 255, 255, .08); color: #fff; }
.fadv__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.fadv__card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; border-radius: 24px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease; }
.fadv__card:hover { transform: translateY(-6px); border-color: var(--c-primary); background: rgba(243, 41, 41, .08); box-shadow: 0 24px 60px rgba(243, 41, 41, .25); }
.fadv__badge { position: absolute; top: 18px; right: 18px; font-size: 12px; line-height: 1; padding: 6px 10px; border-radius: 999px; background: var(--c-primary); color: #fff; }
.fadv__icon { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: rgba(243, 41, 41, .15); }
.fadv__icon img { width: 32px; height: 32px; }
.fadv__title { font-size: 20px; line-height: 1.4; font-weight: 600; color: #fff; }
.fadv__text { font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .72); }
@media (max-width: 1200px) { .fadv__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .fadv { padding: 64px 0; } .fadv__grid { grid-template-columns: 1fr; gap: 16px; } }
