:root {
    --theme-primary-accent: #1ba339; 
    --theme-primary-accent-hover: #AA0000; 
    
    --theme-body-bg: #f8f9fa;       
    --theme-card-bg: #ffffff;        
    --theme-text-primary: #212529;   
    --theme-text-secondary: #555555; 
    --theme-text-on-accent: #ffffff; 
    --theme-text-on-dark: #f0f0f0;   
    --theme-text-on-light: #212529; 

    --theme-header-actual-bg: #ffffff; 
    --theme-hero-actual-bg: #000000;   
    --theme-download-btn-bg: #CC0000;
    --theme-download-btn-hover-bg: #249e24; 
    
    --theme-footer-bg: #333333;      
    
    --theme-border-color: #dee2e6;   
    --theme-shadow-filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
    --theme-shadow: 0 6px 15px rgba(0,0,0,0.08); /* added to fix undefined variable */
    --theme-radius: 6px;          
    --theme-transition: all 0.25s ease-in-out;

    --theme-icon-black: #000000; 

    --hexagon-cut: 12px; 
    --hexagon-clip-path: polygon(
        var(--hexagon-cut) 0%, 
        calc(100% - var(--hexagon-cut)) 0%, 
        100% 50%, 
        calc(100% - var(--hexagon-cut)) 100%, 
        var(--hexagon-cut) 100%, 
        0% 50%
    );
    --hexagon-inner-cut: 10px; 
     --hexagon-inner-clip-path: polygon(
        var(--hexagon-inner-cut) 0%, 
        calc(100% - var(--hexagon-inner-cut)) 0%, 
        100% 50%, 
        calc(100% - var(--hexagon-inner-cut)) 100%, 
        var(--hexagon-inner-cut) 100%, 
        0% 50%
    );
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; 
    color: var(--theme-text-primary);
    line-height: 1.7;
    background-color: var(--theme-body-bg);
    overflow-x: hidden;
}

/* Header */
header {
    background-color: var(--theme-header-actual-bg); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 5%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0; 
    max-width: 1600px;
    margin: 0 auto;
}

.logo {
    display: flex;
    flex-direction: row; 
    align-items: center; 
    gap: 10px; 
    text-decoration: none !important; 
    border-bottom: none; 
}

.logo img {
    height: 36px; 
    width: auto;
    vertical-align: middle; 
}

.logo-text {
    font-size: 1.3rem; 
    font-weight: 600;  
    color: var(--theme-text-on-light); 
    text-decoration: none !important; 
    border-bottom: none; 
}

.menu-toggle {
    display: none; background: none; border: none;
    font-size: 1.5rem; color: var(--theme-icon-black); cursor: pointer;
}

nav ul { display: flex; list-style: none; gap: 15px; }
nav ul li a {
    text-decoration: none; color: var(--theme-text-on-light); font-weight: 500;
    padding: 8px 12px; border-radius: var(--theme-radius); 
    transition: var(--theme-transition);
}
nav ul li a:hover { color: var(--theme-primary-accent); background-color: #f0f0f0; }

/* Hero Section */
.hero {
    background: var(--theme-hero-actual-bg); color: var(--theme-text-on-dark); 
    padding: 70px 5% 80px; text-align: center;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.hero h1 {
    font-size: 2.6rem; margin-bottom: 1rem; line-height: 1.3; max-width: 850px;
    font-weight: 600; color: var(--theme-text-on-dark); 
}
.hero p {
    font-size: 1.15rem; max-width: 650px; margin: 0 auto 2rem;
    opacity: 0.85; color: var(--theme-text-on-dark); 
}

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px; padding: 12px 30px; 
    background-color: var(--theme-primary-accent); color: var(--theme-text-on-accent);
    text-decoration: none; font-weight: 500; 
    transition: var(--theme-transition);
    border: 2px solid var(--theme-primary-accent);
    cursor: pointer; font-size: 0.95rem; 
    clip-path: var(--hexagon-clip-path); 
    filter: var(--theme-shadow-filter);
    position: relative; 
}
.btn:hover {
    background-color: var(--theme-primary-accent-hover); 
    border-color: var(--theme-primary-accent-hover); 
    transform: translateY(-1px);
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2)); 
}

.hero .btn[href="#download"], 
.download-card .btn {
    background-color: var(--theme-download-btn-bg); 
    border-color: var(--theme-download-btn-bg); 
    color: var(--theme-text-on-accent); 
}
.hero .btn[href="#download"]:hover,
.download-card .btn:hover {
    background-color: var(--theme-download-btn-hover-bg); 
    border-color: var(--theme-download-btn-hover-bg);
}

.hero .btn-outline {
    background-color: var(--theme-text-on-dark); 
    color: var(--theme-text-on-dark); 
    border: none;
    clip-path: var(--hexagon-clip-path);
    position: relative;
    z-index: 1;
    filter: none; 
    padding: 12px 30px; 
}

.hero .btn-outline > * { 
    position: relative;
    z-index: 3; 
}

.hero .btn-outline::after { 
    content: '';
    position: absolute;
    top: 2px; 
    left: 2px;
    right: 2px;
    bottom: 2px;
    background-color: var(--theme-hero-actual-bg); 
    clip-path: var(--hexagon-clip-path); 
    z-index: 2; 
}

.hero .btn-outline:hover {
    background-color: var(--theme-text-on-dark); 
    color: var(--theme-hero-actual-bg); 
}
.hero .btn-outline:hover::after {
    background-color: var(--theme-text-on-dark); 
}

.btn-group {
    display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
}

/* Features Section */
.features { padding: 70px 5%; max-width: 1400px; margin: 0 auto; background-color: var(--theme-body-bg); }

.section-title {
    text-align: center; 
    margin-bottom: 2.5rem; 
    font-size: 2rem; 
    color: var(--theme-text-primary); 
    font-weight: 600; 
    position: relative;
}

/* === MODIFIED FEATURES GRID === */
.features-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); /* Always 3 columns */
    gap: 25px; 
}
/* === END MODIFIED FEATURES GRID === */

.feature-card {
    background-color: var(--theme-card-bg); border-radius: var(--theme-radius); 
    box-shadow: var(--theme-shadow); /* use defined shadow variable */
    padding: 2rem 1.8rem; 
    transition: var(--theme-transition); border: 1px solid var(--theme-border-color);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); }
.feature-icon { font-size: 2.2rem; margin-bottom: 1.2rem; color: var(--theme-icon-black); }
.feature-card h3 { color: var(--theme-text-primary); margin-bottom: 0.8rem; font-size: 1.2rem; font-weight: 600;}
.feature-card p { color: var(--theme-text-secondary); font-size: 0.9rem;}

/* Slogan Section */
.slogan-section {
    background-color: var(--theme-primary-accent); color: var(--theme-text-on-accent);
    padding: 4rem 5%; text-align: center; position: relative; overflow: hidden;
}
.slogan { font-size: 1.8rem; font-weight: 600; max-width: 750px; margin: 0 auto; position: relative; z-index: 2; }
.slogan span { display: block; font-size: 1.1rem; margin-top: 0.8rem; font-weight: 400; opacity: 0.85; }

/* Footer */
.copyright {
    background:#333; color:rgba(240,240,240,0.6); text-align:center; margin-top:3rem; padding:2rem 0 1.5rem; 
    border-top:1px solid rgba(255,255,255,0.1); font-size:0.8rem; 
}

/* Mobile Styles */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    .slogan { font-size: 1.6rem; }
    /* If needed, you can adjust .features-grid here for medium screens,
       e.g. switch to 2 columns. Currently it remains 3 columns per design. */
}
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    nav {
        position: fixed; top: 60px; left: 0; width: 100%;
        background-color: var(--theme-header-actual-bg); 
        box-shadow: 0 10px 20px rgba(0,0,0,0.1); padding: 1rem 5%; 
        transform: translateY(-150%); transition: transform 0.35s ease; z-index: 999;
    }
    nav.active { transform: translateY(0); }
    nav ul { flex-direction: column; gap: 0.5rem; }
    nav ul li a { display: block; padding: 10px 0; color: var(--theme-text-on-light); }
    nav ul li a:hover { color: var(--theme-primary-accent); background-color: #f0f0f0; }
    .hero { padding: 4rem 5% 5rem; }
    .hero h1 { font-size: 1.8rem; }
    .btn-group { flex-direction: column; width: 100%; }
    .btn, .hero .btn[href="#download"], .download-card .btn { width: 100%; } 
    .section-title { font-size: 1.6rem; }
    .slogan { font-size: 1.4rem; }
    .slogan span { font-size: 0.95rem; }
    .footer-container { grid-template-columns: 1fr; }

    /* For very small screens, 3 columns may be too narrow.
       You can change .features-grid to 1 column here if desired. */
    .features-grid {
        grid-template-columns: 1fr; /* becomes 1 column on small screens */
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate { animation: fadeIn 0.7s ease forwards; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }