/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    /* Colors - More professional, subdued palette */
    --primary-blue: #2563EB;
    --primary-purple: #7C3AED;
    --dark-bg: #0A0F1E;
    --dark-secondary: #1E293B;
    --light-bg: #F9FAFB;
    --light-secondary: #E5E7EB;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --success: #059669;
    --warning: #D97706;
    --danger: #DC2626;
    --white: #FFFFFF;
    --gradient-start: #2563EB;
    --gradient-end: #7C3AED;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Border Radius - More subtle */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows - Softer, more professional */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-base), color var(--transition-base);
}

/* Dark Mode Styles */
body.dark {
    background-color: #0F172A;
    color: #E2E8F0;
}

/* Navbar in dark mode */
body.dark .navbar {
    background-color: rgba(15, 23, 42, 0.95);
    border-bottom-color: rgba(71, 85, 105, 0.3);
}

body.dark .nav-link {
    color: #CBD5E1;
}

body.dark .nav-link:hover {
    color: var(--white);
}

/* Hero section in dark mode */
body.dark .hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

body.dark .hero-title {
    color: var(--white);
}

body.dark .hero-subtitle {
    color: #CBD5E1;
}

body.dark .highlight {
    color: #93C5FD;
}

body.dark .badge {
    background: rgba(99, 102, 241, 0.2);
    color: #A5B4FC;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

body.dark .stat-value {
    color: var(--white);
}

body.dark .stat-label {
    color: #94A3B8;
}

/* Sections with light backgrounds stay lighter in dark mode */
body.dark .institutional-section,
body.dark .features,
body.dark .testimonials,
body.dark .comparison,
body.dark .use-cases {
    background: #1E293B;
}

body.dark .privacy-section {
    background: linear-gradient(135deg, 
                rgba(30, 41, 59, 0.8) 0%, 
                rgba(15, 23, 42, 0.9) 100%);
}

/* Pricing section in dark mode - override gradient */
body.dark .pricing {
    background: #1E293B;
}

/* Cards in dark mode - softer, more professional */
body.dark .feature-card,
body.dark .use-case-card {
    background-color: #1E293B;
    border-color: rgba(71, 85, 105, 0.4);
}

body.dark .feature-card:hover,
body.dark .use-case-card:hover {
    background-color: #2D3748;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

body.dark .feature-title,
body.dark .use-case-title,
body.dark .section-title {
    color: var(--white);
}

body.dark .feature-description,
body.dark .use-case-description,
body.dark .section-subtitle {
    color: #CBD5E1;
}

/* Pricing section in dark mode */
body.dark .pricing-card {
    background-color: #1E293B;
    border: 2px solid rgba(71, 85, 105, 0.4);
}

body.dark .pricing-card:hover {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

body.dark .pricing-card.featured {
    border-color: rgba(99, 102, 241, 0.8);
    background: linear-gradient(135deg, #1E293B 0%, #2D3748 100%);
}

body.dark .pricing-tier {
    color: #CBD5E1;
}

body.dark .pricing-price {
    color: var(--white);
}

body.dark .pricing-description,
body.dark .pricing-feature span {
    color: #94A3B8;
}

body.dark .pricing-badge {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
}

/* Testimonials in dark mode */
body.dark .testimonial-card {
    background-color: #1E293B;
    border-color: rgba(71, 85, 105, 0.4);
}

body.dark .testimonial-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

body.dark .testimonial-quote {
    color: #E2E8F0;
}

body.dark .testimonial-name {
    color: var(--white);
}

body.dark .testimonial-role {
    color: #94A3B8;
}

body.dark .testimonial-avatar {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
}

/* Institutional badges in dark mode */
body.dark .institutional-logo {
    opacity: 0.8;
}

body.dark .institutional-logo:hover {
    opacity: 1;
    transform: translateY(-5px);
    filter: drop-shadow(0 10px 20px rgba(99, 102, 241, 0.3));
}

body.dark .institutional-section .section-title {
    color: #94A3B8;
}

body.dark .institutional-section .section-title strong {
    color: var(--white);
}

body.dark .institutional-badge {
    background-color: transparent;
    border-color: transparent;
}

body.dark .institutional-badge:hover {
    border-color: transparent;
}

body.dark .institutional-badge-name {
    color: var(--white);
}

body.dark .institutional-badge-subtitle {
    color: #94A3B8;
}

/* Carousel controls in dark mode */
body.dark .carousel-arrow {
    background-color: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(71, 85, 105, 0.4);
}

body.dark .carousel-arrow:hover {
    background-color: rgba(30, 41, 59, 1);
    border-color: rgba(99, 102, 241, 0.6);
}

body.dark .carousel-arrow svg {
    color: #A5B4FC;
}

body.dark .carousel-dot {
    background-color: rgba(30, 41, 59, 0.5);
    border-color: rgba(165, 180, 252, 0.5);
}

body.dark .carousel-dot:hover {
    background-color: rgba(30, 41, 59, 0.8);
    border-color: rgba(165, 180, 252, 0.8);
}

body.dark .carousel-dot.active {
    background-color: #A5B4FC;
    border-color: #6366F1;
}

/* Comparison table in dark mode */
body.dark .comparison-table {
    background-color: #1E293B;
    border: 1px solid rgba(71, 85, 105, 0.3);
}

body.dark .comparison-header {
    background: linear-gradient(135deg, #1E40AF, #7C3AED);
}

body.dark .comparison-cell {
    border-color: rgba(71, 85, 105, 0.3);
}

body.dark .comparison-cell.label {
    background-color: #0F172A;
    color: var(--white);
}

body.dark .comparison-cell.highlight {
    background-color: rgba(99, 102, 241, 0.1);
    color: #A5B4FC;
}

/* Privacy section in dark mode */
body.dark .privacy-content h2 {
    color: var(--white);
}

body.dark .privacy-content p {
    color: #CBD5E1;
}

body.dark .privacy-feature {
    background-color: #1E293B;
    border: 1px solid rgba(71, 85, 105, 0.3);
}

body.dark .privacy-feature:hover {
    border-color: rgba(99, 102, 241, 0.4);
}

body.dark .privacy-feature-title {
    color: var(--white);
}

body.dark .privacy-feature-desc {
    color: #94A3B8;
}

body.dark .privacy-feature svg {
    color: #6366F1;
}

/* Footer in dark mode */
body.dark .footer {
    background-color: #0F172A;
    border-top: 1px solid rgba(71, 85, 105, 0.3);
}

body.dark .footer-logo-text,
body.dark .footer-heading {
    color: var(--white);
}

body.dark .footer-description,
body.dark .footer-links a {
    color: #94A3B8;
}

body.dark .footer-links a:hover {
    color: #CBD5E1;
}

body.dark .footer-copyright,
body.dark .footer-note {
    color: #64748B;
}

/* Section dividers in dark mode */
body.dark .section-divider,
body.dark .section-divider-thick {
    opacity: 0.2;
}

/* Hero demo in dark mode */
body.dark .hero-demo {
    border-color: rgba(99, 102, 241, 0.3);
}

body.dark .hero-demo-placeholder {
    background: linear-gradient(135deg, 
                rgba(99, 102, 241, 0.08) 0%, 
                rgba(139, 92, 246, 0.08) 100%);
}

body.dark .hero-demo-text {
    color: #94A3B8;
}

/* Download section stays vibrant in dark mode */
body.dark .download {
    background: linear-gradient(135deg, #1E40AF, #7C3AED);
}

/* Buttons in dark mode */
body.dark .btn-secondary {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

body.dark .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

/* ===========================
   Container & Layout
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--light-secondary);
    padding: var(--spacing-sm) 0;
    transition: all var(--transition-base);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: none;
    align-items: center;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transition: width var(--transition-base);
}

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

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

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all var(--transition-fast);
}

body.dark .mobile-menu-btn span {
    background-color: var(--white);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--light-secondary);
    padding: var(--spacing-md);
    flex-direction: column;
    gap: var(--spacing-sm);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-link {
    padding: var(--spacing-sm);
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.mobile-menu-link:hover {
    color: var(--text-primary);
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-primary::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 ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--white) 100%);
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--primary-blue);
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--text-primary), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

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

.highlight {
    color: var(--primary-blue);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--light-secondary);
}

.stat {
    text-align: center;
}

.stat-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto var(--spacing-xs);
    color: var(--primary-blue);
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===========================
   Section Headers
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

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

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ===========================
   Features Section
   =========================== */
.features {
    padding: var(--spacing-3xl) 0;
    background-color: var(--white);
}

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

.feature-card {
    padding: var(--spacing-xl);
    background-color: var(--white);
    border: 1px solid var(--light-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transform: scaleX(0);
    transition: transform var(--transition-base);
    transform-origin: left;
}

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

.feature-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-md);
    color: var(--primary-blue);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

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

.feature-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: var(--spacing-xs) 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.feature-list li::before {
    content: "→";
    color: var(--primary-blue);
    font-weight: 700;
}

/* ===========================
   Comparison Section
   =========================== */
.comparison {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
}

.comparison-table {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--light-secondary);
    transition: all var(--transition-base);
}

.comparison-table:hover {
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.15);
}

.comparison-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-header-cell {
    padding: var(--spacing-lg);
    text-align: center;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid var(--light-secondary);
    transition: background-color var(--transition-fast);
}

.comparison-row:hover {
    background-color: rgba(37, 99, 235, 0.02);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-cell {
    padding: var(--spacing-lg);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-size: 0.95rem;
}

.comparison-cell.label {
    font-weight: 600;
    text-align: left;
    background: linear-gradient(90deg, var(--light-bg) 0%, rgba(249, 250, 251, 0) 100%);
    color: var(--text-primary);
}

.comparison-cell.highlight {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    font-weight: 600;
    color: var(--primary-blue);
}

/* Visual checkmarks and crosses */
.comparison-cell::before {
    font-size: 1.25rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .comparison-header,
    .comparison-row {
        grid-template-columns: 1fr;
    }
    
    .comparison-header-cell:first-child,
    .comparison-cell.label {
        display: none;
    }
    
    .comparison-cell {
        padding: var(--spacing-md);
    }
}

/* ===========================
   Use Cases Section
   =========================== */
.use-cases {
    padding: var(--spacing-3xl) 0;
    background-color: var(--white);
}

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

.use-case-card {
    padding: var(--spacing-xl);
    background: var(--white);
    border: 1px solid var(--light-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.use-case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--gradient-start), var(--gradient-end));
    transform: scaleY(0);
    transition: transform var(--transition-base);
    transform-origin: top;
}

.use-case-card:hover::before {
    transform: scaleY(1);
}

.use-case-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.use-case-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-md);
    color: var(--primary-purple);
}

.use-case-icon svg {
    width: 100%;
    height: 100%;
}

.use-case-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.use-case-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.use-case-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.benefit {
    color: var(--text-secondary);
    padding-left: var(--spacing-sm);
    position: relative;
}

.benefit::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* ===========================
   Pricing Section
   =========================== */
.pricing {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--light-secondary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    position: relative;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

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

.pricing-card-popular {
    border-color: var(--primary-blue);
    border-width: 3px;
    box-shadow: var(--shadow-lg);
}

.pricing-card-popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: var(--spacing-lg);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
    padding: 0.375rem 0.875rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header {
    text-align: center;
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--light-secondary);
    margin-bottom: var(--spacing-lg);
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

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

.pricing-features {
    flex-grow: 1;
    margin-bottom: var(--spacing-lg);
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    line-height: 1.6;
}

.pricing-feature:last-child {
    margin-bottom: 0;
}

.feature-check {
    width: 20px;
    height: 20px;
    color: var(--success);
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-cta {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

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

/* ===========================
   Download Section
   =========================== */
.download {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

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

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

.download-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

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

.download-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
}

.download-buttons {
    margin-bottom: var(--spacing-lg);
}

.download-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
}

.download-option-label {
    opacity: 0.9;
    font-size: 0.875rem;
}

.download-option {
    color: var(--white);
    font-weight: 600;
    text-decoration: underline;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.download-option:hover {
    opacity: 1;
}

.download-option-separator {
    opacity: 0.5;
}

.download-note {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: left;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.download-note p:last-child {
    margin-bottom: 0;
}

.download-note a {
    color: var(--white);
    text-decoration: underline;
    font-weight: 600;
}

.download-note a:hover {
    opacity: 0.8;
}

/* ===========================
   Footer
   =========================== */
.footer {
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
    background-color: var(--dark-bg);
    color: var(--text-light);
}

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

.footer-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer-logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
}

.footer-description {
    color: var(--text-light);
    line-height: 1.7;
}

.footer-heading {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    color: var(--text-light);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--dark-secondary);
    text-align: center;
}

.footer-copyright {
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
}

.footer-note {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.mb-md {
    margin-bottom: var(--spacing-md);
}

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

.mb-xl {
    margin-bottom: var(--spacing-xl);
}

/* ===========================
   Dark Mode Toggle Button
   =========================== */
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

/* Mobile nav controls container */
.mobile-nav-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .mobile-nav-controls {
        display: none;
    }
}

.mobile-theme-toggle {
    display: flex;
}

@media (min-width: 768px) {
    .mobile-theme-toggle {
        display: none;
    }
}

/* ===========================
   Scroll to Top Button
   =========================== */
.scroll-to-top {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-md);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

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

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

/* ===========================
   Institutional Badges Section
   =========================== */
.institutional-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--light-secondary);
}

.institutional-section .section-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    text-transform: none;
}

.institutional-section .section-title strong {
    font-weight: 700;
    color: var(--text-primary);
}

.institutional-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-2xl);
    padding: 0 var(--spacing-xl);
}

.institutional-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    opacity: 1;
    transition: all var(--transition-base);
}

.institutional-logo:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* Legacy styles for backward compatibility */
.institutional-badge {
    display: flex;
    align-items: center;
    justify-content: center;
}

.institutional-badge svg {
    width: 40px;
    height: 40px;
}

.institutional-badge-text {
    display: flex;
    flex-direction: column;
}

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

.institutional-badge-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===========================
   Testimonials Section
   =========================== */
.testimonials {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
}

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

.testimonial-card {
    background-color: var(--white);
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

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

.testimonial-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.testimonial-quote {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.testimonial-quote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-purple);
    opacity: 0.3;
    line-height: 0;
    display: block;
    margin-bottom: var(--spacing-sm);
}

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

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.125rem;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
}

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

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

/* ===========================
   Hero Demo Carousel
   =========================== */
.hero-demo {
    margin-top: var(--spacing-3xl);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 2px solid transparent;
    background: linear-gradient(var(--white), var(--white)) padding-box,
                linear-gradient(135deg, var(--primary-blue), var(--primary-purple)) border-box;
    position: relative;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.hero-demo-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* This ensures container has height based on first image */
    display: block;
}

.hero-demo-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.hero-demo-img:first-child {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.hero-demo-img.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

/* Carousel Controls */
.carousel-dots {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-sm);
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: var(--white);
    border-color: var(--primary-blue);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

.hero-demo:hover .carousel-arrow {
    opacity: 1;
    pointer-events: auto;
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.carousel-prev {
    left: var(--spacing-lg);
}

.carousel-next {
    right: var(--spacing-lg);
}

@media (max-width: 768px) {
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
    
    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }
    
    .carousel-prev {
        left: var(--spacing-sm);
    }
    
    .carousel-next {
        right: var(--spacing-sm);
    }
    
    .carousel-dots {
        bottom: var(--spacing-md);
    }
}

.hero-demo-placeholder {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, 
                rgba(37, 99, 235, 0.1) 0%, 
                rgba(124, 58, 237, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-3xl);
    position: relative;
    overflow: hidden;
}

.hero-demo-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                transparent, 
                rgba(255, 255, 255, 0.3), 
                transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.hero-demo-icon {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

.hero-demo-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
}

/* ===========================
   Privacy Statement Section
   =========================== */
.privacy-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, 
                rgba(37, 99, 235, 0.05) 0%, 
                rgba(124, 58, 237, 0.05) 100%);
    border-top: 1px solid var(--light-secondary);
    border-bottom: 1px solid var(--light-secondary);
}

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

.privacy-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-lg);
    opacity: 0.8;
}

.privacy-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.privacy-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.privacy-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.privacy-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.privacy-feature:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.privacy-feature svg {
    width: 32px;
    height: 32px;
    color: var(--primary-blue);
}

.privacy-feature-title {
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.privacy-feature-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

/* ===========================
   Section Dividers
   =========================== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, 
                transparent 0%, 
                var(--primary-blue) 20%, 
                var(--primary-purple) 80%, 
                transparent 100%);
    opacity: 0.2;
    margin: var(--spacing-3xl) 0;
}

.section-divider-thick {
    height: 2px;
    background: linear-gradient(90deg, 
                transparent 0%, 
                var(--primary-blue) 30%, 
                var(--primary-purple) 70%, 
                transparent 100%);
    opacity: 0.3;
    margin: var(--spacing-2xl) 0;
}

/* ===========================
   Scroll Snapping
   =========================== */
.scroll-snap-container {
    scroll-snap-type: y proximity;
    overflow-y: auto;
}

.scroll-snap-section {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

/* ===========================
   Responsive Adjustments for New Features
   =========================== */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 44px;
        height: 44px;
        right: var(--spacing-sm);
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .privacy-features {
        grid-template-columns: 1fr;
    }
    
    .hero-demo {
        margin-top: var(--spacing-xl);
    }
    
    .institutional-badges {
        flex-direction: column;
    }
    
    .institutional-logo {
        height: 64px;
    }
}
