/* ============================================================
   Xynox Forge — Workshop Section
   Scoped under .xfw-section — safe to drop into any page.
   ============================================================ */

.xfw-section {
  --xfw-bg: #07070c;
  --xfw-fg: #f5f6ff;
  --xfw-muted: #a4a8c3;
  --xfw-border: rgba(255, 255, 255, 0.08);
  --xfw-surface: rgba(255, 255, 255, 0.03);
  --xfw-surface-hover: rgba(255, 255, 255, 0.06);
  --xfw-cyan: #0ff5ff;
  --xfw-violet: #9c24ff;
  --xfw-magenta: #ff3ed5;
  --xfw-gradient: linear-gradient(135deg, #0ff5ff 0%, #9c24ff 55%, #ff3ed5 100%);
  --xfw-radius: 18px;
  --xfw-font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --xfw-font-body: "Manrope", "Inter", system-ui, -apple-system, sans-serif;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--xfw-bg);
  color: var(--xfw-fg);
  font-family: var(--xfw-font-body);
  padding: clamp(64px, 9vw, 120px) 20px;
  line-height: 1.55;
}

.xfw-section *,
.xfw-section *::before,
.xfw-section *::after { box-sizing: border-box; }

.xfw-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ---------- Background aurora ---------- */
.xfw-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.xfw-orb {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: xfw-float 18s ease-in-out infinite;
}
.xfw-orb-1 { background: var(--xfw-cyan);    top: -160px; left: -120px; }
.xfw-orb-2 { background: var(--xfw-violet);  top: 20%;    right: -160px; animation-delay: -6s; }
.xfw-orb-3 { background: var(--xfw-magenta); bottom: -200px; left: 30%; animation-delay: -12s; }
.xfw-grid {
  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: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}
@keyframes xfw-float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(3%, -3%) scale(1.08); }
}

/* ---------- Head ---------- */
.xfw-head { max-width: 780px; margin: 0 auto; text-align: center; }

.xfw-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--xfw-surface);
  border: 1px solid var(--xfw-border);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--xfw-muted);
}
.xfw-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--xfw-gradient);
  box-shadow: 0 0 12px var(--xfw-magenta);
}

.xfw-title {
  font-family: var(--xfw-font-display);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 54px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 20px 0 16px;
}
.xfw-gradient {
  background: var(--xfw-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.xfw-lede {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--xfw-muted);
  margin: 0 auto 28px;
  max-width: 640px;
}

.xfw-cta-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

.xfw-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: var(--xfw-font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.xfw-btn-primary {
  background: var(--xfw-gradient);
  color: #0a0a12;
  box-shadow: 0 10px 30px -10px rgba(156, 36, 255, 0.6),
              0 0 0 1px rgba(255,255,255,0.08) inset;
}
.xfw-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(156, 36, 255, 0.75); }
.xfw-btn-ghost {
  background: var(--xfw-surface);
  border-color: var(--xfw-border);
  color: var(--xfw-fg);
}
.xfw-btn-ghost:hover { background: var(--xfw-surface-hover); }
.xfw-btn-lg { padding: 14px 24px; font-size: 16px; }

.xfw-meta {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px;
  color: var(--xfw-muted); font-size: 14px;
}
.xfw-meta strong {
  color: var(--xfw-fg);
  font-family: var(--xfw-font-display);
  font-weight: 700;
  margin-right: 4px;
}
.xfw-meta li { position: relative; }
.xfw-meta li + li::before {
  content: ""; position: absolute; left: -14px; top: 50%;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--xfw-border);
  transform: translateY(-50%);
}

/* ---------- Feature grid ---------- */
.xfw-grid-cards {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}

.xfw-card {
  position: relative;
  display: block;
  padding: 22px 20px;
  border-radius: var(--xfw-radius);
  background: var(--xfw-surface);
  border: 1px solid var(--xfw-border);
  backdrop-filter: blur(10px);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.xfw-card:focus-visible {
  outline: 2px solid var(--xfw-cyan, #0ff5ff);
  outline-offset: 3px;
}
.xfw-card-cta {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--xfw-font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--xfw-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
}
.xfw-card:hover .xfw-card-cta,
.xfw-card:focus-visible .xfw-card-cta {
  opacity: 1;
  transform: translateY(0);
}
.xfw-card::before {
  content: "";
  position: absolute; inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--xfw-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.xfw-card:hover {
  transform: translateY(-4px);
  background: var(--xfw-surface-hover);
}
.xfw-card:hover::before { opacity: 1; }

.xfw-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15,245,255,0.15), rgba(255,62,213,0.15));
  border: 1px solid var(--xfw-border);
  font-family: var(--xfw-font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
}
.xfw-card h3 {
  font-family: var(--xfw-font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--xfw-fg);
}
.xfw-card p {
  margin: 0;
  color: var(--xfw-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- Footer CTA ---------- */
.xfw-footer-cta {
  margin-top: 56px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(15,245,255,0.08), rgba(156,36,255,0.10), rgba(255,62,213,0.08));
  border: 1px solid var(--xfw-border);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px;
}
.xfw-footer-cta h3 {
  font-family: var(--xfw-font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.xfw-footer-cta p { margin: 0; color: var(--xfw-muted); font-size: 15px; }

/* ---------- Reveal on scroll ---------- */
.xfw-section [data-xfw-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.xfw-section [data-xfw-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .xfw-footer-cta { text-align: center; justify-content: center; }
  .xfw-meta { gap: 8px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .xfw-orb { animation: none; }
  .xfw-section [data-xfw-reveal] { opacity: 1; transform: none; transition: none; }
}
