/*
Theme Name: LoomReach AI Agency
Theme URI: https://loomreach.ai
Author: LoomReach Limited
Author URI: https://loomreach.ai
Description: Inbound revenue infrastructure for clinics and high-value service businesses. AI call handling. Google demand. 24/7 coverage.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: Proprietary
License URI: https://loomreach.ai/terms
Text Domain: loomreach
Tags: ai, agency, dark, technology, automation, marketing, b2b

© 2025 LoomReach Limited
Registered in England and Wales
Company No. 16839451
Milton Keynes, UK

CHANGELOG v2.0.0 - OFFER V2 STRATEGIC REPOSITIONING:
- NEW: Homepage rewritten for inbound revenue system positioning
- NEW: Navigation updated (Home, How It Works, Who It's For, Pricing, Case Examples, Other Solutions, Book a Call)
- NEW: page-other-solutions.php preserves old AI growth offers
- NEW: offerv2.css — calm, premium, minimal design system
- NEW: Footer updated with new positioning and simplified navigation
- CHANGED: Header CTA from "Book Audit" to "Book a Call"
- CHANGED: Language switcher removed (was already hidden)
- CHANGED: Targeting clinics and high-value service businesses
- REMOVED: Hero animation, metrics bar, trust badges, pipeline diagram
- REMOVED: Flashy gradients and over-animation

CHANGELOG v1.5.0 - AESTHETIC FIXES & PHONE UPDATE:
- FIXED: All phone numbers updated to 07939304897
- FIXED: WhatsApp links now point to wa.me/447939304897
- FIXED: Problem card borders increased from 0.2 to 0.4 opacity
- FIXED: Section gaps reduced (100px to 80px padding)
- FIXED: FAQ sections converted to interactive accordions (both pages)
- FIXED: Stats cards now have visible borders
- FIXED: Guarantee card icons and text visibility improved
- FIXED: Comparison cards have visible borders
- FIXED: Body text contrast increased
- ADDED: Scroll-to-top button with smooth scroll
- ADDED: Smooth scroll for all anchor links
- ADDED: Before/after image directory structure
- REMOVED: Non-functional language switcher (hidden via CSS)
- IMPROVED: Footer brand gradient and personality
- IMPROVED: Section tag color variety
- IMPROVED: HITL card header layout simplified
- IMPROVED: Services page section spacing reduced

CHANGELOG v1.4.0 - RECAPTCHA BADGE HIDDEN:
- ADDED: CSS to hide Google reCAPTCHA v3 badge
- ADDED: Required text attribution in footer (Google requirement)
- reCAPTCHA protection still works, just badge is hidden

CHANGELOG v1.3.9 - FOOTER CONTACT ROW:
- CHANGED: Contact section now in ONE horizontal row under 2 columns
- CHANGED: Contact items separated by bullets (•)
- CHANGED: Contact header hidden on mobile
- IMPROVED: Flex-wrap for proper line breaking on small screens

CHANGELOG v1.3.8 - FOOTER 2-COLUMN LAYOUT:
- CHANGED: Footer now 2 columns on mobile (AI Depts | Company | Contact)
- CHANGED: Email from hello@loomreach.ai to loomreach@loomreach.ai
- IMPROVED: More compact footer with tighter spacing
- IMPROVED: Smaller font sizes for better fit

CHANGELOG v1.3.7 - MOBILE BRIGHTNESS & HITL FIX:
- FIXED: HITL cards - header now in ONE line: "1 [AI] AI EXECUTION"
- FIXED: HITL cards - aligned LEFT on mobile
- IMPROVED: Text colors much BRIGHTER (#cbd5e1 instead of #94a3b8)
- IMPROVED: Footer - simpler single column layout
- IMPROVED: Footer links - brighter (#e2e8f0)
- IMPROVED: All list items now brighter and more readable
- IMPROVED: Small/meta text brighter (#94a3b8 instead of #64748b)
- Structure: Added .hitl-header flex container in PHP

CHANGELOG v1.3.6 - ICON COLOR FIX:
- FIXED: Pain Points section icons now display in red (#ef4444)
- Added: color:#ef4444 to all 6 pain point icon containers
- Icons now properly inherit red color via currentColor

CHANGELOG v1.3.5 - COMPLETE MOBILE REDESIGN:
- FIXED: Footer - compact 2x2 grid on tablet, single column on phone
- FIXED: Footer links - proper spacing and touch targets
- FIXED: Footer separators - hidden on small phones for better readability
- IMPROVED: Typography scale - better hierarchy on mobile
- IMPROVED: Section spacing - more compact and consistent
- IMPROVED: Grid layouts - proper responsive breakpoints
- IMPROVED: Navigation - cleaner, more professional look
- PRESERVED: All inline styles from PHP templates work correctly
- TESTED: Services page, Contact page, Homepage, all responsive

CHANGELOG v1.3.4 - SURGICAL MOBILE FIX:
- FIXED: Removed aggressive CSS selectors that broke inline styles
- FIXED: Pain point cards now display correctly (icon LEFT, text RIGHT)
- FIXED: Stage cards now display correctly (icon + STAGE + title in one row)
- FIXED: RECOMMENDED badge now uses original inline positioning (centered)
- FIXED: HITL cards now display correctly (centered vertical layout)
- CHANGED: Minimal CSS approach - only overrides essential layout properties
- PRESERVED: All inline styles from PHP templates now work correctly

CHANGELOG v1.3.3 - MOBILE UI/UX CRITICAL FIXES:
- Fixed: Stage cards - icon + "STAGE 1" + "CAPTURE" now stay in ONE horizontal line
- Fixed: RECOMMENDED badge positioning - centered on top edge of card
- Fixed: Checklist items - checkbox icon + text in horizontal line (no wrap)
- Fixed: Footer - proper 2-column grid on tablet, single column on phone
- Fixed: Industry cards - icon and text stay horizontal
- Improved: Pain point cards layout preserved
- Improved: Icons in all cards now visible and properly sized
- Preserved: Desktop layout unchanged (all fixes inside @media queries)

CHANGELOG v1.3.2 - MOBILE UI/UX OVERHAUL:
- Fixed: Mobile navigation bullet points completely removed
- Fixed: Guarantee grid layout (5 items now display correctly as 2+2+1 centered)
- Enhanced: Pain points cards with left accent border and horizontal layout
- Enhanced: Comparison cards (DIY vs LoomReach) with better visual hierarchy
- Enhanced: Stage cards with checkmark icons instead of bullets
- Enhanced: HITL cards with styled bullet points
- Added: Comprehensive typography scale for mobile
- Added: Better touch targets (60px for nav links)
- Added: Solid background for mobile nav (no transparency/ghosting)
- Added: Premium app-like feel throughout mobile experience
- Added: mobile-ui-overhaul.css with 17 sections of mobile improvements

CHANGELOG v1.3.1:
- Added: viewport-fit=cover for iPhone notch/Dynamic Island support
- Added: Safe area CSS environment variables (env(safe-area-inset-*))
- Fixed: Touch targets increased to 48px minimum (WCAG 2.2 / Apple HIG)
- Fixed: Mobile toggle button size 40px → 48px
- Added: prefers-reduced-motion media query (WCAG 2.2 required)
- Fixed: Form input heights set to 48px with 16px font (prevents iOS zoom)
- Added: High contrast mode focus states
- Added: 8px spacing grid CSS variables
- Added: Content visibility hints for performance
- Added: mobile-fixes.css with all 2024-2025 standards compliance

CHANGELOG v1.3.0:
- Fixed: Changed Lucide CDN from unpkg.com to cdn.jsdelivr.net (more reliable)
- Fixed: Lucide now loads in header (not footer) for earlier availability  
- Fixed: Enhanced retry mechanism with 50 attempts over 5 seconds
- Fixed: Added fallback styling if icons fail to load
- Fixed: Updated preconnect hints for jsdelivr

CHANGELOG v1.2.2:
- Fixed: Lucide icons race condition - removed defer from lucide-icons script
- Fixed: Robust icon initialization with retry mechanism in footer.php
- Fixed: Icons now initialize on DOMContentLoaded, window.load, and with retry fallback

CHANGELOG v1.2.1:
- Fixed: Lucide icons not displaying - added lucide.createIcons() initialization
- Fixed: Added fallback icon initialization on window.load event
- Added: Global LoomReach.initIcons() function for dynamic content

CHANGELOG v1.2.0:
- Performance: Extracted 202KB inline CSS into 15 separate CSS files
- Performance: Added conditional CSS loading (only load styles needed for current page)
- Performance: Created assets/css/pages/ directory for page-specific styles
- Security: Fixed escaping in loomreach_breadcrumb() function
- Security: Added absint() to search results count
- Accessibility: Added skip-link for keyboard navigation
- Accessibility: Added aria-label to gallery navigation buttons
- Accessibility: Added id="main-content" to all main elements
- SEO: Enhanced Open Graph tags with og:image, og:site_name, og:locale
- SEO: Added Twitter Card meta tags
- SEO: Added robots meta for search/404 pages
- SEO: Meta tags now work on all page types (single, archive, search)

CHANGELOG v1.1.1:
- Security: Fixed XSS vulnerability in search.php (get_search_query)
- Security: Fixed CSS injection in single-portfolio.php
- Security: Fixed CSS injection in page-service-web.php
- Security: Added rel="noopener noreferrer" to all target="_blank" links
- SEO: Added canonical URL support
- Performance: Added lazy loading for images
- Performance: Added decoding="async" for images

CHANGELOG v1.1.0:
- Security: Fixed $_SERVER sanitization in header.php
- Security: Added esc_url() and esc_html() to all output functions
- Performance: Extracted inline CSS to separate files
- Performance: Fixed lucide-icons version (0.263.1)
- Cleanup: Removed duplicate and backup files
- Code: Improved WordPress coding standards compliance
*/

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Primary Colors */
  --color-bg-primary: #0a0b0f;
  --color-bg-secondary: #12141c;
  --color-bg-tertiary: #1a1d28;
  --color-bg-card: rgba(26, 29, 40, 0.8);
  
  /* Text Colors */
  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  
  /* Accent Colors */
  --color-accent-primary: #6366f1;
  --color-accent-secondary: #8b5cf6;
  --color-accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  
  /* Department Colors */
  --color-sales: #3b82f6;
  --color-sales-glow: rgba(59, 130, 246, 0.3);
  --color-marketing: #a855f7;
  --color-marketing-glow: rgba(168, 85, 247, 0.3);
  --color-ops: #06b6d4;
  --color-ops-glow: rgba(6, 182, 212, 0.3);
  
  /* Status Colors */
  --color-success: #22c55e;
  --color-success-glow: rgba(34, 197, 94, 0.3);
  --color-warning: #f59e0b;
  --color-gold: #fbbf24;
  --color-gold-glow: rgba(251, 191, 36, 0.4);
  --color-danger: #ef4444;
  
  /* Border & Effects */
  --border-color: rgba(148, 163, 184, 0.12);
  --border-glow: rgba(99, 102, 241, 0.4);
  --glass-bg: rgba(26, 29, 40, 0.6);
  --glass-border: rgba(148, 163, 184, 0.1);
  
  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
  --shadow-glow-success: 0 0 30px rgba(34, 197, 94, 0.4);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal: 400;
  --z-popover: 500;
  --z-tooltip: 600;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: var(--color-accent-primary);
  color: white;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-secondary);
}

strong, b {
  font-weight: 600;
  color: var(--color-text-primary);
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-bg-tertiary);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-sm {
  max-width: 768px;
}

.container-lg {
  max-width: 1440px;
}

.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section-sm {
  padding: var(--space-3xl) 0;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-text-primary) !important; }
.text-accent { color: var(--color-accent-primary); }
.text-success { color: var(--color-success); }

/* Spacing Utilities */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* ============================================
   COMPONENTS - BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent-gradient);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(99, 102, 241, 0.5);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--color-bg-tertiary);
  border-color: var(--color-accent-primary);
  color: var(--color-text-primary);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent-primary);
  border: 2px solid var(--color-accent-primary);
}

.btn-outline:hover {
  background: var(--color-accent-primary);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  padding: var(--space-sm) var(--space-md);
}

.btn-ghost:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1rem;
}

.btn-sm {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ============================================
   COMPONENTS - CARDS
   ============================================ */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  backdrop-filter: blur(12px);
}

.card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
}

/* Department Cards */
.card-sales {
  --accent: var(--color-sales);
  --glow: var(--color-sales-glow);
}

.card-marketing {
  --accent: var(--color-marketing);
  --glow: var(--color-marketing-glow);
}

.card-ops {
  --accent: var(--color-ops);
  --glow: var(--color-ops-glow);
}

.card-sales:hover,
.card-marketing:hover,
.card-ops:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--glow);
}

/* ============================================
   COMPONENTS - BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  color: var(--color-accent-primary);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-success);
  border-color: rgba(34, 197, 94, 0.3);
}

.badge-gold {
  background: rgba(251, 191, 36, 0.15);
  color: var(--color-gold);
  border-color: rgba(251, 191, 36, 0.3);
}

.badge-sales {
  background: rgba(59, 130, 246, 0.15);
  color: var(--color-sales);
  border-color: rgba(59, 130, 246, 0.3);
}

.badge-marketing {
  background: rgba(168, 85, 247, 0.15);
  color: var(--color-marketing);
  border-color: rgba(168, 85, 247, 0.3);
}

.badge-ops {
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-ops);
  border-color: rgba(6, 182, 212, 0.3);
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-md) 0;
  transition: all var(--transition-base);
}

.site-header.scrolled {
  background: rgba(10, 11, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-sm) 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
}

.site-logo svg {
  color: var(--color-accent-primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.main-nav a {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--transition-fast);
}

@media (max-width: 1024px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-bg-secondary);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4xl) var(--space-xl);
    gap: var(--space-sm);
    transition: right var(--transition-base);
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav a {
    font-size: 1.125rem;
    padding: var(--space-md);
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .header-cta .btn {
    display: none;
  }
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.1), transparent),
    var(--color-bg-primary);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: 
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.hero-text {
  max-width: 640px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding: var(--space-xs) var(--space-md);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-accent-primary);
}

.hero-title {
  margin-bottom: var(--space-lg);
}

.hero-title .gradient-text {
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.hero-body {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.trust-item svg {
  color: var(--color-success);
}

/* Hero Visual - Dashboard Mockup */
.hero-visual {
  position: relative;
}

.dashboard-mockup {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-xl);
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

.dashboard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dashboard-dot.red { background: #ef4444; }
.dashboard-dot.yellow { background: #f59e0b; }
.dashboard-dot.green { background: #22c55e; }

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.stat-card {
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.stat-value.success { color: var(--color-success); }

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--space-xs);
  font-size: 0.6875rem;
  color: var(--color-success);
}

.dashboard-activity {
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.activity-title {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.activity-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

.activity-icon.success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-success);
}

.activity-icon.warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
}

.verified-stamp {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--color-success);
  color: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  box-shadow: var(--shadow-glow-success);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 40px rgba(34, 197, 94, 0.6); }
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text {
    max-width: 100%;
  }
  
  .hero-ctas,
  .hero-trust {
    justify-content: center;
  }
  
  .hero-visual {
    display: none;
  }
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem-section {
  background: var(--color-bg-secondary);
  position: relative;
}

.problem-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-danger), transparent);
}

.problem-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
}

.problem-header h2 {
  margin-bottom: var(--space-lg);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.problem-list h3 {
  margin-bottom: var(--space-lg);
  color: var(--color-danger);
}

.problem-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-color);
}

.problem-item svg {
  flex-shrink: 0;
  color: var(--color-danger);
}

.slop-examples {
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.slop-examples h3 {
  margin-bottom: var(--space-lg);
  color: var(--color-text-primary);
}

.slop-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  background: rgba(239, 68, 68, 0.05);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.slop-item span {
  color: var(--color-danger);
}

/* Comparison Table */
.comparison-table {
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background: var(--color-bg-secondary);
  font-family: var(--font-display);
  font-weight: 600;
}

.comparison-table th:first-child {
  color: var(--color-text-muted);
}

.comparison-table th:last-child {
  color: var(--color-success);
}

.comparison-table td:first-child {
  color: var(--color-text-muted);
}

.comparison-table td:last-child {
  color: var(--color-text-primary);
  font-weight: 500;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
  
  .comparison-table {
    overflow-x: auto;
  }
  
  .comparison-table table {
    min-width: 500px;
  }
}

/* ============================================
   SOLUTION SECTION
   ============================================ */
.solution-section {
  position: relative;
}

.solution-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent-primary), transparent);
}

.solution-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
}

.solution-visual {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-3xl);
}

.orbit-container {
  position: relative;
  width: 400px;
  height: 400px;
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: var(--color-accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  z-index: 2;
}

.orbit-center svg {
  width: 48px;
  height: 48px;
  color: white;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed var(--border-color);
  border-radius: 50%;
  animation: orbit-spin 60s linear infinite;
}

.orbit-ring-1 { width: 250px; height: 250px; }
.orbit-ring-2 { width: 350px; height: 350px; animation-direction: reverse; animation-duration: 80s; }

.orbit-node {
  position: absolute;
  width: 56px;
  height: 56px;
  background: var(--color-bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  cursor: pointer;
  animation: counter-spin 60s linear infinite;
}

.orbit-node:hover {
  transform: scale(1.2);
  border-color: var(--color-accent-primary);
  box-shadow: var(--shadow-glow);
}

.orbit-node svg {
  width: 24px;
  height: 24px;
}

.orbit-node.sales { color: var(--color-sales); }
.orbit-node.marketing { color: var(--color-marketing); }
.orbit-node.ops { color: var(--color-ops); }

@keyframes orbit-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

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

/* Key Insight Box */
.insight-box {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-accent-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  position: relative;
}

.insight-box::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 40px;
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--color-accent-primary);
  opacity: 0.3;
  line-height: 1;
}

.insight-box p {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 0;
}

/* ============================================
   DEPARTMENTS SECTION
   ============================================ */
.departments-section {
  background: var(--color-bg-secondary);
}

.departments-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.department-card {
  background: var(--color-bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.department-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

.department-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px var(--glow);
}

.department-icon {
  width: 64px;
  height: 64px;
  background: rgba(var(--accent-rgb), 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.department-icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.card-sales {
  --accent: var(--color-sales);
  --glow: var(--color-sales-glow);
  --accent-rgb: 59, 130, 246;
}

.card-marketing {
  --accent: var(--color-marketing);
  --glow: var(--color-marketing-glow);
  --accent-rgb: 168, 85, 247;
}

.card-ops {
  --accent: var(--color-ops);
  --glow: var(--color-ops-glow);
  --accent-rgb: 6, 182, 212;
}

.department-card h3 {
  margin: 0;
  padding: 0;
  line-height: 1.3;
  display: flex;
  align-items: center;
}

/* Department card header row */
.department-card > div:first-child {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.department-card p {
  margin-bottom: var(--space-lg);
}

.system-list {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.system-list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.system-list li:last-child {
  border-bottom: none;
}

.system-list svg {
  color: var(--accent);
  flex-shrink: 0;
}

.department-metric {
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-align: center;
}

@media (max-width: 1024px) {
  .departments-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .department-card > div:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .department-card h3 {
    font-size: 1.1rem;
    margin: 0;
    padding: 0;
    line-height: 1.3;
  }
  
  .department-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
}

/* ============================================
   HITL PROTOCOL SECTION
   ============================================ */
.hitl-section {
  position: relative;
}

.hitl-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
}

.hitl-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 1000px;
  margin: 0 auto var(--space-3xl);
  padding: 0 var(--space-xl);
}

.hitl-timeline::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 100px;
  right: 100px;
  height: 2px;
  background: linear-gradient(90deg, 
    var(--color-sales) 0%, 
    var(--color-sales) 25%, 
    var(--color-gold) 25%, 
    var(--color-gold) 50%, 
    var(--color-marketing) 50%, 
    var(--color-marketing) 75%, 
    var(--color-gold) 75%
  );
}

.hitl-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 200px;
  position: relative;
  z-index: 2;
}

.stage-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  position: relative;
}

.stage-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.stage-icon.ai {
  background: linear-gradient(135deg, var(--color-sales), var(--color-marketing));
  box-shadow: 0 0 30px var(--color-sales-glow);
}

.stage-icon.human {
  background: linear-gradient(135deg, var(--color-gold), var(--color-warning));
  box-shadow: 0 0 30px var(--color-gold-glow);
}

.stage-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
}

.stage-label.ai {
  background: rgba(59, 130, 246, 0.15);
  color: var(--color-sales);
}

.stage-label.human {
  background: rgba(251, 191, 36, 0.15);
  color: var(--color-gold);
}

.hitl-stage h4 {
  font-size: 0.9375rem;
  margin-bottom: var(--space-sm);
}

.hitl-stage p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* HITL Comparison */
.hitl-comparison {
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 800px;
  margin: 0 auto;
}

.hitl-comparison-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.hitl-comparison-row:last-child {
  border-bottom: none;
}

.comparison-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.comparison-flow {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
}

.comparison-flow .arrow {
  color: var(--color-text-muted);
}

.comparison-flow.bad {
  color: var(--color-text-muted);
}

.comparison-flow.good {
  color: var(--color-text-primary);
}

.comparison-flow .highlight {
  color: var(--color-success);
  font-weight: 600;
}

@media (max-width: 900px) {
  .hitl-timeline {
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
  }
  
  .hitl-timeline::before {
    display: none;
  }
  
  .hitl-stage {
    width: 100%;
    max-width: 300px;
  }
}

/* ============================================
   OUTCOME-BASED SECTION
   ============================================ */
.outcome-section {
  background: var(--color-bg-secondary);
}

.outcome-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.outcome-card {
  background: var(--color-bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-base);
}

.outcome-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent-primary);
}

.outcome-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-lg);
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.outcome-icon svg {
  width: 36px;
  height: 36px;
  color: var(--color-accent-primary);
}

.outcome-card h3 {
  margin-bottom: var(--space-md);
}

.outcome-benefit {
  display: inline-block;
  margin-top: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  background: rgba(34, 197, 94, 0.1);
  color: var(--color-success);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Pricing Philosophy Box */
.pricing-philosophy {
  background: var(--color-bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.pricing-philosophy h4 {
  margin-bottom: var(--space-lg);
}

.pricing-row {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.pricing-item {
  text-align: center;
}

.pricing-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.pricing-value {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}

.pricing-value.old {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

.pricing-value.new {
  color: var(--color-success);
}

@media (max-width: 768px) {
  .outcome-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================
   GUARANTEE SECTION
   ============================================ */
.guarantee-section {
  position: relative;
}

.guarantee-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.guarantee-text h2 {
  margin-bottom: var(--space-lg);
}

.guarantee-list {
  list-style: none;
  margin: var(--space-xl) 0;
}

.guarantee-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-color);
}

.guarantee-list li:last-child {
  border-bottom: none;
}

.guarantee-list svg {
  flex-shrink: 0;
  color: var(--color-danger);
}

.guarantee-promise {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-xl);
}

.guarantee-promise p {
  color: var(--color-success);
  font-weight: 600;
  margin: 0;
}

/* Guarantee Seal */
.guarantee-seal {
  background: var(--color-bg-tertiary);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl);
  text-align: center;
  position: relative;
  box-shadow: 0 0 60px var(--color-gold-glow);
}

.seal-badge {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal-badge svg {
  width: 32px;
  height: 32px;
  color: var(--color-bg-primary);
}

.seal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
  margin-top: var(--space-lg);
}

.seal-subtitle {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.seal-promise {
  font-size: 0.9375rem;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xl);
}

.seal-signature {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .guarantee-content {
    grid-template-columns: 1fr;
  }
  
  .guarantee-seal {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ============================================
   SOCIAL PROOF SECTION
   ============================================ */
.social-proof-section {
  background: var(--color-bg-secondary);
}

.social-proof-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.case-study-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.case-study-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-color, var(--color-accent-primary));
  opacity: 0;
  transition: opacity 0.3s;
}

.case-study-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-color, var(--color-accent-primary));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.case-study-card:hover::before {
  opacity: 1;
}

.case-study-card:hover .view-case {
  color: var(--card-color, var(--color-accent-primary));
  gap: 8px;
}

.case-study-header {
  background: var(--color-bg-tertiary);
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}

.case-study-header h4 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.case-study-header p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0;
}

.case-study-body {
  padding: var(--space-xl);
}

.case-study-challenge {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}

.case-study-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.result-item {
  text-align: center;
}

.result-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-success);
}

.result-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.case-study-footer {
  padding: var(--space-md) var(--space-xl);
  background: var(--color-bg-tertiary);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.view-case {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: all 0.3s;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.testimonial-card {
  background: var(--color-bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 24px;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--color-accent-primary);
  opacity: 0.2;
  line-height: 1;
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 2;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  max-width: 48px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: white;
  overflow: hidden;
}

/* Prevent translation of avatar initials */
.author-avatar.notranslate,
.author-avatar[translate="no"] {
  font-size: 14px !important;
}

.author-info {
  flex: 1;
}

.author-info h5 {
  font-size: 15px;
  font-weight: 600;
  color: #f8fafc;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.author-info p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.3;
}

@media (max-width: 1024px) {
  .case-studies-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   JOURNEY SECTION
   ============================================ */
.journey-section {
  position: relative;
}

.journey-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
}

.journey-pyramid {
  max-width: 900px;
  margin: 0 auto;
}

.pyramid-stage {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-md);
  background: var(--color-bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  cursor: pointer;
}

.pyramid-stage:hover {
  border-color: var(--color-accent-primary);
  transform: translateX(8px);
}

.pyramid-stage.active {
  border-color: var(--color-success);
  background: rgba(34, 197, 94, 0.05);
}

.stage-number {
  width: 48px;
  height: 48px;
  background: var(--color-bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.pyramid-stage.active .stage-number {
  background: var(--color-success);
  border-color: var(--color-success);
  color: white;
}

.stage-content {
  flex: 1;
}

.stage-content h4 {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.stage-content p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

.stage-timeline {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  background: var(--color-bg-tertiary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
}

/* ============================================
   FINAL CTA SECTION
   ============================================ */
.final-cta-section {
  background: var(--color-bg-secondary);
  position: relative;
  overflow: hidden;
}

.final-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-success), transparent);
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(34, 197, 94, 0.1), transparent);
}

.final-cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.final-cta-content h2 {
  margin-bottom: var(--space-lg);
}

.final-cta-content > p {
  font-size: 1.125rem;
  margin-bottom: var(--space-2xl);
}

.cta-checklist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.cta-checklist-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.cta-checklist-item svg {
  color: var(--color-success);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.cta-reassurance {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-bg-primary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand .site-logo {
  margin-bottom: var(--space-lg);
}

.footer-brand p {
  font-size: 0.9375rem;
  max-width: 300px;
}

.footer-nav h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: var(--space-sm);
}

.footer-nav a {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--color-text-primary);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--color-accent-primary);
  color: white;
}

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

.footer-legal {
  display: flex;
  gap: var(--space-xl);
}

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

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

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

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* ============================================
   PAGE TEMPLATES
   ============================================ */
.page-header {
  padding: 140px 0 var(--space-4xl);
  background: var(--color-bg-secondary);
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent-primary), transparent);
}

.page-header h1 {
  margin-bottom: var(--space-md);
}

.breadcrumb {
  display: flex;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-accent-primary);
}

.breadcrumb span {
  color: var(--color-text-primary);
}

/* Page Content */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-lg);
}

.page-content h2 {
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
}

.page-content h3 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.page-content ul,
.page-content ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.page-content li {
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
}

/* ============================================
   BLOG STYLES
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.blog-card {
  background: var(--color-bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent-primary);
}

.blog-card-image {
  aspect-ratio: 16/9;
  background: var(--color-bg-tertiary);
  position: relative;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-content {
  padding: var(--space-xl);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.blog-card h3 a {
  color: var(--color-text-primary);
}

.blog-card h3 a:hover {
  color: var(--color-accent-primary);
}

.blog-card p {
  font-size: 0.9375rem;
  margin-bottom: var(--space-lg);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 500;
  font-size: 0.9375rem;
}

.read-more svg {
  transition: transform var(--transition-fast);
}

.read-more:hover svg {
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Single Post */
.single-post-header {
  padding: 140px 0 var(--space-4xl);
  background: var(--color-bg-secondary);
  text-align: center;
}

.single-post-meta {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.single-post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-lg);
}

.single-post-content img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  margin: var(--space-xl) 0;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
}

.contact-info h3 {
  margin-bottom: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item svg {
  color: var(--color-accent-primary);
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.contact-item p {
  font-size: 0.9375rem;
  margin: 0;
}

.contact-item a {
  color: var(--color-text-secondary);
}

.contact-form-wrap {
  background: var(--color-bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-md);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent-primary);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PORTFOLIO PAGE
   ============================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.portfolio-card {
  background: var(--color-bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent-primary);
}

.portfolio-image {
  aspect-ratio: 16/10;
  background: var(--color-bg-tertiary);
  position: relative;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-content {
  padding: var(--space-xl);
}

.portfolio-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.portfolio-content h3 a {
  color: var(--color-text-primary);
}

.portfolio-content h3 a:hover {
  color: var(--color-accent-primary);
}

.portfolio-meta {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.portfolio-content p {
  font-size: 0.9375rem;
  margin-bottom: var(--space-lg);
}

.portfolio-results {
  display: flex;
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
}

.portfolio-result {
  text-align: center;
}

.portfolio-result-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-success);
}

.portfolio-result-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
/* Reveal animations - ALWAYS VISIBLE */
.reveal,
.reveal.active,
.reveal:not(.active),
.js-enabled .reveal,
.js-enabled .reveal:not(.active) {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.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; }

/* Counter Animation */
.counter {
  display: inline-block;
}

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

.float {
  animation: float 3s ease-in-out infinite;
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
.wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.alignleft {
  float: left;
  margin-right: var(--space-lg);
  margin-bottom: var(--space-md);
}

.alignright {
  float: right;
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

/* Screen Reader Text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Skip Link - visible on focus */
.skip-link:focus {
  background: var(--color-accent-primary);
  clip: auto !important;
  clip-path: none;
  color: #fff;
  display: block;
  font-size: 1rem;
  font-weight: 600;
  height: auto;
  left: 50%;
  padding: 16px 24px;
  position: fixed;
  text-decoration: none;
  top: 5px;
  transform: translateX(-50%);
  width: auto;
  z-index: 100000;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-3xl);
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.pagination a:hover {
  border-color: var(--color-accent-primary);
  color: var(--color-text-primary);
}

.pagination .current {
  background: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
  color: white;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .no-print {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* ===========================================
   Single Post Styles
   =========================================== */

.post-header {
  max-width: 800px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.post-date,
.post-read-time {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.post-title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.post-excerpt {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.post-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.post-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
}

.post-author__name {
  display: block;
  font-weight: 600;
  color: var(--color-text-primary);
}

.post-author__role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Post Layout */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-12);
  align-items: start;
}

.post-main {
  min-width: 0;
}

.post-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.post-featured-image {
  margin-bottom: var(--space-8);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  height: auto;
}

/* Prose Content */
.prose {
  color: var(--color-text-secondary);
  line-height: 1.8;
  font-size: var(--text-lg);
}

.prose h2 {
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.prose h3 {
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.prose p {
  margin-bottom: var(--space-6);
}

.prose ul,
.prose ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-6);
}

.prose li {
  margin-bottom: var(--space-2);
}

.prose blockquote {
  margin: var(--space-8) 0;
  padding: var(--space-6);
  background: rgba(99, 102, 241, 0.1);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: italic;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: var(--space-6) 0;
}

.prose code {
  background: rgba(255, 255, 255, 0.05);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.prose pre {
  background: var(--color-bg-secondary);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: var(--space-6) 0;
}

.prose pre code {
  background: none;
  padding: 0;
}

.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(99, 102, 241, 0.3);
  transition: text-decoration-color var(--transition-base);
}

.prose a:hover {
  text-decoration-color: var(--color-primary);
}

/* Post Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.post-tags__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.post-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag-link {
  padding: var(--space-1) var(--space-3);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: all var(--transition-base);
}

.tag-link:hover {
  background: rgba(99, 102, 241, 0.2);
  color: var(--color-primary);
}

/* Post Share */
.post-share {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.post-share__label {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.post-share__buttons {
  display: flex;
  gap: var(--space-2);
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-secondary);
  transition: all var(--transition-base);
}

.share-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.share-btn--linkedin:hover {
  background: #0077b5;
  border-color: #0077b5;
}

.share-btn--twitter:hover {
  background: #1da1f2;
  border-color: #1da1f2;
}

.share-btn--copy.copied {
  background: var(--color-success);
  border-color: var(--color-success);
  color: white;
}

/* Author Box */
.author-box {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-10);
  padding: var(--space-8);
}

.author-box__avatar img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--color-primary);
}

.author-box__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.author-box__name {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.author-box__bio {
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.author-box__links {
  display: flex;
  gap: var(--space-3);
}

.author-box__links a {
  color: var(--color-text-muted);
  transition: color var(--transition-base);
}

.author-box__links a:hover {
  color: var(--color-primary);
}

/* Post Navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.post-nav-link {
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.post-nav-link:hover {
  border-color: var(--color-primary);
  background: rgba(99, 102, 241, 0.05);
}

.post-nav-link--next {
  text-align: right;
}

.post-nav-link__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.post-nav-link--next .post-nav-link__label {
  justify-content: flex-end;
}

.post-nav-link__title {
  display: block;
  font-weight: 600;
  color: var(--color-text-primary);
}

/* Sidebar Widgets */
.sidebar-widget {
  padding: var(--space-6);
}

.sidebar-widget__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

/* TOC Widget */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  margin-bottom: var(--space-2);
}

.toc-item--h3 {
  padding-left: var(--space-4);
}

.toc-link {
  display: block;
  padding: var(--space-2) var(--space-3);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.toc-link:hover,
.toc-link.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
}

/* Related Posts Widget */
.related-posts {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.related-post {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.related-post:hover {
  background: rgba(99, 102, 241, 0.1);
}

.related-post__thumb {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.related-post__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-post__title {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--space-1);
  color: var(--color-text-primary);
}

.related-post__date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* CTA Widget */
.cta-widget {
  text-align: center;
}

.cta-widget__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 50%;
}

.cta-widget__icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.cta-widget__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.cta-widget__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

/* Newsletter Widget */
.newsletter-widget__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ===========================================
   Case Study Styles
   =========================================== */

.case-study-header {
  padding: var(--space-16) 0;
  background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 100%);
}

.case-study-header__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.case-study-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.case-study-header__title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.case-study-header__excerpt {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

.case-study-header__info {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-secondary);
}

.info-item a {
  color: var(--color-primary);
}

.case-study-header__image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.case-study-header__image img {
  width: 100%;
  height: auto;
}

/* Results Grid */
.case-study-results {
  padding: var(--space-12) 0;
  background: var(--color-bg-secondary);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.result-card {
  text-align: center;
  padding: var(--space-8);
}

.result-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.result-card__icon--sales {
  background: rgba(59, 130, 246, 0.2);
  color: var(--color-sales);
}

.result-card__icon--marketing {
  background: rgba(168, 85, 247, 0.2);
  color: var(--color-marketing);
}

.result-card__icon--ops {
  background: rgba(6, 182, 212, 0.2);
  color: var(--color-ops);
}

.result-card__icon--success {
  background: rgba(34, 197, 94, 0.2);
  color: var(--color-success);
}

.result-card__icon svg {
  width: 28px;
  height: 28px;
}

.result-card__value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.result-card__label {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

/* Case Study Layout */
.case-study-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: var(--space-12);
  align-items: start;
}

.case-study-main .prose {
  margin-bottom: var(--space-10);
}

.case-study-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* Project Details */
.project-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.project-detail {
  display: flex;
  justify-content: space-between;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.project-detail__label {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.project-detail__value {
  font-weight: 500;
  color: var(--color-text-primary);
}

/* Services Tags */
.services-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.service-tag {
  padding: var(--space-1) var(--space-3);
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-primary);
}

/* Case Study Testimonial */
.case-study-testimonial {
  padding: var(--space-8);
}

.testimonial-quote {
  position: relative;
  padding-left: var(--space-8);
}

.testimonial-quote__icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  opacity: 0.5;
}

.testimonial-quote blockquote {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.testimonial-author__avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 50%;
}

.testimonial-author__avatar svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.testimonial-author__name {
  display: block;
  font-weight: 600;
  color: var(--color-text-primary);
}

.testimonial-author__role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Share Buttons (sidebar) */
.share-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.share-buttons .share-btn {
  width: 100%;
  height: auto;
  padding: var(--space-3);
  gap: var(--space-2);
}

/* ===========================================
   Archive & Blog List Styles
   =========================================== */

.page-header--archive .page-header__count {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Stats Bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  margin-top: var(--space-10);
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.stat-item {
  text-align: center;
}

.stat-item__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
}

.stat-item__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Filter Tabs */
.portfolio-filter {
  padding: var(--space-8) 0;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.filter-tab {
  padding: var(--space-2) var(--space-5);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-base);
}

.filter-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* No Results */
.no-results {
  text-align: center;
  padding: var(--space-12);
  max-width: 500px;
  margin: 0 auto;
}

.no-results__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
}

.no-results__icon svg {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
}

.no-results h3 {
  margin-bottom: var(--space-3);
}

.no-results p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

/* ===========================================
   Responsive Adjustments for New Sections
   =========================================== */

@media (max-width: 1024px) {
  .post-layout,
  .case-study-layout {
    grid-template-columns: 1fr;
  }
  
  .post-sidebar,
  .case-study-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
  
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .case-study-header__content {
    grid-template-columns: 1fr;
  }
  
  .case-study-header__image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .post-sidebar,
  .case-study-sidebar {
    grid-template-columns: 1fr;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  .post-navigation {
    grid-template-columns: 1fr;
  }
  
  .author-box {
    flex-direction: column;
    text-align: center;
  }
  
  .stats-bar {
    flex-wrap: wrap;
    gap: var(--space-6);
  }
  
  .stat-item {
    flex: 0 0 45%;
  }
}

@media (max-width: 640px) {
  .post-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .case-study-header__info {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .stat-item {
    flex: 0 0 100%;
  }
}

/* ==========================================================================
   EMERGENCY VISIBILITY FIX - Force all content visible
   ========================================================================== */

/* Force all sections visible */
.section,
.hero,
section,
.container,
.hero-content,
.hero-text,
.hero-visual,
.problem-section,
.problem-grid,
.problem-list,
.slop-examples,
.comparison-table,
.solution-section,
.solution-header,
.solution-content,
.departments-section,
.departments-header,
.departments-grid,
.department-card,
.hitl-section,
.hitl-steps,
.outcome-section,
.guarantee-section,
.social-proof-section,
.journey-section,
.final-cta-section,
div, p, h1, h2, h3, h4, h5, h6, span, a, ul, li, table, thead, tbody, tr, td, th {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Ensure sections have proper display */
.section {
  padding: 80px 0 !important;
  display: block !important;
}

.container {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

/* Force text colors */
h1, h2, h3, h4, h5, h6 {
  color: #f8fafc !important;
}

p, li, span, td {
  color: #94a3b8 !important;
}

strong, b, th {
  color: #f8fafc !important;
}

/* Ensure grids work */
.departments-grid,
.problem-grid {
  display: grid !important;
}

@media (max-width: 768px) {
  .departments-grid,
  .problem-grid,
  .hero-content {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   MOBILE RESPONSIVE FIXES
   ========================================================================== */

/* Force mobile grid fixes */
@media (max-width: 968px) {
    .departments-grid {
        grid-template-columns: 1fr !important;
    }
    
    .hero-content {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-ctas {
        justify-content: center !important;
    }
    
    .hero-trust {
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    /* Typography scaling */
    h1, .page-title, .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    /* Section padding */
    section, .section {
        padding: 48px 0 !important;
    }
    
    .page-hero {
        padding: 100px 0 48px !important;
    }
    
    /* Container */
    .container {
        padding: 0 16px !important;
    }
    
    /* Grids to single column */
    .mission-grid,
    .company-grid,
    .problem-grid,
    .values-grid,
    .departments-grid,
    .pricing-grid,
    .faq-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    /* Stats grid */
    .mission-stats {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }
    
    .mission-stats .stat-item {
        padding: 16px 8px !important;
    }
    
    .mission-stats .stat-number {
        font-size: 1.5rem !important;
    }
    
    /* Buttons stack */
    .hero-ctas {
        flex-direction: column !important;
        width: 100%;
    }
    
    .hero-ctas a, .hero-ctas .btn {
        width: 100% !important;
        justify-content: center !important;
        text-align: center;
    }
    
    /* Hide desktop elements */
    .hero-visual,
    .dashboard-mockup {
        display: none !important;
    }
    
    /* Trust badges wrap */
    .hero-trust {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px !important;
    }
    
    /* Cards full width */
    .department-card,
    .service-card,
    .value-card,
    .case-study {
        padding: 24px !important;
    }
    
    /* Timeline vertical */
    .story-timeline > div {
        display: block !important;
    }
    
    .timeline-marker {
        margin: 0 auto 16px !important;
    }
    
    .timeline-content {
        margin-bottom: 32px !important;
    }
    
    /* Form inputs */
    form > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Contact grid */
    .contact-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Blog grid */
    .blog-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Portfolio grid */
    .portfolio-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Case study grid */
    .case-study > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1, .page-title, .hero-title {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.35rem !important;
    }
    
    .mission-stats {
        grid-template-columns: 1fr !important;
    }
    
    .hero-trust {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    /* Stats bar */
    .stats-bar > div {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Smaller padding */
    section, .section {
        padding: 40px 0 !important;
    }
    
    .container {
        padding: 0 12px !important;
    }
}

/* ==========================================================================
   BLOG SECTION MOBILE RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    #blog > div > div[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    #blog > div > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    .blog-related-grid {
        grid-template-columns: 1fr !important;
    }
}
