/* Xaflo — vibe layer v1.2: stronger section tints + clear color borders + minimal in-practice + compact providers */

/* ============================================================
   SECTION TINTED BACKGROUNDS (now clearly visible)
   ============================================================ */
.xaflo-section {
  position: relative;
  isolation: isolate;
  border-top: 1px solid transparent;
}
.xaflo-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 1;
  transition: none;
}

/* Each section gets a clear colored top border + tinted glow */
.xaflo-section#what-we-do {
  border-top-color: rgba(58,141,255,0.25);
}
.xaflo-section#what-we-do::before {
  background:
    radial-gradient(1200px 600px at 15% 20%, rgba(58,141,255,0.16), transparent 55%),
    radial-gradient(900px 500px at 85% 80%, rgba(0,217,255,0.08), transparent 60%);
}

.xaflo-section#principles {
  border-top-color: rgba(124,58,237,0.25);
}
.xaflo-section#principles::before {
  background:
    radial-gradient(1200px 600px at 80% 25%, rgba(124,58,237,0.18), transparent 55%),
    radial-gradient(900px 500px at 20% 80%, rgba(217,70,239,0.08), transparent 60%);
}

.xaflo-section#capabilities {
  border-top-color: rgba(0,217,255,0.25);
}
.xaflo-section#capabilities::before {
  background:
    radial-gradient(1200px 600px at 30% 65%, rgba(0,217,255,0.16), transparent 55%),
    radial-gradient(900px 500px at 75% 25%, rgba(58,141,255,0.08), transparent 60%);
}

.xaflo-section#cases {
  border-top-color: rgba(217,70,239,0.25);
}
.xaflo-section#cases::before {
  background:
    radial-gradient(1200px 600px at 75% 30%, rgba(217,70,239,0.16), transparent 55%),
    radial-gradient(900px 500px at 25% 75%, rgba(124,58,237,0.08), transparent 60%);
}

.xaflo-section#demo {
  border-top-color: rgba(0,217,255,0.3);
}
.xaflo-section#demo::before {
  background:
    radial-gradient(1200px 600px at 50% 30%, rgba(0,217,255,0.14), transparent 55%),
    radial-gradient(900px 500px at 50% 80%, rgba(124,58,237,0.1), transparent 60%);
}

.xaflo-section#code {
  border-top-color: rgba(58,141,255,0.25);
}
.xaflo-section#code::before {
  background:
    radial-gradient(1200px 600px at 30% 50%, rgba(58,141,255,0.14), transparent 55%),
    radial-gradient(900px 500px at 80% 30%, rgba(0,217,255,0.08), transparent 60%);
}

.xaflo-section#process {
  border-top-color: rgba(124,58,237,0.25);
}
.xaflo-section#process::before {
  background:
    radial-gradient(1200px 600px at 65% 40%, rgba(124,58,237,0.14), transparent 55%),
    radial-gradient(900px 500px at 20% 75%, rgba(58,141,255,0.08), transparent 60%);
}

.xaflo-section#presence {
  border-top-color: rgba(0,217,255,0.25);
}
.xaflo-section#presence::before {
  background:
    radial-gradient(1200px 600px at 40% 50%, rgba(0,217,255,0.16), transparent 55%),
    radial-gradient(900px 500px at 90% 25%, rgba(217,70,239,0.08), transparent 60%);
}

.xaflo-section#group {
  border-top-color: rgba(217,70,239,0.25);
}
.xaflo-section#group::before {
  background:
    radial-gradient(1200px 600px at 80% 25%, rgba(217,70,239,0.16), transparent 55%),
    radial-gradient(900px 500px at 25% 75%, rgba(124,58,237,0.08), transparent 60%);
}

.xaflo-section#products {
  border-top-color: rgba(58,141,255,0.25);
}
.xaflo-section#products::before {
  background:
    radial-gradient(1200px 600px at 30% 40%, rgba(58,141,255,0.14), transparent 55%),
    radial-gradient(900px 500px at 75% 70%, rgba(0,217,255,0.08), transparent 60%);
}

.xaflo-section.xaflo-stats-section {
  border-top-color: rgba(0,217,255,0.25);
}
.xaflo-section.xaflo-stats-section::before {
  background:
    radial-gradient(1200px 600px at 50% 30%, rgba(0,217,255,0.12), transparent 55%),
    radial-gradient(900px 500px at 50% 80%, rgba(124,58,237,0.08), transparent 60%);
}

.xaflo-section#contact {
  border-top-color: rgba(217,70,239,0.3);
}
.xaflo-section#contact::before {
  background:
    radial-gradient(1200px 600px at 50% 50%, rgba(217,70,239,0.16), transparent 55%),
    radial-gradient(900px 500px at 50% 50%, rgba(0,217,255,0.1), transparent 70%);
}

.xaflo-section.xaflo-providers {
  border-top-color: rgba(255,255,255,0.06);
}

/* More visible drift animation */
@keyframes xaflo-drift-1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(70px, -35px) scale(1.06); } }
@keyframes xaflo-drift-2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-55px, 45px) scale(1.05); } }
@keyframes xaflo-drift-3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(45px, 55px) scale(1.07); } }

.xaflo-section#what-we-do::before { animation: xaflo-drift-1 28s ease-in-out infinite; }
.xaflo-section#principles::before { animation: xaflo-drift-2 32s ease-in-out infinite; }
.xaflo-section#capabilities::before { animation: xaflo-drift-3 26s ease-in-out infinite; }
.xaflo-section#cases::before { animation: xaflo-drift-1 30s ease-in-out infinite reverse; }
.xaflo-section#demo::before { animation: xaflo-drift-2 34s ease-in-out infinite; }
.xaflo-section#code::before { animation: xaflo-drift-3 28s ease-in-out infinite reverse; }
.xaflo-section#process::before { animation: xaflo-drift-1 32s ease-in-out infinite; }
.xaflo-section#presence::before { animation: xaflo-drift-2 30s ease-in-out infinite; }
.xaflo-section#group::before { animation: xaflo-drift-3 34s ease-in-out infinite reverse; }
.xaflo-section#products::before { animation: xaflo-drift-1 28s ease-in-out infinite; }
.xaflo-section.xaflo-stats-section::before { animation: xaflo-drift-2 32s ease-in-out infinite; }
.xaflo-section#contact::before { animation: xaflo-drift-3 26s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .xaflo-section::before { animation: none !important; }
}

/* ============================================================
   IN-PRACTICE MINIMAL (v1.2)
   Hide verbose descriptions, leave just icon + title + metric.
   ============================================================ */
.xaflo-what-grid--v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.xaflo-what-card--v2 {
  min-height: 200px;
  padding: 1.85rem 1.4rem 1.4rem;
  display: flex; flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.xaflo-what-card--v2 .xaflo-what-card-top {
  width: 100%;
  margin-bottom: 1.1rem;
}
.xaflo-what-card--v2 .xaflo-what-icon {
  width: 64px; height: 64px; border-radius: 16px;
}
.xaflo-what-card--v2 .xaflo-what-icon svg {
  width: 30px; height: 30px;
}
.xaflo-what-card--v2 h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.85rem;
}
/* HIDE the verbose <p> description — visual scan only */
.xaflo-what-card--v2 > p {
  display: none;
}
.xaflo-what-card--v2 .xaflo-what-metric {
  margin-top: auto;
  margin-bottom: 0;
  font-size: 0.78rem;
  padding: 0.45rem 0.9rem;
  background: linear-gradient(135deg, rgba(0,217,255,0.12), rgba(124,58,237,0.12));
  border-color: rgba(124,58,237,0.35);
  color: var(--x-contrast);
}
.xaflo-what-card--v2:hover .xaflo-what-metric,
.xaflo-what-card--v2.is-spotlight .xaflo-what-metric {
  background: linear-gradient(135deg, var(--x-cyan), var(--x-violet));
  color: var(--x-base);
  border-color: transparent;
}

/* Spotlight pulse */
.xaflo-what-card--v2.is-spotlight {
  border-color: rgba(0,217,255,0.5);
}
.xaflo-what-card--v2.is-spotlight::before { opacity: 1 !important; }
.xaflo-what-card--v2.is-spotlight::after {
  opacity: 0.4 !important;
  background: radial-gradient(circle at 50% 0%, rgba(0,217,255,0.25), transparent 60%);
}

@media (max-width: 1024px) {
  .xaflo-what-grid--v2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .xaflo-what-grid--v2 { grid-template-columns: 1fr; }
  .xaflo-what-card--v2 { min-height: 160px; padding: 1.4rem 1.25rem 1.25rem; }
  .xaflo-what-card--v2 .xaflo-what-icon { width: 52px; height: 52px; }
  .xaflo-what-card--v2 .xaflo-what-icon svg { width: 24px; height: 24px; }
}

/* ============================================================
   DEMO sector chip
   ============================================================ */
.xaflo-demo-sector {
  display: inline-block;
  font-family: var(--x-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--x-cyan);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(0,217,255,0.3);
  background: rgba(0,217,255,0.06);
  margin-bottom: 0.85rem;
  transition: all .4s ease;
}
.xaflo-demo-output .xaflo-demo-metric {
  transition: opacity .5s ease, transform .5s ease;
}
.xaflo-demo-output:not(.is-in) .xaflo-demo-metric {
  opacity: 0;
  transform: translateY(8px);
}
.xaflo-demo-avatar {
  transition: background .5s ease;
}

/* ============================================================
   PROVIDERS — demoted to compact strip
   ============================================================ */
.xaflo-providers {
  padding: 2.5rem 1.25rem !important;
}
.xaflo-providers-intro {
  margin-bottom: 1.25rem !important;
}
.xaflo-providers-intro .x-kicker {
  display: none;
}
.xaflo-providers-title {
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: var(--x-muted) !important;
  font-family: var(--x-mono) !important;
}
.xaflo-providers-grid {
  gap: 0.4rem !important;
  opacity: 0.7;
  transition: opacity .3s ease;
}
.xaflo-providers-grid:hover { opacity: 1; }
.xaflo-provider {
  padding: 0.4rem 0.85rem !important;
  font-size: 0.7rem !important;
  border-color: rgba(255,255,255,0.06) !important;
  background: transparent !important;
}
.xaflo-provider:hover {
  color: var(--x-cyan) !important;
  border-color: var(--x-cyan) !important;
}
