/*
Theme Name: Aipairs
Theme URI: https://aipairs.uk
Author: Aipairs Ltd
Author URI: https://aipairs.uk
Description: Modern single-page AI consultancy theme for Aipairs Ltd - Human + AI collaboration.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
License URI: https://aipairs.uk
Text Domain: aipairs
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — AIPAIRS BRAND TOKENS
   ============================================================ */
:root {
  --primary:        #2B82D4;
  --primary-dark:   #1A5FA3;
  --primary-light:  #5AAAF0;
  --primary-glow:   rgba(43, 130, 212, 0.35);
  --primary-glow-lg:rgba(43, 130, 212, 0.15);

  --bg-base:        #07101C;
  --bg-dark:        #050C16;
  --bg-card:        #0D1E30;
  --bg-card-hover:  #102540;
  --bg-section-alt: #090F1A;
  --bg-light:       #F0F6FF;

  --text-primary:   #E8F2FF;
  --text-secondary: #8AB0CE;
  --text-muted:     #556678;
  --text-on-light:  #0D1E30;

  --border:         rgba(43, 130, 212, 0.2);
  --border-hover:   rgba(43, 130, 212, 0.5);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.4), 0 0 0 1px var(--border);
  --shadow-glow: 0 0 32px var(--primary-glow);
  --shadow-btn:  0 4px 20px rgba(43,130,212,0.45);

  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display-xl  { font-size: clamp(2.4rem, 6vw, 5rem);   font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
.display-lg  { font-size: clamp(2rem,  4.5vw, 3.6rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
.display-md  { font-size: clamp(1.4rem, 3vw, 2.2rem);  font-weight: 700; line-height: 1.2;  letter-spacing: -0.01em; }
.text-lg     { font-size: clamp(1rem, 2vw, 1.2rem); }
.text-sm     { font-size: 0.875rem; }
.text-xs     { font-size: 0.78rem; }

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--primary-light) 60%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-section-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(43,130,212,0.1);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
  animation: pulse 2s infinite;
}

.section-title {
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

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

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
  50%       { box-shadow: 0 0 48px rgba(43,130,212,0.6); }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  box-shadow: var(--shadow-btn);
  animation: glowPulse 3s infinite;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, #7FCAFF 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(43,130,212,0.65);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(43,130,212,0.12);
  color: #fff;
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: all var(--transition);
}

#site-nav.scrolled {
  background: rgba(7, 16, 28, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 32px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 44px;
  width: auto;
  border-radius: 8px;
  /* White-bg logo: show cleanly on dark nav with a subtle pill container */
  background: #fff;
  padding: 3px 6px;
  box-shadow: 0 0 12px rgba(43,130,212,0.35);
  transition: box-shadow var(--transition);
}

.nav-logo:hover img {
  box-shadow: 0 0 22px rgba(43,130,212,0.65);
}

.nav-logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.nav-logo-text span {
  color: var(--primary-light);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover {
  color: #fff;
  background: rgba(43,130,212,0.1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(5, 12, 22, 0.88) 0%,
    rgba(7, 16, 28, 0.75) 50%,
    rgba(5, 12, 22, 0.92) 100%
  );
  z-index: 1;
}

/* Animated grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(43,130,212,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,130,212,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 840px;
  padding: 0 32px;
  margin: 0 auto;
  text-align: center;
  animation: fadeInUp 1s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(43,130,212,0.12);
  border: 1px solid rgba(43,130,212,0.3);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
  animation: fadeInUp 1s 0.2s ease both;
}

.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary-light);
  animation: pulse 2s infinite;
}

.hero-headline {
  margin-bottom: 24px;
  animation: fadeInUp 1s 0.35s ease both;
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 1s 0.5s ease both;
}

.hero-cta {
  animation: fadeInUp 1s 0.65s ease both;
  justify-content: center;
  margin-bottom: 64px;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 2s infinite;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--primary-light));
}

/* ============================================================
   STATS BAR (below hero)
   ============================================================ */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 12px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-orb {
  width: 100%;
  aspect-ratio: 1;
  max-width: 440px;
  margin: 0 auto;
  background: radial-gradient(ellipse at center, rgba(43,130,212,0.25) 0%, transparent 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 4s ease-in-out infinite;
}

.about-icon-ring {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* Rotating conic border — sits as a ::before pseudo outside the clip */
  overflow: visible;
}

/* Radar/spinning ring removed */
.about-icon-ring::before { display: none; }

/* Video container — circular clip */
.about-video-container {
  position: relative;
  z-index: 1;
  width: 288px;
  height: 288px;
  border-radius: 50%;
  overflow: hidden;
}

/* Video: fills the circle cleanly, no effects */
.about-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 50%;
}

.about-text .section-label { margin-bottom: 16px; }
.about-text .display-md    { margin-bottom: 20px; }

.about-body {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.75;
}

/* ── Industry Cards ─────────────────────────────────────────── */
.about-industries {
  margin-top: 28px;
}

.about-industries-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.about-industries-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

.industry-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.industry-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 1rem;       /* match paragraph font-size */
  font-weight: 400;      /* match paragraph weight */
  color: var(--text-secondary); /* exact same as .about-body */
  text-align: center;
  cursor: default;
  transition: all var(--transition);
  line-height: 1.65;     /* match paragraph line-height */
}

.industry-card:hover {
  background: rgba(43,130,212,0.1);
  border-color: var(--primary);
  color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 12px var(--primary-glow-lg);
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: all var(--transition);
}

.pillar:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow-lg);
  transform: translateY(-3px);
}

.pillar-icon { display: none; } /* removed emoji icons for enterprise tone */

.pillar-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.pillar-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
#services .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition);
  position: relative;
  /* overflow must stay visible so tooltips inside are not clipped */
  overflow: visible;
}

/* Top accent line: use border-top on hover instead of ::before+overflow:hidden */
.service-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), var(--shadow-glow);
  background: var(--bg-card-hover);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(43,130,212,0.12);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(43,130,212,0.22);
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
}

.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.service-feature-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--primary-light);
  margin-top: 6px;
}

/* ── Featured service card (Legacy Migration) ─────────────── */
.service-card--featured {
  border-color: rgba(43,130,212,0.4);
  background: linear-gradient(160deg, var(--bg-card) 0%, rgba(43,130,212,0.06) 100%);
  position: relative;
}

.service-card--featured::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(43,130,212,0.3);
  pointer-events: none;
}

.service-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  box-shadow: 0 2px 12px rgba(43,130,212,0.4);
}

/* Legacy sub-cards */
.legacy-approaches {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.legacy-approach {
  background: rgba(43,130,212,0.06);
  border: 1px solid rgba(43,130,212,0.15);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: all var(--transition);
}

.legacy-approach:hover {
  background: rgba(43,130,212,0.1);
  border-color: rgba(43,130,212,0.3);
}

.legacy-approach-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 8px;
}

.legacy-approach-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Budget guide — accordion style ───────────────────────── */
.budget-guide {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Wrapper — positioning parent for the overlay detail */
.budget-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: visible; /* allow detail to overlay below */
}

/* Hoverable row */
.budget-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: rgba(43,130,212,0.06);
  border: 1px solid rgba(43,130,212,0.18);
  border-radius: var(--radius-sm);
  cursor: default;
  gap: 12px;
  transition: background var(--transition), border-color var(--transition);
}

.budget-item:hover .budget-row {
  background: rgba(43,130,212,0.13);
  border-color: rgba(43,130,212,0.4);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.budget-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.budget-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Tier dots */
.budget-tier-dot {
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--primary-light);
  box-shadow: 0 0 6px var(--primary-glow);
}
.budget-tier-dot--sm { width: 8px;  height: 8px;  opacity: 0.55; }
.budget-tier-dot--md { width: 10px; height: 10px; opacity: 0.8;  }
.budget-tier-dot--lg { width: 12px; height: 12px; opacity: 1.0;  }

.budget-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.budget-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-light);
  white-space: nowrap;
}

/* Detail panel — overlays content below, does NOT expand the card */
.budget-detail {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
  background: #0D1E30;
  border: 1px solid rgba(43,130,212,0.35);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 10px 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.budget-item:hover .budget-detail {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ============================================================
   AI & AUTOMATION SECTION
   ============================================================ */
#ai .ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.ai-features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ai-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.ai-feature:hover {
  border-color: var(--primary);
  transform: translateX(6px);
  box-shadow: -4px 0 20px var(--primary-glow-lg);
}

.ai-feature-icon {
  font-size: 1.8rem;
  min-width: 48px;
  text-align: center;
}

.ai-feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.ai-feature-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── AI Visual — premium energy core ──────────────────────────────────────── */

/* Outer container: holds ambient glow layer behind the image */
.ai-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ambient radial glow — sits behind everything, bleeds into the section bg */
.ai-visual::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle,
    rgba(0, 150, 255, 0.18) 0%,
    rgba(43, 130, 212, 0.08) 45%,
    transparent 70%
  );
  filter: blur(52px);
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
}

/* Frame: constrains size, positions correctly */
.ai-visual-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*
 * The image itself:
 *
 * mask-image (radial gradient):
 *   — center (55%) stays fully opaque
 *   — between 55%–85% the image smoothly fades to transparent
 *   — beyond 85% is fully transparent — no hard edge ever visible
 *
 * filter:
 *   — brightness: compensates for slight darkening from the mask
 *   — saturate: makes the blue tones pop against the dark bg
 *   — drop-shadow: adds a glowing blue halo that follows the image shape,
 *     not a box — so it only glows where the image is actually visible
 *
 * animation: slow vertical float — premium, not bouncy
 */
.ai-visual-frame img {
  width: 100%;
  height: auto;
  display: block;

  /* Radial fade mask — removes all hard edges */
  -webkit-mask-image: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    black 0%,
    black 45%,
    transparent 78%
  );
  mask-image: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    black 0%,
    black 45%,
    transparent 78%
  );

  /* Glow: drop-shadow traces image shape, not a box */
  filter:
    brightness(1.08)
    saturate(1.2)
    drop-shadow(0 0 24px rgba(0, 160, 255, 0.5))
    drop-shadow(0 0 60px rgba(0, 100, 220, 0.25));

  /* Slow premium float */
  animation: aiFloat 7s ease-in-out infinite;
}

@keyframes aiFloat {
  0%, 100% { transform: translateY(0);     }
  50%       { transform: translateY(-12px); }
}

/* ============================================================
   MEOWTAIL / ECOMMERCE SECTION
   ============================================================ */
#ecommerce {
  background: var(--bg-section-alt);
}

.meowtail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.meowtail-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(43,130,212,0.15), rgba(90,170,240,0.1));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-light);
}

.meowtail-platform {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ── Meowtail proof items ─────────────────────────────────── */
.meowtail-proof {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
  padding: 16px 20px;
  background: rgba(43,130,212,0.06);
  border: 1px solid rgba(43,130,212,0.18);
  border-radius: var(--radius-md);
}

.meowtail-proof-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.meowtail-proof-icon {
  font-size: 1.1rem;
  line-height: 1;
  color: var(--primary-light);
  margin-top: 1px;
  flex-shrink: 0;
}

.platform-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 28px;
}

.platform-integrations {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.integration-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.integration-tag:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

.platform-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.platform-feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition);
}

.platform-feature:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.platform-feature-icon {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.platform-feature-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.platform-feature-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
#how-it-works .steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 1px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
  opacity: 0.3;
}

.step-card {
  text-align: center;
  padding: 40px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
}

.step-card:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), var(--shadow-glow);
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 24px;
  box-shadow: 0 0 24px var(--primary-glow);
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
#cta {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-base) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(43,130,212,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  margin-bottom: 16px;
  position: relative;
}

.cta-sub {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 40px;
}

.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 780px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item[open] {
  border-color: rgba(43,130,212,0.4);
}
.faq-item:hover {
  border-color: rgba(43,130,212,0.3);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  gap: 12px;
  line-height: 1.4;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.22s ease;
}
.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}
/* FAQ answer wrapper — spacing between question bar and the inner box */
.faq-answer {
  padding: 6px 16px 16px;
  border-top: 1px solid rgba(43,130,212,0.2);
  background: transparent;
}
/* FAQ answer inner box — the styled dark card */
.faq-answer-inner {
  background: #0D1E30;
  border: 1px solid rgba(43,130,212,0.22);
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-answer-inner p {
  font-size: 0.92rem;
  color: #8AB0CE;
  line-height: 1.75;
  margin: 0;
}
.faq-answer-inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.faq-answer-inner ul li {
  font-size: 0.92rem;
  color: #8AB0CE;
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
}
.faq-answer-inner ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #5AAAF0;
}
.faq-answer-inner a {
  color: #5AAAF0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.faq-answer-inner strong {
  color: #E8F2FF;
}

@media (max-width: 700px) {
  .faq-grid {
    gap: 8px;
  }
}

/* ============================================================
   PAGE TEMPLATE (Privacy Policy, T&C, etc.)
   ============================================================ */
.page-banner {
  padding: 168px 0 56px;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(43,130,212,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-banner-breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.page-banner-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.page-banner-breadcrumb a:hover { color: var(--primary-light); }
.page-banner-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.15;
}
.page-banner-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.page-content-section {
  padding: 72px 0 96px;
  background: var(--bg-base);
}
.page-content-wrap {
  max-width: 780px;
}

/* Prose styles for WP editor content */
.page-content-wrap h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 48px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.page-content-wrap h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 32px 0 10px;
}
.page-content-wrap p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}
.page-content-wrap ul,
.page-content-wrap ol {
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 24px;
  margin-bottom: 16px;
}
.page-content-wrap li { margin-bottom: 6px; }
.page-content-wrap a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-content-wrap a:hover { color: var(--text-primary); }
.page-content-wrap strong { color: var(--text-primary); font-weight: 600; }
.page-content-wrap hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* Footer on page.php — reuse same footer but with home links */
.footer-legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.footer-legal-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal-links a:hover { color: var(--text-secondary); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand-logo img {
  background: #fff;
  padding: 2px 5px;
  border-radius: 6px;
  opacity: 0.9;
  transition: opacity var(--transition);
}

.footer-brand-logo:hover img {
  opacity: 1;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.footer-brand-name span {
  color: var(--primary-light);
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: rgba(43,130,212,0.15);
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-2px);
}

.footer-col-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-contact-icon {
  font-size: 0.9rem;
  min-width: 20px;
  color: var(--primary-light);
  margin-top: 1px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-legal a:hover {
  color: var(--primary-light);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 72px;
  background: rgba(7, 16, 28, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 32px;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--border);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 1.1rem;
  color: var(--text-secondary);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.mobile-menu a:hover {
  color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  #about .about-grid,
  #ai .ai-grid,
  .meowtail-platform {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .about-visual { order: -1; }

  .ai-visual-frame {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-links,
  .nav-cta .btn:not(.btn-primary) {
    display: none;
  }

  .nav-hamburger { display: flex; }

  .nav-cta .btn-primary { display: none; }

  #services .services-grid {
    grid-template-columns: 1fr;
  }

  #how-it-works .steps-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid::before { display: none; }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-pillars {
    grid-template-columns: 1fr;
  }

  .platform-features-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .btn-group,
  .cta-btns,
  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}
