/* Homepage Styles - Procloze Landing Page */

:root {
    --primary-color: #00DC82;
    --primary-rgb: 0, 220, 130;
    --bg-neutral: #F8F9FA;
    --text-primary: #212529;
    --text-secondary: #6C757D;
    --border-light: #E9ECEF;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: var(--bg-neutral);
    color: var(--text-primary);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* Poppins Header Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-weight: 700;
    font-stretch: normal;
    font-style: normal;
    letter-spacing: -1.56px;
}

/* Navbar Styles */
.navbar {
    padding: 1.5rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.navbar > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-brand {
    margin-right: 0;
    padding: 0;
}

.navbar-toggler {
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.logo {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
}

.brand-text {
    font-weight: 600;
    color: #038502;
}

.nav-link {
    color: var(--text-primary) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem !important;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-social-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background: var(--bg-neutral);
    border: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.nav-social-link:hover {
    color: var(--primary-color);
    background: var(--bg-neutral);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

@media (max-width: 767.98px) {
    .navbar {
        padding: 1rem;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        border: 1px solid var(--border-light);
    }

    .navbar-nav {
        gap: 0.5rem !important;
    }

    .nav-social-link {
        justify-content: center;
    }
}

/* Hero Section Styles */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
    /* Fallback background color */
    background-color: var(--bg-neutral);
    background:
        /* Very aggressive fade - almost invisible background */
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.98) 0%,   /* Almost solid white at top */
            rgba(255, 255, 255, 0.95) 25%,  /* Very white */
            rgba(255, 255, 255, 0.9) 50%,   /* Still very white */
            rgba(255, 255, 255, 0.85) 75%,  /* Very white */
            rgba(255, 255, 255, 0.8) 100%   /* White but slightly transparent at bottom */
        ),
        /* Background image */
        url('../images/grid-bg.png') center bottom / cover no-repeat;
    background-attachment: fixed;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.availability-badge {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 30px;
    padding: 0.75rem 1.5rem;
    display: inline-block;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    animation: fadeInUp 0.5s ease;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.5s ease 0.2s;
    animation-fill-mode: both;
}

.typed-text-container {
    min-height: 1.2em; /* Desktop: single line height */
    display: block; /* Changed from flex to block for better control */
    text-align: center;
    line-height: 1.2;
    margin-top: 0.5rem;
    padding: 0.3rem 0; /* Add some padding for better spacing */
}

/* Mobile: Increase the height to allow text wrapping */
@media (max-width: 768px) {
    .typed-text-container {
        min-height: 3em; /* Mobile: increased height for wrapping */
        padding-top: 0.6rem; /* More top padding for mobile */
        padding-bottom: 0.6rem; /* Bottom padding for mobile */
    }
}

.gradient-text {
    background: linear-gradient(135deg, #038502 0%, #28a745 50%, #20c997 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    animation: fadeInUp 0.5s ease 0.4s;
    animation-fill-mode: both;
    max-width: 700px;
}

.waitlist-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    animation: fadeInUp 0.5s ease 0.6s;
    animation-fill-mode: both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.waitlist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.form-floating > label {
    color: var(--text-secondary);
}

.form-control {
    background: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    height: auto;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: #ffffff;
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

.btn-get-plan {
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background: var(--primary-color);
    opacity: 0.9;
    transform: translateY(-2px);
}

.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--text-primary);
}

.alert-success {
    background: rgba(var(--primary-rgb), 0.2);
}

.alert-danger {
    background: rgba(255, 59, 48, 0.2);
}

.alert-warning {
    background: rgba(255, 204, 0, 0.2);
}

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .waitlist-card {
        padding: 1.5rem;
    }

    /* Mobile background optimizations */
    .hero-section {
        background-attachment: scroll; /* Better mobile performance */
        background-position: center center; /* Center for better mobile view */
        background-size: cover; /* Ensure full coverage on mobile */
    }


}



/* Features Section Styles */
.features-section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 4rem;
    text-align: center;
    color: var(--text-secondary);
    animation: fadeInUp 0.5s ease 0.2s;
    animation-fill-mode: both;
}

.feature-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-medium);
    border-color: var(--primary-color);
}

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

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

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

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 1rem;
}

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

/* Tools Section Styles */
.tools-section {
    position: relative;
    overflow: hidden;
    background-color: #003900;
}

.tool-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    background: var(--primary-color);
}

.tool-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon i {
    color: #fff;
}

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

.tool-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.tool-features {
    margin-top: auto;
}

.tool-features .feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.tool-features .feature-item i {
    color: var(--primary-color);
}


/* Screenshots Section Styles */
.screenshots-section {
    position: relative;
    overflow: hidden;
}

.screenshots-grid {
    display: flex;
    gap: 2rem;
    padding: 0 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    /* Hide scrollbar for cleaner look */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.screenshots-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.screenshot-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    min-width: 355px;
    flex-shrink: 0;
}



.screenshot-image {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.screenshot-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    display: block;
    object-fit: cover;
}



.screenshot-card h4 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.screenshot-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .screenshots-grid {
        flex-direction: column;
        overflow-x: visible;
        gap: 1.5rem;
    }

    .screenshot-card {
        padding: 1.5rem;
        min-width: unset;
        flex-shrink: 1;
    }

    .screenshot-card h4 {
        font-size: 1.1rem;
    }
}

/* Pricing Section Styles */
.pricing-section {
    position: relative;
    overflow: hidden;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.02);
}

.popular-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.best-value-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #b8b7b7 0%, #9c9b9b 100%);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    color: var(--text-primary);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.pricing-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.price {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.price .currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.price .period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.price .amount {
    font-weight: 500;
}

.price-original {
    font-size: 1.5rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-bottom: 0.25rem;
    opacity: 0.7;
}

.price-original .currency {
    font-size: 1rem;
    vertical-align: super;
}

.price-original .amount {
    font-weight: 400;
}

.price-current {
    margin-bottom: 0.5rem;
}

.price-savings {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.price-usd {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.pricing-features {
    margin-bottom: auto;
    padding-bottom: 2rem;
}

.pricing-features .feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.pricing-features .feature-item i {
    color: var(--primary-color);
}

/* CTA Section Styles */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-card {
    background: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 16px;
    padding: 3rem;
    transition: all 0.3s ease;
}

.cta-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.cta-card h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-card p {
    color: #e0e0e0;
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* Social Proof Section Styles */
.social-proof-section {
    padding: 100px 0;
    position: relative;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.testimonial-photo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.testimonial-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.testimonial-photo img:hover {
    transform: scale(1.05);
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    margin-top: auto;
}

.testimonial-role {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.stat-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Trust Badges Section */
.trust-badges-section {
    padding: 50px 0;
    position: relative;
}

.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    min-height: 60px;
    justify-content: center;
}

.trust-badge img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
}

.trust-badge i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* FAQ Section Styles */
.faq-section {
    padding: 100px 0;
    position: relative;
}

.faq-grid {
    display: grid;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    color: var(--text-primary);
    user-select: none;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.faq-toggle i {
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

.faq-item.active .faq-toggle {
    background: var(--primary-color);
}

.faq-item.active .faq-toggle i {
    color: #fff;
    transform: rotate(180deg);
}

/* Footer Styles */
.footer-section {
    background: #111111;
    padding: 100px 0 40px;
    position: relative;
}

.footer-cta {
    background: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.5s ease;
}

.footer-cta-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-cta-subtitle {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand-text {
    color: #e0e0e0;
    line-height: 1.6;
}

.footer-nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-item {
    margin-bottom: 0.75rem;
}

.footer-nav-link {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-nav-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2a2a2a;
    border: 1px solid #404040;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    color: #fff;
}

/* Footer bottom copyright link */
.footer-bottom-link {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom-link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #404040;
    text-align: center;
    color: #e0e0e0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-cta {
        padding: 2rem;
    }

    .footer-cta-title {
        font-size: 1.75rem;
    }

    /* Responsive pricing styling */
    .price-original {
        font-size: 1.2rem;
    }

    .price-savings {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }

    .footer-content {
        gap: 2rem;
    }

    .trust-badges {
        gap: 1.5rem;
    }

    .trust-badge {
        font-size: 0.8rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

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

    .cta-card {
        padding: 2rem;
        text-align: center;
    }

    .cta-card .text-lg-end {
        text-align: center !important;
        margin-top: 1.5rem;
    }
}

/* Performance optimizations */
.navbar>.container, .navbar>.container-fluid, .navbar>.container-lg, .navbar>.container-md, .navbar>.container-sm, .navbar>.container-xl, .navbar>.container-xxl {
    justify-content: center;
}

/* Loading states */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Accessibility improvements */
.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;
}

.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Improved focus styles for accessibility */
.btn:focus,
.form-control:focus,
.testimonial-card:focus,
.stat-card:focus,
.feature-card:focus,
.tool-card:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
}

/* High contrast focus for better visibility */
@media (prefers-contrast: high) {
    .btn:focus,
    .form-control:focus {
        outline: 3px solid #fff;
        outline-offset: 2px;
    }
}

/* Focus within for card containers */
.testimonial-card:focus-within,
.stat-card:focus-within,
.feature-card:focus-within,
.tool-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .navbar {
        background-color: rgba(0, 0, 0, 0.9);
        backdrop-filter: none;
    }

    .feature-card,
    .tool-card,
    .pricing-card {
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: none;
        border: 2px solid rgba(255, 255, 255, 0.2);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .navbar,
    .feature-card,
    .tool-card,
    .pricing-card,
    .cta-card,
    .testimonial-card,
    .stat-card,
    .logo {
        transition: none;
    }

    .hero-title,
    .hero-subtitle,
    .section-title,
    .section-subtitle,
    .availability-badge,
    .waitlist-card,
    .footer-cta {
        animation: none;
    }
}
