/*--------------------------------------------------------------
# FXora home page: everything below the hero
--------------------------------------------------------------*/
:root {
  --fx-bg: #06080c;
  --fx-bg-2: #0a0e14;
  --fx-surface: #0f141c;
  --fx-surface-2: #141b25;
  --fx-border: rgba(255, 255, 255, 0.08);
  --fx-border-strong: rgba(255, 255, 255, 0.14);
  --fx-text: #e7edf3;
  --fx-muted: #8d99a8;
  --fx-cyan: #03c4eb;
  --fx-cyan-soft: rgba(3, 196, 235, 0.12);
  --fx-violet: #8b5cf6;
  --fx-green: #22c55e;
  --fx-radius: 18px;
}

body {
  background: var(--fx-bg);
}

#main {
  background: var(--fx-bg);
  color: var(--fx-muted);
  font-variant-numeric: lining-nums;
}

#main h2,
#main h3,
#main h4,
#main h5,
#main h6 {
  font-family: "Raleway", sans-serif;
  color: var(--fx-text);
  text-transform: none;
}

#main p {
  margin: 0;
}

/* ---------- Section scaffolding ---------- */
.fx-section {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
}

.fx-section > .container {
  position: relative;
  z-index: 1;
}

.fx-section + .fx-section {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.fx-grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
  pointer-events: none;
}

.fx-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.fx-glow-cyan { background: var(--fx-cyan); }
.fx-glow-violet { background: var(--fx-violet); opacity: 0.22; }

.fx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fx-cyan);
  margin-bottom: 16px;
}

.fx-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

#main .fx-heading {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  text-wrap: balance;
}

.fx-heading .accent {
  background: linear-gradient(90deg, var(--fx-cyan) 0%, #7dd3fc 55%, var(--fx-violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#main .fx-lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--fx-muted);
  max-width: 640px;
}

.fx-section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}

.fx-section-head .fx-eyebrow::after {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

#main .fx-section-head .fx-lead {
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.fx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.fx-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.fx-btn:hover {
  transform: translateY(-2px);
}

.fx-btn-primary {
  background: var(--fx-cyan);
  color: #03141a;
  box-shadow: 0 12px 30px rgba(3, 196, 235, 0.28);
}

.fx-btn-primary:hover,
.fx-btn-primary:focus {
  color: #03141a;
  background: #2dd4f5;
  box-shadow: 0 16px 40px rgba(3, 196, 235, 0.4);
}

.fx-btn-ghost {
  color: var(--fx-text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--fx-border-strong);
}

.fx-btn-ghost:hover,
.fx-btn-ghost:focus {
  color: var(--fx-text);
  border-color: rgba(3, 196, 235, 0.6);
  background: rgba(3, 196, 235, 0.08);
}

/* ---------- Shared window chrome ---------- */
.fx-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: none;
}

.fx-dot-r { background: #ff5f57; }
.fx-dot-y { background: #febc2e; }
.fx-dot-g { background: #28c840; }

/* ---------- Intro ---------- */
#intro {
  background: radial-gradient(ellipse at top, #0c1420 0%, var(--fx-bg) 60%);
}

.fx-code-wrap {
  position: relative;
  padding: 24px 12px;
}

.fx-code {
  background: #0a0f17;
  border: 1px solid var(--fx-border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(3, 196, 235, 0.06), 0 0 80px rgba(3, 196, 235, 0.08);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s ease;
}

.fx-code-wrap:hover .fx-code {
  transform: perspective(1400px) rotateY(0) rotateX(0);
}

.fx-code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: #0e141e;
  border-bottom: 1px solid var(--fx-border);
}

.fx-code-title {
  margin-left: 10px;
  font-size: 12.5px;
  color: var(--fx-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.fx-code pre {
  margin: 0;
  padding: 22px 24px 26px;
  color: #c9d4e0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.75;
  white-space: pre;
  overflow-x: auto;
  background: transparent;
  border: 0;
}

.c-com { color: #5f6f82; font-style: italic; }
.c-kw { color: #c084fc; }
.c-fn { color: #38bdf8; }
.c-str { color: #86efac; }
.c-num { color: #fbbf24; }
.c-var { color: #f9a8d4; }

.fx-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px 11px 12px;
  border-radius: 14px;
  background: rgba(15, 20, 28, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--fx-border-strong);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  color: var(--fx-text);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  animation: fx-float 6s ease-in-out infinite;
}

.fx-float i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 17px;
}

.fx-float small {
  display: block;
  font-weight: 500;
  font-size: 12px;
  color: var(--fx-muted);
}

.fx-float-1 { top: 0; right: -6px; }
.fx-float-2 { bottom: 0; left: -10px; animation-delay: -3s; }

@keyframes fx-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.fx-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 90px;
  background: var(--fx-border);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius);
  overflow: hidden;
}

.fx-stat {
  padding: 28px 26px;
  background: rgba(8, 11, 16, 0.96);
}

.fx-stat strong {
  display: block;
  font-variant-numeric: lining-nums;
  font-family: "Raleway", sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--fx-text);
  margin-bottom: 4px;
}

.fx-stat span {
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Work (bento) ---------- */
#work {
  background: var(--fx-bg-2);
}

.fx-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.fx-span-2 {
  grid-column: span 2;
}

.fx-card {
  position: relative;
  height: 100%;
  padding: 30px;
  border-radius: var(--fx-radius);
  border: 1px solid var(--fx-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.fx-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at 0 0, rgba(3, 196, 235, 0.08), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.fx-card:hover {
  transform: translateY(-4px);
  border-color: rgba(3, 196, 235, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.fx-card:hover::after {
  opacity: 1;
}

#main .fx-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

#main .fx-card p {
  line-height: 1.7;
  font-size: 15px;
}

.fx-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 14px;
  font-size: 22px;
  color: var(--fx-cyan);
  background: var(--fx-cyan-soft);
  border: 1px solid rgba(3, 196, 235, 0.25);
}

.fx-card-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  height: 100%;
}

.fx-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.fx-pills li {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fx-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--fx-border);
}

/* Architecture diagram */
.fx-arch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 44px;
  padding: 12px 6px;
}

.fx-arch::before,
.fx-arch::after {
  content: "";
  position: absolute;
  z-index: 0;
}

.fx-arch::before {
  left: 22%;
  right: 22%;
  top: 50%;
  border-top: 1px dashed rgba(3, 196, 235, 0.45);
}

.fx-arch::after {
  top: 22%;
  bottom: 22%;
  left: 50%;
  border-left: 1px dashed rgba(3, 196, 235, 0.45);
}

.fx-arch-node {
  position: relative;
  z-index: 1;
  padding: 16px 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--fx-text);
  background: var(--fx-surface-2);
  border: 1px solid var(--fx-border-strong);
  border-radius: 14px;
}

.fx-arch-node i {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
  color: var(--fx-cyan);
}

.fx-arch-core {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #0f2a33 0%, #0a1118 70%);
  border: 1px solid rgba(3, 196, 235, 0.55);
  box-shadow: 0 0 0 8px rgba(3, 196, 235, 0.06), 0 0 40px rgba(3, 196, 235, 0.35);
}

.fx-arch-core img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Performance chart */
.fx-chart {
  margin: 0;
  padding: 18px 18px 14px;
  border-radius: 14px;
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
}

.fx-chart svg {
  display: block;
  width: 100%;
  height: 150px;
}

.fx-chart figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
}

.fx-chart-before { color: #f59e0b; }
.fx-chart-after { color: var(--fx-cyan); }

.fx-chart-tag {
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--fx-text);
  background: rgba(3, 196, 235, 0.12);
  border: 1px solid rgba(3, 196, 235, 0.3);
}

/* ---------- Scripts ---------- */
#scripts {
  background: radial-gradient(ellipse at 80% 20%, #150f24 0%, var(--fx-bg) 55%);
}

.fx-feature-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.fx-feature-list div {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.55;
}

.fx-feature-list i {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 16px;
  color: var(--fx-cyan);
  background: var(--fx-cyan-soft);
}

.fx-feature-list strong {
  display: block;
  color: var(--fx-text);
}

.fx-rewards {
  position: relative;
  padding: 30px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(20, 27, 37, 0.95), rgba(10, 14, 20, 0.95));
  border: 1px solid var(--fx-border-strong);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 90px rgba(139, 92, 246, 0.12);
}

.fx-rewards-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

#main .fx-rewards h3 {
  font-size: 26px;
  font-weight: 800;
  margin: 8px 0 0;
}

.fx-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fx-cyan);
  background: var(--fx-cyan-soft);
}

.fx-points {
  flex: none;
  padding: 9px 14px;
  border-radius: 12px;
  font-weight: 800;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.fx-rewards-level {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--fx-border);
}

.fx-ring {
  flex: none;
  width: 116px;
  height: 116px;
  filter: drop-shadow(0 0 18px rgba(3, 196, 235, 0.25));
}

.fx-xp {
  flex: 1;
  min-width: 0;
}

.fx-xp-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.fx-xp-row strong {
  color: var(--fx-text);
}

.fx-xp-bar {
  height: 10px;
  margin: 10px 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.fx-xp-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fx-cyan), var(--fx-violet));
}

.fx-xp-meta {
  font-size: 13px;
}

.fx-xp-meta i {
  color: var(--fx-cyan);
  margin-right: 4px;
}

.fx-shop {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.fx-shop-item {
  padding: 18px 12px;
  text-align: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--fx-border);
}

.fx-shop-item i {
  display: block;
  font-size: 26px;
  color: var(--fx-cyan);
  margin-bottom: 8px;
}

.fx-shop-item strong {
  display: block;
  font-size: 14px;
  color: var(--fx-text);
}

.fx-shop-item span {
  font-size: 12px;
  color: #4ade80;
}

.fx-shop-item.is-locked {
  opacity: 0.55;
}

.fx-shop-item.is-locked i,
.fx-shop-item.is-locked span {
  color: var(--fx-muted);
}

.fx-referral {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  border: 1px dashed rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.07);
}

.fx-referral code {
  color: var(--fx-text);
  font-size: 14px;
  letter-spacing: 0.08em;
  background: none;
}

.fx-bonus {
  font-weight: 700;
  color: #c4b5fd;
}

/* ---------- How it works ---------- */
#process {
  background: var(--fx-bg-2);
}

.fx-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fx-steps li {
  position: relative;
  display: flex;
  gap: 18px;
  padding-bottom: 28px;
}

.fx-steps li:last-child {
  padding-bottom: 0;
}

.fx-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 46px;
  bottom: 4px;
  border-left: 1px dashed rgba(3, 196, 235, 0.35);
}

.fx-step-num {
  flex: none;
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  color: var(--fx-cyan);
  background: var(--fx-cyan-soft);
  border: 1px solid rgba(3, 196, 235, 0.4);
}

#main .fx-steps h5 {
  font-size: 17px;
  font-weight: 700;
  margin: 8px 0 6px;
}

#main .fx-steps p {
  font-size: 14.5px;
  line-height: 1.65;
}

.fx-browser {
  border-radius: 18px;
  overflow: hidden;
  background: #0b1018;
  border: 1px solid var(--fx-border-strong);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 90px rgba(3, 196, 235, 0.1);
}

.fx-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #0e141e;
  border-bottom: 1px solid var(--fx-border);
}

.fx-url {
  flex: 1;
  max-width: 320px;
  margin: 0 auto;
  padding: 5px 14px;
  border-radius: 8px;
  text-align: center;
  font-size: 12.5px;
  color: var(--fx-muted);
  background: rgba(255, 255, 255, 0.05);
}

.fx-url i {
  color: #4ade80;
  margin-right: 4px;
  font-size: 11px;
}

.fx-app {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: linear-gradient(180deg, #f5f7fa, #eef2f6);
  color: #334155;
}

.fx-app-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 14px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0d0d0d 0%, #16232e 100%);
}

.fx-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.fx-app-balance strong {
  display: block;
  margin: 4px 0;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.fx-sub {
  font-size: 13px;
  color: #94a3b8;
}

.fx-app-btn {
  flex: none;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: #0299b8;
}

.fx-app-live {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.fx-pulse {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  animation: fx-pulse 1.6s infinite;
}

@keyframes fx-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.fx-app-live-text {
  flex: 1;
  min-width: 0;
}

.fx-app-live-text strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-app-live-text small {
  font-size: 12.5px;
  color: #64748b;
}

.fx-app-clock {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.fx-app-table {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.fx-app-row {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 0.8fr;
  gap: 10px;
  align-items: center;
  padding: 11px 18px;
  font-size: 13.5px;
  border-top: 1px solid #eef2f6;
}

.fx-app-row span:nth-child(2),
.fx-app-row span:nth-child(3) {
  font-variant-numeric: tabular-nums;
}

.fx-app-head {
  border-top: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  background: #f8fafc;
}

.fx-badge {
  justify-self: end;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

.fx-badge-green { color: #15803d; background: #dcfce7; }
.fx-badge-blue { color: #1d4ed8; background: #dbeafe; }

/* ---------- Testimonials ---------- */
#main #testimonials {
  padding: 110px 0;
  background: var(--fx-bg);
}

.fx-quote {
  position: relative;
  height: 100%;
  margin: 0;
  padding: 36px;
  display: flex;
  flex-direction: column;
  border-radius: var(--fx-radius);
  border: 1px solid var(--fx-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}

.fx-quote-mark {
  position: absolute;
  top: 12px;
  right: 24px;
  font-size: 72px;
  line-height: 1;
  color: rgba(3, 196, 235, 0.18);
}

.fx-quote blockquote {
  flex: 1;
  margin: 0 0 26px;
  font-size: 16.5px;
  line-height: 1.8;
  color: #cfd8e3;
}

.fx-quote figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--fx-border);
}

.fx-quote figcaption img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(3, 196, 235, 0.5);
}

.fx-quote figcaption strong {
  display: block;
  color: var(--fx-text);
}

.fx-quote figcaption span {
  font-size: 14px;
}

/* ---------- Call to action ---------- */
#cta {
  padding: 40px 0 120px;
  background: var(--fx-bg);
}

.fx-cta {
  position: relative;
  overflow: hidden;
  padding: 72px 32px;
  text-align: center;
  border-radius: 28px;
  border: 1px solid rgba(3, 196, 235, 0.3);
  background: linear-gradient(135deg, rgba(3, 196, 235, 0.16) 0%, rgba(10, 14, 20, 0.9) 45%, rgba(139, 92, 246, 0.18) 100%);
}

.fx-cta > *:not(.fx-cta-glow) {
  position: relative;
  z-index: 1;
}

.fx-cta-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  width: 700px;
  height: 400px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--fx-cyan);
  filter: blur(140px);
  opacity: 0.18;
}

#main .fx-cta .fx-lead {
  margin: 0 auto;
}

/* ---------- Footer ---------- */
#footer.fx-footer {
  padding: 70px 0 30px;
  color: var(--fx-muted);
  background: #040609;
  border-top: 1px solid var(--fx-border);
}

.fx-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: "Raleway", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--fx-text);
}

.fx-footer-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.fx-footer p {
  max-width: 380px;
  line-height: 1.7;
}

.fx-footer h6 {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fx-text);
}

.fx-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fx-footer li + li {
  margin-top: 10px;
}

.fx-footer a:not(.fx-footer-brand) {
  color: var(--fx-muted);
}

.fx-footer a:not(.fx-footer-brand):hover {
  color: var(--fx-cyan);
}

.fx-footer-bottom {
  margin-top: 50px;
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
  border-top: 1px solid var(--fx-border);
}

/* ---------- Card titles & billing labels ---------- */
#main .fx-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.fx-billing {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: "Open Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fx-cyan);
  background: var(--fx-cyan-soft);
  border: 1px solid rgba(3, 196, 235, 0.25);
}

.fx-billing-fixed {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
}

#main .fx-lead a {
  color: var(--fx-cyan);
}

#main .fx-steps h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 8px 0 6px;
}

/* ---------- Difficult bugs ---------- */
#debugging {
  background: radial-gradient(ellipse at 90% 10%, #0b1b24 0%, var(--fx-bg) 55%);
}

.fx-bug-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.fx-bug-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #c3cdd8;
}

.fx-bug-list i {
  flex: none;
  margin-top: 2px;
  color: var(--fx-cyan);
}

.fx-console pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.c-err { color: #f87171; }
.c-warn { color: #fbbf24; }
.c-ok { color: #4ade80; }
.c-dim { color: #5f6f82; }

/* ---------- FAQ ---------- */
#faq {
  background: var(--fx-bg-2);
}

.fx-faq {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.fx-faq details {
  border-radius: 14px;
  border: 1px solid var(--fx-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  transition: border-color 0.2s;
}

.fx-faq details[open] {
  border-color: rgba(3, 196, 235, 0.35);
}

.fx-faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 22px;
  font-family: "Raleway", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--fx-text);
}

.fx-faq summary::-webkit-details-marker {
  display: none;
}

.fx-faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--fx-cyan);
  transition: transform 0.2s;
}

.fx-faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.fx-faq summary:focus-visible {
  outline: 2px solid var(--fx-cyan);
  outline-offset: 2px;
  border-radius: 14px;
}

#main .fx-faq details p {
  padding: 0 22px 20px;
  line-height: 1.75;
  color: #b3bfcc;
}

.fx-faq a {
  color: var(--fx-cyan);
}

.fx-faq code,
.fx-cta-secondary code {
  color: var(--fx-text);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 6px;
}

/* ---------- CTA & footer extras ---------- */
#main .fx-cta-secondary {
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--fx-muted);
}

.fx-cta-secondary a {
  color: var(--fx-cyan);
}

#footer .fx-footer-title {
  margin-bottom: 14px;
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fx-text);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  /* Bootstrap's g-5 gutter is wider than the container padding; keep columns inside the screen. */
  #main .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2.5rem; }
  .fx-section { padding: 80px 0; }
  .fx-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 60px; }
  .fx-code { transform: none; }
}

@media (max-width: 767px) {
  .fx-bug-list { grid-template-columns: 1fr; }
  .fx-bento { grid-template-columns: 1fr; }
  .fx-span-2 { grid-column: auto; }
  .fx-card-split { grid-template-columns: 1fr; }
  .fx-rewards-level { flex-direction: column; text-align: center; }
  .fx-xp { width: 100%; }
  .fx-app-balance { flex-direction: column; align-items: flex-start; }
  .fx-app-row { grid-template-columns: 1.4fr 0.8fr 0.9fr; }
  .fx-app-row span:nth-child(4) { display: none; }
}

@media (max-width: 575px) {
  .fx-stats { grid-template-columns: 1fr; }
  .fx-code pre { font-size: 12px; padding: 18px; }
  .fx-float { font-size: 12.5px; }
  .fx-float-1 { right: 4px; }
  .fx-float-2 { left: 4px; }
  .fx-rewards { padding: 20px; }
  .fx-shop { grid-template-columns: 1fr 1fr; }
  .fx-shop-item.is-locked { grid-column: span 2; }
  .fx-cta { padding: 52px 20px; }
  .fx-arch { gap: 48px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-float, .fx-pulse { animation: none; }
  .fx-code, .fx-card, .fx-btn { transition: none; }
}
