/**
 * LuyenAI Homepage - Facebook-Clean Style
 * Minimalist, clean, clear design inspired by Facebook
 * Iteration 4/11 - Hero visuals, comparison table, video, sticky CTA
 */

/* ==========================================================================
   CSS Variables - Facebook-Inspired Palette
   ========================================================================== */
:root {
    /* Facebook-inspired Colors */
    --fb-blue: #1877F2;
    --fb-blue-dark: #166FE5;
    --fb-blue-light: #E7F3FF;
    --fb-green: #42B72A;
    --fb-green-dark: #36A420;

    /* Neutral Palette */
    --color-white: #FFFFFF;
    --color-bg: #FFFFFF;
    --color-bg-secondary: #F0F2F5;
    --color-bg-tertiary: #E4E6EB;

    /* Text Colors */
    --color-text-primary: #050505;
    --color-text-secondary: #65676B;
    --color-text-tertiary: #8A8D91;
    --color-text-inverse: #FFFFFF;

    /* Borders */
    --color-border: #DADDE1;
    --color-border-light: #E4E6EB;

    /* Shadows - Elevation System (Refined for elegance) */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-elegant: 0 4px 20px rgba(0, 0, 0, 0.06);

    /* Hero Gradient */
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero-soft: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    --gradient-cta: linear-gradient(135deg, #1877F2 0%, #0d65d9 100%);

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 32px;
    --font-size-4xl: 40px;
    --font-size-5xl: 48px;
    --font-size-hero: 56px;

    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.4;
    --line-height-relaxed: 1.6;

    /* Spacing Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 100ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Layout */
    --container-max: 1080px;
    --container-narrow: 720px;
    --header-height: 60px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-primary);
    background-color: var(--color-bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--fb-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    text-decoration: underline;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Typography - Enhanced for Vietnamese
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--font-size-hero);
    letter-spacing: -0.03em;
    line-height: 1.08;
}
h2 {
    font-size: var(--font-size-4xl);
    letter-spacing: -0.025em;
    line-height: 1.15;
}
h3 {
    font-size: var(--font-size-3xl);
    line-height: 1.2;
}
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
    line-height: 1.7;
}

.text-secondary { color: var(--color-text-secondary); }
.text-tertiary { color: var(--color-text-tertiary); }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Text balance for better line breaks */
.text-balance {
    text-wrap: balance;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--space-24) 0;
}

.section-alt {
    background-color: var(--color-bg-secondary);
}

/* ==========================================================================
   Header - Clean & Simple
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border-light);
    height: var(--header-height);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.logo-img {
    height: 36px;
    width: auto;
}

.logo-text {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--fb-blue);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-link {
    padding: var(--space-2) var(--space-4);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    background: var(--color-bg-secondary);
    color: var(--fb-blue);
    text-decoration: none;
}

.nav-link.active {
    color: var(--fb-blue);
    background: var(--fb-blue-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* ==========================================================================
   Buttons - Enhanced with micro-interactions
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary {
    background: var(--fb-blue);
    color: var(--color-white);
    box-shadow: 0 2px 4px rgba(24, 119, 242, 0.2);
}

.btn-primary:hover {
    background: var(--fb-blue-dark);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.btn-secondary {
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
}

.btn-secondary:hover {
    background: var(--color-bg-tertiary);
    box-shadow: var(--shadow-sm);
}

.btn-success {
    background: var(--fb-green);
    color: var(--color-white);
    box-shadow: 0 2px 4px rgba(66, 183, 42, 0.2);
}

.btn-success:hover {
    background: var(--fb-green-dark);
    box-shadow: 0 4px 12px rgba(66, 183, 42, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--fb-blue);
    border: 2px solid var(--fb-blue);
}

.btn-outline:hover {
    background: var(--fb-blue);
    color: var(--color-white);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-base);
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-xs);
}

/* Button ripple effect on click */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.btn:active::after {
    transform: scale(2);
    opacity: 1;
    transition: transform 0s, opacity 0s;
}

/* ==========================================================================
   Hero Section - Enhanced with subtle gradient
   ========================================================================== */
.hero {
    padding: var(--space-24) 0 var(--space-20);
    background: var(--gradient-hero-soft);
    position: relative;
    overflow: hidden;
}

/* Subtle decorative element */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(24, 119, 242, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(66, 183, 42, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: var(--font-size-hero);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: var(--space-6);
    color: var(--color-text-primary);
    letter-spacing: -0.03em;
}

/* Highlight text in hero */
.hero-title .highlight {
    color: var(--fb-blue);
    position: relative;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-8);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-bullets {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-bullet {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--font-size-lg);
    color: var(--color-text-primary);
    padding: 10px;
    border-radius: var(--radius-md);
}

.hero-bullet-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--fb-green);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    margin-top: 2px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    margin-bottom: var(--space-6);
}

.hero-trust {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
}

/* ==========================================================================
   Section Header
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--fb-blue-light);
    color: var(--fb-blue);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Cards - Enhanced with elevation on hover
   ========================================================================== */
.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
    border-color: var(--color-border);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--fb-blue-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    font-size: 24px;
}

.card-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.card-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

/* ==========================================================================
   Grid Layouts
   ========================================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

/* ==========================================================================
   Feature Cards (3 Tầng giá trị) - Enhanced
   ========================================================================== */
.feature-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    border: 1px solid var(--color-border-light);
    text-align: center;
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--fb-blue-light);
}

.feature-card:hover .feature-card-number {
    transform: scale(1.1);
}

.feature-card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--fb-blue);
    color: white;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
    transition: transform var(--transition-base);
}

.feature-card-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.feature-card-subtitle {
    font-size: var(--font-size-sm);
    color: var(--fb-blue);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.feature-card-list {
    text-align: left;
}

.feature-card-list li {
    padding: var(--space-2) 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.feature-card-list li::before {
    content: "✓";
    color: var(--fb-green);
    font-weight: 700;
    flex-shrink: 0;
}

/* ==========================================================================
   Engine Cards (6 động cơ) - Enhanced
   ========================================================================== */
.engine-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    border: 1px solid var(--color-border-light);
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    transition: all var(--transition-base);
}

.engine-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--fb-blue-light);
}

.engine-card:hover .engine-icon {
    background: var(--fb-blue);
    transform: scale(1.05);
}

.engine-icon {
    width: 44px;
    height: 44px;
    background: var(--fb-blue-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    transition: all var(--transition-base);
}

.engine-content h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.engine-content p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* ==========================================================================
   Timeline (How it works)
   ========================================================================== */
.timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: 600px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.timeline-number {
    width: 32px;
    height: 32px;
    background: var(--fb-blue);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-sm);
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border-light);
}

.timeline-item:last-child .timeline-content {
    border-bottom: none;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.timeline-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* ==========================================================================
   Level Cards (5 Bậc) - Enhanced
   ========================================================================== */
.level-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    border: 1px solid var(--color-border-light);
    position: relative;
    transition: all var(--transition-base);
}

.level-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--fb-blue);
}

.level-card:hover .level-number {
    transform: scale(1.05);
}

.level-card:hover .level-badge {
    background: var(--fb-blue);
    color: white;
}

.level-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    padding: var(--space-1) var(--space-3);
    background: var(--fb-blue-light);
    color: var(--fb-blue);
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.level-number {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--fb-blue);
    margin-bottom: var(--space-2);
    transition: transform var(--transition-base);
}

.level-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.level-list {
    margin-bottom: var(--space-4);
}

.level-list li {
    padding: var(--space-2) 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-border-light);
}

.level-list li:last-child {
    border-bottom: none;
}

.level-list strong {
    color: var(--color-text-primary);
}

.level-duration {
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border-light);
}

.level-6c-note {
    font-size: var(--font-size-xs);
    color: var(--color-primary);
    background: var(--color-primary-bg);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-3);
    line-height: 1.5;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border-light);
}

.faq-question {
    width: 100%;
    padding: var(--space-5) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--fb-blue);
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding-bottom: var(--space-5);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

.faq-item.open .faq-answer {
    display: block;
}

/* ==========================================================================
   Social Proof / Stats
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    text-align: center;
}

.stat-item {
    padding: var(--space-6);
}

.stat-number {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--fb-blue);
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    border: 1px solid var(--color-border-light);
}

.testimonial-text {
    font-size: var(--font-size-base);
    color: var(--color-text-primary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-4);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--color-bg-secondary);
}

.testimonial-name {
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.testimonial-role {
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background: var(--fb-blue);
    color: var(--color-white);
    text-align: center;
    padding: var(--space-20) 0;
}

.cta-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--color-white);
}

.cta-subtitle {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    margin-bottom: var(--space-8);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
}

.btn-cta-primary {
    background: var(--color-white);
    color: var(--fb-blue);
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-base);
    font-weight: 600;
}

.btn-cta-primary:hover {
    background: var(--color-bg-secondary);
}

.btn-cta-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-base);
    font-weight: 600;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--color-bg-secondary);
    padding: var(--space-12) 0 var(--space-6);
    border-top: 1px solid var(--color-border-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-8);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    text-decoration: none;
}

.footer-tagline {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.footer-links {
    display: flex;
    gap: var(--space-16);
}

.footer-column h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--color-text-primary);
}

.footer-column a {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    padding: var(--space-1) 0;
    text-decoration: none;
}

.footer-column a:hover {
    color: var(--fb-blue);
}

.footer-bottom {
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
}

/* ==========================================================================
   Mobile Menu - Full Implementation
   ========================================================================== */
.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.mobile-menu-toggle:hover {
    background: var(--color-bg-secondary);
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* Hamburger to X animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Overlay */
.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    z-index: 999;
    padding: var(--space-6);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-link {
    display: block;
    padding: var(--space-4) 0;
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--color-text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border-light);
    transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
    color: var(--fb-blue);
    text-decoration: none;
}

.mobile-nav-actions {
    margin-top: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.mobile-nav-actions .btn {
    width: 100%;
    justify-content: center;
}

/* Body scroll lock when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-hero: 36px;
        --font-size-4xl: 32px;
        --font-size-3xl: 28px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .grid-6 {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: var(--space-12) 0;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .section {
        padding: var(--space-16) 0;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-8);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-6);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }

    .hero-bullet {
        font-size: var(--font-size-base);
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--fb-blue);
    color: white;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    font-weight: 600;
    z-index: 9999;
    transition: top var(--transition-fast);
}

.skip-to-content:focus {
    top: var(--space-3);
    color: white;
    text-decoration: none;
}

:focus-visible {
    outline: 3px solid var(--fb-blue);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ==========================================================================
   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;
}

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* ==========================================================================
   Scroll Animations - IntersectionObserver based
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animation for grids */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 100ms; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 200ms; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 300ms; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 400ms; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 500ms; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Stat counter animation */
.stat-number {
    display: inline-block;
}

.stat-number.animate {
    animation: countUp 0.8s ease-out forwards;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .fade-in-up,
    .fade-in-left,
    .fade-in-right,
    .scale-in,
    .stagger-children > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   Loading States
   ========================================================================== */
.skeleton {
    background: linear-gradient(90deg, var(--color-bg-secondary) 25%, var(--color-bg-tertiary) 50%, var(--color-bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .header,
    .mobile-nav,
    .cta-section,
    .skip-to-content {
        display: none !important;
    }

    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        color: inherit;
        text-decoration: underline;
    }

    .card,
    .feature-card,
    .engine-card,
    .level-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ==========================================================================
   ITERATION 3: Pricing Cards
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    border: 2px solid var(--color-border-light);
    position: relative;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--fb-blue);
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--fb-blue);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-header {
    text-align: center;
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: var(--space-6);
}

.pricing-name {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-1);
}

.pricing-subtitle {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-1);
    margin-bottom: var(--space-2);
}

.pricing-currency {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-text-primary);
}

.pricing-amount {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1;
}

.pricing-period {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
}

.pricing-description {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.pricing-features {
    flex: 1;
    margin-bottom: var(--space-6);
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
}

.pricing-feature-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: var(--fb-green);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.pricing-feature-icon.disabled {
    background: var(--color-bg-tertiary);
    color: var(--color-text-tertiary);
}

.pricing-cta {
    margin-top: auto;
}

.pricing-cta .btn {
    width: 100%;
    justify-content: center;
}

.pricing-guarantee {
    text-align: center;
    margin-top: var(--space-4);
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

/* ==========================================================================
   ITERATION 3: Testimonials
   ========================================================================== */
.testimonials-section {
    background: var(--color-bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.testimonial-rating {
    display: flex;
    gap: 2px;
    margin-bottom: var(--space-4);
}

.testimonial-star {
    color: #FFB800;
    font-size: 16px;
}

.testimonial-content {
    flex: 1;
    font-size: var(--font-size-base);
    color: var(--color-text-primary);
    line-height: 1.7;
    margin-bottom: var(--space-5);
}

.testimonial-content::before {
    content: '"';
    font-size: 48px;
    color: var(--fb-blue-light);
    line-height: 0;
    display: block;
    margin-bottom: var(--space-2);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border-light);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--fb-blue-light) 0%, var(--color-bg-tertiary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--fb-blue);
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    margin-bottom: 2px;
}

.testimonial-role {
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
}

.testimonial-badge {
    background: var(--fb-green);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

/* ==========================================================================
   ITERATION 3: Trust Badges
   ========================================================================== */
.trust-section {
    padding: var(--space-10) 0;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-8);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.trust-badge-icon {
    width: 40px;
    height: 40px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-sm);
}

.trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-10);
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all var(--transition-base);
}

.trust-logos:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.trust-logo {
    height: 32px;
    width: auto;
}

/* ==========================================================================
   ITERATION 3: Enhanced CTA Section
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, #1877F2 0%, #0d65d9 50%, #0a4fb3 100%);
    color: var(--color-white);
    text-align: center;
    padding: var(--space-24) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.cta-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--color-white);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-subtitle {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    margin-bottom: var(--space-8);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
}

.btn-cta-primary {
    background: var(--color-white);
    color: var(--fb-blue);
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-cta-primary:hover {
    background: var(--color-bg-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-cta-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--radius-lg);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.cta-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

.cta-trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* ==========================================================================
   ITERATION 3: Enhanced Footer with Social Links
   ========================================================================== */
.footer {
    background: var(--color-text-primary);
    color: var(--color-bg-secondary);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    text-decoration: none;
}

.footer-logo .logo-text {
    color: var(--color-text-primary);
}

.footer-tagline {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 18px;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.footer-social-link:hover {
    background: var(--fb-blue);
    transform: translateY(-2px);
    text-decoration: none;
}

.footer-column h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--space-5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column a {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    padding: var(--space-2) 0;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-white);
    text-decoration: none;
}

.footer-newsletter {
    margin-top: var(--space-6);
}

.footer-newsletter-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-3);
}

.footer-newsletter-form {
    display: flex;
    gap: var(--space-2);
}

.footer-newsletter-input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-size: var(--font-size-sm);
}

.footer-newsletter-input::placeholder {
    color: var(--color-text-tertiary);
}

.footer-newsletter-input:focus {
    outline: none;
    border-color: var(--fb-blue);
    background: rgba(255, 255, 255, 0.15);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-6);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
    padding-top: 0;
    border-top: none;
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

.footer-legal a {
    color: var(--color-text-tertiary);
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--color-white);
}

/* ==========================================================================
   ITERATION 3: Section Dividers
   ========================================================================== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border-light), transparent);
    margin: 0;
}

.section-divider-wave {
    height: 60px;
    background: var(--color-bg-secondary);
    position: relative;
    overflow: hidden;
}

.section-divider-wave::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: var(--color-white);
    clip-path: ellipse(70% 100% at 50% 100%);
}

/* ==========================================================================
   ITERATION 3: Responsive Updates
   ========================================================================== */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-card.featured {
        transform: none;
        order: -1;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .trust-badges {
        flex-direction: column;
        gap: var(--space-4);
    }

    .cta-title {
        font-size: var(--font-size-3xl);
    }

    .cta-trust {
        flex-direction: column;
        gap: var(--space-3);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ==========================================================================
   ITERATION 4: Hero Visual Elements
   ========================================================================== */
.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mockup {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
}

.hero-mockup-placeholder {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--fb-blue-light) 0%, #e8f4fd 100%);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    position: relative;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.hero-mockup-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.hero-mockup-icon {
    font-size: 64px;
    opacity: 0.8;
}

.hero-mockup-text {
    font-size: var(--font-size-lg);
    color: var(--fb-blue);
    font-weight: 600;
}

/* Floating badges around hero */
.hero-floating-badge {
    position: absolute;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    font-weight: 600;
    z-index: 3;
    animation: float 3s ease-in-out infinite;
}

.hero-floating-badge:nth-child(1) {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.hero-floating-badge:nth-child(2) {
    top: 60%;
    right: -5%;
    animation-delay: 1s;
}

.hero-floating-badge:nth-child(3) {
    bottom: 10%;
    left: 5%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-floating-badge-icon {
    width: 32px;
    height: 32px;
    background: var(--fb-blue-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.hero-floating-badge-icon.green {
    background: #E8F5E9;
}

.hero-floating-badge-icon.orange {
    background: #FFF3E0;
}

/* ==========================================================================
   ITERATION 4: Comparison Table
   ========================================================================== */
.comparison-section {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.comparison-table th,
.comparison-table td {
    padding: var(--space-4) var(--space-5);
    text-align: center;
    border-bottom: 1px solid var(--color-border-light);
}

.comparison-table th {
    background: var(--color-bg-secondary);
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    position: sticky;
    top: var(--header-height);
    z-index: 10;
}

.comparison-table th:first-child {
    text-align: left;
    background: var(--color-white);
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--color-text-primary);
}

.comparison-table tbody tr:hover {
    background: var(--color-bg-secondary);
}

.comparison-table .plan-header {
    padding: var(--space-6) var(--space-4);
}

.comparison-table .plan-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--space-1);
}

.comparison-table .plan-price {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.comparison-table .featured-col {
    background: var(--fb-blue-light);
}

.comparison-table .featured-col .plan-name {
    color: var(--fb-blue);
}

.comparison-check {
    color: var(--fb-green);
    font-size: 20px;
    font-weight: bold;
}

.comparison-x {
    color: var(--color-text-tertiary);
    font-size: 16px;
}

.comparison-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* ==========================================================================
   ITERATION 4: Video Section
   ========================================================================== */
.video-section {
    background: var(--color-text-primary);
    color: var(--color-white);
    padding: var(--space-20) 0;
}

.video-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.video-content {
    max-width: 480px;
}

.video-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.video-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.video-description {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.video-stats {
    display: flex;
    gap: var(--space-8);
}

.video-stat {
    text-align: left;
}

.video-stat-number {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-white);
}

.video-stat-label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
}

.video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--fb-blue);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    box-shadow: 0 4px 20px rgba(24, 119, 242, 0.4);
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(24, 119, 242, 0.5);
}

.video-play-btn svg {
    width: 32px;
    height: 32px;
    fill: var(--color-white);
    margin-left: 4px;
}

.video-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   ITERATION 4: Sticky Mobile CTA
   ========================================================================== */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: var(--space-3) var(--space-4);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 998;
    display: none;
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    max-width: var(--container-max);
    margin: 0 auto;
}

.sticky-cta-text {
    flex: 1;
    min-width: 0;
}

.sticky-cta-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-cta-subtitle {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}

.sticky-cta-actions {
    display: flex;
    gap: var(--space-2);
    flex-shrink: 0;
}

.sticky-cta .btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
}

@media (max-width: 768px) {
    .sticky-cta {
        display: block;
    }

    /* Add padding to body to account for sticky CTA */
    body.has-sticky-cta {
        padding-bottom: 70px;
    }
}

/* ==========================================================================
   ITERATION 4: Lazy Loading
   ========================================================================== */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

.lazy-placeholder {
    background: var(--color-bg-secondary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==========================================================================
   ITERATION 4: Responsive Updates
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .hero-floating-badge {
        display: none;
    }

    .video-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .video-content {
        max-width: 100%;
        text-align: center;
    }

    .video-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-mockup-placeholder {
        max-width: 320px;
    }

    .comparison-table {
        font-size: var(--font-size-sm);
    }

    .comparison-table th,
    .comparison-table td {
        padding: var(--space-3);
    }

    .video-title {
        font-size: var(--font-size-2xl);
    }

    .video-stats {
        flex-direction: column;
        gap: var(--space-4);
        align-items: center;
    }

    .video-stat {
        text-align: center;
    }

    .video-play-btn {
        width: 64px;
        height: 64px;
    }

    .video-play-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* ==========================================================================
   ITERATION 5: Micro-interactions
   ========================================================================== */

/* Enhanced Button Click Feedback */
.btn {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background var(--transition-fast);
}

.btn:active::before {
    background: rgba(0, 0, 0, 0.1);
}

.btn-primary:active::before,
.btn-success:active::before {
    background: rgba(0, 0, 0, 0.15);
}

/* Button Loading State */
.btn.loading {
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Input States */
.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    transition: all var(--transition-fast);
}

.form-input:hover {
    border-color: var(--color-border-light);
}

.form-input:focus {
    outline: none;
    border-color: var(--fb-blue);
    box-shadow: 0 0 0 3px var(--fb-blue-light);
}

.form-input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-input.success {
    border-color: var(--fb-green);
    box-shadow: 0 0 0 3px rgba(66, 183, 42, 0.1);
}

.form-error {
    font-size: var(--font-size-xs);
    color: #dc3545;
    margin-top: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.form-success {
    font-size: var(--font-size-xs);
    color: var(--fb-green);
    margin-top: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* Card Interactive States */
.card,
.feature-card,
.engine-card,
.level-card,
.pricing-card,
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.card::before,
.feature-card::before,
.engine-card::before,
.level-card::before,
.pricing-card::before,
.testimonial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(24, 119, 242, 0) 0%, rgba(24, 119, 242, 0.02) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.card:hover::before,
.feature-card:hover::before,
.engine-card:hover::before,
.level-card:hover::before,
.pricing-card:hover::before,
.testimonial-card:hover::before {
    opacity: 1;
}

/* Link Underline Animation */
.nav-link,
.footer-column a {
    position: relative;
}

.nav-link::after,
.footer-column a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--fb-blue);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.footer-column a:hover::after {
    width: 100%;
}

.nav-link.active::after {
    width: 100%;
}

/* Toast/Notification Animations */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-text-primary);
    color: var(--color-white);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    opacity: 0;
    transition: all var(--transition-slow);
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: var(--fb-green);
}

.toast.error {
    background: #dc3545;
}

/* Icon Bounce Animation */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.hero-bullet-icon,
.pricing-feature-icon,
.trust-badge-icon {
    transition: transform var(--transition-base);
}

.hero-bullet:hover .hero-bullet-icon,
.pricing-feature:hover .pricing-feature-icon,
.trust-badge:hover .trust-badge-icon {
    animation: bounce 0.5s ease;
}

/* Number Counter Animation */
.stat-number[data-count] {
    display: inline-block;
}

.stat-number.counting {
    animation: countPulse 0.1s ease-in-out;
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ==========================================================================
   ITERATION 5: Partner Logos Section
   ========================================================================== */
.partners-section {
    padding: var(--space-12) 0;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border-light);
}

.partners-title {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partners-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-10);
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition-base);
}

.partners-grid:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-base);
}

.partner-logo:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   ITERATION 5: Real-time Stats Counter
   ========================================================================== */
.live-stats {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--fb-green);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* ==========================================================================
   ITERATION 5: Enhanced Trust Indicators
   ========================================================================== */
.trust-ribbon {
    background: linear-gradient(90deg, var(--fb-green) 0%, #2ecc71 100%);
    color: white;
    text-align: center;
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}

.security-badge svg {
    width: 16px;
    height: 16px;
    fill: var(--fb-green);
}

/* Countdown/Urgency Element */
.urgency-banner {
    background: linear-gradient(90deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    padding: var(--space-3) var(--space-4);
    text-align: center;
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.countdown {
    display: inline-flex;
    gap: var(--space-3);
    margin-left: var(--space-3);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
}

.countdown-number {
    font-size: var(--font-size-lg);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
}

.countdown-label {
    font-size: 10px;
    opacity: 0.8;
    text-transform: uppercase;
}

/* ==========================================================================
   ITERATION 6: Advanced Animations & Visual Polish
   ========================================================================== */

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--fb-blue) 0%, #667eea 50%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-green {
    background: linear-gradient(135deg, var(--fb-green) 0%, #2ecc71 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow Effects */
.glow-blue {
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.3), 0 0 40px rgba(24, 119, 242, 0.1);
}

.glow-green {
    box-shadow: 0 0 20px rgba(66, 183, 42, 0.3), 0 0 40px rgba(66, 183, 42, 0.1);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3), 0 0 20px rgba(24, 119, 242, 0.2);
}

/* Glass Morphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating badge glass effect */
.hero-floating-badge {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Parallax Container */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    inset: -20%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

/* Hero parallax elements */
.hero {
    position: relative;
}

.hero-parallax-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.1) 0%, rgba(102, 126, 234, 0.05) 100%);
    pointer-events: none;
    will-change: transform;
}

.hero-parallax-circle.circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.hero-parallax-circle.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    background: linear-gradient(135deg, rgba(66, 183, 42, 0.08) 0%, rgba(46, 204, 113, 0.03) 100%);
}

/* Scroll-driven section reveals */
.reveal-section {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered reveal for grid items */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 400ms; }

.reveal-stagger.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* Typing Effect */
.typing-text {
    display: inline-block;
    border-right: 2px solid var(--fb-blue);
    animation: blink-cursor 0.75s step-end infinite;
}

@keyframes blink-cursor {
    from, to { border-color: transparent; }
    50% { border-color: var(--fb-blue); }
}

/* Text Scramble Animation */
.scramble-text {
    display: inline-block;
}

/* Smooth Section Transitions */
.section {
    position: relative;
}

.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-border-light), transparent);
    opacity: 0;
}

/* Testimonial Carousel */
.testimonials-carousel {
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonials-carousel .testimonial-card {
    flex: 0 0 100%;
    min-width: 0;
}

@media (min-width: 768px) {
    .testimonials-carousel .testimonial-card {
        flex: 0 0 50%;
    }
}

@media (min-width: 1024px) {
    .testimonials-carousel .testimonial-card {
        flex: 0 0 33.333%;
    }
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border-light);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-dot.active {
    background: var(--fb-blue);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: var(--color-border);
}

/* Touch Ripple Effect */
.touch-ripple {
    position: relative;
    overflow: hidden;
}

.touch-ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: radial-gradient(circle, rgba(24, 119, 242, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
    pointer-events: none;
}

.touch-ripple:active::after {
    transform: translate(-50%, -50%) scale(2);
    opacity: 1;
    transition: transform 0s, opacity 0s;
}

/* ==========================================================================
   ITERATION 6: Enhanced Accessibility
   ========================================================================== */

/* Better focus indicators */
:focus-visible {
    outline: 3px solid var(--fb-blue);
    outline-offset: 3px;
}

.btn:focus-visible {
    outline: 3px solid var(--fb-blue);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px var(--fb-blue-light);
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        border: 2px solid #000;
    }

    .btn-secondary {
        border: 2px solid var(--color-text-primary);
    }

    .card,
    .feature-card,
    .engine-card,
    .level-card {
        border-width: 2px;
    }
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus trap for modals */
.focus-trap [tabindex="-1"]:focus {
    outline: none;
}

/* Skip link enhancement */
.skip-to-content {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--fb-blue);
    color: white;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    z-index: 10000;
    transition: top var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.skip-to-content:focus {
    top: var(--space-3);
    color: white;
    text-decoration: none;
}

/* Motion preferences respected */
@media (prefers-reduced-motion: reduce) {
    .parallax-bg,
    .hero-parallax-circle {
        animation: none !important;
        transform: none !important;
    }

    .reveal-section,
    .reveal-left,
    .reveal-right,
    .reveal-stagger > * {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .typing-text {
        animation: none;
        border-color: transparent;
    }

    .carousel-dot,
    .touch-ripple::after {
        transition: none;
    }
}

/* Better link visibility */
a:not(.btn):not(.nav-link):not(.mobile-nav-link) {
    text-decoration: underline;
    text-decoration-color: rgba(24, 119, 242, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color var(--transition-fast);
}

a:not(.btn):not(.nav-link):not(.mobile-nav-link):hover {
    text-decoration-color: var(--fb-blue);
}

/* Keyboard navigation for cards */
.card:focus-within,
.feature-card:focus-within,
.pricing-card:focus-within {
    outline: 3px solid var(--fb-blue);
    outline-offset: 3px;
}

/* Improved text contrast */
.hero-subtitle,
.section-subtitle,
.card-text {
    color: var(--color-text-secondary);
}

/* ==========================================================================
   ITERATION 6: Mobile Touch Enhancements
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets on mobile */
    .btn {
        min-height: 48px;
        min-width: 48px;
    }

    .nav-link,
    .mobile-nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .faq-question {
        min-height: 56px;
    }

    /* Disable hover effects on touch */
    .card:hover,
    .feature-card:hover,
    .engine-card:hover,
    .level-card:hover,
    .pricing-card:hover {
        transform: none;
        box-shadow: var(--shadow-card);
    }

    /* Active states instead */
    .card:active,
    .feature-card:active,
    .engine-card:active,
    .level-card:active,
    .pricing-card:active {
        transform: scale(0.98);
        box-shadow: var(--shadow-sm);
    }
}

/* Swipe indicator */
.swipe-indicator {
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    margin-top: var(--space-4);
}

.swipe-indicator svg {
    width: 20px;
    height: 20px;
    animation: swipe-hint 2s ease-in-out infinite;
}

@keyframes swipe-hint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

@media (hover: none) and (pointer: coarse) {
    .swipe-indicator {
        display: flex;
    }
}

/* ==========================================================================
   ITERATION 7: Urgency & Countdown Elements
   ========================================================================== */

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, var(--fb-blue) 0%, #0d65d9 100%);
    color: white;
    text-align: center;
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
    font-weight: 500;
    position: relative;
    z-index: 1001;
}

.announcement-bar a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.announcement-bar-close {
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: var(--space-1);
    opacity: 0.8;
}

.announcement-bar-close:hover {
    opacity: 1;
}

/* Countdown Timer */
.countdown-timer {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--color-white);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.countdown-timer-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    font-weight: 500;
}

.countdown-timer-units {
    display: flex;
    gap: var(--space-2);
}

.countdown-timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
}

.countdown-timer-number {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--fb-blue);
    background: var(--fb-blue-light);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    min-width: 48px;
    text-align: center;
}

.countdown-timer-text {
    font-size: 10px;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    margin-top: var(--space-1);
}

/* Limited Spots Indicator */
.spots-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: #FFF3E0;
    border-radius: var(--radius-md);
    border: 1px solid #FFB74D;
}

.spots-indicator-icon {
    width: 24px;
    height: 24px;
    background: #FF9800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    animation: pulse-dot 2s ease-in-out infinite;
}

.spots-indicator-text {
    font-size: var(--font-size-sm);
    color: #E65100;
    font-weight: 600;
}

.spots-indicator-number {
    font-weight: 700;
}

/* Flash Sale Banner */
.flash-sale-banner {
    background: linear-gradient(90deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    padding: var(--space-4);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.flash-sale-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: flash-shine 3s infinite;
}

@keyframes flash-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.flash-sale-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.flash-sale-badge {
    background: white;
    color: #ee5a5a;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
}

.flash-sale-text {
    font-size: var(--font-size-base);
    font-weight: 600;
}

.flash-sale-discount {
    font-size: var(--font-size-xl);
    font-weight: 700;
}

/* ==========================================================================
   ITERATION 7: Newsletter & Lead Capture
   ========================================================================== */

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--fb-blue-light) 0%, #e8f4fd 100%);
    padding: var(--space-16) 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.newsletter-description {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
}

.newsletter-form {
    display: flex;
    gap: var(--space-3);
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: var(--space-4);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--fb-blue);
    box-shadow: 0 0 0 3px var(--fb-blue-light);
}

.newsletter-input::placeholder {
    color: var(--color-text-tertiary);
}

.newsletter-btn {
    flex-shrink: 0;
}

.newsletter-privacy {
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
    margin-top: var(--space-3);
}

@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }
}

/* Exit Intent Popup */
.exit-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.exit-popup-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.exit-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    max-width: 500px;
    width: 90%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xl);
}

.exit-popup.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.exit-popup-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 32px;
    height: 32px;
    border: none;
    background: var(--color-bg-secondary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.exit-popup-close:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
}

.exit-popup-icon {
    font-size: 48px;
    margin-bottom: var(--space-4);
    text-align: center;
}

.exit-popup-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-3);
}

.exit-popup-text {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: var(--space-6);
}

.exit-popup-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.exit-popup-form input {
    padding: var(--space-4);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
}

.exit-popup-form input:focus {
    outline: none;
    border-color: var(--fb-blue);
}

.exit-popup-form .btn {
    width: 100%;
    justify-content: center;
}

.exit-popup-skip {
    display: block;
    text-align: center;
    margin-top: var(--space-4);
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    cursor: pointer;
}

.exit-popup-skip:hover {
    color: var(--color-text-secondary);
}

/* ==========================================================================
   ITERATION 7: Payment & Guarantee Badges
   ========================================================================== */

/* Payment Methods */
.payment-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    padding: var(--space-4);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    margin-top: var(--space-4);
}

.payment-method {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: white;
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    box-shadow: var(--shadow-xs);
}

.payment-method-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Money Back Guarantee Badge */
.guarantee-badge {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border: 2px solid var(--fb-green);
    border-radius: var(--radius-lg);
    margin-top: var(--space-6);
}

.guarantee-badge-icon {
    width: 64px;
    height: 64px;
    background: var(--fb-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.guarantee-badge-content h4 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: #2E7D32;
    margin-bottom: var(--space-1);
}

.guarantee-badge-content p {
    font-size: var(--font-size-sm);
    color: #388E3C;
}

/* ==========================================================================
   ITERATION 7: Case Study Cards
   ========================================================================== */

.case-studies-section {
    background: var(--color-white);
}

.case-study-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.case-study-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.case-study-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--fb-blue-light) 0%, #e8f4fd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.case-study-content {
    padding: var(--space-6);
}

.case-study-tag {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--fb-blue-light);
    color: var(--fb-blue);
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-3);
}

.case-study-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.case-study-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
}

.case-study-results {
    display: flex;
    gap: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border-light);
}

.case-study-result {
    text-align: center;
}

.case-study-result-number {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--fb-green);
}

.case-study-result-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
}

/* ==========================================================================
   ITERATION 8: Dark Mode Support
   ========================================================================== */

/* Dark mode color palette */
:root {
    /* Light mode colors (default) */
    --color-scheme: light;
}

[data-theme="dark"] {
    --color-scheme: dark;

    /* Background colors */
    --color-white: #1a1a1a;
    --color-bg: #0d0d0d;
    --color-bg-secondary: #1a1a1a;
    --color-bg-tertiary: #2d2d2d;

    /* Text colors */
    --color-text-primary: #f5f5f5;
    --color-text-secondary: #b0b0b0;
    --color-text-tertiary: #808080;
    --color-text-inverse: #0d0d0d;

    /* Borders */
    --color-border: #3d3d3d;
    --color-border-light: #2d2d2d;

    /* Shadows for dark mode */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3), 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.35), 0 10px 10px rgba(0, 0, 0, 0.2);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 8px 16px rgba(0, 0, 0, 0.35), 0 4px 8px rgba(0, 0, 0, 0.25);

    /* Hero gradient for dark */
    --gradient-hero-soft: linear-gradient(180deg, #1a1a2e 0%, #0d0d0d 100%);

    /* Adjust blue for better dark mode contrast */
    --fb-blue-light: rgba(24, 119, 242, 0.15);
}

/* Auto dark mode based on system preference */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --color-scheme: dark;
        --color-white: #1a1a1a;
        --color-bg: #0d0d0d;
        --color-bg-secondary: #1a1a1a;
        --color-bg-tertiary: #2d2d2d;
        --color-text-primary: #f5f5f5;
        --color-text-secondary: #b0b0b0;
        --color-text-tertiary: #808080;
        --color-text-inverse: #0d0d0d;
        --color-border: #3d3d3d;
        --color-border-light: #2d2d2d;
        --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.2);
        --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3), 0 4px 6px rgba(0, 0, 0, 0.2);
        --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.35), 0 10px 10px rgba(0, 0, 0, 0.2);
        --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow-card-hover: 0 8px 16px rgba(0, 0, 0, 0.35), 0 4px 8px rgba(0, 0, 0, 0.25);
        --gradient-hero-soft: linear-gradient(180deg, #1a1a2e 0%, #0d0d0d 100%);
        --fb-blue-light: rgba(24, 119, 242, 0.15);
    }
}

/* Theme transition */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.card,
.feature-card,
.engine-card,
.level-card,
.pricing-card,
.testimonial-card,
.header,
.footer,
.mobile-nav {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Dark mode toggle button */
.theme-toggle {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--color-bg-tertiary);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: none;
}

[data-theme="light"] .theme-toggle .icon-moon,
:root:not([data-theme]) .theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun {
        display: block;
    }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon {
        display: none;
    }
}

/* Dark mode specific overrides */
[data-theme="dark"] .hero::before,
[data-theme="dark"] .hero::after {
    opacity: 0.3;
}

[data-theme="dark"] .pricing-card.featured {
    border-color: var(--fb-blue);
    background: linear-gradient(180deg, rgba(24, 119, 242, 0.1) 0%, var(--color-white) 100%);
}

[data-theme="dark"] .footer {
    background: #0a0a0a;
}

[data-theme="dark"] .announcement-bar {
    background: linear-gradient(90deg, #0d4a8f 0%, #0b3d7a 100%);
}

[data-theme="dark"] .newsletter-section {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.1) 0%, rgba(24, 119, 242, 0.05) 100%);
}

/* ==========================================================================
   ITERATION 8: Image Optimization
   ========================================================================== */

/* Aspect ratio containers */
.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-4-3 {
    aspect-ratio: 4 / 3;
}

/* Image container with blur placeholder */
.img-container {
    position: relative;
    overflow: hidden;
    background: var(--color-bg-secondary);
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.img-container img.loading {
    opacity: 0;
}

.img-container img.loaded {
    opacity: 1;
}

.img-placeholder {
    position: absolute;
    inset: 0;
    background: var(--color-bg-secondary);
    filter: blur(20px);
    transform: scale(1.1);
}

/* Lazy loading with native support */
img[loading="lazy"] {
    background: var(--color-bg-secondary);
}

/* Picture element for WebP with fallback */
picture {
    display: block;
}

picture img {
    width: 100%;
    height: auto;
}

/* Responsive images */
.img-responsive {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   ITERATION 8: Enhanced Print Styles
   ========================================================================== */
@media print {
    /* Reset colors for print */
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Hide non-essential elements */
    .header,
    .mobile-nav,
    .sticky-cta,
    .exit-popup,
    .exit-popup-overlay,
    .announcement-bar,
    .cta-section,
    .newsletter-section,
    .skip-to-content,
    .theme-toggle,
    .video-play-btn,
    .countdown-timer,
    .live-stats,
    .footer-social,
    .btn,
    form {
        display: none !important;
    }

    /* Page setup */
    @page {
        margin: 2cm;
        size: A4;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    /* Ensure content doesn't break awkwardly */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    p, ul, ol, blockquote {
        orphans: 3;
        widows: 3;
    }

    .section {
        padding: 1cm 0;
        page-break-inside: avoid;
    }

    /* Cards print nicely */
    .card,
    .feature-card,
    .engine-card,
    .level-card,
    .pricing-card,
    .testimonial-card {
        border: 1pt solid #ccc !important;
        page-break-inside: avoid;
        margin-bottom: 1cm;
    }

    /* Grid to single column for print */
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-6 {
        display: block !important;
    }

    .grid-2 > *,
    .grid-3 > *,
    .grid-4 > *,
    .grid-6 > * {
        margin-bottom: 1cm;
    }

    /* Links show URL */
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666 !important;
    }

    /* Footer simplified */
    .footer {
        display: block !important;
        padding: 1cm 0;
        border-top: 1pt solid #ccc;
    }

    .footer-content {
        display: block !important;
    }

    .footer-column {
        display: none !important;
    }

    .footer-brand {
        display: block !important;
    }

    .footer-bottom {
        border-top: none;
    }

    /* FAQ answers always visible */
    .faq-answer {
        display: block !important;
    }

    .faq-icon {
        display: none !important;
    }

    /* Images */
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    /* Tables */
    table {
        border-collapse: collapse;
    }

    th, td {
        border: 1pt solid #ccc !important;
    }
}

/* ==========================================================================
   ITERATION 8: PWA Meta Styles
   ========================================================================== */

/* iOS standalone mode */
@media (display-mode: standalone) {
    .header {
        padding-top: env(safe-area-inset-top);
    }

    .footer {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .sticky-cta {
        bottom: env(safe-area-inset-bottom);
    }
}

/* Theme color for browser UI */
:root {
    color-scheme: light dark;
}

/* ==========================================================================
   ITERATION 9: Back to Top Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 48px;
    height: 48px;
    background: var(--fb-blue);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 997;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--fb-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.back-to-top:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 80px; /* Above sticky CTA */
        right: var(--space-4);
        width: 44px;
        height: 44px;
    }
}

/* ==========================================================================
   ITERATION 9: Scroll Progress Indicator
   ========================================================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--fb-blue);
    z-index: 1002;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s linear;
}

/* Section indicator dots */
.section-indicators {
    position: fixed;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    z-index: 996;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.section-indicators.visible {
    opacity: 1;
    visibility: visible;
}

.section-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.section-indicator::before {
    content: attr(data-label);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-text-primary);
    color: var(--color-white);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.section-indicator:hover::before {
    opacity: 1;
    visibility: visible;
}

.section-indicator:hover,
.section-indicator.active {
    background: var(--fb-blue);
    transform: scale(1.3);
}

@media (max-width: 1024px) {
    .section-indicators {
        display: none;
    }
}

/* ==========================================================================
   ITERATION 9: Enhanced Form Validation
   ========================================================================== */
.form-group {
    position: relative;
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--color-text-primary);
}

.form-label.required::after {
    content: ' *';
    color: #dc3545;
}

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    transition: all var(--transition-fast);
}

.form-input:hover {
    border-color: var(--color-border-light);
}

.form-input:focus {
    outline: none;
    border-color: var(--fb-blue);
    box-shadow: 0 0 0 3px var(--fb-blue-light);
}

.form-input.valid {
    border-color: var(--fb-green);
}

.form-input.valid:focus {
    box-shadow: 0 0 0 3px rgba(66, 183, 42, 0.1);
}

.form-input.invalid {
    border-color: #dc3545;
}

.form-input.invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-message {
    font-size: var(--font-size-xs);
    margin-top: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    opacity: 0;
    transform: translateY(-5px);
    transition: all var(--transition-fast);
}

.form-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.form-message.error {
    color: #dc3545;
}

.form-message.success {
    color: var(--fb-green);
}

/* Validation icons */
.form-input-wrapper {
    position: relative;
}

.form-input-wrapper .form-input {
    padding-right: 40px;
}

.form-validation-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.form-input.valid ~ .form-validation-icon.valid-icon,
.form-input.invalid ~ .form-validation-icon.invalid-icon {
    opacity: 1;
}

.valid-icon { color: var(--fb-green); }
.invalid-icon { color: #dc3545; }

/* ==========================================================================
   ITERATION 9: Final Polish
   ========================================================================== */

/* Improved button transitions */
.btn {
    transition: all var(--transition-fast);
    will-change: transform, box-shadow;
}

/* Better card depth */
.card,
.feature-card,
.engine-card,
.level-card,
.testimonial-card {
    will-change: transform, box-shadow;
}

/* Typography fine-tuning */
.hero-title {
    letter-spacing: -0.04em;
}

.section-title {
    letter-spacing: -0.03em;
}

/* Improved focus states */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 3px solid var(--fb-blue);
    outline-offset: 2px;
}

/* Better link hover */
a:not(.btn):hover {
    text-decoration-thickness: 2px;
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

/* Selection color */
::selection {
    background: var(--fb-blue-light);
    color: var(--fb-blue-dark);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-tertiary);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) var(--color-bg-secondary);
}

/* Better text rendering */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent FOUC */
.no-js .fade-in,
.no-js .fade-in-up,
.no-js .fade-in-left,
.no-js .fade-in-right,
.no-js .reveal-section,
.no-js .reveal-left,
.no-js .reveal-right,
.no-js .stagger-children > * {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   ITERATION 10: Mobile Final Optimization
   ========================================================================== */

/* Extra small devices (phones, 320px and up) */
@media (max-width: 374px) {
    :root {
        --font-size-hero: 28px;
        --font-size-4xl: 24px;
        --font-size-3xl: 22px;
        --font-size-2xl: 20px;
    }

    .container {
        padding: 0 var(--space-3);
    }

    .hero {
        padding: var(--space-8) 0;
    }

    .hero-bullet {
        font-size: var(--font-size-sm);
    }

    .countdown-timer {
        flex-direction: column;
        gap: var(--space-2);
    }

    .countdown-timer-units {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pricing-card {
        padding: var(--space-5);
    }
}

/* Small devices (landscape phones, 375px - 767px) */
@media (min-width: 375px) and (max-width: 767px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 100%;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-actions .btn {
        width: 100%;
    }
}

/* Improved mobile menu animation */
@media (max-width: 768px) {
    .mobile-nav {
        transition: transform var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-nav-link {
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .mobile-nav.active .mobile-nav-link {
        opacity: 1;
        transform: translateX(0);
    }

    .mobile-nav.active .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
    .mobile-nav.active .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
    .mobile-nav.active .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
    .mobile-nav.active .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
    .mobile-nav.active .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }
    .mobile-nav.active .mobile-nav-link:nth-child(6) { transition-delay: 0.35s; }
}

/* Safe area insets for notched devices */
@supports (padding-top: env(safe-area-inset-top)) {
    .header {
        padding-top: env(safe-area-inset-top);
    }

    .mobile-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .sticky-cta {
        padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
    }

    .footer {
        padding-bottom: calc(var(--space-8) + env(safe-area-inset-bottom));
    }
}

/* Improve touch targets */
@media (hover: none) and (pointer: coarse) {
    .faq-question {
        padding: var(--space-4) 0;
    }

    .footer-column a {
        padding: var(--space-2) 0;
        display: block;
    }

    .testimonial-card {
        padding: var(--space-5);
    }
}

/* ==========================================================================
   ITERATION 10: Performance Optimizations
   ========================================================================== */

/* GPU acceleration for animated elements */
.fade-in,
.fade-in-up,
.fade-in-left,
.fade-in-right,
.reveal-section,
.reveal-left,
.reveal-right,
.hero-floating-badge,
.back-to-top,
.sticky-cta,
.exit-popup,
.mobile-nav {
    will-change: transform, opacity;
}

/* Remove will-change after animation */
.fade-in.visible,
.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible,
.reveal-section.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    will-change: auto;
}

/* Contain paint for performance */
.section {
    contain: layout style;
}

.card,
.feature-card,
.engine-card,
.level-card,
.pricing-card,
.testimonial-card {
    contain: layout;
}

/* Optimize animations for low-power mode */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .scroll-progress,
    .back-to-top,
    .sticky-cta {
        transition: none !important;
    }
}

/* ==========================================================================
   ITERATION 10: Cross-browser Fallbacks
   ========================================================================== */

/* Flexbox gap fallback for older Safari */
@supports not (gap: 1rem) {
    .hero-actions > * + *,
    .cta-actions > * + *,
    .header-actions > * + * {
        margin-left: var(--space-4);
    }

    .grid-2 > *,
    .grid-3 > *,
    .grid-4 > * {
        margin-bottom: var(--space-6);
    }
}

/* Backdrop filter fallback */
@supports not (backdrop-filter: blur(10px)) {
    .glass {
        background: rgba(255, 255, 255, 0.95);
    }

    .glass-dark {
        background: rgba(5, 5, 5, 0.95);
    }

    .hero-floating-badge {
        background: rgba(255, 255, 255, 0.98);
    }
}

/* Aspect ratio fallback */
@supports not (aspect-ratio: 16 / 9) {
    .aspect-video {
        position: relative;
        padding-bottom: 56.25%;
    }

    .aspect-video > * {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .aspect-square {
        position: relative;
        padding-bottom: 100%;
    }

    .aspect-4-3 {
        position: relative;
        padding-bottom: 75%;
    }
}

/* Scroll behavior fallback */
@supports not (scroll-behavior: smooth) {
    html {
        scroll-behavior: auto;
    }
}

/* ==========================================================================
   ITERATION 2/10: Responsive Optimization
   ========================================================================== */

/* Level cards responsive - fix grid span on small screens */
@media (max-width: 768px) {
    .level-card[style*="grid-column: span"] {
        grid-column: span 1 !important;
    }

    .level-6c-note {
        font-size: 11px;
        padding: var(--space-2);
    }

    .level-title {
        font-size: var(--font-size-lg);
    }

    .level-list li {
        font-size: var(--font-size-sm);
    }

    .level-duration {
        font-size: 11px;
    }
}

/* Touch target improvements - minimum 44px */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
        padding: var(--space-3) var(--space-5);
    }

    .btn-sm {
        min-height: 44px;
    }

    .nav-link,
    .mobile-nav-link,
    .footer-column a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .faq-question {
        min-height: 56px;
    }

    input,
    textarea,
    select {
        min-height: 48px;
    }
}

/* Extra small devices (320px) */
@media (max-width: 359px) {
    :root {
        --font-size-hero: 24px;
        --font-size-4xl: 22px;
        --font-size-3xl: 20px;
        --font-size-2xl: 18px;
        --font-size-xl: 16px;
    }

    .container {
        padding: 0 12px;
    }

    .hero {
        padding: var(--space-6) 0 var(--space-8);
    }

    .hero-bullets {
        gap: var(--space-2);
    }

    .hero-bullet {
        font-size: 13px;
        padding: var(--space-2) var(--space-3);
    }

    .hero-actions .btn {
        padding: var(--space-3) var(--space-4);
        font-size: var(--font-size-sm);
    }

    .section {
        padding: var(--space-10) 0;
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .pricing-card {
        padding: var(--space-4);
    }

    .pricing-price {
        font-size: var(--font-size-3xl);
    }

    .level-card {
        padding: var(--space-4);
    }

    .level-number {
        font-size: var(--font-size-4xl);
    }

    .testimonial-card {
        padding: var(--space-4);
    }

    .stats-number {
        font-size: var(--font-size-2xl);
    }

    .engine-card {
        padding: var(--space-4);
    }

    .feature-card {
        padding: var(--space-4);
    }
}

/* Medium small devices (360-413px) - iPhone SE, etc */
@media (min-width: 360px) and (max-width: 413px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }
}

/* Small phones landscape and medium devices (414-767px) */
@media (min-width: 414px) and (max-width: 767px) {
    .hero-title {
        font-size: 32px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet portrait (768-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .level-card[style*="grid-column: span 2"] {
        grid-column: span 2;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Improve text readability on mobile */
@media (max-width: 480px) {
    body {
        font-size: 15px;
        line-height: 1.6;
    }

    p {
        margin-bottom: var(--space-3);
    }

    .hero-subtitle {
        line-height: 1.5;
    }

    /* Better list spacing */
    .level-list li {
        margin-bottom: var(--space-2);
        line-height: 1.5;
    }

    .pricing-features {
        gap: var(--space-2);
    }

    .pricing-feature {
        font-size: var(--font-size-sm);
    }
}

/* Landscape mode optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: var(--space-6) 0;
        min-height: auto;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .section {
        padding: var(--space-8) 0;
    }

    .mobile-nav {
        padding-top: var(--space-4);
    }
}

/* ==========================================================================
   ITERATION 3/10: Visual Polish - Clean & Elegant
   ========================================================================== */

/* Refined card styling */
.level-card,
.feature-card,
.engine-card,
.pricing-card,
.testimonial-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-elegant);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.level-card:hover,
.feature-card:hover,
.engine-card:hover,
.testimonial-card:hover {
    border-color: var(--color-border);
    box-shadow: var(--shadow-lg);
}

/* Cleaner section titles */
.section-title {
    letter-spacing: -0.025em;
    font-weight: 700;
}

.section-subtitle {
    letter-spacing: 0;
    font-weight: 400;
}

/* Elegant button refinements */
.btn-primary {
    background: var(--fb-blue);
    border: none;
    box-shadow: 0 1px 2px rgba(24, 119, 242, 0.2);
}

.btn-primary:hover {
    background: var(--fb-blue-dark);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
}

.btn-secondary:hover {
    background: var(--color-bg-secondary);
    border-color: var(--color-border);
}

/* Cleaner header */
.header {
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.header.scrolled {
    border-bottom-color: var(--color-border-light);
}

/* Refined stats */
.stats-number {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stats-label {
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Cleaner testimonial cards */
.testimonial-content {
    font-style: normal;
    line-height: 1.65;
    color: var(--color-text-primary);
    font-size: var(--font-size-base);
}

.testimonial-name {
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Refined pricing featured card */
.pricing-card.featured {
    border: 2px solid var(--fb-blue);
    box-shadow: 0 8px 32px rgba(24, 119, 242, 0.12);
}

/* Cleaner FAQ */
.faq-question {
    font-weight: 500;
    letter-spacing: -0.01em;
}

.faq-answer {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Smooth icon transitions */
.faq-icon,
.pricing-feature-icon,
.comparison-check,
.comparison-x {
    transition: transform 0.2s ease;
}

/* Refined focus states */
:focus-visible {
    outline: 2px solid var(--fb-blue);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--fb-blue);
    outline-offset: 2px;
}

/* Cleaner announcement bar */
.announcement-bar {
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Refined level number */
.level-number {
    opacity: 0.08;
    font-weight: 800;
}

/* Cleaner level badge */
.level-badge {
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 10px;
}

/* ==========================================================================
   ITERATION 4/10: Hero Section Optimization
   ========================================================================== */

/* Enhanced hero visual hierarchy */
.hero {
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 50%, #f8faff 100%);
}

.hero-title {
    background: linear-gradient(135deg, var(--color-text-primary) 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--fb-blue) 0%, #0d65d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Better CTA prominence */
.hero-actions .btn-primary {
    font-size: var(--font-size-lg);
    padding: var(--space-4) var(--space-8);
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(24, 119, 242, 0.3);
}

.hero-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

.hero-actions .btn-secondary {
    font-size: var(--font-size-base);
    padding: var(--space-4) var(--space-6);
}

/* Optimized hero bullets */
.hero-bullets {
    background: rgba(24, 119, 242, 0.03);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(24, 119, 242, 0.08);
}

.hero-bullet {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-xs);
}

.hero-bullet::before {
    color: var(--fb-green);
    font-weight: 700;
}

/* Cleaner hero trust */
.hero-trust {
    background: transparent;
    border: none;
    color: var(--color-text-tertiary);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* Hero spacing optimization */
@media (max-width: 768px) {
    .hero-actions .btn-primary {
        font-size: var(--font-size-base);
        padding: var(--space-4) var(--space-6);
    }

    .hero-bullets {
        padding: var(--space-4);
    }
}

@media (max-width: 480px) {
    .hero-bullets {
        padding: var(--space-3);
        margin-bottom: var(--space-6);
    }

    .hero-actions {
        margin-bottom: var(--space-4);
    }
}

/* ==========================================================================
   ITERATION 5/10: Pricing & Cards Polish
   ========================================================================== */

/* Refined pricing cards */
.pricing-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.3s ease;
}

.pricing-card:hover::before {
    background: var(--fb-blue);
}

.pricing-card.featured::before {
    background: var(--fb-blue);
}

/* Better pricing price display */
.pricing-price {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

.pricing-period {
    font-weight: 400;
    opacity: 0.7;
}

/* Improved pricing features */
.pricing-features {
    border-top: 1px solid var(--color-border-light);
    padding-top: var(--space-4);
    margin-top: var(--space-4);
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-2) 0;
}

.pricing-feature-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fb-green);
    font-weight: 700;
}

/* Better comparison table */
.comparison-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    border-bottom: 1px solid var(--color-border-light);
    padding: var(--space-4);
    vertical-align: middle;
}

.comparison-table th {
    background: var(--color-bg-secondary);
    font-weight: 600;
    text-align: left;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-check {
    color: var(--fb-green);
    font-weight: 700;
}

.comparison-x {
    color: var(--color-text-tertiary);
}

.featured-col {
    background: rgba(24, 119, 242, 0.03);
}

/* Polish feature cards */
.feature-card {
    text-align: left;
    position: relative;
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: var(--fb-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    color: var(--fb-blue);
    font-size: var(--font-size-xl);
}

.feature-card-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--color-text-primary);
}

.feature-card-text {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Engine cards polish */
.engine-card {
    text-align: center;
}

.engine-icon {
    font-size: 32px;
    margin-bottom: var(--space-3);
}

.engine-name {
    font-weight: 600;
    font-size: var(--font-size-base);
    margin-bottom: var(--space-1);
}

.engine-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
}

/* ==========================================================================
   ITERATION 6-7/10: Navigation, Footer & Testimonials
   ========================================================================== */

/* Refined navigation */
.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--color-text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--fb-blue);
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile nav polish */
.mobile-nav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mobile-nav-link {
    font-size: var(--font-size-lg);
    font-weight: 500;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
}

.mobile-nav-link:hover {
    background: var(--color-bg-secondary);
}

/* Footer polish */
.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border-light);
}

.footer-brand {
    font-weight: 700;
    font-size: var(--font-size-xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
}

.footer-tagline {
    color: var(--color-text-tertiary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.footer-column-title {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

.footer-column a {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--fb-blue);
}

.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
    border: 1px solid var(--color-border-light);
}

.footer-social-link:hover {
    background: var(--fb-blue);
    color: var(--color-white);
    border-color: var(--fb-blue);
}

/* Better testimonial cards */
.testimonial-card {
    position: relative;
    padding: var(--space-6);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    font-size: 48px;
    font-family: Georgia, serif;
    color: var(--fb-blue);
    opacity: 0.1;
    line-height: 1;
}

.testimonial-rating {
    color: #ffc107;
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-3);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--fb-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--fb-blue);
    font-size: var(--font-size-sm);
}

.testimonial-role {
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
}

/* Improved FAQ accordion */
.faq-item {
    border-bottom: 1px solid var(--color-border-light);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) 0;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: var(--font-size-base);
    color: var(--color-text-primary);
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--fb-blue);
}

.faq-icon {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding-bottom: var(--space-5);
    padding-right: var(--space-8);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   ITERATION 8-10/10: Final Polish & Optimizations
   ========================================================================== */

/* CTA section polish */
.cta-section {
    background: linear-gradient(135deg, var(--fb-blue) 0%, #0d65d9 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: ctaGlow 15s linear infinite;
}

@keyframes ctaGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-title {
    color: var(--color-white);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.cta-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--color-white);
}

.cta-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-trust-items {
    color: rgba(255, 255, 255, 0.8);
}

/* Animation refinements */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger children animation */
.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.35s; }

/* Smooth scrolling refinement */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fade-in,
    .fade-in-up {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Final responsive fine-tuning */
@media (max-width: 768px) {
    .cta-section {
        padding: var(--space-12) 0;
    }

    .cta-title {
        font-size: var(--font-size-3xl);
    }

    .testimonial-card::before {
        font-size: 36px;
    }

    .faq-answer {
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: var(--space-10) 0;
    }

    .cta-actions {
        flex-direction: column;
        gap: var(--space-3);
    }

    .cta-trust-items {
        flex-direction: column;
        gap: var(--space-2);
    }

    .footer-content {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* ==========================================================================
   NEW ITERATION: LAIO/CAIO/FAIO Pricing Responsive
   ========================================================================== */

/* Pricing amount responsive */
.pricing-amount {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
    .pricing-amount {
        font-size: var(--font-size-2xl);
    }

    .pricing-name {
        font-size: var(--font-size-xl);
    }

    .pricing-subtitle {
        font-size: 11px;
    }

    .pricing-card {
        padding: var(--space-5);
    }

    .pricing-feature {
        font-size: var(--font-size-sm);
    }

    .pricing-feature-icon {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .pricing-amount {
        font-size: var(--font-size-xl);
    }

    .pricing-currency {
        font-size: var(--font-size-sm);
    }
}

/* Partner note responsive */
.partner-note {
    font-size: var(--font-size-sm);
}

@media (max-width: 480px) {
    .partner-note {
        padding: var(--space-4);
    }

    .partner-note p {
        font-size: 13px;
        line-height: 1.6;
    }
}

/* Comparison table responsive improvements */
@media (max-width: 768px) {
    .comparison-table {
        font-size: var(--font-size-sm);
    }

    .comparison-table th,
    .comparison-table td {
        padding: var(--space-3);
    }

    .plan-name {
        font-size: var(--font-size-sm);
    }

    .plan-price {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .comparison-section {
        margin-left: calc(-1 * var(--space-4));
        margin-right: calc(-1 * var(--space-4));
        padding: 0 var(--space-2);
    }

    .comparison-table {
        font-size: 12px;
    }

    .comparison-table th:first-child,
    .comparison-table td:first-child {
        position: sticky;
        left: 0;
        background: var(--color-white);
        z-index: 1;
        min-width: 100px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: var(--space-2);
        min-width: 80px;
    }
}

/* ==========================================================================
   ITERATION: Additional Responsive Polish
   ========================================================================== */

/* Video section responsive */
.video-section {
    padding: var(--space-16) 0;
}

.video-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: center;
}

@media (max-width: 768px) {
    .video-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .video-embed {
        order: -1;
    }

    .video-content {
        text-align: center;
    }

    .video-stats {
        justify-content: center;
    }
}

/* Video thumbnail responsive */
.video-thumbnail {
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Testimonial grid improvements */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Level cards mobile polish */
@media (max-width: 640px) {
    .level-card {
        padding: var(--space-5);
    }

    .level-number {
        font-size: var(--font-size-4xl);
    }

    .level-title {
        font-size: var(--font-size-lg);
    }

    .level-6c-note {
        font-size: 10px;
        padding: var(--space-2);
    }
}

/* Feature cards mobile */
@media (max-width: 480px) {
    .feature-card {
        padding: var(--space-5);
    }

    .feature-card-icon {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-lg);
    }
}

/* FAQ mobile improvements */
@media (max-width: 480px) {
    .faq-question {
        font-size: var(--font-size-sm);
        padding: var(--space-4) 0;
    }

    .faq-answer {
        font-size: var(--font-size-sm);
        padding-bottom: var(--space-4);
    }
}

/* Newsletter section mobile */
@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
        gap: var(--space-3);
    }

    .newsletter-input {
        width: 100%;
    }

    .newsletter-btn {
        width: 100%;
    }
}

/* CTA section mobile */
@media (max-width: 480px) {
    .cta-title {
        font-size: var(--font-size-2xl);
    }

    .cta-subtitle {
        font-size: var(--font-size-sm);
    }
}

/* Print optimization */
@media print {
    .cta-section {
        background: #f0f0f0 !important;
        color: #000 !important;
    }

    .cta-title,
    .cta-subtitle {
        color: #000 !important;
    }
}

/* Text-wrap balance fallback */
@supports not (text-wrap: balance) {
    .text-balance {
        max-width: 45ch;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==========================================================================
   ITERATION 10: CSS Documentation
   ========================================================================== */

/*
 * LuyenAI Homepage CSS - Facebook-Clean Style
 * Version: 1.0.0
 * Last updated: 2026-02-03
 *
 * TABLE OF CONTENTS:
 * ==================
 *
 * 1. CSS Variables (Line ~10)
 *    - Colors, typography, spacing, shadows, transitions
 *
 * 2. Reset & Base (Line ~100)
 *    - Box-sizing, html/body defaults, links, buttons
 *
 * 3. Typography (Line ~150)
 *    - Headings, paragraphs, utility classes
 *
 * 4. Layout (Line ~200)
 *    - Container, sections, grids
 *
 * 5. Components (Line ~280)
 *    - Header, buttons, cards, forms
 *
 * 6. Sections (Line ~600)
 *    - Hero, features, timeline, levels, FAQ
 *
 * 7. Iteration 3 (Line ~1520)
 *    - Pricing cards, testimonials, trust badges, CTA, footer
 *
 * 8. Iteration 4 (Line ~2190)
 *    - Hero visuals, comparison table, video section, sticky CTA
 *
 * 9. Iteration 5 (Line ~2680)
 *    - Micro-interactions, partners, live stats
 *
 * 10. Iteration 6 (Line ~2950)
 *     - Advanced animations, accessibility, touch
 *
 * 11. Iteration 7 (Line ~3200)
 *     - Urgency, newsletter, exit popup, payments
 *
 * 12. Iteration 8 (Line ~3600)
 *     - Dark mode, image optimization, print, PWA
 *
 * 13. Iteration 9 (Line ~3900)
 *     - Back to top, scroll progress, form validation, polish
 *
 * 14. Iteration 10 (Line ~4050)
 *     - Mobile optimization, performance, cross-browser
 *
 * USAGE:
 * ======
 * - Main CSS file: /css/homepage/facebook-clean.css
 * - HTML file: /index-new.html
 * - Dark mode: data-theme="dark" on <html>
 * - Animations: Add .visible class via JavaScript
 *
 * BROWSER SUPPORT:
 * ================
 * - Chrome 80+
 * - Firefox 75+
 * - Safari 13+
 * - Edge 80+
 * - iOS Safari 13+
 * - Android Chrome 80+
 */
