/* Base Styles */
:root {
    /* Updated color palette with more modern hues */
    --primary-color: #4361ee;
    --primary-light: #4895ef;
    --primary-dark: #3a56d4;
    --secondary-color: #7209b7;
    --accent-color: #f72585;
    --success-color: #06d6a0;
    --info-color: #0dcaf0;
    --warning-color: #ffd166;
    --danger-color: #ef476f;
    --dark-color: #212529;
    --text-color: #444;
    --body-color: #f8f9fa;
    --grey-100: #f8f9fa;
    --grey-200: #e9ecef;
    --grey-300: #dee2e6;
    --grey-400: #ced4da;
    --grey-500: #adb5bd;
    --grey-600: #6c757d;
    --grey-700: #495057;
    --grey-800: #343a40;
    --grey-900: #212529;
    
    /* Sizing and spacing */
    --border-radius-sm: 4px;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --box-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --box-shadow-lg: 0 15px 25px rgba(0, 0, 0, 0.1);
    --transition-fast: 0.2s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    /* Font settings */
    --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-monospace: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-xxl: 1.5rem;
    --font-size-xxxl: 2rem;
    --font-size-xxxxl: 2.5rem;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Mobile tap target size - ensuring targets are at least 44px */
    --tap-target-size: 44px;
}

/* Modern CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--body-color);
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
}

/* Container and Layout */
.container {
    width: min(90%, 1200px);
    margin-inline: auto;
    padding-inline: var(--spacing-md);
}

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

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-color);
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    font-weight: var(--font-weight-bold);
}

h1 {
    font-size: clamp(2rem, 5vw, var(--font-size-xxxxl));
}

h2 {
    font-size: clamp(1.75rem, 4vw, var(--font-size-xxxl));
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

h3 {
    font-size: clamp(1.25rem, 3vw, var(--font-size-xxl));
}

p {
    margin-bottom: var(--spacing-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.5px;
    transition: all var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    text-align: center;
    min-height: var(--tap-target-size); /* Mobile tap target size */
    line-height: normal;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform var(--transition);
    z-index: -1;
}

.btn:hover, .btn:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
    text-decoration: none;
}

.btn:hover::before, .btn:focus::before {
    transform: translateX(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.5px;
    transition: all var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    min-height: var(--tap-target-size); /* Mobile tap target size */
    line-height: normal;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--primary-color);
    transition: width var(--transition);
    z-index: -1;
}

.btn-secondary:hover, .btn-secondary:focus {
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
    text-decoration: none;
}

.btn-secondary:hover::before, .btn-secondary:focus::before {
    width: 100%;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.btn-icon svg, 
.btn-icon i {
    font-size: 1.2em;
}

section {
    padding: var(--spacing-xxl) 0;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: var(--spacing-md);
}

.site-logo {
    font-size: var(--font-size-xxl);
    margin: 0;
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

nav ul li a {
    color: var(--dark-color);
    font-weight: var(--font-weight-medium);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition), left var(--transition);
}

nav ul li a:hover::after, 
nav ul li a:focus::after,
nav ul li a.active::after {
    width: 100%;
    left: 0;
}

nav ul li a:hover, 
nav ul li a:focus,
nav ul li a.active {
    color: var(--primary-color);
    text-decoration: none;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    min-width: var(--tap-target-size);
    min-height: var(--tap-target-size);
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin-bottom: 5px;
    background-color: var(--dark-color);
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: var(--spacing-xxl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: white;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: clamp(1rem, 2vw, var(--font-size-lg));
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

.hero-link {
    color: var(--warning-color);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    position: relative;
    transition: all var(--transition);
    z-index: 2;
}

.hero-link:hover, .hero-link:focus {
    color: white;
    text-decoration: underline;
}

.hero-link-subtle {
    color: inherit;
    font-weight: var(--font-weight-semibold);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: all var(--transition);
}

.hero-link-subtle:hover, .hero-link-subtle:focus {
    color: var(--warning-color);
    text-decoration-color: var(--warning-color);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* Features Section */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
}

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

.feature-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.feature-card-content {
    padding: var(--spacing-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.feature-card h3 {
    margin-bottom: var(--spacing-md);
    color: var(--primary-dark);
}

.feature-card p {
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

.feature-card-footer {
    margin-top: auto;
    text-align: center;
    padding-top: var(--spacing-md);
}

.feature-card-footer .btn-secondary {
    width: 100%;
    max-width: 160px;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-sm);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
}

/* Spotlight Section for Compeller AI */
.spotlight {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    color: white;
    padding: var(--spacing-xxl) 0;
    position: relative;
    overflow: hidden;
}

.spotlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        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");
    z-index: 1;
}

.section-subtitle {
    text-align: center;
    font-size: var(--font-size-lg);
    margin-top: calc(-1 * var(--spacing-lg));
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.spotlight-content {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) 2fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.spotlight-image {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.spotlight-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: calc(var(--border-radius) + 10px);
    pointer-events: none;
}

.spotlight-logo {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    transition: transform var(--transition);
}

.spotlight-logo:hover {
    transform: scale(1.05);
}

.spotlight-text h3 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.spotlight-text p {
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-md);
    line-height: 1.7;
}

.text-link {
    color: var(--warning-color);
    font-weight: var(--font-weight-semibold);
    text-decoration: underline;
    text-decoration-color: rgba(255, 209, 102, 0.4);
    text-underline-offset: 2px;
    transition: all var(--transition);
    position: relative;
}

.text-link:hover, .text-link:focus {
    color: var(--warning-color);
    text-decoration-color: var(--warning-color);
}

.spotlight-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.spotlight-feature {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    transition: transform var(--transition);
}

.spotlight-feature:hover {
    transform: translateY(-3px);
}

.spotlight-icon {
    font-size: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform var(--transition), background-color var(--transition);
}

.spotlight-feature:hover .spotlight-icon {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.2);
}

.spotlight-feature h4 {
    color: white;
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-md);
}

.spotlight-feature p {
    margin-bottom: 0;
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

.spotlight-cta {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.spotlight .btn {
    background-color: white;
    color: var(--primary-dark);
    border-color: white;
}

.spotlight .btn:hover, .spotlight .btn:focus {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

.spotlight .btn-secondary {
    border-color: white;
    color: white;
}

.spotlight .btn-secondary:hover::before, .spotlight .btn-secondary:focus::before {
    background-color: white;
}

.spotlight .btn-secondary:hover, .spotlight .btn-secondary:focus {
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .spotlight-content {
        grid-template-columns: 1fr;
    }
    
    .spotlight-image {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Benefits Section */
.benefits {
    background-color: var(--grey-100);
    position: relative;
    overflow: hidden;
}

.benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        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='%234361ee' 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");
    z-index: 1;
}

.benefits .container {
    position: relative;
    z-index: 2;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.benefit, .benefit-card {
    background-color: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.benefit::before, .benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
    opacity: 0;
    transition: opacity var(--transition);
}

.benefit:hover, .benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.benefit:hover::before, .benefit-card:hover::before {
    opacity: 1;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    display: inline-block;
    transition: transform var(--transition);
}

.benefit:hover .benefit-icon, .benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

/* CTA Section */
.cta, .cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: white;
    text-align: center;
    padding: var(--spacing-xxl) 0;
    position: relative;
    overflow: hidden;
}

.cta::before, .cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: 1;
}

.cta .container, .cta-section .container {
    position: relative;
    z-index: 2;
}

.cta h2, .cta-section h2 {
    color: white;
}

.cta p, .cta-section p {
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
    font-size: var(--font-size-lg);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.cta .btn, .cta-section .btn {
    background-color: white;
    border-color: white;
    color: var(--secondary-color);
}

.cta .btn:hover, .cta .btn:focus,
.cta-section .btn:hover, .cta-section .btn:focus {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    color: var(--secondary-color);
}

.cta .btn-secondary, .cta-section .btn-secondary {
    border-color: white;
    color: white;
}

.cta .btn-secondary:hover::before, .cta .btn-secondary:focus::before,
.cta-section .btn-secondary:hover::before, .cta-section .btn-secondary:focus::before {
    background-color: white;
}

.cta .btn-secondary:hover, .cta .btn-secondary:focus,
.cta-section .btn-secondary:hover, .cta-section .btn-secondary:focus {
    color: var(--secondary-color);
}

/* Testimonials Section */
.testimonials {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='84' height='48' viewBox='0 0 84 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h12v6H0V0zm28 8h12v6H28V8zm14-8h12v6H42V0zm14 0h12v6H56V0zm0 8h12v6H56V8zM42 8h12v6H42V8zm0 16h12v6H42v-6zm14-8h12v6H56v-6zm14 0h12v6H70v-6zm0-16h12v6H70V0zM28 32h12v6H28v-6zM14 16h12v6H14v-6zM0 24h12v6H0v-6zm0 8h12v6H0v-6zm14 0h12v6H14v-6zm14 8h12v6H28v-6zm-14 0h12v6H14v-6zm28 0h12v6H42v-6zm14-8h12v6H56v-6zm0-8h12v6H56v-6zm14 8h12v6H70v-6zm0 8h12v6H70v-6zM14 24h12v6H14v-6zm14-8h12v6H28v-6zM14 8h12v6H14V8zM0 8h12v6H0V8z' fill='%234361ee' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: 1;
}

.testimonials .container {
    position: relative;
    z-index: 2;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.testimonial, .testimonial-card {
    background-color: var(--grey-100);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial::before, .testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: rgba(67, 97, 238, 0.1);
    line-height: 1;
}

.testimonial:hover, .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.testimonial p, .testimonial-card__content p {
    font-style: italic;
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.testimonial-author, .testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: auto;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
}

/* Partners Section */
.partners {
    background-color: var(--grey-100);
    text-align: center;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-xxl);
    margin-top: var(--spacing-xl);
}

.partner-logo {
    transition: transform var(--transition);
}

.partner-logo:hover {
    transform: scale(1.05);
}

.partner-logo img {
    max-height: 60px;
    filter: grayscale(60%);
    opacity: 0.8;
    transition: filter var(--transition), opacity var(--transition);
}

.partner-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Footer */
.site-footer, footer {
    background-color: var(--dark-color);
    color: white;
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.site-footer::before, footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
    z-index: 1;
}

.site-footer .container, footer .container {
    position: relative;
    z-index: 2;
}

.footer-grid, .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo h2 {
    color: white;
    text-align: left;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-xl);
}

.footer-nav h3,
.footer-links h3,
.footer-resources h3 {
    color: white;
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-lg);
}

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

.footer-nav li,
.footer-links li,
.footer-resources li {
    margin-bottom: var(--spacing-sm);
}

.footer-nav a,
.footer-links a,
.footer-resources a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
    display: inline-block;
    padding: var(--spacing-xs) 0;
    min-height: 32px; /* Improved tap target */
    position: relative;
}

.footer-nav a::after,
.footer-links a::after,
.footer-resources a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: white;
    transition: width var(--transition);
}

.footer-nav a:hover::after,
.footer-links a:hover::after,
.footer-resources a:hover::after {
    width: 100%;
}

.footer-nav a:hover,
.footer-links a:hover,
.footer-resources a:hover {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-bottom p {
    margin-bottom: var(--spacing-sm);
}

/* Content Pages */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: var(--spacing-xxl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: white;
}

.content-section {
    padding: var(--spacing-xxl) 0;
}

.content-section h2 {
    margin-bottom: var(--spacing-xl);
}

.content-section h3 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
}

.content-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition);
    position: relative;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition);
}

.content-card:hover {
    transform: translateY(-5px);
}

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

.content-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.content-card-body {
    padding: var(--spacing-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tool-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    box-shadow: var(--box-shadow);
    margin-bottom: var(--spacing-xl);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

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

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.tool-title {
    margin-bottom: 0;
}

.tool-logo {
    max-width: 120px;
}

.tool-features {
    margin: var(--spacing-lg) 0;
}

.tool-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.tool-feature-icon {
    margin-right: var(--spacing-md);
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Accessibility Features */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-to-content:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--primary-color);
    color: white;
    z-index: 9999;
    font-weight: var(--font-weight-bold);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
    z-index: 99;
    box-shadow: var(--box-shadow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus {
    background-color: var(--primary-dark);
    color: white;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

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

/* Animation Classes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-up.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
    :root {
        --spacing-xxl: 2.5rem;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: var(--spacing-xxl) 0;
    }
}

@media (max-width: 768px) {
    /* Improved mobile navigation */
    .nav-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--box-shadow);
        padding: var(--spacing-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
        max-height: 80vh;
        overflow-y: auto; /* Allow scrolling for many menu items */
        z-index: 99;
    }
    
    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    nav ul {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: var(--spacing-md);
        min-height: var(--tap-target-size); /* Mobile tap target size */
        line-height: 1.8;
        font-size: var(--font-size-lg); /* Larger font for better readability */
    }
    
    nav ul li a::after {
        bottom: auto;
        top: 0;
        left: 0;
        height: 100%;
        width: 3px;
        transition: height var(--transition);
    }
    
    nav ul li a:hover, 
    nav ul li a:focus,
    nav ul li a.active {
        background-color: rgba(67, 97, 238, 0.05);
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-grid,
    .benefits-grid,
    .testimonial-grid {
        gap: var(--spacing-lg);
    }
    
    .feature-card-footer .btn-secondary {
        max-width: 180px;
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-size-md);
        min-height: var(--tap-target-size); /* Mobile tap target size */
    }
    
    .btn, .btn-secondary {
        display: inline-flex;
        width: auto;
        min-width: 160px;
        padding: 12px 20px; /* Increased padding for better touch targets */
    }
    
    /* Improved spacing for tap targets in mobile */
    .footer-nav a,
    .footer-links a,
    .footer-resources a {
        padding: var(--spacing-sm) 0;
        min-height: var(--tap-target-size);
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xxl: 2rem;
        --font-size-md: 1.1rem; /* Slightly increase base font size for mobile */
    }
    
    body {
        font-size: var(--font-size-md); /* Apply larger base font size */
    }
    
    section {
        padding: var(--spacing-xl) 0;
    }
    
    h1 {
        font-size: 1.85rem; /* Larger than before */
    }
    
    h2 {
        font-size: 1.65rem; /* Larger than before */
    }
    
    h3 {
        font-size: 1.4rem; /* Larger than before */
    }
    
    .hero {
        padding: var(--spacing-xxl) 0;
    }
    
    .hero h2 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1.1rem; /* Increased from 1rem */
    }
    
    .benefit-icon {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Add better spacing between buttons on mobile */
    .cta-buttons .btn,
    .cta-buttons .btn-secondary,
    .spotlight-cta .btn,
    .spotlight-cta .btn-secondary {
        margin-bottom: var(--spacing-md);
        width: 100%; /* Full width buttons on small screens */
    }
    
    /* Improve tap targets for feature cards */
    .feature-card-footer .btn-secondary {
        min-height: var(--tap-target-size);
        width: 100%; /* Full width on smallest screens */
        max-width: none;
    }
    
    /* Add extra space around clickable elements */
    .spotlight-feature {
        padding: var(--spacing-sm) 0;
    }
    
    /* Adjust site logo size for small screens */
    .site-logo {
        font-size: var(--font-size-xl);
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    header, 
    footer,
    .hero,
    .cta {
        display: none;
    }
    
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }
    
    .feature-card,
    .benefit,
    .content-card,
    .tool-card {
        page-break-inside: avoid;
        border: 1px solid #ddd;
        box-shadow: none;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* Enhanced Content Styles */

/* Comparison Table Styles */
.tool-comparison-section, 
.use-cases-section,
.faq-section {
    margin-top: var(--spacing-xxl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--grey-200);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
    overflow-x: auto;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr 2fr 1fr 1fr 1fr;
    border-bottom: 1px solid var(--grey-300);
}

.comparison-row.header {
    background-color: var(--primary-color);
    color: white;
    font-weight: var(--font-weight-bold);
}

.comparison-cell {
    padding: var(--spacing-md);
    border-right: 1px solid var(--grey-300);
}

.comparison-row:nth-child(even):not(.header) {
    background-color: var(--grey-100);
}

.comparison-row.header .comparison-cell {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.comparison-cell:last-child {
    border-right: none;
}

.comparison-note {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--grey-100);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

/* FAQ Accordion Styles */
.accordion {
    margin: var(--spacing-lg) 0;
}

.accordion-item {
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--grey-300);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: white;
    transition: box-shadow var(--transition);
}

.accordion-item:hover {
    box-shadow: var(--box-shadow);
}

.accordion-header {
    background-color: var(--grey-100);
    padding: var(--spacing-lg);
    margin: 0;
    cursor: pointer;
    position: relative;
    font-size: var(--font-size-lg);
    transition: background-color var(--transition);
    min-height: var(--tap-target-size);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accordion-header:hover {
    background-color: var(--grey-200);
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: var(--font-weight-light);
    color: var(--primary-color);
    transition: transform var(--transition);
}

.accordion-item.active .accordion-header {
    border-bottom: 1px solid var(--grey-300);
}

.accordion-item.active .accordion-header::after {
    content: '−';
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 var(--spacing-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition);
}

.accordion-item.active .accordion-content {
    padding: var(--spacing-lg);
    max-height: 2000px;
    transition: max-height var(--transition-slow), padding var(--transition);
}

.accordion-content p, 
.accordion-content ul, 
.accordion-content ol {
    margin-bottom: var(--spacing-md);
}

.accordion-content ul li,
.accordion-content ol li {
    margin-bottom: var(--spacing-xs);
}