/*
 * AI marketing design — scoped under .wl-ai so it never touches the theme
 * header/footer or other pages. No global resets, no body{} override; the
 * gradient background lives on the .wl-ai wrapper itself.
 * Used by: pages/ai.php (full) and template-parts/ai-home.php (homepage teaser).
 */

.wl-ai {
  --purple-dark: #1a0f2e;
  --purple-mid: #2d1b4e;
  --purple-light: #4a2f7f;
  --blue-accent: #00d4ff;
  --magenta: #ff00ff;
  --gradient-main: linear-gradient(135deg, #1a0f2e 0%, #2d1b4e 50%, #4a2f7f 100%);
  --gradient-accent: linear-gradient(135deg, #ff00ff, #00d4ff);
  --text-white: #ffffff;
  --text-light: #e0e0ff;
  --text-muted: #a0a0c0;

  background: var(--gradient-main);
  color: var(--text-white);
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.wl-ai *, .wl-ai *::before, .wl-ai *::after { box-sizing: border-box; }
.wl-ai a { text-decoration: none; color: inherit; }
.wl-ai img { max-width: 100%; height: auto; display: block; }
.wl-ai ul { list-style: none; margin: 0; padding: 0; }

.wl-ai .ai-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== HERO ===== */
.wl-ai .ai-hero { padding: 4rem 0; text-align: center; position: relative; overflow: hidden; }
.wl-ai .ai-hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255, 0, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.wl-ai .ai-hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.wl-ai .ai-hero-content { position: relative; z-index: 1; }
.wl-ai .ai-hero-badge {
  display: inline-block; padding: 0.6rem 1.5rem; background: rgba(255, 0, 255, 0.15);
  border: 1px solid rgba(255, 0, 255, 0.3); border-radius: 50px; font-size: 0.8rem;
  font-weight: 600; color: var(--magenta); margin-bottom: 1.5rem; letter-spacing: 0.5px;
}
.wl-ai .ai-hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 900; margin-bottom: 1rem; line-height: 1.2;
  background: var(--gradient-accent); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.wl-ai .ai-hero p { font-size: 1.1rem; color: var(--text-light); max-width: 700px; margin: 0 auto 2rem; line-height: 1.8; }
.wl-ai .ai-hero-image { max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }
.wl-ai .ai-hero-image img { width: 100%; border-radius: 1.5rem; box-shadow: 0 0 60px rgba(255, 0, 255, 0.2), 0 0 120px rgba(0, 212, 255, 0.1); }

/* ===== CAPABILITIES ===== */
.wl-ai .ai-capabilities { padding: 4rem 0; position: relative; }
.wl-ai .ai-capabilities-title { text-align: center; margin-bottom: 3rem; }
.wl-ai .ai-capabilities-title h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 1rem; }
.wl-ai .ai-capabilities-title p { font-size: 1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.wl-ai .capabilities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }
.wl-ai .capability-card {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 0, 255, 0.2);
  border-radius: 1rem; padding: 2rem; transition: all 0.3s ease; position: relative; overflow: hidden;
}
.wl-ai .capability-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-accent); opacity: 0; transition: opacity 0.3s;
}
.wl-ai .capability-card:hover {
  border-color: rgba(255, 0, 255, 0.5); background: rgba(255, 0, 255, 0.08);
  transform: translateY(-5px); box-shadow: 0 10px 40px rgba(255, 0, 255, 0.15);
}
.wl-ai .capability-card:hover::before { opacity: 1; }
.wl-ai .capability-icon {
  width: 80px; height: 80px; margin: 0 auto 1.5rem; border-radius: 1rem; display: flex;
  align-items: center; justify-content: center; background: rgba(0, 212, 255, 0.1); border: 1px solid rgba(0, 212, 255, 0.3);
}
.wl-ai .capability-icon img { width: 60px; height: 60px; object-fit: contain; }
.wl-ai .capability-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text-white); }
.wl-ai .capability-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.wl-ai .capability-features { font-size: 0.85rem; color: var(--text-light); }
.wl-ai .capability-features li { padding: 0.4rem 0; padding-left: 1.5rem; position: relative; }
.wl-ai .capability-features li::before { content: '\2713'; position: absolute; left: 0; color: var(--blue-accent); font-weight: bold; }

/* ===== FEATURES SHOWCASE ===== */
.wl-ai .ai-features-showcase { padding: 4rem 0; position: relative; }
.wl-ai .showcase-title { text-align: center; margin-bottom: 3rem; }
.wl-ai .showcase-title h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 1rem; }
.wl-ai .showcase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; margin-top: 2rem; }
.wl-ai .showcase-item {
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 1rem; padding: 2rem; transition: all 0.3s;
}
.wl-ai .showcase-item:hover { border-color: rgba(0, 212, 255, 0.5); background: rgba(0, 212, 255, 0.08); transform: translateY(-5px); }
.wl-ai .showcase-item h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; color: var(--blue-accent); }
.wl-ai .showcase-item p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }
.wl-ai .showcase-item ul { margin-top: 1rem; font-size: 0.9rem; color: var(--text-light); }
.wl-ai .showcase-item li { padding: 0.4rem 0; padding-left: 1.5rem; position: relative; }
.wl-ai .showcase-item li::before { content: '\2192'; position: absolute; left: 0; color: var(--magenta); }

/* ===== INTEGRATION ===== */
.wl-ai .ai-integration { padding: 4rem 0; position: relative; }
.wl-ai .integration-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.wl-ai .integration-text h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 1.5rem; line-height: 1.2; }
.wl-ai .integration-text p { font-size: 1rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.8; }
.wl-ai .integration-features { margin: 2rem 0; }
.wl-ai .integration-features li { padding: 0.75rem 0; padding-left: 2rem; position: relative; font-size: 0.95rem; color: var(--text-light); }
.wl-ai .integration-features li::before { content: '\25C6'; position: absolute; left: 0; color: var(--blue-accent); font-size: 0.8rem; }
.wl-ai .integration-image { position: relative; }
.wl-ai .integration-image img { width: 100%; border-radius: 1rem; border: 1px solid rgba(0, 212, 255, 0.2); box-shadow: 0 0 40px rgba(0, 212, 255, 0.15); }

/* ===== CTA ===== */
.wl-ai .ai-cta {
  padding: 4rem 0; text-align: center; background: rgba(255, 0, 255, 0.05);
  border: 1px solid rgba(255, 0, 255, 0.2); border-radius: 1.5rem; margin: 3rem 0;
}
.wl-ai .ai-cta h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; }
.wl-ai .ai-cta p { font-size: 1.05rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 2rem; line-height: 1.8; }
.wl-ai .cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.wl-ai .ai-btn {
  display: inline-block; padding: 0.85rem 2rem; border-radius: 0.5rem; font-weight: 700;
  font-size: 0.95rem; transition: all 0.3s; text-transform: uppercase; letter-spacing: 0.5px;
  border: none; cursor: pointer;
}
.wl-ai .ai-btn-primary { background: var(--gradient-accent); color: #000; }
.wl-ai .ai-btn-primary:hover { box-shadow: 0 0 30px rgba(255, 0, 255, 0.4); transform: translateY(-2px); }
.wl-ai .ai-btn-secondary { background: transparent; color: var(--blue-accent); border: 2px solid var(--blue-accent); }
.wl-ai .ai-btn-secondary:hover { background: rgba(0, 212, 255, 0.1); box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }

/* ===== STATS ===== */
.wl-ai .ai-stats { padding: 3rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; }
.wl-ai .stat-item h3 {
  font-size: 2.5rem; font-weight: 900; background: var(--gradient-accent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.5rem;
}
.wl-ai .stat-item p { font-size: 0.95rem; color: var(--text-muted); }

/* ===== homepage teaser intro ===== */
.wl-ai .ai-home-intro { padding: 4rem 0 1rem; text-align: center; }
.wl-ai .ai-home-cta { text-align: center; padding: 2rem 0 4rem; }

/* ===== FLOATING PARTICLES (subtle, behind content) ===== */
.wl-ai { position: relative; }
.wl-ai .ai-container { position: relative; z-index: 1; }
.wl-ai-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ===== HERO AI CTA RIBBON (top of homepage) ===== */
.wl-ai-ribbon {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #1a0f2e 0%, #2d1b4e 55%, #4a2f7f 100%);
  border-bottom: 1px solid rgba(0, 212, 255, 0.25);
  position: relative; overflow: hidden; z-index: 100;
}
/* On /new the homepage hero uses margin-top:-91px to tuck under the header;
   neutralize it so it sits below the ribbon and can't intercept its clicks. */
.wl-newhome .hero-wrapper { margin-top: 0; }
.wl-newhome .plasma-container { top: 0; }
.wl-ai-ribbon::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.12), rgba(255, 0, 255, 0.12), transparent);
  transform: skewX(-20deg); animation: wlAiSheen 6s ease-in-out infinite; pointer-events: none;
}
@keyframes wlAiSheen { 0% { left: -60%; } 55%, 100% { left: 130%; } }
.wl-ai-ribbon-inner {
  max-width: 1200px; margin: 0 auto; padding: 0.7rem 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: 1rem 1.25rem; flex-wrap: wrap;
  position: relative; z-index: 1; text-align: center;
}
.wl-ai-ribbon-badge {
  display: inline-block; padding: 0.3rem 0.9rem; border-radius: 50px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.5px; color: #00d4ff; background: rgba(0, 212, 255, 0.12); border: 1px solid rgba(0, 212, 255, 0.35);
  white-space: nowrap;
}
.wl-ai-ribbon-text { color: #e0e0ff; font-size: 0.92rem; }
.wl-ai-ribbon-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1.2rem; border-radius: 0.5rem;
  font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap;
  color: #000; background: linear-gradient(135deg, #ff00ff, #00d4ff); transition: all 0.3s;
}
.wl-ai-ribbon-btn:hover { box-shadow: 0 0 22px rgba(0, 212, 255, 0.45); transform: translateY(-1px); }
.wl-ai-ribbon-btn span { transition: transform 0.3s; }
.wl-ai-ribbon-btn:hover span { transform: translateX(3px); }

/* hero CTA row on /ai */
.wl-ai .ai-hero-cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 0 auto 2.5rem; }

@media (prefers-reduced-motion: reduce) {
  .wl-ai-particles { display: none; }
  .wl-ai-ribbon::after { animation: none; display: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .wl-ai .integration-content { grid-template-columns: 1fr; }
  .wl-ai .capabilities-grid { grid-template-columns: 1fr; }
  .wl-ai .showcase-grid { grid-template-columns: 1fr; }
  .wl-ai .cta-buttons { flex-direction: column; }
  .wl-ai .ai-btn { width: 100%; }
  .wl-ai-ribbon-text { display: none; }
}
