/* RenderCAD Custom Styles - Professional Design System */

/* Feedback Widget Styles */
.rating-stars i {
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
    margin-right: 4px;
}

.rating-stars i:hover,
.rating-stars i.active {
    color: #ffc107;
}

#feedback-toggle {
    transition: all 0.3s ease;
}

#feedback-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3) !important;
}

/* Fix modal visibility issues with dark theme */
.modal-content {
    background-color: white !important;
    color: #212529 !important;
}

.modal-header, .modal-body, .modal-footer {
    background-color: white !important;
    color: #212529 !important;
}

.modal-title {
    color: #212529 !important;
}

/* Ensure navbar elements stay above modal backdrop */
.navbar {
    z-index: 1055 !important;
}

/* Ensure feedback widget stays above modal backdrop */
#feedback-widget {
    z-index: 1060 !important;
}

/* Simple fix: navbar always on top */
.navbar { z-index: 9999 !important; }

/* Accessibility improvements for better contrast */
.text-muted {
    color: #6c757d !important;
}

.small, small {
    color: #495057 !important;
}

/* Ensure sufficient contrast for secondary text */
.card-text, .form-text {
    color: #495057 !important;
}

/* Better contrast for disabled elements */
.form-control:disabled, .form-control[readonly] {
    background-color: #f8f9fa;
    color: #495057;
    opacity: 1;
}

/* Improve button contrast in various states */
.btn-outline-secondary {
    color: #495057;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Accessibility improvements */

/* Skip link for screen readers */
#skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 4px;
}

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

/* Enhanced focus indicators */
.focused,
*:focus {
    outline: 2px solid var(--accent-500) !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3) !important;
}

/* Custom focus for upload area */
.upload-area.focused,
.upload-area:focus-within {
    border-color: var(--accent-500) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3) !important;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .text-muted {
        color: #adb5bd !important;
    }
}

/* Additional contrast improvements for WCAG AA compliance */
.text-secondary {
    color: #495057 !important;
}

.form-text {
    color: #495057 !important;
}

/* Ensure sufficient contrast for all button states */
.btn-outline-primary:focus,
.btn-outline-secondary:focus,
.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.5) !important;
}

/* Better contrast for placeholders */
::placeholder {
    color: #6c757d !important;
    opacity: 1;
}

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

/* Screen reader only content */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Ensure sufficient touch targets on mobile */
@media (max-width: 768px) {
    button,
    .btn,
    a,
    [role="button"] {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
    }

    .btn-sm {
        min-height: 38px;
        min-width: 38px;
    }
}

.form-label {
    color: #212529 !important;
}

.form-control, .form-select {
    background-color: white !important;
    color: #212529 !important;
    border: 1px solid #dee2e6 !important;
}

.form-control:focus, .form-select:focus {
    background-color: white !important;
    color: #212529 !important;
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* Fix API Controls Modal Styling */
#apiControlsModal .modal-content,
#apiControlsModal .modal-header,
#apiControlsModal .modal-body,
#apiControlsModal .modal-footer {
    background-color: white !important;
    color: #212529 !important;
}

#apiControlsModal .card {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border: 1px solid #dee2e6 !important;
}

#apiControlsModal .card-title,
#apiControlsModal .card-body,
#apiControlsModal .text-muted,
#apiControlsModal .small {
    color: #212529 !important;
}

#apiControlsModal .alert-info {
    background-color: #d1ecf1 !important;
    color: #0c5460 !important;
    border-color: #b6d4da !important;
}

#apiControlsModal .form-check-label {
    color: #212529 !important;
}

#apiControlsModal .form-control {
    background-color: white !important;
    color: #212529 !important;
    border: 1px solid #ced4da !important;
}

#apiControlsModal h5,
#apiControlsModal h6 {
    color: #212529 !important;
}

/* Reviews Section Styles */
.reviews-section {
    background: linear-gradient(135deg, var(--neutral-800), var(--neutral-900));
}

.review-card {
    background: var(--neutral-700);
    border: 1px solid var(--neutral-600);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.review-rating {
    color: #ffc107;
    margin-bottom: 1rem;
}

.review-text {
    color: var(--neutral-200);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.review-author {
    color: var(--neutral-400);
    font-size: 0.9rem;
}

.review-date {
    color: var(--neutral-500);
    font-size: 0.8rem;
}

.review-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.review-type-feedback {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.review-type-feature_request {
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
}

.review-type-bug {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

/* Hero Landing Page Styles - Dark Mode */
body {
    background-color: var(--neutral-900);
    color: var(--neutral-100);
}

.hero-landing {
    background: linear-gradient(135deg, var(--neutral-800) 0%, var(--neutral-900) 100%);
    border-radius: 24px;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--neutral-700);
}


.hero-landing > * {
    position: relative;
    z-index: 1;
}

.hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 24px;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 8px 32px rgba(2, 132, 199, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--neutral-100);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--neutral-300);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.highlight {
    color: var(--primary-600);
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.benefit-card {
    background: var(--neutral-800);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--neutral-700);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-600);
}

.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.benefit-card:nth-child(1) .benefit-icon {
    background: linear-gradient(135deg, var(--warning), #f97316);
    color: white;
}

.benefit-card:nth-child(2) .benefit-icon {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
}

.benefit-card:nth-child(3) .benefit-icon {
    background: linear-gradient(135deg, var(--info), var(--primary-500));
    color: white;
}

.benefit-card h5 {
    color: var(--neutral-100);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: var(--neutral-300);
    font-size: 0.95rem;
    margin: 0;
}

/* Demo Section */
.demo-section h3 {
    color: var(--neutral-100);
    font-weight: 600;
}

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

.demo-item {
    text-align: center;
}

.demo-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--neutral-800);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--neutral-700);
    transition: all 0.3s ease;
}

.demo-comparison:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-600);
}

.demo-before, .demo-after {
    text-align: center;
    flex: 1;
}

.demo-before img, .demo-after img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--neutral-600);
}

.demo-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--neutral-400);
    font-weight: 500;
}

.demo-arrow {
    background: var(--gradient-primary);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
    flex-shrink: 0;
}

.demo-item p {
    margin-top: 1rem;
    color: var(--neutral-300);
    font-size: 0.9rem;
}

/* Beta Notice */
.beta-notice {
    background: linear-gradient(135deg, var(--warning), #f97316);
    color: white;
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.beta-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.beta-notice p {
    margin: 0;
    opacity: 1;
    color: #2d3748;
}

/* CTA Buttons */
.cta-section {
    margin: 3rem 0;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.btn-cta-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.5);
    color: white;
}

.btn-cta-secondary {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-cta-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
    color: white;
}

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

.btn-cta-outline:hover {
    background: var(--primary-600);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Social Proof */
.social-proof {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--neutral-700);
}

.social-text {
    color: var(--neutral-300);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.social-label {
    color: var(--neutral-400);
    font-size: 0.9rem;
}

.social-link {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: var(--primary-700);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-landing {
        padding: 3rem 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .demo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .btn-cta {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Custom Color Palette - Professional & Modern */
:root {
    /* Primary Brand Colors */
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;

    /* Secondary Colors - Creative & Technical */
    --secondary-50: #fdf4ff;
    --secondary-100: #fae8ff;
    --secondary-200: #f5d0fe;
    --secondary-300: #f0abfc;
    --secondary-400: #e879f9;
    --secondary-500: #d946ef;
    --secondary-600: #c026d3;
    --secondary-700: #a21caf;
    --secondary-800: #86198f;
    --secondary-900: #701a75;

    /* Neutral Grays - Professional Scale */
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-600), var(--secondary-500));
    --gradient-success: linear-gradient(135deg, var(--success), #059669);
}

/* Layout & Components */
.form-section {
    background: var(--neutral-50);
    border-radius: 16px;
    border: 1px solid var(--neutral-200);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.preview-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.preview-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    object-fit: contain;
    max-height: 300px;
    transition: transform 0.2s ease;
}

.preview-img:hover {
    transform: scale(1.02);
}

/* Upload Area */
.upload-area {
    border: 3px dashed var(--neutral-300);
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: linear-gradient(135deg, var(--neutral-50), white);
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.03), rgba(217, 70, 239, 0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary-400);
    background: linear-gradient(135deg, var(--primary-50), white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(14, 165, 233, 0.3);
}

.upload-area:hover::before {
    opacity: 1;
}

.upload-area.dragover {
    border-color: var(--primary-500);
    background: linear-gradient(135deg, var(--primary-100), var(--primary-50));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 35px -8px rgba(14, 165, 233, 0.4);
}

.upload-area.dragover::before {
    opacity: 1;
}

.upload-area .display-4 {
    color: var(--primary-400);
    margin-bottom: 1rem;
    font-weight: 300;
}

.upload-area p {
    color: var(--neutral-600);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.upload-area small {
    color: #6c757d;
    font-weight: 400;
}

/* Upload processing state */
.upload-area.processing {
    border-color: var(--primary-400);
    background: linear-gradient(135deg, var(--primary-50), white);
}

.upload-area.processing .display-4 {
    color: var(--primary-500);
}

.upload-area.processing p {
    color: var(--primary-600);
    font-weight: 500;
}

/* Before/After Slider - jQuery implementation */
.slider-container {
    position: relative;
    width: 100%;
    height: 320px;
    margin: 24px auto;
    border-radius: 16px;
    overflow: hidden;
    cursor: ew-resize;
    background: linear-gradient(135deg, var(--neutral-100), var(--neutral-50));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--neutral-200);
}

.before-img, .after-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.before-img:hover, .after-img:hover {
    opacity: 0.9;
    transform: scale(1.02);
    cursor: pointer;
}

.after-img {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #fff;
    cursor: ew-resize;
    z-index: 10;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.slider-handle::before {
    content: "⟷";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #495057;
    transition: all 0.2s ease;
    border: 2px solid #e9ecef;
}

/* Enhanced touch target for mobile accessibility */
@media (max-width: 768px) {
    .slider-handle::before {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
}

/* Dragging state */
.slider-container.dragging .slider-handle::before {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    background: #f8f9fa;
}

/* Improved slider container for touch */
.slider-container {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

/* Mobile swipe hint */
@media (max-width: 768px) {
    .slider-container::after {
        content: "👆 Swipe to compare";
        position: absolute;
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 4px 8px;
        border-radius: 8px;
        font-size: 0.75rem;
        font-weight: 500;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 5;
    }

    .slider-container:hover::after {
        opacity: 1;
    }

    /* Hide hint after first interaction */
    .slider-container.touched::after {
        display: none;
    }
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-pending {
    background: #6c757d;
}

.status-processing {
    background: #ffc107;
    animation: pulse 2s infinite;
}

.status-completed {
    background: #198754;
}

.status-failed {
    background: #dc3545;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Button Styles */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    padding: 14px 28px;
    font-size: 1rem;
    letter-spacing: 0.025em;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(14, 165, 233, 0.4);
    border: none;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px 0 rgba(14, 165, 233, 0.3);
}

.btn-primary:disabled {
    background: var(--neutral-400);
    transform: none;
    box-shadow: none;
    opacity: 0.8;
    color: #6c757d;
    border: 1px solid #adb5bd;
}

.btn-success {
    background: var(--gradient-success);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3);
}

.btn-success:hover:not(:disabled) {
    background: var(--gradient-success);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.4);
}

.btn-outline-danger {
    border-color: var(--error);
    color: var(--error);
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline-danger:hover {
    background: var(--error);
    border-color: var(--error);
    color: white;
    transform: translateY(-1px);
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 12px;
    border: 2px solid var(--neutral-300);
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 400;
    background: white;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    outline: none;
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: var(--neutral-400);
    font-weight: 400;
}

.form-label {
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

/* Navbar */
.navbar {
    background: var(--gradient-primary) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.navbar-brand i {
    color: var(--secondary-300);
    margin-right: 0.5rem;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-1px);
}

/* Progress Bar */
.progress {
    height: 10px;
    border-radius: 8px;
    background: var(--neutral-200);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient-primary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
    border-left: 4px solid;
    padding: 1.25rem 1.5rem;
}

.alert-info {
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    border-left-color: var(--primary-500);
    color: var(--primary-800);
}

.alert-info .alert-heading {
    color: var(--primary-700);
}

/* Body & Global Styles */
body {
    background: linear-gradient(135deg, var(--neutral-50), white);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--neutral-800);
}

.container {
    max-width: 1200px;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--neutral-900);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--neutral-700);
}

/* Card improvements */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

.card-body {
    padding: 2rem;
}

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

.fade-in {
    animation: fadeInUp 0.4s ease-out;
}

/* Mobile Touch Targets & Accessibility */
@media (min-width: 769px) {
    /* Desktop - ensure minimum hover targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .form-control {
        min-height: 44px;
    }

    .navbar-nav .btn {
        min-height: 36px;
        min-width: 36px;
    }
}

@media (max-width: 768px) {
    /* Mobile - ensure 44px minimum touch targets */
    .container {
        padding: 0 15px;
    }

    .btn {
        min-height: 48px;
        min-width: 48px;
        font-size: 1rem;
        padding: 12px 20px;
        border-radius: 12px;
    }

    .btn-lg {
        min-height: 52px;
        font-size: 1.1rem;
        padding: 14px 24px;
    }

    .btn-sm {
        min-height: 44px;
        font-size: 0.95rem;
        padding: 10px 16px;
    }

    .form-control {
        min-height: 48px;
        font-size: 1rem;
        padding: 12px 16px;
        border-radius: 12px;
    }

    .upload-area {
        padding: 40px 20px;
        min-height: 120px;
    }

    .slider-container {
        height: 280px;
        margin: 20px auto;
    }

    /* Beta form touch targets */
    #beta-password {
        min-height: 48px;
        font-size: 1rem;
    }

    #beta-form button {
        min-height: 48px;
        font-size: 1rem;
    }

    /* Remove image button */
    #remove-image-btn {
        min-height: 44px;
        padding: 8px 16px;
    }

    /* Download button */
    #download-btn {
        min-height: 48px;
        font-size: 1rem;
        padding: 12px 20px;
    }

    /* Navigation buttons */
    .navbar .btn {
        min-height: 44px;
        padding: 8px 16px;
    }

    /* Mobile image optimization */
    .preview-img {
        max-height: 250px;
        border-radius: 10px;
    }

    .before-img, .after-img {
        object-fit: cover;
        height: 280px;
    }

    /* Mobile upload improvements */
    .upload-area {
        padding: 30px 15px;
        margin: 15px 0;
    }

    .upload-area .display-4 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .upload-area p {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .upload-area small {
        font-size: 0.8rem;
    }

    /* Mobile-specific layout adjustments */
    .preview-container {
        margin: 15px 0;
    }

    /* Improve mobile card spacing */
    .card-body {
        padding: 1.5rem 1rem;
    }

    /* Mobile beta form */
    .beta-access-form {
        margin: 20px auto;
        max-width: 100%;
        padding: 0 15px;
    }

    #beta-access-form .card-body {
        padding: 1.5rem;
    }
}

/* Utility Classes */
.processing-text {
    color: #ffc107;
    font-weight: 500;
}

.text-success {
    color: #198754 !important;
}

/* Loading States */
.loading {
    opacity: 0.85;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: inherit;
}

/* Enhanced Loading Spinner */
.spinner-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.spinner-ring {
    width: 40px;
    height: 40px;
    border: 3px solid var(--neutral-200);
    border-top: 3px solid var(--primary-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.spinner-ring::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid transparent;
    border-top: 3px solid var(--secondary-500);
    border-radius: 50%;
    animation: spin-reverse 1.5s linear infinite;
}

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

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

/* Processing Animation */
.processing-animation {
    position: relative;
    overflow: hidden;
}

.processing-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.1), transparent);
    animation: processing-sweep 2s infinite;
}

@keyframes processing-sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Status Messages */
.status-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.status-processing {
    background: linear-gradient(135deg, var(--warning), #fbbf24);
    color: white;
    animation: pulse-glow 2s infinite;
}

.status-completed {
    background: linear-gradient(135deg, var(--success), #10b981);
    color: white;
}

.status-failed {
    background: linear-gradient(135deg, var(--error), #ef4444);
    color: white;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(245, 158, 11, 0.6);
        transform: scale(1.02);
    }
}

/* Loading dots animation */
.loading-dots::after {
    content: '';
    animation: loading-dots 1.4s infinite ease-in-out;
}

@keyframes loading-dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}


/* Upload Progress Bar */
#upload-progress-container {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    padding: 16px;
    backdrop-filter: blur(10px);
}

#upload-progress-container .progress {
    height: 8px;
    border-radius: 6px;
    background: var(--neutral-100);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

#upload-progress-container .progress-bar {
    background: var(--gradient-primary);
    border-radius: 6px;
    transition: width 0.3s ease;
    box-shadow: 0 1px 3px rgba(14, 165, 233, 0.3);
}

#upload-progress-container .progress-bar.progress-bar-animated {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% { background-position-x: 1rem; }
    100% { background-position-x: 0; }
}

/* Status text visibility fix */
#status-text {
    color: var(--neutral-700) !important;
    font-weight: 600;
    font-size: 1rem;
}

#job-status .progress-bar {
    background: var(--gradient-primary);
}

#progress-text {
    color: var(--neutral-600) !important;
}


/* Onboarding highlights */
.highlight-onboarding {
    position: relative;
    animation: onboarding-highlight 2s ease-in-out;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3), 0 0 20px rgba(14, 165, 233, 0.2) !important;
    z-index: 10;
}

@keyframes onboarding-highlight {
    0% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.3);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.6), 0 0 30px rgba(14, 165, 233, 0.4);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3), 0 0 20px rgba(14, 165, 233, 0.2);
    }
}


/* Enhanced Animations & Transitions */

/* State Transitions */
.fade-in {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-out {
    animation: fadeOut 0.3s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left {
    animation: slideInLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in {
    animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bounce-in {
    animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Success Animation */
@keyframes success-pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.success-pop {
    animation: success-pop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Loading pulse */
@keyframes loading-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }
}

.loading-pulse {
    animation: loading-pulse 1.5s ease-in-out infinite;
}

/* Staggered animations for lists */
.stagger-fade-in > * {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-fade-in > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-fade-in > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-fade-in > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-fade-in > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-fade-in > *:nth-child(5) { animation-delay: 0.5s; }

/* Page transitions */
.page-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-enter {
    opacity: 0;
    transform: translateY(10px);
}

.page-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-exit {
    opacity: 1;
    transform: translateY(0);
}

.page-exit-active {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Enhanced hover effects */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Smooth focus transitions */
.btn:focus, .form-control:focus, .form-select:focus {
    transition: all 0.2s ease;
}

/* Card entrance animation */
.card-entrance {
    animation: cardSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    }
}

/* Usage Display */
#usage-display {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========== INDEX.HTML LANDING PAGE STYLES ========== */
/* Extracted from Squarespace export for landing page functionality */

/* --- PROXIMA NOVA THIN FONT --- */
@font-face {
    font-family: 'Proxima Nova Thin';
    src: url('../fonts/proxima-nova-thin.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- CSS CUSTOM PROPERTIES FOR GLASS EFFECTS --- */
@property --angle-1 {
  syntax: "<angle>";
  inherits: false;
  initial-value: -75deg;
}
@property --angle-2 {
  syntax: "<angle>";
  inherits: false;
  initial-value: -45deg;
}

:root {
  --global--size: clamp(0.9rem, 1.8vw, 1.25rem);
  --anim--hover-time: 400ms;
  --anim--hover-ease: cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- LIQUID GLASS EFFECTS --- */
.liquidGlass-effect {
    position: absolute;
    z-index: 0;
    inset: 0;
    backdrop-filter: blur(3px);
    filter: url(#glass-distortion);
    overflow: hidden;
}

.liquidGlass-tint {
    z-index: 1;
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.50);
}

.liquidGlass-shine {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, 0.5), inset -1px -1px 1px 1px rgba(255, 255, 255, 0.5);
}

/* NOTE: Prismatic button styles are defined inline in index.html to avoid conflicts */

/* --- PANEL SYSTEM FOR MODAL --- */
.panel-wrapper {
    position: relative;
    z-index: 10;
    border-radius: 24px;
    background: transparent;
    transition: transform var(--anim--hover-time) var(--anim--hover-ease);
    display: inline-block;
    transform: rotate3d(0,0,0,0deg);
}

.panel-wrapper .panel-shadow {
    --shadow-cuttoff-fix: 2em;
    position: absolute;
    width: calc(100% + var(--shadow-cuttoff-fix));
    height: calc(100% + var(--shadow-cuttoff-fix));
    top: calc(0% - var(--shadow-cuttoff-fix) / 2);
    left: calc(0% - var(--shadow-cuttoff-fix) / 2);
    filter: blur(clamp(2px, 0.125em, 12px));
    overflow: visible;
    pointer-events: none;
    transition: filter var(--anim--hover-time) var(--anim--hover-ease);
}

.panel-wrapper .panel-shadow::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
    width: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
    height: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
    top: calc(var(--shadow-cuttoff-fix) - 0.5em);
    left: calc(var(--shadow-cuttoff-fix) - 0.875em);
    padding: 0.125em;
    box-sizing: border-box;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    transition: all var(--anim--hover-time) var(--anim--hover-ease);
    overflow: visible;
    opacity: 1;
}

.panel-wrapper:has(.panel:hover) .panel-shadow {
    filter: blur(clamp(2px, 0.0625em, 6px));
}

.panel-wrapper:has(.panel:hover) .panel-shadow::after {
    top: calc(var(--shadow-cuttoff-fix) - 0.875em);
    opacity: 1;
}

.panel-wrapper:has(.panel:active) {
    transform: rotate3d(1,0,0,25deg);
}

.panel {
    position: relative;
    width: clamp(150px, 25vw, 180px);
    height: clamp(220px, 35vw, 280px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border-radius: 24px;
    background: linear-gradient(-75deg, rgba(255,255,255,0.05), rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
        0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.2),
        0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(clamp(1px, 0.125em, 4px));
    -webkit-backdrop-filter: blur(clamp(1px, 0.125em, 4px));
    transition: transform var(--anim--hover-time) var(--anim--hover-ease), box-shadow var(--anim--hover-time) var(--anim--hover-ease);
    cursor: pointer;
    z-index: 3;
    transform: scale(1);
    transform-origin: center center;
    will-change: transform;
}

.panel:hover {
    transform: scale(0.975);
    box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
        0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.25),
        0 0 0.05em 0.1em inset rgba(255, 255, 255, 0.5);
}

.panel:active {
    box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
        0 0.125em 0.125em -0.125em rgba(0, 0, 0, 0.2),
        0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.2);
}

.panel::after {
    --border-width: clamp(1px, 0.0625em, 4px);
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    border-radius: 24px;
    width: calc(100% + var(--border-width));
    height: calc(100% + var(--border-width));
    top: calc(0% - var(--border-width) / 2);
    left: calc(0% - var(--border-width) / 2);
    padding: var(--border-width);
    box-sizing: border-box;
    pointer-events: none;
    background: conic-gradient(from var(--angle-1, -75deg) at 50% 50%, rgba(0,0,0,0.6), rgba(0,0,0,0) 5% 40%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0) 60% 95%, rgba(0,0,0,0.6)), linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.55));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    transition: --angle-1 var(--anim--hover-time) var(--anim--hover-ease);
    box-shadow: inset 0 0 0 calc(var(--border-width) / 2) rgba(255,255,255,0.5);
}

.panel:hover::after {
    --angle-1: -125deg;
}

.panel:active::after {
    --angle-1: -75deg;
}

.panel-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    border-radius: 24px;
    overflow: hidden;
}

.panel-content h3 {
    margin: 0;
    color: white;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    text-align: center;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    text-shadow: 0 0 8px rgba(255,255,255,0.6), 0 2px 4px rgba(0,0,0,0.3);
    padding: 0 10px;
}

.panel-content::after {
    content: "";
    display: block;
    position: absolute;
    z-index: 4;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    box-sizing: border-box;
    border-radius: 24px;
    overflow: clip;
    background: linear-gradient(var(--angle-2, -45deg), rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 40% 50%, rgba(255,255,255,0) 55%);
    mix-blend-mode: screen;
    pointer-events: none;
    background-size: 200% 200%;
    background-position: 0% 50%;
    transition: background-position calc(var(--anim--hover-time) * 1.25) var(--anim--hover-ease), --angle-2 calc(var(--anim--hover-time) * 1.25) var(--anim--hover-ease);
}

.panel:hover .panel-content::after { background-position: 25% 50%; }
.panel:active .panel-content::after { background-position: 50% 15%; --angle-2: -15deg; }

.panel img {
    width: clamp(40px, 10vw, 60px);
    height: clamp(40px, 10vw, 60px);
    margin-bottom: clamp(10px, 3vw, 20px);
    filter: none;
    opacity: 1;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* --- MODAL SYSTEM FOR LANDING PAGE ONLY --- */
/* Only apply to index.html with specific ID */
#site-container .modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

#site-container .modal-backdrop.show {
    opacity: 1;
    pointer-events: all;
    background: none;
}

/* Only target custom modal inside modal-backdrop, NOT Bootstrap modals */
#site-container .modal-backdrop .modal {
    display: flex;
    gap: clamp(15px, 3vw, 30px);
    padding: clamp(40px, 5vw, 60px);
    flex-wrap: wrap;
    justify-content: center;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100000;
    background: none;
}

@media (max-width: 767px) {
    #site-container .modal-backdrop .modal {
        flex-direction: column;
        align-items: center;
        flex-wrap: nowrap;
        padding: clamp(30px, 5vw, 40px);
    }
}

/* --- LANDING PAGE LAYOUT --- */
#site-container {
    height: 100%;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 1;
}

/* Main content - only for index.html landing page */
#site-container #main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

#header-section {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(1vh, 2vh, 3vh);
    padding: 0 2vw;
    flex: 0 0 auto;
    margin-top: auto;
}

#carousel-section {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    flex: 0 0 auto;
    padding: 30px 0;
    margin-top: auto;
    margin-bottom: auto;
}

/* --- CAROUSEL STYLES --- */
#transformation-carousel {
    width: 100vw;
    height: clamp(150px, 50vh, 500px);
    position: relative;
    overflow: visible;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

#transformation-carousel.loaded {
    opacity: 1;
}

@media (min-width: 768px) {
    #transformation-carousel {
        height: clamp(180px, 55vh, 500px);
    }
}

@media (min-width: 1024px) {
    #transformation-carousel {
        height: clamp(200px, 60vh, 500px);
    }
}

/* Fade carousel and header when modal is open */
#site-container.modal-active #carousel-section,
#site-container.modal-active #header-section {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

#site-container #carousel-section,
#site-container #header-section {
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

/* End of index.html landing page styles */