/* ============================================================
   XFX.SYSTEMS — marketing / landing components
   (hero, live pill, section shells, product grid, FAQ, CTA)
   ============================================================ */

/* ── Hero ────────────────────────────────────────────────── */
.xfx-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(92vh, 900px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 96px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(80% 70% at 18% 12%, rgba(255, 255, 255, .16), transparent 62%),
    radial-gradient(70% 60% at 82% 26%, rgba(190, 190, 190, .13), transparent 64%),
    radial-gradient(90% 80% at 50% 108%, rgba(3, 3, 3, .96), transparent 70%),
    linear-gradient(180deg, #1a1a1a 0%, #101010 55%, #080808 100%);
}
/* Organic "marbled" blotches — closest CSS analogue to the reference art */
.xfx-hero::before {
  content: ''; position: absolute; inset: -20%; z-index: -1;
  background:
    radial-gradient(closest-side at 20% 30%, rgba(255, 255, 255, .16), transparent 70%),
    radial-gradient(closest-side at 65% 20%, rgba(200, 200, 200, .13), transparent 72%),
    radial-gradient(closest-side at 40% 70%, rgba(150, 150, 150, .12), transparent 70%),
    radial-gradient(closest-side at 82% 66%, rgba(255, 255, 255, .10), transparent 72%),
    radial-gradient(closest-side at 10% 82%, rgba(120, 120, 120, .12), transparent 70%),
    radial-gradient(closest-side at 55% 45%, rgba(230, 230, 230, .12), transparent 66%),
    radial-gradient(closest-side at 92% 12%, rgba(255, 255, 255, .09), transparent 70%),
    radial-gradient(closest-side at 30% 12%, rgba(90, 90, 90, .14), transparent 72%);
  filter: blur(46px) saturate(60%);
  mix-blend-mode: screen;
  opacity: .9;
  animation: xfx-marble 26s ease-in-out infinite alternate;
}
.xfx-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .05), transparent 45%),
    linear-gradient(180deg, transparent 45%, rgba(4, 4, 4, .93) 100%);
}
@keyframes xfx-marble {
  0%   { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(-1.5%, 1.5%, 0); }
}
@media (prefers-reduced-motion: reduce) { .xfx-hero::before { animation: none; } }
.xfx-hero-inner { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; }

/* ── Live hero stats (online / in-game / users) ──────────── */
.xfx-hero-stats {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 10px;
  margin-top: 34px;
}
.xfx-stat {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 17px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--xfx-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3);
}
.xfx-stat b {
  font-size: 13.5px; font-weight: 700;
  letter-spacing: 0; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.xfx-stat i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  animation: xfx-beat 2.2s ease-out infinite;
}
/* in-game beats a touch faster, so the row reads as live */
.xfx-stat:nth-child(2) i { animation-duration: 1.6s; }
/* a zero count should not advertise itself as live */
.xfx-stat.is-zero i { background: var(--text-4); animation: none; }
@keyframes xfx-beat {
  0%   { box-shadow: 0 0 0 0 rgba(80, 200, 120, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(80, 200, 120, 0); }
  100% { box-shadow: 0 0 0 0 rgba(80, 200, 120, 0); }
}
@media (max-width: 560px) {
  .xfx-hero-stats { gap: 8px; margin-top: 26px; }
  .xfx-stat { padding: 8px 13px; font-size: 10px; letter-spacing: .1em; gap: 7px; }
  .xfx-stat b { font-size: 12.5px; }
}
.xfx-hero-kicker {
  display: block;
  font-family: var(--xfx-mono);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .46em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}
.xfx-hero-word {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(56px, 11vw, 132px);
  line-height: .92; letter-spacing: -.045em;
  color: #fff;
  text-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  margin-bottom: 24px;
}
.xfx-hero-sub {
  max-width: 620px; margin: 0 auto 36px;
  font-size: 17px; line-height: 1.7;
  color: var(--text-2);
}
.xfx-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.xfx-hero-actions .btn-light {
  background: #fff; color: #0a0a0a; border-color: #fff;
  box-shadow: 0 18px 44px -22px rgba(0, 0, 0, .9);
}
.xfx-hero-actions .btn-light:hover { background: #f0f0f0; border-color: #f0f0f0; }
.xfx-hero-actions .btn-onhero {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  backdrop-filter: blur(8px);
}
.xfx-hero-actions .btn-onhero:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .5); }
.xfx-scroll {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--xfx-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: .42em; text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.xfx-scroll span { animation: xfx-bob 2.4s ease-in-out infinite; }
@keyframes xfx-bob { 50% { transform: translateY(5px); opacity: .55; } }

/* ── Chrome XFX logo backdrop (assets/xfxchrome.jpg) ─────────
   A large, dimmed, screen-blended watermark. Drop it in any
   position:relative container as the first child and put the content
   above it (z-index 2 or higher). Used by the homepage hero, the Web
   Menu launcher, the Web Radar connect screen and the auth pages. */
.xfx-chrome-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.xfx-chrome-bg::before {
  content: '';
  position: absolute; left: 50%; top: 50%;
  width: min(1180px, 94vw);
  aspect-ratio: 1240 / 826;
  transform: translate(-50%, -50%);
  background: url('/assets/xfxchrome.jpg') center / contain no-repeat;
  opacity: .46;
  filter: contrast(140%) brightness(125%);
  mix-blend-mode: screen;
}
/* Soften the edges so the wordmark stays readable. The centre stays open
   so the chrome mark behind the title is actually visible. */
.xfx-chrome-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 50% 46%, rgba(6, 6, 7, 0) 0%, rgba(6, 6, 7, .28) 58%, rgba(5, 5, 5, .82) 100%);
}
.xfx-chrome-bg.is-strong::before { opacity: .58; }
@media (max-width: 720px) {
  .xfx-chrome-bg::before { width: 128vw; opacity: .34; }
}

/* ── Section shells ──────────────────────────────────────── */
.xfx-section { position: relative; padding: 110px 24px; }
.xfx-section-inner { max-width: 1200px; margin: 0 auto; }
.xfx-section.grid-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 72% 62% at 50% 40%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 40%, #000 25%, transparent 78%);
  pointer-events: none;
}
.xfx-section.grid-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 45% at 50% 74%, rgba(255, 255, 255, .13), transparent 70%);
  pointer-events: none;
}
.xfx-section > * { position: relative; z-index: 1; }
.xfx-head { text-align: center; max-width: 780px; margin: 0 auto 58px; }
.xfx-head h2 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 46px);
  letter-spacing: -.035em;
  line-height: 1.06;
  margin: 14px 0 16px;
}
.xfx-head p { color: var(--text-2); font-size: 16px; line-height: 1.75; }
.xfx-head p .und { color: var(--accent-2); }

/* ── Auth pages ──────────────────────────────────────────── */
.auth-card, .xfx-panel {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}
.auth-title { font-family: var(--font-body); font-weight: 800; letter-spacing: -.03em; text-transform: none; }
.auth-sub, .auth-hint { color: var(--text-3); }
.auth-link { color: var(--accent-2); }
.auth-link:hover { color: #fff; }
.auth-logo { border-radius: 14px; border: 1px solid var(--line-2); }

/* ── Product grid (reference #2) ─────────────────────────── */
.xfx-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(314px, 1fr)); gap: 22px; }
.xfx-product {
  position: relative;
  display: flex; flex-direction: column;
  overflow: hidden; min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #0e0e0e, #0a0a0a);
  color: inherit; text-decoration: none;
  transition: transform .34s cubic-bezier(.16, 1, .3, 1), border-color .3s, box-shadow .34s;
}
.xfx-product:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, .45);
  box-shadow: 0 34px 76px -46px rgba(255, 255, 255, .9);
}
.xfx-product-media { position: relative; flex: 1 1 auto; min-height: 166px; background: #0c0c0f; overflow: hidden; }
.xfx-product-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}
.xfx-product:hover .xfx-product-media img { transform: scale(1.055); }
.xfx-product-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 6, 8, .10) 35%, rgba(8, 8, 10, .94) 100%);
}
.xfx-product-media .xfx-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 800;
  font-size: 30px; letter-spacing: -.03em; color: var(--text-4);
}
.xfx-status {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(8, 4, 6, .72);
  border: 1px solid rgba(255, 255, 255, .11);
  backdrop-filter: blur(8px);
  font-family: var(--xfx-mono);
  font-size: 9.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #e8e8e8;
}
.xfx-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.xfx-status.xfx-updating i { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.xfx-status.xfx-dev i { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.xfx-life {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 5px 11px; border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #e6e6e6);
  font-family: var(--xfx-mono);
  font-size: 9.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #0a0a0a;
}
.xfx-product-foot {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; padding: 0 20px 18px;
}
.xfx-product-cat {
  font-family: var(--xfx-mono);
  font-size: 9.5px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 5px;
}
.xfx-product-name { font-size: 16.5px; font-weight: 700; letter-spacing: -.015em; }
.xfx-product-price { font-size: 12.5px; color: var(--text-2); white-space: nowrap; text-align: right; }
.xfx-product-price strong { color: #fff; font-weight: 700; }
.xfx-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.xfx-chips span {
  font-family: var(--xfx-mono);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text-3);
  background: rgba(255, 255, 255, .02);
}
.xfx-empty {
  grid-column: 1 / -1;
  text-align: center; padding: 60px 24px;
  border: 1px dashed var(--line-2); border-radius: 18px;
  color: var(--text-3); font-size: 14px;
}
.xfx-filter { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.xfx-filter button {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .025);
  font-family: var(--xfx-mono);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3);
  transition: all .16s;
}
.xfx-filter button:hover { color: var(--text); border-color: var(--line-4); }
.xfx-filter button.active { color: #0a0a0a; background: linear-gradient(180deg, #ffffff, #e6e6e6); border-color: #ffffff; }

/* ── Feature grid ────────────────────────────────────────── */
.xfx-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.xfx-feature {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  transition: border-color .24s, transform .24s;
}
.xfx-feature:hover { border-color: rgba(255, 255, 255, .4); transform: translateY(-3px); }
.xfx-feature-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 255, 255, .3);
  color: var(--accent-2);
  margin-bottom: 16px;
}
.xfx-feature h3 { font-size: 16px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 8px; }
.xfx-feature p { font-size: 13.5px; color: var(--text-3); line-height: 1.7; }

/* ── FAQ (reference #3: content left, accordion right) ───── */
.xfx-faq { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 54px; align-items: start; }
@media (max-width: 940px) { .xfx-faq { grid-template-columns: 1fr; gap: 32px; } }
.xfx-faq h2 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -.035em;
  line-height: 1.08;
  margin: 14px 0 16px;
}
.xfx-faq-lead { color: var(--text-2); font-size: 15px; line-height: 1.75; max-width: 46ch; }
.xfx-discord-card {
  margin-top: 36px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--card-2), var(--card));
}
.xfx-discord-card .row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.xfx-discord-card .ico {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-2);
  color: var(--text-2);
}
.xfx-discord-card h3 { font-size: 14.5px; font-weight: 700; }
.xfx-discord-card p { font-size: 12.5px; color: var(--text-3); margin-top: 3px; line-height: 1.6; }
.xfx-faq-list {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--card-2), var(--card));
}
.faq-item {
  border-bottom: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
  border-left: 0; border-right: 0; border-top: 0;
}
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px;
  font-size: 14.5px; font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: background .16s, color .16s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(255, 255, 255, .025); }
.faq-item summary::after {
  content: '';
  flex: 0 0 auto;
  width: 9px; height: 9px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s, border-color .2s;
}
.faq-item[open] summary { background: rgba(255, 255, 255, .02); }
.faq-item[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); border-color: var(--accent); }
.faq-item p {
  padding: 0 22px 22px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-2);
  max-width: 68ch;
}

/* ── Legacy FAQ blocks on other pages ────────────────────── */
.faq-item[open] { border-color: var(--line); }

@media (max-width: 700px) {
  .xfx-section { padding: 76px 18px; }
  .xfx-head { margin-bottom: 40px; }
  .xfx-hero { padding: 96px 20px 84px; min-height: auto; }
}