/* --- QLA Modern Responsive Purple Theme --- */
:root {
    --primary: #7c3aed;
    --primary-dark: #4c1d95;
    --primary-light: #a855f7;
    --white: #fff;
    --gray: #64748b;
    --gray-dark: #334155;
    --gray-light: #f8fafc;
    --black: #0f172a;
    --radius: 16px;
    --radius-lg: 32px;
    --shadow: 0 4px 24px rgba(124,58,237,0.08);
    --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    color: var(--gray-dark);
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

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

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p, .lead {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.15rem;
    color: var(--gray-dark);
    font-weight: 500;
}

/* Header & Navigation */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    gap: 0.75rem;
    transition: all var(--transition);
    letter-spacing: -0.02em;
}

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

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    transition: all var(--transition);
}

.logo:hover .logo-icon {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.nav-menu {
    display: flex;
    gap: 0;
    list-style: none;
    align-items: center;
    background: rgba(248, 250, 252, 0.8);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-link {
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.nav-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
}

/* Add scrolled state for navbar */
.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Enhanced nav link active state */
.nav-link.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.2);
}

/* Subtle scale animation for nav container on hover */
.nav-container:hover .nav-menu {
    transform: translateY(-1px);
}

/* Add focus states for accessibility */
.nav-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.logo:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 8px;
}

/* Loading animation for logo icon */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
}

.logo-icon:hover {
    animation: logoFloat 2s ease-in-out infinite;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.mobile-menu-toggle:hover {
    background: rgba(124,58,237,0.1);
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all var(--transition);
    transform-origin: center;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 4px 24px rgba(124,58,237,0.15);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    z-index: 998;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--transition);
}

.mobile-nav.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav ul {
    list-style: none;
    padding: 1.5rem 1rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav li {
    margin: 0;
}

.mobile-nav .nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--primary);
    background: var(--gray-light);
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.mobile-nav .nav-link:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124,58,237,0.2);
}

@media (max-width: 900px) {
    .nav-menu {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .nav-container {
        position: relative;
        padding: 0.75rem 1.5rem;
    }
    .logo {
        font-size: 1.3rem;
    }
    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-secondary-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
    margin: 0.25rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    box-shadow: 0 8px 32px rgba(124,58,237,0.15);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

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

.btn-secondary-outline:hover {
    background: var(--primary-light);
    color: var(--white);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
    padding-top: 100px;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
}

.hero-content h1 {
    margin-bottom: 2rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features-flow {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--white) 80%, var(--gray-light) 100%);
    transition: background 0.8s cubic-bezier(.4,0,.2,1);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 0;
}

.key-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-highlight {
    background: var(--gray-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
    flex: 1 1 250px;
    min-width: 220px;
    max-width: 350px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.feature-highlight:hover {
    box-shadow: 0 8px 32px rgba(124,58,237,0.12);
    transform: translateY(-4px) scale(1.03);
}

.feature-icon-large {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* How it Works Section */
.how-it-works {
    background: linear-gradient(180deg, var(--gray-light) 80%, var(--white) 100%);
    padding: 4rem 0;
    transition: background 0.8s cubic-bezier(.4,0,.2,1);
}

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

.step-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
    transition: box-shadow var(--transition), transform var(--transition);
}

.step-card:hover {
    box-shadow: 0 8px 32px rgba(124,58,237,0.12);
    transform: translateY(-4px) scale(1.03);
}

.step-number {
    font-size: 2rem;
    color: var(--primary-light);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* About QLA Section */
.about-qla {
    background: linear-gradient(180deg, var(--white) 80%, var(--gray-light) 100%);
    padding: 4rem 0;
    transition: background 0.8s cubic-bezier(.4,0,.2,1);
}

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

.about-text {
    flex: 2;
    min-width: 280px;
}

.benefits-list {
    margin: 2rem 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.benefit-item i {
    color: var(--primary-light);
    font-size: 1.2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
    box-shadow: 0 2px 24px rgba(124,58,237,0.08);
    transition: background 0.8s cubic-bezier(.4,0,.2,1);
}

.cta-section h2 {
    color: var(--white);
}

.cta-section p {
    color: var(--white);
}

/* Footer - Fixed Full Width Design */
.footer {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 3rem 0 1rem 0;
    margin-top: 0;
    box-shadow: 0 -4px 24px rgba(124,58,237,0.12);
    position: relative;
}

.footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-brand {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand .brand-icon {
    font-size: 1.8rem;
    color: var(--primary-light);
}

.footer-brand p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.social-links a {
    color: var(--white);
    font-size: 1.4rem;
    transition: color var(--transition), transform var(--transition);
    padding: 0.5rem;
    border-radius: var(--radius);
}

.social-links a:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
    background: rgba(255,255,255,0.1);
}

.footer-section {
    flex: 0 0 auto;
    min-width: 150px;
}

.footer-section h4 {
    color: var(--primary-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color var(--transition);
    font-size: 0.95rem;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-left p {
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.footer-bottom-left a {
    color: var(--primary-light);
    text-decoration: none;
}

.footer-bottom-left a:hover {
    color: var(--white);
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom-right a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-bottom-right a:hover {
    color: var(--white);
}

.footer-bottom-right span {
    color: rgba(255,255,255,0.7);
}

.footer-bottom-right span a {
    color: var(--primary-light);
}

@media (max-width: 900px) {
    .footer .container {
        padding: 0 1rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    .footer-brand {
        max-width: 100%;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Legal Document Styles */
.legal-document {
    width: 100%;
    margin: 0;
    background: var(--white);
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.legal-header {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.legal-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    color: #ffffff;
}

.legal-subtitle {
    font-size: 1.3rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
    font-weight: 500;
}

.last-updated {
    font-size: 1rem;
    opacity: 0.7;
    font-style: italic;
    color: #c0c0c0;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.legal-content {
    padding: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-section h2 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    border-left: 4px solid var(--primary-light);
    padding-left: 1rem;
}

.legal-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.contact-info {
    background: var(--gray-light);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

.legal-footer {
    background: var(--gray-light);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.legal-footer p {
    margin-bottom: 0.5rem;
    color: var(--gray-dark);
}

.download-link {
    margin-top: 1.5rem;
}

.download-link .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Design for Legal Document */
@media (max-width: 900px) {
    .legal-header {
        padding: 3rem 1.5rem;
    }
    
    .legal-header h1 {
        font-size: 2.5rem;
    }
    
    .legal-subtitle {
        font-size: 1.1rem;
    }
    
    .legal-content {
        padding: 2rem 1.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .legal-header {
        padding: 2rem 1rem;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-subtitle {
        font-size: 1rem;
    }
    
    .legal-content {
        padding: 1.5rem 1rem;
    }
    
    .legal-section {
        margin-bottom: 2rem;
    }
    
    .legal-section ul {
        margin-left: 1rem;
    }
}

/* Contact Page Styles */
.contact-page {
    width: 100%;
    margin: 0;
}

.contact-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.contact-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.contact-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 500;
}

.contact-content {
    padding: 4rem 0;
    background: var(--gray-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-info-section h2,
.contact-form-section h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.contact-cards {
    display: grid;
    gap: 1.5rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
    font-size: 1.5rem;
}

.contact-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-card p {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition);
}

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

.contact-form-section p {
    color: var(--gray-dark);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.embedded-contact {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0,0,0,0.1);
}

.embedded-contact iframe {
    display: block;
    border-radius: 12px;
    border: none;
    background: var(--white);
}

/* Custom Scrollbar Styling for Iframe */
.embedded-contact iframe::-webkit-scrollbar {
    width: 8px;
}

.embedded-contact iframe::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 4px;
}

.embedded-contact iframe::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    transition: background var(--transition);
}

.embedded-contact iframe::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.embedded-contact iframe::-webkit-scrollbar-corner {
    background: var(--gray-light);
}

/* Firefox Scrollbar Styling */
.embedded-contact iframe {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--gray-light);
}

/* Global Custom Scrollbar for Better Consistency */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 6px;
    border: 2px solid var(--gray-light);
    transition: background var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

::-webkit-scrollbar-corner {
    background: var(--gray-light);
}

.contact-note {
    background: rgba(124, 58, 237, 0.1);
    padding: 1rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.contact-note p {
    margin-bottom: 0.5rem;
    color: var(--gray-dark);
}

.contact-note ul {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

.contact-note li {
    margin-bottom: 0.5rem;
    color: var(--gray-dark);
}

.contact-note a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.contact-note a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.contact-faq {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact-faq h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

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

.faq-item {
    padding: 1.5rem;
    background: var(--gray-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-light);
}

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

.faq-item p {
    color: var(--gray-dark);
    line-height: 1.6;
    margin: 0;
}

.faq-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.faq-item a:hover {
    text-decoration: underline;
}

/* Responsive Design for Contact Page */
@media (max-width: 900px) {
    .contact-header {
        padding: 3rem 0;
    }
    
    .contact-header h1 {
        font-size: 2.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-content {
        padding: 3rem 0;
    }
    
    .contact-faq {
        padding: 2rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .contact-header {
        padding: 2rem 0;
    }
    
    .contact-header h1 {
        font-size: 2rem;
    }
    
    .contact-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-content {
        padding: 2rem 0;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-faq {
        padding: 1.5rem;
    }
    
    .embedded-contact iframe {
        height: 500px;
    }
}

/* Install Page Specific Styles */
.install-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.install-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.install-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: var(--white);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.install-hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.install-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Prerequisites Section */
.prerequisites-section {
    background: var(--gray-light);
    padding: 4rem 0;
}

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

.prerequisite-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 2px solid transparent;
}

.prerequisite-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(124,58,237,0.15);
    border-color: var(--primary-light);
}

.prerequisite-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.8rem;
}

.prerequisite-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.prerequisite-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.status-check {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    color: #16a34a;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-check.optional {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #2563eb;
}

.status-check i {
    font-size: 1rem;
}

/* Installation Steps */
.installation-steps {
    background: var(--white);
    padding: 4rem 0;
}

.steps-container {
    margin-top: 3rem;
}

.step-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--gray-light);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
    transition: all var(--transition);
}

.step-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateX(8px);
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(124,58,237,0.3);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.step-content p {
    color: var(--gray-dark);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.step-visual {
    margin: 1.5rem 0;
}

.browser-mockup {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 400px;
}

.browser-bar {
    background: #f1f3f4;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.browser-controls {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
    order: 2;
}

.browser-controls span {
    width: 12px;
    height: 12px;
    border-radius: 0;
    border: 1px solid #ccc;
    background: #fff;
    position: relative;
    cursor: pointer;
}

.browser-controls .minimize {
    background: #fff;
}

.browser-controls .minimize::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 2px;
    right: 2px;
    height: 1px;
    background: #666;
}

.browser-controls .maximize {
    background: #fff;
}

.browser-controls .maximize::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 1px solid #666;
}

.browser-controls .close {
    background: #fff;
}

.browser-controls .close::before,
.browser-controls .close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 1px;
    background: #666;
    transform-origin: center;
}

.browser-controls .close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.browser-controls .close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.browser-url {
    background: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--gray);
    border: 1px solid #e0e0e0;
    flex: 1;
    order: 1;
}

.browser-content {
    padding: 3rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.step-tip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 193, 7, 0.1);
    padding: 1rem;
    border-radius: var(--radius);
    border-left: 4px solid #ffc107;
    margin-top: 1rem;
}

.step-tip i {
    color: #f59e0b;
    font-size: 1.2rem;
}

.step-tip span {
    color: var(--gray-dark);
    font-weight: 500;
}

.search-example {
    margin: 1.5rem 0;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 25px;
    border: 2px solid var(--primary-light);
    max-width: 400px;
    box-shadow: 0 2px 10px rgba(124,58,237,0.1);
}

.search-bar i {
    color: var(--primary);
    font-size: 1.1rem;
}

.search-bar span {
    color: var(--gray-dark);
    font-weight: 500;
}

.direct-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: rgba(124,58,237,0.1);
    border-radius: var(--radius);
    border: 2px solid var(--primary-light);
    transition: all var(--transition);
    margin-top: 1rem;
}

.direct-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124,58,237,0.3);
}

.permissions-info {
    background: rgba(124,58,237,0.05);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(124,58,237,0.2);
    margin-top: 1rem;
}

.permissions-info h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.permissions-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.permissions-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--gray-dark);
}

.permissions-info li i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.success-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    padding: 1rem;
    border-radius: var(--radius);
    border-left: 4px solid #22c55e;
    margin-top: 1rem;
}

.success-message i {
    color: #16a34a;
    font-size: 1.2rem;
}

.success-message span {
    color: #15803d;
    font-weight: 600;
}

/* Troubleshooting Section */
.troubleshooting-section {
    background: var(--gray-light);
    padding: 4rem 0;
}

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

.trouble-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
    border-top: 4px solid var(--primary);
}

.trouble-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(124,58,237,0.15);
}

.trouble-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.8rem;
}

.trouble-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.trouble-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.trouble-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: rgba(124,58,237,0.1);
    border-radius: var(--radius);
    border: 2px solid var(--primary-light);
    transition: all var(--transition);
}

.trouble-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124,58,237,0.3);
}

/* Responsive Design for Install Page */
@media (max-width: 900px) {
    .install-hero {
        padding: 4rem 0;
    }
    
    .install-hero h1 {
        font-size: 2.5rem;
    }
    
    .install-hero p {
        font-size: 1.1rem;
    }
    
    .step-item {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto;
    }
    
    .prerequisites-grid,
    .troubleshooting-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .install-hero {
        padding: 3rem 0;
    }
    
    .install-hero h1 {
        font-size: 2rem;
    }
    
    .install-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .step-item {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .prerequisite-card,
    .trouble-card {
        padding: 2rem;
    }
    
    .browser-mockup {
        max-width: 100%;
    }
}

/* Utility */
@media (max-width: 700px) {
    .container, .container-wide {
        padding: 0 0.5rem;
    }
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }
    .stats-card {
        flex-direction: column;
        gap: 1rem;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    .hero-content p {
        font-size: 1.1rem;
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-up:nth-child(1) { animation-delay: 0.2s; }
.fade-in-up:nth-child(2) { animation-delay: 0.4s; }
.fade-in-up:nth-child(3) { animation-delay: 0.6s; }

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

/* Section Transitions - Smooth Background Flow */
.features-flow {
    position: relative;
    background: var(--white);
    padding: 4rem 0;
}

.features-flow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, transparent 0%, var(--gray-light) 100%);
    pointer-events: none;
}

.how-it-works {
    position: relative;
    background: var(--gray-light);
    padding: 4rem 0;
}

.how-it-works::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, transparent 0%, var(--white) 100%);
    pointer-events: none;
}

.about-qla {
    position: relative;
    background: var(--white);
    padding: 4rem 0;
}

.about-qla::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, transparent 0%, var(--gray-light) 100%);
    pointer-events: none;
}

.faq-preview {
    position: relative;
    background: var(--gray-light);
    padding: 4rem 0;
}

.faq-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, transparent 0%, rgba(124,58,237,0.05) 100%);
    pointer-events: none;
}

/* Inline Links */
.inline-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted var(--primary);
    transition: all var(--transition);
}

.inline-link:hover {
    color: var(--primary-dark);
    border-bottom: 1px solid var(--primary-dark);
    background: rgba(124,58,237,0.05);
    padding: 2px 4px;
    border-radius: 4px;
}
