/* Non-critical CSS - Loaded asynchronously */
:root {
    --muted: #6c757d;
    --border: #e9ecef;
    --secondary: #5dade2;
    --success: #28a745;
    --info: #3498db;
    --warning: #f39c12;
    --dark-blue: #1e3a5f;
    --light-blue: #85c1e9;
    --cream: #fef9e7;
}

body {
    font-family: 'Montserrat', 'MontserratFallback', system-ui, -apple-system, sans-serif;
    scroll-behavior: smooth;
}

/* Font loading optimization */
@font-face {
    font-family: 'MontserratFallback';
    src: local('system-ui'), local('-apple-system'), local('BlinkMacSystemFont');
    font-display: swap;
    ascent-override: 91%;
    descent-override: 22%;
    line-gap-override: 0%;
    size-adjust: 107%;
}

/* Material Icons with font-display */
.material-symbols-outlined {
    font-display: swap;
    font-family: 'Material Symbols Outlined', monospace;
}

/* Navbar enhancements */
.navbar-brand:hover {
    color: var(--primary) !important;
}

/* Section styles */
.section-title {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Montserrat', 'MontserratFallback', system-ui, sans-serif;
    min-height: 3rem;
}

.section-subtitle {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-family: 'Montserrat', 'MontserratFallback', system-ui, sans-serif;
    min-height: 2rem;
}

/* Heading hierarchy styles */
h3 {
    font-size: 1.5rem;
    font-weight: 600;
    min-height: 2rem;
    font-family: 'Montserrat', 'MontserratFallback', system-ui, sans-serif;
    margin: 0 0 1rem;
    line-height: 1.3;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    min-height: 1.5rem;
    font-family: 'Montserrat', 'MontserratFallback', system-ui, sans-serif;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

/* Feature cards */
.feature-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    flex: 0 0 56px;
    border-radius: 8px;
    background: #6695c3;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: none;
}

.material-symbols-outlined {
    font-variation-settings: font-size 28px;
    line-height: 0;
}

.feature {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
    background: #1d2d40;
    color: #bdd1d4;
}

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

/* Testimonials and stats */
.testimonial {
    background: #1d2d40;
    color: #bdd1d4;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    height: 100%;
    position: relative;
}

.testimonial-content {
    margin-top: 20px;
}

.stats {
    background: #1d2d40;
    color: #bdd1d4;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.stats h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats p {
    margin: 0;
    opacity: 0.9;
}

/* Use case cards */
.use-case-card {
    background: #1d2d40;
    color: #bdd1d4;
    border: 2px solid #4a5a6d;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.use-case-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Comparison table */
.comparison-table {
    background: #1d2d40;
    color: #bdd1d4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.comparison-row {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #4a5a6d;
}

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

.comparison-row .col-6 {
    text-align: left;
    font-weight: 500;
}

.comparison-row .col-3 {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-green {
    color: #91ceab;
    font-weight: 600;
}

.text-red {
    color: #ed738c;
    font-weight: 600;
}

/* Tutorial Carousel */
.tutorial-slide {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#tutorialCarousel .carousel-indicators {
    bottom: -40px;
}

#tutorialCarousel .carousel-indicators [data-bs-target] {
    background-color: var(--primary);
    opacity: 0.5;
}

#tutorialCarousel .carousel-indicators .active {
    opacity: 1;
}

#tutorialCarousel .carousel-control-prev,
#tutorialCarousel .carousel-control-next {
    color: #ffffff;
    opacity: 0.8;
}

#tutorialCarousel .carousel-control-prev:hover,
#tutorialCarousel .carousel-control-next:hover {
    opacity: 1;
    color: #ffffff;
}

#tutorialCarousel .carousel-control-prev-icon,
#tutorialCarousel .carousel-control-next-icon {
    background: none;
    filter: brightness(0) invert(1);
    width: 30px;
    height: 30px;
}

/* Button styles */
.btn-primary-custom:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    margin-top: 4rem;
}

/* Responsive */
@media (min-width: 992px) {
    .hero {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
    .hero h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .tutorial-slide {
        min-height: 320px;
        padding: 2rem 1rem !important;
    }
}

/* Bootstrap grid system minimal */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.my-5 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.g-4 > * {
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-top: var(--bs-gutter-y);
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

@media (max-width: 991px) {
    .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.text-center {
    text-align: center !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

.gap-3 {
    gap: 1rem !important;
}

.rounded-3 {
    border-radius: 0.375rem !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}
