/* Modern CSS Reset & Base Styles */
/* Note: Design tokens are loaded from design-tokens.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Accessibility - Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Accessibility - Screen Reader Only */
.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;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Optional label styling */
.optional-label {
    color: var(--text-light);
    font-weight: 400;
}

/* ==========================================================================
   REUSABLE UTILITY CLASSES
   ========================================================================== */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container--narrow {
    max-width: 900px;
}

.container--wide {
    max-width: 1400px;
}

/* Auto Grid - Responsive grid that auto-fits columns */
.auto-grid {
    display: grid;
    gap: var(--space-8, 2rem);
    margin-top: var(--space-12, 3rem);
}

.auto-grid--sm {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.auto-grid--md {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.auto-grid--lg {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Card Base Styles */
.card {
    background: var(--bg-white);
    padding: var(--space-8, 2rem);
    border-radius: var(--border-radius-lg, 12px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card--elevated {
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
}

.card--bordered {
    border: 1px solid var(--border-color);
}

.card--interactive:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
}

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-muted { color: var(--text-light); }

/* Spacing Utilities */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4, 1rem); }
.mt-8 { margin-top: var(--space-8, 2rem); }
.mt-12 { margin-top: var(--space-12, 3rem); }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4, 1rem); }
.mb-8 { margin-bottom: var(--space-8, 2rem); }

/* Flex Utilities */
.flex { display: flex; }
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: var(--space-4, 1rem); }
.gap-8 { gap: var(--space-8, 2rem); }

/* Visibility Utilities */
.hidden { display: none; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* Navigation */
.nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s;
}

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

.logo-icon {
    font-size: 1.75rem;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

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

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

.nav-cta {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
}

.mobile-menu-toggle:hover {
    background: var(--bg-light);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger animation when active */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section - IMPROVED */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    opacity: 0.9;
    color: var(--accent-color);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: 300;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    background: #d97706;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.5);
}

.cta-button:active {
    transform: translateY(-1px) scale(0.98);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Integrations Section */
.integrations-section {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.integrations-title {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.integrations-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.integration-logo {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0.7;
    transition: all 0.3s;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-light);
}

.integration-logo:hover {
    opacity: 1;
    transform: translateY(-3px);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Problem Section */
.problem-section {
    background: var(--bg-white);
    padding: 5rem 2rem;
}

/* Why Choose Us Section */
.why-section {
    background: var(--bg-light);
    padding: 5rem 2rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.why-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.why-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Trust Section */
.trust-section {
    background: var(--bg-white);
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.badge-icon {
    width: 40px;
    height: 40px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.badge-text {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

/* Problem Section (continuing) */

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.problem-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s;
    cursor: default;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-left-width: 6px;
}

.problem-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.problem-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Solution Section */
.solution-section {
    background: var(--bg-light);
    padding: 5rem 2rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.step:hover::before {
    transform: scaleX(1);
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.step-number {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    line-height: 40px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Pricing Section */
.pricing-section {
    background: var(--bg-white);
    padding: 5rem 2rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.pricing-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    transform: translateY(-8px) scale(1.02);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    border-width: 3px;
    position: relative;
    background: linear-gradient(to bottom, rgba(37, 99, 235, 0.02) 0%, var(--bg-white) 100%);
}

.pricing-card.featured:hover {
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.2);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-color) 0%, #d97706 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
    }
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.pricing-card .price-period {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: "✓ ";
    color: var(--success-color);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* Results Section */
.results-section {
    background: var(--bg-light);
    padding: 5rem 2rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.result-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-color);
}

.result-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.result-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ROI Calculator */
.roi-calculator {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.roi-scenario h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.roi-math {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.roi-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.roi-label {
    color: var(--text-light);
    font-size: 0.95rem;
}

.roi-value {
    font-weight: 600;
    color: var(--text-dark);
}

.roi-highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    margin: 0.5rem -1rem -1rem -1rem;
    padding: 1rem;
    border-radius: 0 0 8px 8px;
    border-bottom: none;
}

.roi-highlight .roi-label,
.roi-highlight .roi-value {
    color: white;
    font-size: 1.1rem;
}

.roi-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 1.5rem;
    text-align: center;
    font-style: italic;
}

/* Transparency Section */
.transparency-section {
    background: var(--bg-light);
    padding: 4rem 2rem;
}

.transparency-box {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.transparency-box h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.transparency-intro {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.transparency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}

.transparency-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.transparency-item h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.transparency-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.guarantee-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.guarantee-box h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.guarantee-box p {
    font-size: 1.125rem;
    line-height: 1.8;
    opacity: 0.95;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-white);
    padding: 5rem 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

.faq-item h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 2rem;
}

.contact-section .section-title {
    color: white;
}

.contact-section .section-subtitle {
    color: rgba(255,255,255,0.9);
}

.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--text-light);
}

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

.submit-button {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.submit-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-button:hover::after {
    width: 400px;
    height: 400px;
}

.submit-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.submit-button:active {
    transform: translateY(-1px);
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.4s ease-out;
}

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

.alert::before {
    content: '✓';
    font-size: 1.5rem;
    font-weight: 700;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.alert-success::before {
    color: #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

.alert-error::before {
    content: '⚠';
    color: #ef4444;
}

/* Form Validation States */
input.valid,
textarea.valid,
select.valid {
    border-color: var(--success-color);
}

input.invalid,
textarea.invalid,
select.invalid {
    border-color: var(--error-color);
    background-color: #fef2f2;
}

input.invalid:focus,
textarea.invalid:focus,
select.invalid:focus {
    outline-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field-error {
    display: block;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.375rem;
    font-weight: 500;
}

/* Submit Button Loading State */
.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

.submit-button.loading {
    position: relative;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 2rem 1.5rem;
}

/* Floating CTA Button */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #d97706 100%);
    color: white;
    padding: 1rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
    z-index: 99;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-cta.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.floating-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.5);
}

.floating-cta-icon {
    font-size: 1.25rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 98;
}

.chat-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    transition: all 0.3s;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
}

.chat-icon {
    font-size: 1.75rem;
}

.chat-box {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 1.25rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.chat-close:hover {
    background: rgba(255,255,255,0.2);
}

.chat-body {
    padding: 1.25rem;
}

.chat-message {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.bot-message p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.chat-quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-link {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.quick-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateX(5px);
}

/* Fade-in Animations */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-on-scroll.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer (continuing) */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-container {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 3;
        padding: 1rem 0;
        gap: 0;
        border-top: 1px solid var(--border-color);
        margin-top: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.875rem 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-cta {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }
    
    .trust-badges {
        gap: 1.5rem;
    }
    
    .integrations-grid {
        gap: 1rem;
    }
    
    .integration-logo {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .result-number {
        font-size: 2.5rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .guarantee-box {
        padding: 2rem;
    }
    
    .guarantee-box h3 {
        font-size: 1.5rem;
    }
    
    .floating-cta {
        bottom: 20px;
        right: 20px;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .floating-cta-text {
        display: none;
    }
    
    .floating-cta-icon {
        font-size: 1.5rem;
        margin: 0;
    }
    
    .chat-widget {
        bottom: 90px;
        left: 20px;
    }
    
    .chat-button {
        width: 55px;
        height: 55px;
    }
    
    .chat-box {
        width: calc(100vw - 40px);
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Accessibility - Reduced Motion */
@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;
    }

    html {
        scroll-behavior: auto;
    }

    .floating-cta,
    .chat-widget {
        transition: none;
    }
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.faq-accordion {
    max-width: 900px;
    margin: 3rem auto 0;
}

.faq-accordion .faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.faq-accordion .faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-accordion .faq-item[open] {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    list-style: none;
    gap: 1rem;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question span:first-child {
    flex: 1;
}

.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--primary-color);
    transition: transform 0.3s;
}

.faq-icon::before {
    width: 14px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    width: 2px;
    height: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-item[open] .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-answer p {
    margin: 0;
}

/* ==========================================================================
   DARK MODE
   ========================================================================== */

.dark-mode-toggle {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 0.75rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.dark-mode-toggle:hover {
    padding-right: 1rem;
}

.dark-mode-toggle .icon {
    font-size: 1.25rem;
    display: block;
}

/* Dark mode styles */
body.dark-mode {
    --bg-white: #1a1a2e;
    --bg-light: #16213e;
    --text-dark: #eaeaea;
    --text-light: #a0a0a0;
    --border-color: #2a2a4a;
}

body.dark-mode .nav {
    background: rgba(26, 26, 46, 0.95);
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.dark-mode .pricing-card,
body.dark-mode .why-card,
body.dark-mode .problem-card,
body.dark-mode .result-card,
body.dark-mode .faq-accordion .faq-item {
    background: var(--bg-light);
}

body.dark-mode .footer {
    background: #0f0f1a;
}

/* ==========================================================================
   COOKIE CONSENT
   ========================================================================== */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-dark);
    color: white;
    padding: 1.25rem 2rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-consent p {
    margin: 0;
    flex: 1;
    min-width: 300px;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.cookie-consent a {
    color: var(--secondary-color);
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.cookie-btn--accept {
    background: var(--primary-color);
    color: white;
}

.cookie-btn--accept:hover {
    background: var(--primary-dark);
}

.cookie-btn--decline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn--decline:hover {
    border-color: white;
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.back-to-top::before {
    content: '';
    width: 10px;
    height: 10px;
    border-left: 3px solid white;
    border-top: 3px solid white;
    transform: rotate(45deg) translateY(2px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 160px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    /* Hide non-essential elements */
    .nav,
    .floating-cta,
    .chat-widget,
    .back-to-top,
    .dark-mode-toggle,
    .cookie-consent,
    .skip-link,
    .nav-cta,
    .cta-button,
    .submit-button,
    form {
        display: none !important;
    }

    /* Reset backgrounds */
    body {
        background: white !important;
        color: black !important;
    }

    .hero {
        background: #f5f5f5 !important;
        color: black !important;
    }

    .hero h1,
    .hero p,
    .section-title,
    .section-subtitle {
        color: black !important;
    }

    /* Improve readability */
    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    h1 { font-size: 24pt; }
    h2 { font-size: 18pt; }
    h3 { font-size: 14pt; }

    /* Show link URLs */
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    a[href^="#"]::after,
    a[href^="javascript"]::after {
        content: "";
    }

    /* Page breaks */
    section {
        page-break-inside: avoid;
    }

    h2, h3 {
        page-break-after: avoid;
    }

    /* Cards print nicely */
    .pricing-card,
    .why-card,
    .problem-card,
    .result-card,
    .faq-item {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        background: white !important;
    }

    /* Footer */
    .footer {
        background: #f5f5f5 !important;
        color: black !important;
    }

    .footer a {
        color: black !important;
    }
}
