/* InvictusBoost — invictus-home
   Homepage sections ported from the site stylesheet (public/assets/css/site.css).
   Everything is scoped under .ib / .ib-home (variables come from .ib in invictus-sections.css)
   or under #products for the product grid wrappers. */

/* ------------------------------------------------------------------ base ---
   The site runs without Bootstrap's reboot: body line-height 1.55 and UA default
   heading / paragraph metrics. Restore those inside the homepage wrappers; :where()
   keeps the specificity at one class so every ported ".ib .x" rule still wins. */
.ib-home {
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.ib-home :where(h1, h2, h3, h4, h5, h6) {
  font-family: inherit;
  font-weight: bold;
  line-height: inherit;
  letter-spacing: normal;
  color: inherit;
}
.ib-home :where(h1) { font-size: 2em; margin: 0.67em 0; }
.ib-home :where(h2) { font-size: 1.5em; margin: 0.83em 0; }
.ib-home :where(h3) { font-size: 1.17em; margin: 1em 0; }
.ib-home :where(h4) { font-size: 1em; margin: 1.33em 0; }
.ib-home :where(p) { margin: 1em 0; }
.ib-home :where(a) { color: inherit; }
.ib-home :where(a, button, summary, .tab) { cursor: pointer; }
.ib-home :where(button) { font: inherit; color: inherit; }
.ib-home :where(img) { max-width: 100%; display: block; }
.ib-home :where(svg) { vertical-align: baseline; }
.ib-home .btn { line-height: 1.55; }
.ib-home :where(section) { padding: 3.5em 0; position: relative; z-index: 1; }
.ib-home :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* site: html { scroll-padding-top: calc(var(--header-h) + 12px) } — keeps anchors clear of the sticky header */
/* anchor offset comes from html scroll-padding-top in invictus-navbar.css */

.ib .ib-row { display: flex; align-items: center; gap: 10px; }
.ib .row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ib .empty-state { text-align: center; padding: 2.875em 1.25em; color: var(--muted); }

/* ------------------------------------------------------------- keyframes --- */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}
@keyframes heroAurora {
  from { transform: translate3d(calc(var(--mx, 0) * 12px), calc(var(--my, 0) * 10px), 0) scale(1); }
  to { transform: translate3d(calc(var(--mx, 0) * 12px - 18px), calc(var(--my, 0) * 10px + 14px), 0) scale(1.06); }
}
@keyframes heroOrbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.06); }
}
@keyframes heroMarkIn {
  from { opacity: 0; transform: translate3d(24px, 18px, 0) rotate(-14deg) scale(.92); }
  to { opacity: .22; transform: translate3d(calc(var(--mx, 0) * -18px), calc(var(--my, 0) * -14px), 0) rotate(-8deg) scale(1); }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes slashIn {
  from { opacity: 0; transform: skewY(-1.6deg) scaleX(.35); transform-origin: left center; }
  to { opacity: .95; transform: skewY(-1.6deg) scaleX(1); transform-origin: left center; }
}
@keyframes ibIconBoost {
  0% { transform: translateY(0) rotate(0) scale(1); }
  40% { transform: translateY(-3px) rotate(-12deg) scale(1.1); }
  100% { transform: translateY(-2px) rotate(-10deg) scale(1.06); }
}
@keyframes ibIconBoost2 {
  0%   { transform: translateY(0) rotate(0) scale(1); }
  35%  { transform: translateY(-4px) rotate(-14deg) scale(1.12); }
  70%  { transform: translateY(-1px) rotate(-8deg) scale(1.05); }
  100% { transform: translateY(-2px) rotate(-10deg) scale(1.06); }
}
@keyframes starPulse {
  0%, 100% { opacity: var(--so, 0.5); transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.6); }
}
@keyframes statPulse {
  0% { transform: translateY(10px) scale(.92); filter: blur(2px); opacity: .35; }
  55% { transform: translateY(-2px) scale(1.04); filter: blur(0); opacity: 1; }
  100% { transform: none; filter: none; opacity: 1; }
}
@keyframes statSettle {
  from { transform: scale(1.03); }
  to { transform: none; }
}

/* ---------------------------------------------------------- stat counters --- */
.ib .stat-count {
  font-variant-numeric: tabular-nums;
  will-change: transform, filter;
}
.ib .stat-count.is-counting { animation: statPulse 1.6s cubic-bezier(.2, .8, .2, 1) both; }
.ib .stat-count.is-counted { animation: statSettle .45s cubic-bezier(.2, .8, .2, 1) both; }

/* stats strip with one or two figures switched off in the hero settings */
.ib .trust-pill.trust-pill--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(480px, 100%); }
.ib .trust-pill.trust-pill--n1 { grid-template-columns: 1fr; width: min(260px, 100%); }
@media (max-width: 640px) {
  .ib .trust-pill.trust-pill--n2,
  .ib .trust-pill.trust-pill--n1 { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------- scroll reveal --- */
.ib-home .reveal,
#products .ib-product-cell.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: none;
  transition:
    opacity .45s cubic-bezier(.2, .8, .2, 1),
    transform .45s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.ib-home .reveal.is-in,
#products .ib-product-cell.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* -------------------------------------------------------- products section --- */
.ib-products-section {
  padding: 1.75em 0 3.5em;
  position: relative;
  z-index: 1;
  font-size: 16px;
}
.ib-products-section .ib .section-head { margin: 0 0 26px; }

.ib .tabs { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin: 26px 0 34px; }
.ib .tab {
  --btn-x: 50%;
  --btn-y: 50%;
  --btn-glow: rgba(var(--accent-rgb), 0.42);
  --btn-glow-soft: rgba(255, 255, 255, 0.22);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 0.625em 1.125em; border-radius: 999px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line-strong);
  color: var(--text-dim); font-family: inherit; font-size: 0.875rem; font-weight: 700; line-height: 1.55;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .18s ease;
}
.ib .tab[hidden] { display: none; }
.ib .tab::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .22s ease;
  background: radial-gradient(
    140px circle at var(--btn-x) var(--btn-y),
    var(--btn-glow),
    transparent 58%
  );
}
.ib .tab:hover::after,
.ib .tab.active::after { opacity: 1; }
.ib .tab > * { position: relative; z-index: 1; }
.ib .tab:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.07);
}
.ib .tab svg { width: 15px; height: 15px; flex: none; }
.ib .tab:active { transform: scale(.97); }
/* dark theme: active tab is the light "ink" pill (site: [data-theme="dark"] .tab.active) */
.ib.ib .tab.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  box-shadow: 0 10px 24px -14px rgba(11, 11, 12, 0.9);
  transform: translateY(-1px);
}

/* Grid wrappers — the card inside each cell belongs to snippets/product-card.njk. */
.ib-wrap {
  width: min(1180px, calc(100% - clamp(20px, 4.5vw, 40px)));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
#products .ib-product-grid {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  align-items: stretch;
  margin: 0;
}
#products .ib-product-grid > .ib-product-cell {
  display: grid;
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0;
  margin: 0;
}
#products .ib-product-grid > .ib-product-cell[hidden] { display: none; }
#products .ib-grid-empty {
  text-align: center;
  padding: 2.875em 1.25em;
  color: #6d7f99;
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
#products .ib-grid-empty[hidden] { display: none; }

/* ------------------------------------------------------- premium features --- */
.ib .pay-logo__mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.ib .pay-logo__mark--usdt { background: #26a17b; }
.ib .pay-logo__mark--ltc { background: #345d9d; }
.ib .pay-logo__mark--eth { background: #627eea; }
.ib .pay-logo__mark--sol { background: linear-gradient(135deg, #9945ff, #14f195); }

/* ---------------------------------------------------------------- reviews --- */
.ib .review-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ib .review-card {
  padding: 1.25em; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--panel); box-shadow: var(--shadow);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.ib .review-card:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: color-mix(in srgb, var(--accent) 3%, var(--panel));
}
/* One-row review strip — auto RTL scroll, pause on hover, drag to pan */
.ib .review-marquee {
  position: relative;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.ib .review-marquee__viewport {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.ib .review-marquee__viewport.is-dragging { cursor: grabbing; }
.ib .review-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.ib .review-marquee__set {
  display: flex;
  gap: 16px;
  padding-right: 1em;
}
.ib .review-marquee__item {
  flex: 0 0 auto;
  width: min(300px, 78vw);
}
.ib .review-marquee .review-card {
  height: 100%;
  min-height: 168px;
}
.ib .stars { display: inline-flex; gap: 2px; color: var(--star); }
.ib .stars svg { width: 15px; height: 15px; }
.ib .review-card__top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.ib .review-card__body { margin: 12px 0 0; font-size: 14px; color: var(--text-dim); overflow-wrap: anywhere; }
.ib .review-meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.ib .review-meta__name { font-size: 13.5px; font-weight: 700; }
.ib .review-meta__sub { font-size: 12px; color: var(--muted); }
.ib .review-meta__date { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.ib .review-reply b { color: var(--accent-2); margin-right: 6px; }
.ib .avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--ink); font-weight: 800; font-size: 0.8125rem; color: #fff;
}
.ib .avatar svg { width: 16px; height: 16px; }
.ib .verified-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .5px;
  color: var(--pos); background: rgba(12, 122, 78, .08); border: 1px solid rgba(12, 122, 78, .28);
  padding: 0.1875em 0.5em; border-radius: 999px; text-transform: uppercase;
}
.ib .review-reply {
  margin-top: 12px; padding: 0.6875em 0.8125em; border-radius: var(--radius-sm); font-size: 0.8125rem;
  background: var(--panel-3); border-left: 3px solid var(--accent); color: var(--text-dim);
  overflow-wrap: anywhere;
}
.ib .reviews-head { margin-bottom: 22px; align-items: flex-end; }
.ib .reviews-head .display-heading { margin: 0 0 6px; font-size: clamp(26px, 3.4vw, 34px); }
.ib .rating-summary { color: var(--text-dim); font-size: 14px; }
.ib .rating-summary b { color: var(--text); font-size: inherit; letter-spacing: inherit; }
.ib .rating-summary .stat-count { font: inherit; letter-spacing: inherit; }
.ib .rating-summary b.stat-count { font-weight: bolder; }

/* -------------------------------------------------------------------- faq --- */
.ib .faq { display: grid; gap: 10px; max-width: 780px; margin-inline: auto; }
.ib .faq details {
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--panel); overflow: hidden;
  transition: border-color .2s ease, background-color .2s ease, transform .25s ease;
}
.ib .faq summary {
  padding: 1em 1.125em; cursor: pointer; font-weight: 700; font-size: 14.5px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.ib .faq summary::-webkit-details-marker { display: none; }
.ib .faq summary::after { content: '+'; color: var(--accent); font-size: 1.1875rem; font-weight: 800; }
.ib .faq details[open] {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--accent) 3%, var(--panel));
}
.ib .faq details[open] summary::after { content: '\2212'; }
.ib .faq p { margin: 0; padding: 0 1.125em 1em; color: var(--text-dim); font-size: 0.875rem; }
.ib .faq p a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
/* reveal must not replace the accordion's own transition list for long */
.ib-home .faq details.reveal.is-in { transition: border-color .2s ease, background-color .2s ease, opacity .45s cubic-bezier(.2, .8, .2, 1), transform .45s cubic-bezier(.2, .8, .2, 1); }

/* --------------------------------------------------------------- articles --- */
.ib .articles-section { padding-top: 3em; }
.ib .articles-head { align-items: flex-end; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.ib .articles-head .display-heading { margin: 0; }
.ib .articles-sub { margin: 6px 0 0; color: var(--text-dim); font-size: 14.5px; max-width: 480px; }
.ib .articles-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ib .article-teaser {
  display: flex; flex-direction: column; gap: 8px;
  padding: 1.375em;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  text-decoration: none; color: inherit;
  transition: border-color .2s ease, transform .25s ease, background .2s ease;
}
.ib .article-teaser:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: color-mix(in srgb, var(--accent) 4%, var(--panel));
  transform: translateY(-2px);
}
.ib .article-teaser h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ib .article-teaser p { margin: 0; color: var(--text-dim); font-size: 0.875rem; line-height: 1.55; flex: 1; }
.ib .article-teaser__meta { font-size: 12.5px; color: #7f93ae; font-weight: 600; }
.ib .blog-card__cat {
  display: inline-flex; align-items: center;
  padding: 0.1875em 0.5em; border-radius: 6px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-2); font-size: 0.6875rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
}

/* ---------------------------------------------------------------- cta bar --- */
.ib .home-cta-bar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  padding: 1.75em 1.875em;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background:
    radial-gradient(ellipse 70% 120% at 100% 0%, rgba(var(--accent-rgb), 0.18), transparent 55%),
    var(--panel);
}

/* ------------------------------------------------------------- responsive --- */
@media (max-width: 1100px) {
  #products .ib-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  #products .ib-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ib .articles-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  #products .ib-product-grid { gap: 14px; }
}
@media (max-width: 640px) {
  .ib .home-cta-bar__inner { padding: 1.375em; }
}
@media (max-width: 480px) {
  #products .ib-product-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ib .tab::after { display: none; }
  .ib .stat-count.is-counting, .ib .stat-count.is-counted { animation: none !important; }
  .ib-home .reveal,
  #products .ib-product-cell.reveal { opacity: 1; transform: none; filter: none; transition: none !important; }
  .ib .review-card { animation: none !important; transition: none !important; }
}

/* Premium features bento: see invictus-features.css (scoped under .ib #features). */

/* Reviewer avatar showing the buyer's initial (set by invictus-extras.js). */
.ib .avatar.is-initial,
.ibp-avatar.is-initial {
  font-family: 'Outfit', 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

/* Lenis smooth scroll (same rules as the site's lenis.css). */
html.lenis,
html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}