features_css_content = """/* ==========================================================================
   Super Apps - Features Styling Module
   Theme: Crimson / Deep Ruby Red Professional Theme
   ========================================================================== */

/* 1. Features Dedicated Hero Space */
.features-hero {
    padding: 180px 0 100px 0;
    background: linear-gradient(rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0.95)), 
                radial-gradient(circle at 80% 20%, rgba(211, 47, 47, 0.15) 0%, transparent 50%);
    text-align: center;
    border-bottom: 1px solid #222;
}

.hero-container-flex {
    display: flex;
    justify-content: center;
    align-items: center;
}

.features-hero-content {
    max-width: 800px;
}

.features-badge {
    display: inline-block;
    background-color: rgba(211, 47, 47, 0.2);
    color: var(--light-red);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(211, 47, 47, 0.4);
}

.features-hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.features-hero h1 span {
    color: var(--primary-red);
}

.features-hero p {
    font-size: 19px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bounce-arrow {
    font-size: 20px;
    color: var(--primary-red);
    animation: bounce 2s infinite;
}

/* 2. Interactive Navigation Tabs Layout Matrix */
.tabs-section {
    padding: 100px 0;
    background-color: var(--bg-surface);
}

.tab-navigation-wrapper {
    display: flex;
    justify-content: center;
    background-color: var(--bg-dark);
    padding: 8px;
    border-radius: 50px;
    max-width: 900px;
    margin: 0 auto 64px auto;
    border: 1px solid #2A2A2A;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 40px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-light);
    background-color: rgba(255,255,255,0.03);
}

.tab-btn.active {
    background-color: var(--primary-red);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.tab-icon {
    font-size: 18px;
}

/* 3. Tab Sliding Pane Architecture */
.tab-content-container {
    position: relative;
    width: 100%;
}

.tab-pane {
    display: none;
    width: 100%;
}

.tab-pane.active {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

.pane-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.pane-grid.inverse-grid {
    grid-template-columns: 0.9fr 1.1fr;
}

.pane-tag {
    display: inline-block;
    color: var(--primary-red);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.critical-tag {
    color: #FF3333;
    animation: flashRed 2s infinite;
}

.pane-text h3 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
}

.pane-text p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 32px;
}

/* Feature Checklists Core */
.feature-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-checklist li {
    position: relative;
    padding-left: 28px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.feature-checklist li strong {
    color: var(--text-light);
    display: block;
    font-size: 16px;
    margin-bottom: 2px;
}

.feature-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-red);
    font-weight: 900;
    font-size: 18px;
}

/* 4. Device Mockup App Snapshot Frame Containers */
.pane-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.snapshot-frame {
    position: relative;
    width: 290px;
    height: 580px;
    background-color: #252525;
    border: 10px solid #1A1A1A;
    border-radius: 36px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.snapshot-frame:hover {
    box-shadow: 0 35px 70px rgba(211, 47, 47, 0.25);
}

/* Base style for actual snapshot files */
.app-snapshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(to bottom, #1E1E1E, #121212); /* Clean canvas backdrop before upload */
}

/* Glass Floating Metric Overlay Layout */
.glass-overlay-metric {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    background: rgba(30, 30, 30, 0.75);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 4px solid var(--primary-red);
    text-align: center;
}

.glass-overlay-metric.red-accent {
    border-left-color: #FF3333;
}

.glass-overlay-metric.emergency-accent {
    border-left-color: #FF0000;
    background: rgba(40, 10, 10, 0.85);
    border: 1px solid rgba(255, 50, 50, 0.2);
    border-left: 4px solid #FF1744;
}

.metric-val {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1.1;
}

.metric-lbl {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Pulsing SOS Visual Border Overlay Effect */
.pulse-border {
    border-color: #D32F2F;
    animation: criticalPulse 2.5s infinite;
}

/* 5. Advanced Engineering Performance Matrix */
.technical-specs {
    padding: 100px 0;
    background-color: var(--bg-dark);
    border-top: 1px solid #1E1E1E;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.spec-card {
    background-color: var(--bg-surface);
    padding: 32px;
    border-radius: 8px;
    border-top: 3px solid #222;
    transition: var(--transition-smooth);
}

.spec-card:hover {
    border-top-color: var(--primary-red);
    transform: translateY(-4px);
}

.spec-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-light);
}

.spec-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================================================
   Animations Engine CSS Keyframes
   ========================================================================== */

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes criticalPulse {
    0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(211, 47, 47, 0); }
    100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); }
}

@keyframes flashRed {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.animate-fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

/* ==========================================================================
   Responsive Breakdowns for Features Layer
   ========================================================================== */

@media (max-width: 992px) {
    .pane-grid, .pane-grid.inverse-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .pane-visual {
        order: -1; /* Place layout preview device snapshot above body content on handheld monitors */
    }
    
    .pane-text {
        text-align: center;
    }
    
    .feature-checklist {
        align-items: center;
        text-align: left;
    }

    .features-hero h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .tab-navigation-wrapper {
        flex-direction: column;
        border-radius: 16px;
        padding: 12px;
        gap: 6px;
    }
    
    .tab-btn {
        width: 100%;
        border-radius: 8px;
        padding: 12px;
    }
    
    .pane-text h3 {
        font-size: 26px;
    }
}
"""

with open("public/assets/css/features.css", "w", encoding="utf-8") as f:
    f.write(features_css_content)

print("features.css generated successfully.")