:root {
    --theme-color: #187230;
    --background-color: #1a1a1a;
    --text-color: #f0f0f0;
    --card-color: #2c2c2c;
    --accent-color: #4d905a;
}

body {
    background-color: var(--theme-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    font-size: 1rem; /* Base font size */
}

/* --- BASE & MOBILE STYLES (Mobile First) --- */

.main-header {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--background-color);
}

h1 {
    /* Fluid Typography: scales from 2.25rem to 3rem based on viewport width */
    font-size: clamp(2.25rem, 1.91rem + 1.7vw, 3rem);
    margin-bottom: 0.5rem;
    color: #fff;
}

h2 {
    font-size: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
    text-align: center;
    margin-bottom: 1rem;
    color: #fff;
}

h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
}

main {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

section {
    background-color: var(--background-color);
    padding: 30px 20px;
    margin-bottom: 30px;
    border-radius: 24px;
    border: 1px solid #333;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #6ba876;
}

#core-editor ul { list-style: none; padding: 0; }
#core-editor li { margin-bottom: 1rem; padding-left: 1.5rem; position: relative; }
#core-editor li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-color); }

.features-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 30px; }
.feature-card { background-color: var(--card-color); padding-left: 25px; padding-right: 25px; padding-top: 0px; border-radius: 8px; border-left: 4px solid var(--accent-color); }

footer { text-align: center; padding: 20px; background-color: var(--background-color); color: #aaa; margin-top: 40px; }

/* Animation */
.animation-container {
    margin: 20px auto 0;
    width: 128px;
    height: 144px;
    position: relative;
    transform: scale(0.8); /* Scaled down for mobile */
    transform-origin: center top;
}

.box {
    position: absolute;
    width: 128px;
    height: 48px;
    left: 0; 
    animation-duration: 1.2s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}

.box1 { animation-name: snap1; }
.box2 { animation-name: snap2; }
.box3 { animation-name: snap3; }

@keyframes snap1 { from { transform: translateY(48px); opacity: 0; } to { transform: translateY(0px); opacity: 1; } }
@keyframes snap2 { from { transform: translateY(180px); opacity: 0; } to { transform: translateY(45px); opacity: 1; } }
@keyframes snap3 { from { transform: translateY(360px); opacity: 0; } to { transform: translateY(90px); opacity: 1; } }

/* Initial Fade-in for Header */
.fade-in { animation: fadeInHeader 1s ease-in-out forwards; }
@keyframes fadeInHeader { from { opacity: 0; } to { opacity: 1; } }


/* --- TABLET & SMALL DESKTOP STYLES (Breakpoint 1) --- */
@media (min-width: 768px) {
    .main-header {
        padding: 60px 20px;
        padding-left: 25%;
        padding-right: 25%;
    }

    main {
        padding: 0 40px;
    }

    section {
        padding: 40px;
        border-radius: 32px;
    }

    .features-grid {
        /* Use two columns on tablets */
        grid-template-columns: repeat(2, 1fr);
        /* Reduce the gap for a tighter look */
        gap: 15px;
    }

    .feature-card {
        /* Reduce vertical padding to make cards shorter */
        padding: 20px;
        padding-top: 0px;
    }

    .animation-container {
        transform: scale(1); /* Return to full scale */
        margin: 40px auto;
    }
}

/* --- LARGE DESKTOP STYLES (Breakpoint 2) --- */
@media (min-width: 1024px) {
    .features-grid {
        /* Use four columns on large screens */
        grid-template-columns: repeat(4, 1fr);
    }
}