/* ===================================
   AI Thesis Generator - Landing Page CSS
   Modern, Clean, Professional Design
   =================================== */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* No Scroll Class for Modal States */
body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #2563eb;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
    z-index: 9999;
    transition: width 0.1s ease;
}

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

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: #111827;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.875rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #6b7280;
    line-height: 1.7;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* Buttons */
.btn-primary,
.btn-secondary,
.cta-primary,
.nav-cta,
.demo-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary,
.cta-primary,
.nav-cta,
.demo-cta {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.25);
}

.btn-primary:hover,
.cta-primary:hover,
.nav-cta:hover,
.demo-cta:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background: white;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-secondary:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.cta-primary.large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.button-arrow {
    transition: transform 0.2s ease;
}

.btn-primary:hover .button-arrow,
.cta-primary:hover .button-arrow,
.nav-cta:hover .button-arrow,
.demo-cta:hover .button-arrow {
    transform: translateX(4px);
}

/* Demo CTA Button Specific Styles */
.demo-cta {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.25);
}

.demo-cta:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 8px 25px 0 rgba(16, 185, 129, 0.35);
}

.demo-cta i {
    font-size: 1.25rem;
}

/* Loading States */
.btn-loading {
    display: none;
}

.loading .btn-text {
    display: none;
}

.loading .btn-loading {
    display: inline-block;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #111827;
    font-weight: 700;
    font-size: 1.25rem;
}

.brand-icon {
    font-size: 1.5rem;
    color: #2563eb;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.2s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-cta {
        width: 100%;
        justify-content: center;
    }
    
    body.nav-open {
        overflow: hidden;
    }
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

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

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero-title {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #6b7280;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #059669;
    font-weight: 500;
}

.feature-item i {
    color: #10b981;
}

/* Social Proof */
.social-proof {
    margin-top: 2rem;
    text-align: center;
}

.social-proof-text {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.university-logos {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.university {
    color: #9ca3af;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

/* Demo Section */
.demo-section {
    padding: 5rem 0;
    background: white;
}

.demo-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.demo-content h2 {
    margin-bottom: 1rem;
    color: #111827;
}

.demo-subtitle {
    color: #6b7280;
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.demo-video {
    margin-bottom: 2rem;
}

.video-placeholder {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    border: 2px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="%23e5e7eb" opacity="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
}

.video-content {
    position: relative;
    z-index: 2;
}

.demo-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.demo-step {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 200px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.demo-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #2563eb;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1rem;
    font-size: 1.125rem;
}

.step-content h4 {
    color: #111827;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.step-content p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

.demo-arrow {
    color: #2563eb;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .demo-steps {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .demo-arrow {
        transform: rotate(90deg);
    }
    
    .demo-step {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
}

/* Email Capture Form */
.email-capture-form {
    margin-bottom: 2rem;
}

.form-group-inline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 600px;
}

.email-input,
.topic-select {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.email-input:focus,
.topic-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.form-disclaimer i {
    color: #10b981;
}

/* Enhanced Topic Select Styling */
.topic-select {
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%236b7280" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6,9 12,15 18,9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    cursor: pointer;
    color: #374151;
}

.topic-select:hover {
    border-color: #9ca3af;
}

.topic-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.topic-select option {
    padding: 0.5rem;
    background: white;
    color: #374151;
}

.topic-select option:hover,
.topic-select option:focus {
    background: #f3f4f6;
}

.topic-select option:disabled {
    color: #9ca3af;
    background: #f9fafb;
}

/* Form Validation States */
.email-input.error,
.topic-select.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.email-input.success,
.topic-select.success {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-success {
    color: #10b981;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Email Popup Modal */
.email-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.email-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.email-popup-modal {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.email-popup-overlay.show .email-popup-modal {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
    z-index: 10;
}

.popup-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.popup-content {
    padding: 2rem;
}

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

.popup-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.popup-header h3 {
    color: #111827;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.popup-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

.popup-benefits {
    margin-bottom: 2rem;
}

.popup-benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #374151;
}

.popup-benefit i {
    color: #10b981;
    font-size: 1.125rem;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popup-form-group {
    display: flex;
    flex-direction: column;
}

.popup-email-input,
.popup-topic-select {
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.popup-email-input:focus,
.popup-topic-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.popup-topic-select {
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%236b7280" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6,9 12,15 18,9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    cursor: pointer;
}

.popup-submit-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.popup-submit-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.popup-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 1rem;
    text-align: center;
}

.popup-disclaimer i {
    color: #10b981;
}

/* Success Modal */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.success-modal {
    background: white;
    border-radius: 16px;
    padding: 3rem 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.success-modal-overlay.show .success-modal {
    transform: scale(1);
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.success-content h3 {
    color: #111827;
    margin: 0;
    font-size: 1.5rem;
}

.success-message {
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.success-progress {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    width: 0%;
    transition: width 5s ease;
    border-radius: 2px;
}

.success-close-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.success-close-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: white;
}

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

.section-header h2 {
    margin-bottom: 1rem;
    color: #111827;
}

.section-subtitle {
    color: #6b7280;
    font-size: 1.125rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    opacity: 1;
    visibility: visible;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    display: block;
    transform: none;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #111827;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background: #f8fafc;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: #111827;
}

.steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    opacity: 1;
    visibility: visible;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    opacity: 1;
    visibility: visible;
    display: block;
    transform: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-content h3 {
    margin-bottom: 1rem;
    color: #111827;
}

.step-content p {
    color: #6b7280;
    line-height: 1.6;
}

.step-visual {
    margin-top: 1.5rem;
    color: #2563eb;
    font-size: 2rem;
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    font-size: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
}

/* Pricing Section */
.pricing {
    padding: 5rem 0;
    background: white;
}

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

.pricing-header h2 {
    margin-bottom: 1rem;
    color: #111827;
}

.pricing-subtitle {
    color: #6b7280;
    font-size: 1.125rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 1;
    visibility: visible;
}

.pricing-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
    display: block;
    transform: none;
}

.pricing-card.popular {
    border-color: #2563eb;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

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

.plan-name {
    margin-bottom: 0.5rem;
    color: #111827;
}

.plan-price {
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #2563eb;
}

.period {
    color: #6b7280;
    font-size: 1rem;
}

.plan-description {
    color: #6b7280;
    font-size: 0.875rem;
}

.plan-features {
    margin-bottom: 2rem;
}

.plan-features .feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #374151;
}

.plan-features .feature-item i {
    color: #10b981;
    font-size: 1rem;
}

.plan-button {
    width: 100%;
    justify-content: center;
}

.pricing-footer {
    text-align: center;
    margin-top: 3rem;
}

.money-back {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.payment-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.payment-icons {
    display: flex;
    gap: 0.5rem;
}

.payment-icons i {
    font-size: 1.5rem;
    color: #9ca3af;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .pricing-card.popular {
        transform: none;
    }
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: #f8fafc;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: #111827;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    opacity: 1;
    visibility: visible;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
    display: block;
    transform: none;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.testimonial-content p {
    color: #374151;
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.author-info h4 {
    margin-bottom: 0.25rem;
    color: #111827;
    font-size: 1rem;
}

.author-info span {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Stats Section */
.stats {
    padding: 5rem 0;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
}

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

.stat-item {
    padding: 1rem;
}

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

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

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background: white;
}

.faq h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: #111827;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-icon {
    color: #6b7280;
    transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

.faq-answer a {
    color: #2563eb;
    text-decoration: none;
}

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

/* Final CTA Section */
.final-cta {
    padding: 5rem 0;
    background: #f8fafc;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.final-cta h2 {
    margin-bottom: 1.5rem;
    color: #111827;
}

.final-cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.trust-item i {
    color: #10b981;
}

@media (max-width: 768px) {
    .trust-indicators {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Footer */
.footer {
    background: #111827;
    color: #d1d5db;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #2563eb;
}

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

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: #2563eb;
}

.social-text {
    font-size: 0.875rem;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright p {
    color: #9ca3af;
    margin-bottom: 1rem;
}

.footer-disclaimer p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #6b7280;
    font-size: 1rem;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    max-width: 400px;
    background: #2563eb;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.3);
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.notification-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-message {
    font-weight: 500;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.5rem;
    z-index: 9999;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.cookie-text p {
    margin: 0;
    color: #d1d5db;
    line-height: 1.5;
}

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

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-btn.accept {
    background: #2563eb;
    color: white;
}

.cookie-btn.accept:hover {
    background: #1d4ed8;
}

.cookie-btn.decline {
    background: transparent;
    color: #d1d5db;
    border: 1px solid #4b5563;
}

.cookie-btn.decline:hover {
    background: #374151;
    border-color: #6b7280;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        max-width: 120px;
    }
}

/* Responsive Design Enhancements */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .features,
    .how-it-works,
    .pricing,
    .testimonials,
    .faq,
    .stats,
    .final-cta,
    .demo-section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 5rem 0 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .features-grid,
    .testimonials-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .notification-toast {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .email-popup-modal {
        margin: 1rem;
        max-width: none;
    }
    
    .popup-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .cta-primary,
    .demo-cta {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .feature-card,
    .testimonial-card,
    .pricing-card {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-answer p {
        padding: 0 1rem 1rem;
    }
    
    .demo-cta {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-top,
    .loading-overlay,
    .notification-toast,
    .cookie-banner,
    .email-popup-overlay,
    .success-modal-overlay {
        display: none !important;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .features,
    .how-it-works,
    .pricing,
    .testimonials,
    .faq,
    .stats,
    .final-cta,
    .demo-section {
        padding: 1.5rem 0;
    }
    
    .btn-primary,
    .btn-secondary,
    .cta-primary,
    .demo-cta {
        border: 2px solid #2563eb;
        background: transparent !important;
        color: #2563eb !important;
    }
    
    .pricing-card {
        border: 2px solid #e5e7eb;
        break-inside: avoid;
    }
    
    .testimonial-card,
    .feature-card {
        break-inside: avoid;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-primary,
    .cta-primary,
    .nav-cta,
    .demo-cta {
        background: #000000;
        border: 2px solid #000000;
    }
    
    .btn-secondary {
        background: #ffffff;
        color: #000000;
        border: 2px solid #000000;
    }
    
    .feature-card,
    .testimonial-card,
    .pricing-card {
        border: 2px solid #000000;
    }
    
    .navbar {
        background: #ffffff;
        border-bottom: 2px solid #000000;
    }
    
    .nav-link {
        color: #000000;
    }
    
    .hero {
        background: #ffffff;
    }
}

/* Reduced Motion Support */
@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;
    }
    
    .loading-spinner {
        animation: none;
        border: 4px solid #2563eb;
    }
    
    .scroll-progress {
        transition: none;
    }
    
    .feature-card,
    .testimonial-card,
    .pricing-card,
    .step {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}

/* Focus Visible Support */
@supports selector(:focus-visible) {
    .btn-primary:focus,
    .btn-secondary:focus,
    .cta-primary:focus,
    .nav-cta:focus,
    .demo-cta:focus,
    .email-input:focus,
    .topic-select:focus,
    .faq-question:focus {
        outline: none;
    }
    
    .btn-primary:focus-visible,
    .btn-secondary:focus-visible,
    .cta-primary:focus-visible,
    .nav-cta:focus-visible,
    .demo-cta:focus-visible {
        outline: 2px solid #2563eb;
        outline-offset: 2px;
    }
    
    .email-input:focus-visible,
    .topic-select:focus-visible {
        outline: 2px solid #2563eb;
        outline-offset: 2px;
    }
    
    .faq-question:focus-visible {
        outline: 2px solid #2563eb;
        outline-offset: -2px;
    }
}

/* CSS Grid Fallback for Older Browsers */
@supports not (display: grid) {
    .features-grid,
    .testimonials-grid,
    .pricing-grid,
    .stats-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .feature-card,
    .testimonial-card,
    .pricing-card {
        flex: 1;
        min-width: 300px;
    }
    
    .stat-item {
        flex: 1;
        min-width: 200px;
    }
}

/* Flexbox Fallback for Even Older Browsers */
@supports not (display: flex) {
    .features-grid,
    .testimonials-grid,
    .pricing-grid,
    .stats-grid {
        display: block;
    }
    
    .feature-card,
    .testimonial-card,
    .pricing-card,
    .stat-item {
        display: inline-block;
        width: 48%;
        vertical-align: top;
        margin-right: 2%;
        margin-bottom: 2rem;
    }
    
    .steps {
        display: block;
        text-align: center;
    }
    
    .step {
        display: inline-block;
        width: 30%;
        vertical-align: top;
        margin-right: 3%;
    }
}

/* Force Visibility - Emergency Styles */
.features-grid,
.testimonials-grid,
.pricing-grid {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.steps {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.feature-card,
.testimonial-card,
.step,
.pricing-card {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: none !important;
}

/* Animation Classes */
.animate-in {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.slide-up {
    animation: slideUp 0.6s ease forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

.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;
}

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Selection Styles */
::selection {
    background: rgba(37, 99, 235, 0.2);
    color: #1f2937;
}

::-moz-selection {
    background: rgba(37, 99, 235, 0.2);
    color: #1f2937;
}

/* Placeholder Styles */
::placeholder {
    color: #9ca3af;
    opacity: 1;
}

::-webkit-input-placeholder {
    color: #9ca3af;
}

::-moz-placeholder {
    color: #9ca3af;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #9ca3af;
}

/* Modal Backdrop Blur Effect */
.email-popup-overlay,
.success-modal-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Enhanced Button Hover Effects */
.demo-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.demo-cta:hover::before {
    left: 100%;
}

/* Enhanced Form Styling */
.popup-email-input::placeholder,
.email-input::placeholder {
    transition: opacity 0.3s ease;
}

.popup-email-input:focus::placeholder,
.email-input:focus::placeholder {
    opacity: 0.5;
}

/* Enhanced Loading States */
.popup-submit-btn:disabled,
.cta-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.popup-submit-btn:disabled:hover,
.cta-primary:disabled:hover {
    background: #9ca3af;
    transform: none;
    box-shadow: none;
}

/* Enhanced Success Modal Animation */
.success-modal {
    animation: modalSlideIn 0.3s ease-out;
}

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

/* Enhanced Popup Animation */
.email-popup-modal {
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Enhanced Toast Notifications */
.notification-toast.success {
    background: #10b981;
}

.notification-toast.error {
    background: #ef4444;
}

.notification-toast.warning {
    background: #f59e0b;
}

.notification-toast.info {
    background: #2563eb;
}

/* Enhanced Demo Section Responsiveness */
@media (max-width: 640px) {
    .demo-steps {
        gap: 1rem;
    }
    
    .demo-step {
        padding: 1rem;
        min-width: 150px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .step-content h4 {
        font-size: 0.875rem;
    }
    
    .step-content p {
        font-size: 0.75rem;
    }
}

/* Final Fallback Styles */
.no-js .animate-in,
.no-js .fade-in,
.no-js .slide-up,
.no-js .scale-in {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Ensure all content is visible by default */
section {
    opacity: 1;
    visibility: visible;
}

.features,
.how-it-works,
.pricing,
.testimonials,
.faq,
.stats,
.final-cta,
.demo-section {
    opacity: 1;
    visibility: visible;
}

/* Enhanced Accessibility for Screen Readers */
.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Enhanced Button States */
.btn-primary:active,
.btn-secondary:active,
.cta-primary:active,
.demo-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

/* Enhanced Modal Close Button */
.popup-close:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Enhanced Form Validation */
.form-group {
    position: relative;
}

.form-error-message {
    position: absolute;
    bottom: -1.5rem;
    left: 0;
    color: #ef4444;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-group.error .form-error-message {
    opacity: 1;
}

/* Enhanced Loading Spinner */
.loading-spinner.small {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

/* Enhanced Progress Bar */
.progress-bar.animated {
    background: linear-gradient(90deg, #2563eb, #7c3aed, #2563eb);
    background-size: 200% 100%;
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Enhanced Hover States for Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .testimonial-card:hover,
    .pricing-card:hover {
        transform: none;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .btn-primary:hover,
    .btn-secondary:hover,
    .cta-primary:hover,
    .demo-cta:hover {
        transform: none;
    }
}

/* Enhanced Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
    /* This section can be expanded if dark mode is required */
    .email-popup-modal,
    .success-modal {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .popup-header h3 {
        color: #f9fafb;
    }
    
    .popup-subtitle,
    .success-message {
        color: #d1d5db;
    }
}

/* Navigation Dropdown Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    color: inherit;
    text-decoration: none;
}

.dropdown-toggle:hover {
    color: #2563eb;
}

.dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.nav-dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    min-width: 250px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-link:hover {
    background: #f3f4f6;
    color: #2563eb;
    border-left-color: #2563eb;
}

/* Mobile Dropdown Styles */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: #f8fafc;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        padding: 0;
        min-width: auto;
        transform: none;
    }
    
    .nav-dropdown.active .dropdown-menu {
        transform: none;
    }
    
    .dropdown-link {
        padding: 0.5rem 1rem;
        margin-left: 1rem;
        border-left: none;
        border-radius: 4px;
        margin-bottom: 0.25rem;
    }
    
    .dropdown-link:hover {
        background: white;
        border-left: none;
    }
}


/* End of CSS File */
