/* ============================================================
   CredoFluence WordPress Theme — Main Stylesheet
   Exact port of the React/Tailwind design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── CSS Custom Properties (Design Tokens) ──────────────── */
:root {
  --background:        hsl(230, 25%, 7%);
  --foreground:        hsl(220, 20%, 95%);
  --card:              hsl(230, 20%, 10%);
  --card-foreground:   hsl(220, 20%, 95%);
  --primary:           hsl(225, 80%, 56%);
  --primary-fg:        hsl(0, 0%, 100%);
  --secondary:         hsl(230, 15%, 15%);
  --muted:             hsl(230, 15%, 18%);
  --muted-fg:          hsl(220, 10%, 55%);
  --accent:            hsl(260, 70%, 55%);
  --accent-fg:         hsl(0, 0%, 100%);
  --destructive:       hsl(0, 84%, 60%);
  --border:            hsl(230, 15%, 18%);
  --surface:           hsl(230, 18%, 12%);
  --glow-blue:         hsl(225, 90%, 60%);
  --glow-purple:       hsl(260, 80%, 55%);
  --radius:            0.75rem;
  --font-heading:      'Space Grotesk', sans-serif;
  --font-body:         'Inter', sans-serif;
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── Utility Classes ────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--glow-blue), var(--glow-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-box {
  box-shadow: 0 0 60px -12px hsl(225 90% 60% / 0.3),
              0 0 120px -30px hsl(260 80% 55% / 0.2);
}

.glow-border {
  border: 1px solid hsl(225 90% 60% / 0.2);
}

.bg-surface { background-color: var(--surface); }

.bg-gradient-radial {
  background: radial-gradient(ellipse at center top, hsl(225 90% 60% / 0.15) 0%, transparent 60%);
}

.nav-glass {
  background: hsl(230 25% 7% / 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid hsl(230 15% 18% / 0.5);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-label {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* ─── Animations ─────────────────────────────────────────── */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

@keyframes float-xy {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(10px, -15px); }
  66%       { transform: translate(-8px, 10px); }
}

@keyframes float-xy-alt {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(-10px, 15px); }
  66%       { transform: translate(8px, -10px); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes spin-slow-reverse {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0deg); }
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); filter: blur(10px); }
  to   { opacity: 1; transform: scale(1);   filter: blur(0); }
}

@keyframes letterDrop {
  from { opacity: 0; transform: translateY(40px) rotateX(-40deg); }
  to   { opacity: 1; transform: translateY(0)    rotateX(0deg); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px hsl(225 90% 60% / 0.3); }
  50%       { box-shadow: 0 0 40px hsl(225 90% 60% / 0.6), 0 0 80px hsl(260 80% 55% / 0.3); }
}

@keyframes underline-grow {
  from { width: 0; }
  to   { width: 4rem; }
}

@keyframes count-line {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes orb1 {
  0%, 100% { transform: translate(-20px, 0); }
  50%       { transform: translate(20px, -20px); }
}
@keyframes orb2 {
  0%, 100% { transform: translate(0, 15px); }
  50%       { transform: translate(-10px, -10px); }
}
@keyframes orb3 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-20px); }
}

/* Intersection Observer driven animations */
.js-anim {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  filter: blur(4px);
}
.js-anim.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.js-anim-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.js-anim-left.in-view { opacity: 1; transform: translateX(0); }

.js-anim-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.js-anim-right.in-view { opacity: 1; transform: translateX(0); }

/* Stagger helper */
.js-anim:nth-child(1) { transition-delay: 0s; }
.js-anim:nth-child(2) { transition-delay: 0.15s; }
.js-anim:nth-child(3) { transition-delay: 0.30s; }
.js-anim:nth-child(4) { transition-delay: 0.45s; }
.js-anim:nth-child(5) { transition-delay: 0.60s; }
.js-anim:nth-child(6) { transition-delay: 0.75s; }

/* ─── Navbar ─────────────────────────────────────────────── */
#cf-navbar {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
  max-width: 1000px;
  z-index: 9999;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
  /* Critical: do NOT use left:50% + translateX — breaks on some WP themes */
}

.cf-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  width: 100%;
}

.cf-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-decoration: none;
}
.cf-logo span { display: inline; }

.cf-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cf-nav-links a {
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.2s;
  white-space: nowrap;
}
.cf-nav-links a:hover { color: var(--foreground); }

.cf-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary);
  color: var(--primary-fg) !important;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.cf-nav-cta:hover { opacity: 0.9; transform: scale(1.02); }
.cf-nav-cta svg { flex-shrink: 0; }

/* Mobile hamburger button */
.cf-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 0;
  flex-shrink: 0;
}
.cf-mobile-toggle svg { width: 22px; height: 22px; stroke: currentColor; }

/* Mobile dropdown */
.cf-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  border-radius: 1rem;
}
.cf-mobile-menu.open {
  display: flex;
  animation: fadeInUp 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.cf-mobile-menu a {
  font-size: 0.9rem;
  color: var(--muted-fg);
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid hsl(230 15% 18% / 0.5);
  transition: color 0.2s;
  text-decoration: none;
}
.cf-mobile-menu a:last-child { border-bottom: none; }
.cf-mobile-menu a:hover { color: var(--foreground); }

.cf-mobile-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--primary) !important;
  color: var(--primary-fg) !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.5rem;
  border-bottom: none !important;
  text-align: center;
}

/* ── Responsive breakpoints ────────────────────────── */

/* Tablet: hide links, show CTA only */
@media (max-width: 900px) {
  .cf-nav-links { gap: 1.25rem; }
  .cf-nav-links a { font-size: 0.8rem; }
}

/* Mobile: hide desktop nav entirely */
@media (max-width: 768px) {
  #cf-navbar {
    width: 94%;
    top: 0.75rem;
  }
  .cf-nav-inner {
    padding: 0.65rem 1rem;
  }
  .cf-nav-links,
  .cf-nav-cta {
    display: none !important;
  }
  .cf-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Small phones */
@media (max-width: 480px) {
  #cf-navbar { width: 96%; top: 0.5rem; }
  .cf-nav-inner { padding: 0.6rem 0.875rem; }
  .cf-logo { font-size: 1.1rem; }
}

/* ─── Hero Section ───────────────────────────────────────── */
#cf-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem 1rem 4rem;
  overflow: hidden;
  text-align: center;
}

.cf-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cf-hero-radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, hsl(225 90% 60% / 0.15) 0%, transparent 60%);
}

.cf-hero-glow {
  position: absolute;
  top: 33%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: hsl(225 90% 60% / 0.05);
  filter: blur(120px);
}

/* Floating orbs */
.cf-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cf-orb-1 {
  top: 25%; left: 15%;
  width: 12px; height: 12px;
  background: hsl(225 80% 56% / 0.3);
  filter: blur(2px);
  animation: orb1 8s ease-in-out infinite;
}
.cf-orb-2 {
  top: 33%; right: 20%;
  width: 8px; height: 8px;
  background: hsl(260 70% 55% / 0.4);
  filter: blur(1px);
  animation: orb2 10s ease-in-out infinite;
}
.cf-orb-3 {
  bottom: 33%; left: 25%;
  width: 16px; height: 16px;
  background: hsl(260 80% 55% / 0.2);
  filter: blur(3px);
  animation: orb3 12s ease-in-out infinite;
}

.cf-hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
}

/* Animated letter heading */
.cf-hero-title {
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  perspective: 800px;
}

.cf-hero-title .line { display: block; overflow: visible; }

/* Letters animate in individually via JS adding class */
.cf-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotateX(-40deg);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
}
.cf-letter.animated { opacity: 1; transform: translateY(0) rotateX(0deg); }

.cf-hero-desc {
  color: var(--muted-fg);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  filter: blur(8px);
  transition: opacity 0.8s 1.2s, transform 0.8s 1.2s, filter 0.8s 1.2s;
}
.cf-hero-desc.animated {
  opacity: 1; transform: translateY(0); filter: blur(0);
}

/* Social proof avatars */
.cf-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s 1.5s, transform 0.6s 1.5s;
}
.cf-social-proof.animated { opacity: 1; transform: translateY(0); }

.cf-avatar-stack {
  display: flex;
}
.cf-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid hsl(225 90% 60% / 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-fg);
  margin-left: -0.75rem;
  opacity: 0;
  transform: scale(0) translateX(-10px);
  transition: opacity 0.4s, transform 0.4s;
}
.cf-avatar:first-child { margin-left: 0; }
.cf-avatar.animated { opacity: 1; transform: scale(1) translateX(0); }

.cf-proof-text p:first-child {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}
.cf-proof-text p:last-child {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

/* Hero CTA */
.cf-hero-cta-wrap {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s 1.8s, transform 0.6s 1.8s;
}
.cf-hero-cta-wrap.animated { opacity: 1; transform: translateY(0); }

.cf-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  animation: pulse-glow 3s ease-in-out infinite;
}
.cf-btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px -12px hsl(225 90% 60% / 0.5);
  opacity: 0.95;
  color: var(--primary-fg);
}
.cf-btn-primary:active { transform: scale(0.97); }

/* Logo marquee */
.cf-marquee-wrap {
  position: relative;
  width: 100%;
  margin-top: 5rem;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1s 2.2s;
  z-index: 10;
}
.cf-marquee-wrap.animated { opacity: 1; }

.cf-marquee-fade-left {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6rem;
  background: linear-gradient(to right, var(--background), transparent);
  z-index: 2;
}
.cf-marquee-fade-right {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 6rem;
  background: linear-gradient(to left, var(--background), transparent);
  z-index: 2;
}

.cf-marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.cf-marquee-track span {
  margin: 0 2.5rem;
  color: hsl(220 10% 55% / 0.4);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ─── Services Section ───────────────────────────────────── */
#cf-services {
  padding: 6rem 1rem;
}

.cf-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.cf-section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--foreground);
}

.cf-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cf-service-card {
  position: relative;
  background: var(--surface);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid hsl(225 90% 60% / 0.2);
  overflow: hidden;
  cursor: default;
  transition: border-color 0.3s, transform 0.3s;
}

.cf-service-card:hover {
  border-color: hsl(225 80% 56% / 0.3);
  transform: translateY(-6px);
}

.cf-service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsl(225 80% 56% / 0.05), transparent, hsl(260 70% 55% / 0.05));
  opacity: 0;
  transition: opacity 0.5s;
}
.cf-service-card:hover::before { opacity: 1; }

.cf-service-num {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--font-heading);
  font-size: 3.75rem;
  font-weight: 700;
  color: hsl(230 15% 18% / 0.5);
  user-select: none;
  pointer-events: none;
  line-height: 1;
}

.cf-service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: hsl(225 80% 56% / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.3s, box-shadow 0.3s, transform 0.5s;
  position: relative;
  z-index: 1;
}
.cf-service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
  stroke: var(--primary);
}
.cf-service-card:hover .cf-service-icon {
  background: hsl(225 80% 56% / 0.2);
  box-shadow: 0 0 20px -5px hsl(225 80% 56% / 0.4);
  transform: rotate(-10deg) scale(1.1);
}

.cf-service-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.cf-service-desc {
  color: var(--muted-fg);
  line-height: 1.7;
  font-size: 0.9375rem;
  position: relative;
  z-index: 1;
}

.cf-service-underline {
  height: 2px;
  width: 0;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 9999px;
  margin-top: 1.25rem;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  z-index: 1;
}
.cf-service-card:hover .cf-service-underline { width: 4rem; }

/* ─── Testimonials ───────────────────────────────────────── */
#cf-testimonials {
  padding: 6rem 1rem;
  position: relative;
  overflow: hidden;
}

#cf-testimonials::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: hsl(225 80% 56% / 0.05);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

#cf-testimonials::after {
  content: '';
  position: absolute;
  top: 25%; right: 0;
  width: 300px; height: 300px;
  background: hsl(260 70% 55% / 0.05);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.cf-testimonials-carousel {
  position: relative;
  /* Removed overflow:hidden — it was clipping the arrow buttons */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* This inner div clips the sliding cards but NOT the arrow buttons */
.cf-carousel-overflow {
  overflow: hidden;
  width: 100%;
  border-radius: 0.5rem;
}

.cf-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.cf-testimonial-slide {
  flex: 0 0 100%;
  padding: 0 0.75rem;
}

@media (min-width: 768px) {
  .cf-testimonial-slide { flex: 0 0 50%; }
}
@media (min-width: 1024px) {
  .cf-testimonial-slide { flex: 0 0 33.333%; }
}

.cf-testimonial-card {
  background: hsl(230 18% 12% / 0.6);
  border: 1px solid hsl(230 15% 18% / 0.5);
  border-radius: 1rem;
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.7;
  transform: scale(0.95);
}

.cf-testimonial-card.active {
  background: var(--surface);
  border: 1px solid hsl(225 80% 56% / 0.3);
  box-shadow: 0 0 40px -10px hsl(225 80% 56% / 0.3);
  transform: scale(1.02);
  opacity: 1;
}

.cf-quote-icon {
  width: 2rem; height: 2rem;
  margin-bottom: 1rem;
  color: hsl(220 10% 55% / 0.3);
  transition: color 0.5s;
}
.cf-testimonial-card.active .cf-quote-icon { color: var(--primary); }

.cf-testimonial-text {
  color: var(--muted-fg);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

.cf-testimonial-footer {}

.cf-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.cf-author-avatar {
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: hsl(225 80% 56% / 0.1);
  color: hsl(225 80% 56% / 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.5s;
}
.cf-testimonial-card.active .cf-author-avatar {
  background: hsl(225 80% 56% / 0.2);
  color: var(--primary);
  box-shadow: 0 0 20px -5px hsl(225 80% 56% / 0.5);
}

.cf-author-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}
.cf-author-role {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

.cf-testimonial-metric-wrap {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.cf-metric-value {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--glow-blue), var(--glow-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.4s;
}
.cf-metric-label {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

.cf-testimonial-card:not(.active) .cf-metric-value {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: hsl(220 10% 55% / 0.4);
  color: hsl(220 10% 55% / 0.4);
  font-size: 1.5rem;
}
.cf-testimonial-card:not(.active) .cf-metric-label {
  color: hsl(220 10% 55% / 0.4);
}

/* Carousel controls — positioned outside the overflow wrapper */
.cf-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  z-index: 20;
  flex-shrink: 0;
  /* Ensure full circle is always visible */
  outline: none;
}
.cf-carousel-btn:hover {
  color: var(--primary);
  border-color: hsl(225 80% 56% / 0.5);
  box-shadow: 0 0 20px -5px hsl(225 80% 56% / 0.4);
  transform: translateY(-50%) scale(1.1);
}
.cf-carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}
.cf-carousel-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Position arrows at the outer edges of .cf-testimonials-carousel */
.cf-carousel-prev { left: 0; }
.cf-carousel-next { right: 0; }

@media (max-width: 480px) {
  .cf-carousel-btn {
    width: 2.25rem;
    height: 2.25rem;
  }
  .cf-carousel-btn svg { width: 1rem; height: 1rem; }
}

/* Dots */
.cf-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.cf-dot {
  height: 0.5rem;
  border-radius: 9999px;
  background: hsl(220 10% 55% / 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.5s;
  width: 0.5rem;
}
.cf-dot.active {
  width: 2rem;
  background: var(--primary);
  box-shadow: 0 0 12px hsl(225 80% 56% / 0.6);
}
.cf-dot:hover:not(.active) { background: hsl(220 10% 55% / 0.5); }

/* ─── Stats Section ──────────────────────────────────────── */
#cf-stats {
  padding: 6rem 1rem;
  position: relative;
  overflow: hidden;
}

.cf-stats-line {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, hsl(225 80% 56% / 0.2), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.cf-stats-line.in-view { transform: scaleX(1); }

.cf-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .cf-stats-grid { grid-template-columns: repeat(3, 1fr); }
}

.cf-stat-card {
  background: var(--surface);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  border: 1px solid hsl(225 90% 60% / 0.2);
  cursor: default;
  transition: transform 0.3s, box-shadow 0.3s;
}
.cf-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px -10px hsl(225 90% 60% / 0.25);
}

.cf-stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--glow-blue), var(--glow-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  display: block;
}

.cf-stat-label {
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.3s;
}
.cf-stat-card:hover .cf-stat-label { color: hsl(220 20% 70%); }

/* ─── FAQ ────────────────────────────────────────────────── */
#cf-faq {
  padding: 6rem 1rem;
}

.cf-faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cf-faq-item {
  background: var(--surface);
  border-radius: 0.75rem;
  border: 1px solid hsl(225 90% 60% / 0.2);
  overflow: hidden;
  transition: border-color 0.3s;
}
.cf-faq-item.open { border-color: hsl(225 80% 56% / 0.3); }
.cf-faq-item:hover { border-color: hsl(225 80% 56% / 0.2); }

.cf-faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--foreground);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  gap: 1rem;
}

.cf-faq-chevron {
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--muted-fg);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.cf-faq-item.open .cf-faq-chevron { transform: rotate(180deg); }

.cf-faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.cf-faq-item.open .cf-faq-content { max-height: 500px; }

.cf-faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--muted-fg);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ─── Contact / CTA Section ──────────────────────────────── */
#cf-contact {
  padding: 6rem 1rem;
  position: relative;
  overflow: hidden;
}

.cf-contact-accent-1 {
  position: absolute;
  top: 5rem; left: 10%;
  width: 2rem; height: 2rem;
  border: 1px solid hsl(225 80% 56% / 0.1);
  border-radius: 0.5rem;
  pointer-events: none;
  animation: spin-slow 15s linear infinite;
}

.cf-contact-accent-2 {
  position: absolute;
  bottom: 5rem; right: 15%;
  width: 1.5rem; height: 1.5rem;
  border: 1px solid hsl(260 70% 55% / 0.1);
  border-radius: 50%;
  pointer-events: none;
  animation: spin-slow-reverse 12s linear infinite;
}

.cf-cta-box {
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 1.5rem;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid hsl(225 90% 60% / 0.2);
  box-shadow: 0 0 60px -12px hsl(225 90% 60% / 0.3),
              0 0 120px -30px hsl(260 80% 55% / 0.2);
}

@media (min-width: 768px) {
  .cf-cta-box { padding: 4rem; }
}

.cf-cta-shimmer {
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  background: linear-gradient(to right, transparent, hsl(225 80% 56% / 0.05), transparent);
  pointer-events: none;
  animation: shimmer 3s ease-in-out infinite;
}

/* CTA Views */
.cf-cta-view { display: none; }
.cf-cta-view.active { display: block; }

.cf-cta-title {
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 2.5rem;
}

.cf-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cf-btn-brand, .cf-btn-creator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  min-width: 160px;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.cf-btn-brand {
  background: var(--primary);
  color: var(--primary-fg);
}
.cf-btn-brand:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px -5px hsl(225 90% 60% / 0.4);
  opacity: 0.95;
}
.cf-btn-creator {
  background: var(--accent);
  color: var(--accent-fg);
}
.cf-btn-creator:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px -5px hsl(260 80% 55% / 0.4);
  opacity: 0.95;
}

/* Form styles */
.cf-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}
.cf-form-subtitle {
  color: var(--muted-fg);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.cf-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  margin-bottom: 1.5rem;
  padding: 0;
}
.cf-back-btn:hover { color: var(--foreground); }
.cf-back-btn svg { width: 1rem; height: 1rem; stroke: currentColor; }

.cf-form {
  max-width: 28rem;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cf-input, .cf-select, .cf-textarea {
  width: 100%;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.cf-input::placeholder, .cf-textarea::placeholder {
  color: var(--muted-fg);
}
.cf-input:focus, .cf-select:focus, .cf-textarea:focus {
  border-color: hsl(225 80% 56% / 0.5);
  box-shadow: 0 0 0 2px hsl(225 80% 56% / 0.15);
}
.cf-textarea { resize: none; }
.cf-select { cursor: pointer; }
.cf-select option { background: var(--background); }

.cf-field-error {
  font-size: 0.75rem;
  color: var(--destructive);
  margin-top: 0.25rem;
  display: none;
}
.cf-field-error.visible { display: block; }

.cf-btn-submit-brand, .cf-btn-submit-creator {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.cf-btn-submit-brand {
  background: var(--primary);
  color: var(--primary-fg);
}
.cf-btn-submit-creator {
  background: var(--accent);
  color: var(--accent-fg);
}
.cf-btn-submit-brand:hover, .cf-btn-submit-creator:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* Success state */
.cf-success-icon {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: hsl(225 80% 56% / 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: scaleIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.cf-success-icon svg { width: 1.75rem; height: 1.75rem; stroke: var(--primary); }
.cf-success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}
.cf-success-text {
  color: var(--muted-fg);
  margin-bottom: 1.5rem;
}
.cf-reset-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
}

/* ─── Footer ─────────────────────────────────────────────── */
#cf-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1rem;
}

.cf-footer-inner {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

.cf-footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cf-footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
}

.cf-footer-logo {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
}

.cf-footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
.cf-footer-links a {
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.2s;
}
.cf-footer-links a:hover { color: var(--foreground); }

.cf-social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.cf-social-links a {
  color: var(--muted-fg);
  display: flex;
  transition: color 0.2s, transform 0.2s;
}
.cf-social-links a:hover {
  color: var(--foreground);
  transform: scale(1.2) translateY(-2px);
}
.cf-social-links svg { width: 1.25rem; height: 1.25rem; stroke: currentColor; fill: none; }

.cf-footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.cf-copyright {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

/* ─── Admin Customizer bar offset ───────────────────────── */
.admin-bar #cf-navbar { top: calc(1rem + 32px); }
@media (max-width: 782px) {
  .admin-bar #cf-navbar { top: calc(1rem + 46px); }
}

/* ─── Admin bar offset (logged-in users) ────────────────── */
.admin-bar #cf-navbar { top: calc(1rem + 32px) !important; }
.admin-bar #cf-hero   { padding-top: calc(8rem + 32px); }
@media (max-width: 782px) {
  .admin-bar #cf-navbar { top: calc(0.75rem + 46px) !important; }
  .admin-bar #cf-hero   { padding-top: calc(8rem + 46px); }
}
