:root {
    --fire-red-dark: #9d0208;
    --fire-red-light: #dc3545;
    --background-light: #f5f5f7;
    --background-dark: #1d1d1f;
    --text-light: #f5f5f7;
    --text-dark: #1d1d1f;
    --text-secondary-dark: #86868b;
    --border-radius-large: 20px;
    --section-padding: 6rem 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.display-3, .display-5, .display-6 {
    font-weight: 800;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes animated-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-fire {
    background: linear-gradient(-45deg, var(--background-dark), var(--fire-red-dark), #2c0001, var(--background-dark));
    background-size: 400% 400%;
    animation: animated-gradient 20s ease infinite;
    padding: var(--section-padding);
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
}

.hero-fire h1 {
    font-size: 4.5rem;
    color: transparent;
    background: linear-gradient(120deg, var(--fire-red-light), #ff7b7b);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-fire .btn {
    background-color: var(--fire-red-light);
    color: white;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.hero-fire .btn:hover {
    transform: scale(1.05);
    background-color: var(--fire-red-dark);
}

.section-apple {
    padding: var(--section-padding);
    margin: 2rem auto;
}

.section-card {
    background-color: white;
    border-radius: var(--border-radius-large);
    padding: 4rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    text-align: center;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.section-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 4px;
    background: var(--fire-red-light);
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0.5);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.section-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.section-card:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.section-card-dark {
    background-color: var(--background-dark);
    color: var(--text-light);
}

.section-card-dark .lead {
    color: var(--text-secondary-dark);
}

.section-card .display-6 {
    margin-bottom: 1rem;
}

.section-card .lead {
    margin-bottom: 2rem;
}

.section-card img {
    border-radius: 15px;
    margin-top: 2rem;
}

#features .feature-icon-wrapper {
    background-color: white;
    border-radius: var(--border-radius-large);
    padding: 2rem 1rem;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.04);
}

#features .feature-icon-wrapper:hover {
    transform: translateY(-10px);
    background-color: var(--fire-red-light);
    color: white;
    box-shadow: 0 15px 30px rgba(220, 53, 69, 0.3);
}

#features .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--fire-red-light);
    transition: color 0.3s ease;
}

#features .feature-icon-wrapper:hover .feature-icon {
    color: white;
}

#features h6 {
    font-weight: 600;
}

#testimonial {
    background: linear-gradient(120deg, var(--fire-red-dark), var(--fire-red-light));
    color: white;
    padding: var(--section-padding);
    text-align: center;
}

#testimonial .display-6 {
    margin-bottom: 4rem;
}

#testimonial blockquote {
    font-size: 1.75rem;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
    border: none;
}

#testimonial figcaption {
    margin-top: 2rem;
    font-size: 1rem;
    opacity: 0.8;
}

#cta {
    background-color: #fff;
    padding: var(--section-padding);
    text-align: center;
    margin: 2rem 0 0 0;
}

#cta .btn {
    background-color: var(--fire-red-light);
    color: white;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#cta .btn:hover {
    transform: scale(1.05);
    background-color: var(--fire-red-dark);
}

footer {
    background-color: var(--background-light);
    padding: 2rem 0;
    font-size: 0.9rem;
    border-top: 1px solid #e5e5e5;
}

footer a {
    color: var(--text-secondary-dark);
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--fire-red-light);
}

@media (max-width: 991.98px) {
    .section-card {
        padding: 2.5rem;
    }
    .hero-fire h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 767.98px) {
    :root {
        --section-padding: 4rem 0;
    }
    .lead {
        font-size: 1.1rem;
    }
    .hero-fire h1 {
        font-size: 2.8rem;
    }
    .section-card {
        padding: 2rem 1.5rem;
    }
}